[2025-01-26 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:00:06 [end_date_ymd] => 2025-01-26 00:00:06 [RateCDR] => 1 ) [2025-01-26 00: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-01-25 21:00:06' and `end` < '2025-01-26 00: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-01-26 00:00:37] Production.INFO: count ==1351 [2025-01-26 00:00:37] Production.ERROR: pbx CDR StartTime 2025-01-25 21:00:06 - End Time 2025-01-26 00:00:06 [2025-01-26 00:00:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330513', 'tblTempUsageDetail_20' ) start [2025-01-26 00:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330513', 'tblTempUsageDetail_20' ) end [2025-01-26 00:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330513', 'tblTempVendorCDR_20' ) start [2025-01-26 00:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330513', 'tblTempVendorCDR_20' ) end [2025-01-26 00:00:37] Production.INFO: ProcessCDR(1,14330513,1,1,2) [2025-01-26 00:00:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:00:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:00:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:00:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:00:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330513', 'tblTempUsageDetail_20' ) start [2025-01-26 00:00:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330513', 'tblTempUsageDetail_20' ) end [2025-01-26 00:00:41] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:00:41] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:00:47] Production.INFO: ==10900== Releasing lock... [2025-01-26 00:00:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:00:47] Production.INFO: 39 MB #Memory Used# [2025-01-26 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:01:05 [end_date_ymd] => 2025-01-26 00:01:05 [RateCDR] => 1 ) [2025-01-26 00:01: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-01-25 21:01:05' and `end` < '2025-01-26 00:01: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-01-26 00:01:31] Production.INFO: count ==1308 [2025-01-26 00:01:31] Production.ERROR: pbx CDR StartTime 2025-01-25 21:01:05 - End Time 2025-01-26 00:01:05 [2025-01-26 00:01:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330518', 'tblTempUsageDetail_20' ) start [2025-01-26 00:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330518', 'tblTempUsageDetail_20' ) end [2025-01-26 00:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330518', 'tblTempVendorCDR_20' ) start [2025-01-26 00:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330518', 'tblTempVendorCDR_20' ) end [2025-01-26 00:01:32] Production.INFO: ProcessCDR(1,14330518,1,1,2) [2025-01-26 00:01:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:01:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:01:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:01:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330518', 'tblTempUsageDetail_20' ) start [2025-01-26 00:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330518', 'tblTempUsageDetail_20' ) end [2025-01-26 00:01:36] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:01:36] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:01:36] Production.INFO: ==10995== Releasing lock... [2025-01-26 00:01:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:01:36] Production.INFO: 37.5 MB #Memory Used# [2025-01-26 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:02:05 [end_date_ymd] => 2025-01-26 00:02:05 [RateCDR] => 1 ) [2025-01-26 00:02: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-01-25 21:02:05' and `end` < '2025-01-26 00:02: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-01-26 00:02:29] Production.INFO: count ==294 [2025-01-26 00:02:29] Production.ERROR: pbx CDR StartTime 2025-01-25 21:02:05 - End Time 2025-01-26 00:02:05 [2025-01-26 00:02:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330523', 'tblTempUsageDetail_20' ) start [2025-01-26 00:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330523', 'tblTempUsageDetail_20' ) end [2025-01-26 00:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330523', 'tblTempVendorCDR_20' ) start [2025-01-26 00:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330523', 'tblTempVendorCDR_20' ) end [2025-01-26 00:02:29] Production.INFO: ProcessCDR(1,14330523,1,1,2) [2025-01-26 00:02:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:02:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:02:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330523', 'tblTempUsageDetail_20' ) start [2025-01-26 00:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330523', 'tblTempUsageDetail_20' ) end [2025-01-26 00:02:33] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:02:33] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:02:33] Production.INFO: ==11075== Releasing lock... [2025-01-26 00:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:02:33] Production.INFO: 31 MB #Memory Used# [2025-01-26 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:03:05 [end_date_ymd] => 2025-01-26 00:03:05 [RateCDR] => 1 ) [2025-01-26 00:03: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-01-25 21:03:05' and `end` < '2025-01-26 00:03: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-01-26 00:03:36] Production.INFO: count ==284 [2025-01-26 00:03:36] Production.ERROR: pbx CDR StartTime 2025-01-25 21:03:05 - End Time 2025-01-26 00:03:05 [2025-01-26 00:03:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:03:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330528', 'tblTempUsageDetail_20' ) start [2025-01-26 00:03:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330528', 'tblTempUsageDetail_20' ) end [2025-01-26 00:03:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330528', 'tblTempVendorCDR_20' ) start [2025-01-26 00:03:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330528', 'tblTempVendorCDR_20' ) end [2025-01-26 00:03:36] Production.INFO: ProcessCDR(1,14330528,1,1,2) [2025-01-26 00:03:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:03:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:03:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:03:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:03:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330528', 'tblTempUsageDetail_20' ) start [2025-01-26 00:03:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330528', 'tblTempUsageDetail_20' ) end [2025-01-26 00:03:39] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:03:39] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:03:39] Production.INFO: ==11190== Releasing lock... [2025-01-26 00:03:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:03:39] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:04:05 [end_date_ymd] => 2025-01-26 00:04:05 [RateCDR] => 1 ) [2025-01-26 00:04: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-01-25 21:04:05' and `end` < '2025-01-26 00:04: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-01-26 00:04:30] Production.INFO: count ==289 [2025-01-26 00:04:30] Production.ERROR: pbx CDR StartTime 2025-01-25 21:04:05 - End Time 2025-01-26 00:04:05 [2025-01-26 00:04:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330533', 'tblTempUsageDetail_20' ) start [2025-01-26 00:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330533', 'tblTempUsageDetail_20' ) end [2025-01-26 00:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330533', 'tblTempVendorCDR_20' ) start [2025-01-26 00:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330533', 'tblTempVendorCDR_20' ) end [2025-01-26 00:04:30] Production.INFO: ProcessCDR(1,14330533,1,1,2) [2025-01-26 00:04:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:04:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:04:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:04:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330533', 'tblTempUsageDetail_20' ) start [2025-01-26 00:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330533', 'tblTempUsageDetail_20' ) end [2025-01-26 00:04:34] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:04:34] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:04:34] Production.INFO: ==11268== Releasing lock... [2025-01-26 00:04:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:04:34] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:05:05 [end_date_ymd] => 2025-01-26 00:05:05 [RateCDR] => 1 ) [2025-01-26 00:05: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-01-25 21:05:05' and `end` < '2025-01-26 00:05: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-01-26 00:05:29] Production.INFO: count ==286 [2025-01-26 00:05:29] Production.ERROR: pbx CDR StartTime 2025-01-25 21:05:05 - End Time 2025-01-26 00:05:05 [2025-01-26 00:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330538', 'tblTempUsageDetail_20' ) start [2025-01-26 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330538', 'tblTempUsageDetail_20' ) end [2025-01-26 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330538', 'tblTempVendorCDR_20' ) start [2025-01-26 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330538', 'tblTempVendorCDR_20' ) end [2025-01-26 00:05:29] Production.INFO: ProcessCDR(1,14330538,1,1,2) [2025-01-26 00:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330538', 'tblTempUsageDetail_20' ) start [2025-01-26 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330538', 'tblTempUsageDetail_20' ) end [2025-01-26 00:05:32] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:05:32] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:05:32] Production.INFO: ==11348== Releasing lock... [2025-01-26 00:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:05:32] Production.INFO: 31 MB #Memory Used# [2025-01-26 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:06:05 [end_date_ymd] => 2025-01-26 00:06:05 [RateCDR] => 1 ) [2025-01-26 00:06: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-01-25 21:06:05' and `end` < '2025-01-26 00:06: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-01-26 00:06:34] Production.INFO: count ==287 [2025-01-26 00:06:35] Production.ERROR: pbx CDR StartTime 2025-01-25 21:06:05 - End Time 2025-01-26 00:06:05 [2025-01-26 00:06:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:06:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330543', 'tblTempUsageDetail_20' ) start [2025-01-26 00:06:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330543', 'tblTempUsageDetail_20' ) end [2025-01-26 00:06:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330543', 'tblTempVendorCDR_20' ) start [2025-01-26 00:06:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330543', 'tblTempVendorCDR_20' ) end [2025-01-26 00:06:35] Production.INFO: ProcessCDR(1,14330543,1,1,2) [2025-01-26 00:06:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:06:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:06:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:06:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330543', 'tblTempUsageDetail_20' ) start [2025-01-26 00:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330543', 'tblTempUsageDetail_20' ) end [2025-01-26 00:06:39] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:06:39] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:06:39] Production.INFO: ==11424== Releasing lock... [2025-01-26 00:06:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:06:39] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:07:05 [end_date_ymd] => 2025-01-26 00:07:05 [RateCDR] => 1 ) [2025-01-26 00:07: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-01-25 21:07:05' and `end` < '2025-01-26 00:07: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-01-26 00:07:26] Production.INFO: count ==284 [2025-01-26 00:07:26] Production.ERROR: pbx CDR StartTime 2025-01-25 21:07:05 - End Time 2025-01-26 00:07:05 [2025-01-26 00:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330548', 'tblTempUsageDetail_20' ) start [2025-01-26 00:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330548', 'tblTempUsageDetail_20' ) end [2025-01-26 00:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330548', 'tblTempVendorCDR_20' ) start [2025-01-26 00:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330548', 'tblTempVendorCDR_20' ) end [2025-01-26 00:07:26] Production.INFO: ProcessCDR(1,14330548,1,1,2) [2025-01-26 00:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330548', 'tblTempUsageDetail_20' ) start [2025-01-26 00:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330548', 'tblTempUsageDetail_20' ) end [2025-01-26 00:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:07:29] Production.INFO: ==11501== Releasing lock... [2025-01-26 00:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:07:29] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 00:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:08:04 [end_date_ymd] => 2025-01-26 00:08:04 [RateCDR] => 1 ) [2025-01-26 00:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 21:08:04' and `end` < '2025-01-26 00:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 00:08:22] Production.INFO: count ==277 [2025-01-26 00:08:22] Production.ERROR: pbx CDR StartTime 2025-01-25 21:08:04 - End Time 2025-01-26 00:08:04 [2025-01-26 00:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330553', 'tblTempUsageDetail_20' ) start [2025-01-26 00:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330553', 'tblTempUsageDetail_20' ) end [2025-01-26 00:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330553', 'tblTempVendorCDR_20' ) start [2025-01-26 00:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330553', 'tblTempVendorCDR_20' ) end [2025-01-26 00:08:22] Production.INFO: ProcessCDR(1,14330553,1,1,2) [2025-01-26 00:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330553', 'tblTempUsageDetail_20' ) start [2025-01-26 00:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330553', 'tblTempUsageDetail_20' ) end [2025-01-26 00:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:08:25] Production.INFO: ==11582== Releasing lock... [2025-01-26 00:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:08:25] Production.INFO: 30.5 MB #Memory Used# [2025-01-26 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:09:05 [end_date_ymd] => 2025-01-26 00:09:05 [RateCDR] => 1 ) [2025-01-26 00:09: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-01-25 21:09:05' and `end` < '2025-01-26 00:09: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-01-26 00:09:17] Production.INFO: count ==271 [2025-01-26 00:09:17] Production.ERROR: pbx CDR StartTime 2025-01-25 21:09:05 - End Time 2025-01-26 00:09:05 [2025-01-26 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330557', 'tblTempUsageDetail_20' ) start [2025-01-26 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330557', 'tblTempUsageDetail_20' ) end [2025-01-26 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330557', 'tblTempVendorCDR_20' ) start [2025-01-26 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330557', 'tblTempVendorCDR_20' ) end [2025-01-26 00:09:18] Production.INFO: ProcessCDR(1,14330557,1,1,2) [2025-01-26 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330557', 'tblTempUsageDetail_20' ) start [2025-01-26 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330557', 'tblTempUsageDetail_20' ) end [2025-01-26 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:09:21] Production.INFO: ==11660== Releasing lock... [2025-01-26 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:09:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:10:06 [end_date_ymd] => 2025-01-26 00:10:06 [RateCDR] => 1 ) [2025-01-26 00:10: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-01-25 21:10:06' and `end` < '2025-01-26 00:10: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-01-26 00:10:20] Production.INFO: count ==284 [2025-01-26 00:10:20] Production.ERROR: pbx CDR StartTime 2025-01-25 21:10:06 - End Time 2025-01-26 00:10:06 [2025-01-26 00:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330564', 'tblTempUsageDetail_20' ) start [2025-01-26 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330564', 'tblTempUsageDetail_20' ) end [2025-01-26 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330564', 'tblTempVendorCDR_20' ) start [2025-01-26 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330564', 'tblTempVendorCDR_20' ) end [2025-01-26 00:10:20] Production.INFO: ProcessCDR(1,14330564,1,1,2) [2025-01-26 00:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330564', 'tblTempUsageDetail_20' ) start [2025-01-26 00:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330564', 'tblTempUsageDetail_20' ) end [2025-01-26 00:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:10:25] Production.INFO: ==11738== Releasing lock... [2025-01-26 00:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:10:25] Production.INFO: 31 MB #Memory Used# [2025-01-26 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:11:05 [end_date_ymd] => 2025-01-26 00:11:05 [RateCDR] => 1 ) [2025-01-26 00:11: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-01-25 21:11:05' and `end` < '2025-01-26 00:11: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-01-26 00:11:18] Production.INFO: count ==303 [2025-01-26 00:11:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:11:05 - End Time 2025-01-26 00:11:05 [2025-01-26 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330569', 'tblTempUsageDetail_20' ) start [2025-01-26 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330569', 'tblTempUsageDetail_20' ) end [2025-01-26 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330569', 'tblTempVendorCDR_20' ) start [2025-01-26 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330569', 'tblTempVendorCDR_20' ) end [2025-01-26 00:11:18] Production.INFO: ProcessCDR(1,14330569,1,1,2) [2025-01-26 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330569', 'tblTempUsageDetail_20' ) start [2025-01-26 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330569', 'tblTempUsageDetail_20' ) end [2025-01-26 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:11:21] Production.INFO: ==11823== Releasing lock... [2025-01-26 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:11:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:12:05 [end_date_ymd] => 2025-01-26 00:12:05 [RateCDR] => 1 ) [2025-01-26 00:12: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-01-25 21:12:05' and `end` < '2025-01-26 00:12: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-01-26 00:12:48] Production.INFO: count ==302 [2025-01-26 00:12:49] Production.ERROR: pbx CDR StartTime 2025-01-25 21:12:05 - End Time 2025-01-26 00:12:05 [2025-01-26 00:12:49] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:12:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330574', 'tblTempUsageDetail_20' ) start [2025-01-26 00:12:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330574', 'tblTempUsageDetail_20' ) end [2025-01-26 00:12:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330574', 'tblTempVendorCDR_20' ) start [2025-01-26 00:12:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330574', 'tblTempVendorCDR_20' ) end [2025-01-26 00:12:49] Production.INFO: ProcessCDR(1,14330574,1,1,2) [2025-01-26 00:12:49] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:12:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:12:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:12:52] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:12:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330574', 'tblTempUsageDetail_20' ) start [2025-01-26 00:12:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330574', 'tblTempUsageDetail_20' ) end [2025-01-26 00:12:52] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:12:52] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:12:52] Production.INFO: ==11895== Releasing lock... [2025-01-26 00:12:52] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:12:52] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:13:05 [end_date_ymd] => 2025-01-26 00:13:05 [RateCDR] => 1 ) [2025-01-26 00:13: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-01-25 21:13:05' and `end` < '2025-01-26 00:13: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-01-26 00:13:25] Production.INFO: count ==304 [2025-01-26 00:13:25] Production.ERROR: pbx CDR StartTime 2025-01-25 21:13:05 - End Time 2025-01-26 00:13:05 [2025-01-26 00:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330579', 'tblTempUsageDetail_20' ) start [2025-01-26 00:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330579', 'tblTempUsageDetail_20' ) end [2025-01-26 00:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330579', 'tblTempVendorCDR_20' ) start [2025-01-26 00:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330579', 'tblTempVendorCDR_20' ) end [2025-01-26 00:13:25] Production.INFO: ProcessCDR(1,14330579,1,1,2) [2025-01-26 00:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330579', 'tblTempUsageDetail_20' ) start [2025-01-26 00:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330579', 'tblTempUsageDetail_20' ) end [2025-01-26 00:13:28] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:13:28] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:13:28] Production.INFO: ==11975== Releasing lock... [2025-01-26 00:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:13:28] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:14:05 [end_date_ymd] => 2025-01-26 00:14:05 [RateCDR] => 1 ) [2025-01-26 00:14: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-01-25 21:14:05' and `end` < '2025-01-26 00:14: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-01-26 00:14:22] Production.INFO: count ==301 [2025-01-26 00:14:22] Production.ERROR: pbx CDR StartTime 2025-01-25 21:14:05 - End Time 2025-01-26 00:14:05 [2025-01-26 00:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330584', 'tblTempUsageDetail_20' ) start [2025-01-26 00:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330584', 'tblTempUsageDetail_20' ) end [2025-01-26 00:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330584', 'tblTempVendorCDR_20' ) start [2025-01-26 00:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330584', 'tblTempVendorCDR_20' ) end [2025-01-26 00:14:22] Production.INFO: ProcessCDR(1,14330584,1,1,2) [2025-01-26 00:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330584', 'tblTempUsageDetail_20' ) start [2025-01-26 00:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330584', 'tblTempUsageDetail_20' ) end [2025-01-26 00:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:14:25] Production.INFO: ==12066== Releasing lock... [2025-01-26 00:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:14:25] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:15:05 [end_date_ymd] => 2025-01-26 00:15:05 [RateCDR] => 1 ) [2025-01-26 00:15: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-01-25 21:15:05' and `end` < '2025-01-26 00:15: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-01-26 00:15:17] Production.INFO: count ==298 [2025-01-26 00:15:17] Production.ERROR: pbx CDR StartTime 2025-01-25 21:15:05 - End Time 2025-01-26 00:15:05 [2025-01-26 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330589', 'tblTempUsageDetail_20' ) start [2025-01-26 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330589', 'tblTempUsageDetail_20' ) end [2025-01-26 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330589', 'tblTempVendorCDR_20' ) start [2025-01-26 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330589', 'tblTempVendorCDR_20' ) end [2025-01-26 00:15:17] Production.INFO: ProcessCDR(1,14330589,1,1,2) [2025-01-26 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330589', 'tblTempUsageDetail_20' ) start [2025-01-26 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330589', 'tblTempUsageDetail_20' ) end [2025-01-26 00:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:15:20] Production.INFO: ==12154== Releasing lock... [2025-01-26 00:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:15:20] Production.INFO: 31 MB #Memory Used# [2025-01-26 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:16:05 [end_date_ymd] => 2025-01-26 00:16:05 [RateCDR] => 1 ) [2025-01-26 00:16: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-01-25 21:16:05' and `end` < '2025-01-26 00:16: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-01-26 00:16:17] Production.INFO: count ==298 [2025-01-26 00:16:17] Production.ERROR: pbx CDR StartTime 2025-01-25 21:16:05 - End Time 2025-01-26 00:16:05 [2025-01-26 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330594', 'tblTempUsageDetail_20' ) start [2025-01-26 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330594', 'tblTempUsageDetail_20' ) end [2025-01-26 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330594', 'tblTempVendorCDR_20' ) start [2025-01-26 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330594', 'tblTempVendorCDR_20' ) end [2025-01-26 00:16:17] Production.INFO: ProcessCDR(1,14330594,1,1,2) [2025-01-26 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330594', 'tblTempUsageDetail_20' ) start [2025-01-26 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330594', 'tblTempUsageDetail_20' ) end [2025-01-26 00:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:16:20] Production.INFO: ==12240== Releasing lock... [2025-01-26 00:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:16:20] Production.INFO: 31 MB #Memory Used# [2025-01-26 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:17:05 [end_date_ymd] => 2025-01-26 00:17:05 [RateCDR] => 1 ) [2025-01-26 00:17: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-01-25 21:17:05' and `end` < '2025-01-26 00:17: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-01-26 00:17:17] Production.INFO: count ==295 [2025-01-26 00:17:17] Production.ERROR: pbx CDR StartTime 2025-01-25 21:17:05 - End Time 2025-01-26 00:17:05 [2025-01-26 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330599', 'tblTempUsageDetail_20' ) start [2025-01-26 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330599', 'tblTempUsageDetail_20' ) end [2025-01-26 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330599', 'tblTempVendorCDR_20' ) start [2025-01-26 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330599', 'tblTempVendorCDR_20' ) end [2025-01-26 00:17:17] Production.INFO: ProcessCDR(1,14330599,1,1,2) [2025-01-26 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330599', 'tblTempUsageDetail_20' ) start [2025-01-26 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330599', 'tblTempUsageDetail_20' ) end [2025-01-26 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:17:21] Production.INFO: ==12326== Releasing lock... [2025-01-26 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:17:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 00:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:18:06 [end_date_ymd] => 2025-01-26 00:18:06 [RateCDR] => 1 ) [2025-01-26 00:18: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-01-25 21:18:06' and `end` < '2025-01-26 00:18: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-01-26 00:18:19] Production.INFO: count ==300 [2025-01-26 00:18:19] Production.ERROR: pbx CDR StartTime 2025-01-25 21:18:06 - End Time 2025-01-26 00:18:06 [2025-01-26 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330604', 'tblTempUsageDetail_20' ) start [2025-01-26 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330604', 'tblTempUsageDetail_20' ) end [2025-01-26 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330604', 'tblTempVendorCDR_20' ) start [2025-01-26 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330604', 'tblTempVendorCDR_20' ) end [2025-01-26 00:18:19] Production.INFO: ProcessCDR(1,14330604,1,1,2) [2025-01-26 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330604', 'tblTempUsageDetail_20' ) start [2025-01-26 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330604', 'tblTempUsageDetail_20' ) end [2025-01-26 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:18:22] Production.INFO: ==12463== Releasing lock... [2025-01-26 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:18:22] Production.INFO: 31 MB #Memory Used# [2025-01-26 00:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:19:06 [end_date_ymd] => 2025-01-26 00:19:06 [RateCDR] => 1 ) [2025-01-26 00:19: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-01-25 21:19:06' and `end` < '2025-01-26 00:19: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-01-26 00:19:19] Production.INFO: count ==296 [2025-01-26 00:19:19] Production.ERROR: pbx CDR StartTime 2025-01-25 21:19:06 - End Time 2025-01-26 00:19:06 [2025-01-26 00:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330609', 'tblTempUsageDetail_20' ) start [2025-01-26 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330609', 'tblTempUsageDetail_20' ) end [2025-01-26 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330609', 'tblTempVendorCDR_20' ) start [2025-01-26 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330609', 'tblTempVendorCDR_20' ) end [2025-01-26 00:19:19] Production.INFO: ProcessCDR(1,14330609,1,1,2) [2025-01-26 00:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330609', 'tblTempUsageDetail_20' ) start [2025-01-26 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330609', 'tblTempUsageDetail_20' ) end [2025-01-26 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:19:22] Production.INFO: ==12555== Releasing lock... [2025-01-26 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:19:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:20:06 [end_date_ymd] => 2025-01-26 00:20:06 [RateCDR] => 1 ) [2025-01-26 00:20: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-01-25 21:20:06' and `end` < '2025-01-26 00:20: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-01-26 00:20:18] Production.INFO: count ==298 [2025-01-26 00:20:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:20:06 - End Time 2025-01-26 00:20:06 [2025-01-26 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330614', 'tblTempUsageDetail_20' ) start [2025-01-26 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330614', 'tblTempUsageDetail_20' ) end [2025-01-26 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330614', 'tblTempVendorCDR_20' ) start [2025-01-26 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330614', 'tblTempVendorCDR_20' ) end [2025-01-26 00:20:18] Production.INFO: ProcessCDR(1,14330614,1,1,2) [2025-01-26 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330614', 'tblTempUsageDetail_20' ) start [2025-01-26 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330614', 'tblTempUsageDetail_20' ) end [2025-01-26 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:20:21] Production.INFO: ==12647== Releasing lock... [2025-01-26 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:20:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:21:05 [end_date_ymd] => 2025-01-26 00:21:05 [RateCDR] => 1 ) [2025-01-26 00:21: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-01-25 21:21:05' and `end` < '2025-01-26 00:21: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-01-26 00:21:17] Production.INFO: count ==302 [2025-01-26 00:21:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:21:05 - End Time 2025-01-26 00:21:05 [2025-01-26 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330620', 'tblTempUsageDetail_20' ) start [2025-01-26 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330620', 'tblTempUsageDetail_20' ) end [2025-01-26 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330620', 'tblTempVendorCDR_20' ) start [2025-01-26 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330620', 'tblTempVendorCDR_20' ) end [2025-01-26 00:21:18] Production.INFO: ProcessCDR(1,14330620,1,1,2) [2025-01-26 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330620', 'tblTempUsageDetail_20' ) start [2025-01-26 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330620', 'tblTempUsageDetail_20' ) end [2025-01-26 00:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:21:20] Production.INFO: ==12726== Releasing lock... [2025-01-26 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:21:20] Production.INFO: 31 MB #Memory Used# [2025-01-26 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:22:05 [end_date_ymd] => 2025-01-26 00:22:05 [RateCDR] => 1 ) [2025-01-26 00:22: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-01-25 21:22:05' and `end` < '2025-01-26 00:22: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-01-26 00:22:17] Production.INFO: count ==302 [2025-01-26 00:22:17] Production.ERROR: pbx CDR StartTime 2025-01-25 21:22:05 - End Time 2025-01-26 00:22:05 [2025-01-26 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330625', 'tblTempUsageDetail_20' ) start [2025-01-26 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330625', 'tblTempUsageDetail_20' ) end [2025-01-26 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330625', 'tblTempVendorCDR_20' ) start [2025-01-26 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330625', 'tblTempVendorCDR_20' ) end [2025-01-26 00:22:17] Production.INFO: ProcessCDR(1,14330625,1,1,2) [2025-01-26 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330625', 'tblTempUsageDetail_20' ) start [2025-01-26 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330625', 'tblTempUsageDetail_20' ) end [2025-01-26 00:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:22:20] Production.INFO: ==12805== Releasing lock... [2025-01-26 00:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:22:20] Production.INFO: 31 MB #Memory Used# [2025-01-26 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:23:05 [end_date_ymd] => 2025-01-26 00:23:05 [RateCDR] => 1 ) [2025-01-26 00:23: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-01-25 21:23:05' and `end` < '2025-01-26 00:23: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-01-26 00:23:18] Production.INFO: count ==304 [2025-01-26 00:23:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:23:05 - End Time 2025-01-26 00:23:05 [2025-01-26 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330630', 'tblTempUsageDetail_20' ) start [2025-01-26 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330630', 'tblTempUsageDetail_20' ) end [2025-01-26 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330630', 'tblTempVendorCDR_20' ) start [2025-01-26 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330630', 'tblTempVendorCDR_20' ) end [2025-01-26 00:23:18] Production.INFO: ProcessCDR(1,14330630,1,1,2) [2025-01-26 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330630', 'tblTempUsageDetail_20' ) start [2025-01-26 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330630', 'tblTempUsageDetail_20' ) end [2025-01-26 00:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:23:22] Production.INFO: ==12885== Releasing lock... [2025-01-26 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:23:22] Production.INFO: 31 MB #Memory Used# [2025-01-26 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:24:05 [end_date_ymd] => 2025-01-26 00:24:05 [RateCDR] => 1 ) [2025-01-26 00:24: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-01-25 21:24:05' and `end` < '2025-01-26 00:24: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-01-26 00:24:18] Production.INFO: count ==301 [2025-01-26 00:24:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:24:05 - End Time 2025-01-26 00:24:05 [2025-01-26 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330635', 'tblTempUsageDetail_20' ) start [2025-01-26 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330635', 'tblTempUsageDetail_20' ) end [2025-01-26 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330635', 'tblTempVendorCDR_20' ) start [2025-01-26 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330635', 'tblTempVendorCDR_20' ) end [2025-01-26 00:24:18] Production.INFO: ProcessCDR(1,14330635,1,1,2) [2025-01-26 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330635', 'tblTempUsageDetail_20' ) start [2025-01-26 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330635', 'tblTempUsageDetail_20' ) end [2025-01-26 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:24:22] Production.INFO: ==12965== Releasing lock... [2025-01-26 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:24:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:25:05 [end_date_ymd] => 2025-01-26 00:25:05 [RateCDR] => 1 ) [2025-01-26 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 21:25:05' and `end` < '2025-01-26 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 00:25:18] Production.INFO: count ==295 [2025-01-26 00:25:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:25:05 - End Time 2025-01-26 00:25:05 [2025-01-26 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330640', 'tblTempUsageDetail_20' ) start [2025-01-26 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330640', 'tblTempUsageDetail_20' ) end [2025-01-26 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330640', 'tblTempVendorCDR_20' ) start [2025-01-26 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330640', 'tblTempVendorCDR_20' ) end [2025-01-26 00:25:18] Production.INFO: ProcessCDR(1,14330640,1,1,2) [2025-01-26 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330640', 'tblTempUsageDetail_20' ) start [2025-01-26 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330640', 'tblTempUsageDetail_20' ) end [2025-01-26 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:25:21] Production.INFO: ==13049== Releasing lock... [2025-01-26 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:25:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 00:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:26:04 [end_date_ymd] => 2025-01-26 00:26:04 [RateCDR] => 1 ) [2025-01-26 00:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 21:26:04' and `end` < '2025-01-26 00:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 00:26:17] Production.INFO: count ==292 [2025-01-26 00:26:17] Production.ERROR: pbx CDR StartTime 2025-01-25 21:26:04 - End Time 2025-01-26 00:26:04 [2025-01-26 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330645', 'tblTempUsageDetail_20' ) start [2025-01-26 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330645', 'tblTempUsageDetail_20' ) end [2025-01-26 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330645', 'tblTempVendorCDR_20' ) start [2025-01-26 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330645', 'tblTempVendorCDR_20' ) end [2025-01-26 00:26:17] Production.INFO: ProcessCDR(1,14330645,1,1,2) [2025-01-26 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330645', 'tblTempUsageDetail_20' ) start [2025-01-26 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330645', 'tblTempUsageDetail_20' ) end [2025-01-26 00:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:26:20] Production.INFO: ==13125== Releasing lock... [2025-01-26 00:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:26:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:27:05 [end_date_ymd] => 2025-01-26 00:27:05 [RateCDR] => 1 ) [2025-01-26 00:27: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-01-25 21:27:05' and `end` < '2025-01-26 00:27: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-01-26 00:27:18] Production.INFO: count ==290 [2025-01-26 00:27:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:27:05 - End Time 2025-01-26 00:27:05 [2025-01-26 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330650', 'tblTempUsageDetail_20' ) start [2025-01-26 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330650', 'tblTempUsageDetail_20' ) end [2025-01-26 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330650', 'tblTempVendorCDR_20' ) start [2025-01-26 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330650', 'tblTempVendorCDR_20' ) end [2025-01-26 00:27:18] Production.INFO: ProcessCDR(1,14330650,1,1,2) [2025-01-26 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330650', 'tblTempUsageDetail_20' ) start [2025-01-26 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330650', 'tblTempUsageDetail_20' ) end [2025-01-26 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:27:21] Production.INFO: ==13203== Releasing lock... [2025-01-26 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:27:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:28:05 [end_date_ymd] => 2025-01-26 00:28:05 [RateCDR] => 1 ) [2025-01-26 00:28: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-01-25 21:28:05' and `end` < '2025-01-26 00:28: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-01-26 00:28:18] Production.INFO: count ==289 [2025-01-26 00:28:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:28:05 - End Time 2025-01-26 00:28:05 [2025-01-26 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330655', 'tblTempUsageDetail_20' ) start [2025-01-26 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330655', 'tblTempUsageDetail_20' ) end [2025-01-26 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330655', 'tblTempVendorCDR_20' ) start [2025-01-26 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330655', 'tblTempVendorCDR_20' ) end [2025-01-26 00:28:18] Production.INFO: ProcessCDR(1,14330655,1,1,2) [2025-01-26 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330655', 'tblTempUsageDetail_20' ) start [2025-01-26 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330655', 'tblTempUsageDetail_20' ) end [2025-01-26 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:28:21] Production.INFO: ==13283== Releasing lock... [2025-01-26 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:28:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:29:05 [end_date_ymd] => 2025-01-26 00:29:05 [RateCDR] => 1 ) [2025-01-26 00:29: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-01-25 21:29:05' and `end` < '2025-01-26 00:29: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-01-26 00:29:17] Production.INFO: count ==289 [2025-01-26 00:29:17] Production.ERROR: pbx CDR StartTime 2025-01-25 21:29:05 - End Time 2025-01-26 00:29:05 [2025-01-26 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330660', 'tblTempUsageDetail_20' ) start [2025-01-26 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330660', 'tblTempUsageDetail_20' ) end [2025-01-26 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330660', 'tblTempVendorCDR_20' ) start [2025-01-26 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330660', 'tblTempVendorCDR_20' ) end [2025-01-26 00:29:17] Production.INFO: ProcessCDR(1,14330660,1,1,2) [2025-01-26 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330660', 'tblTempUsageDetail_20' ) start [2025-01-26 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330660', 'tblTempUsageDetail_20' ) end [2025-01-26 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:29:21] Production.INFO: ==13360== Releasing lock... [2025-01-26 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:29:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:30:06 [end_date_ymd] => 2025-01-26 00:30:06 [RateCDR] => 1 ) [2025-01-26 00:30: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-01-25 21:30:06' and `end` < '2025-01-26 00:30: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-01-26 00:30:18] Production.INFO: count ==312 [2025-01-26 00:30:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:30:06 - End Time 2025-01-26 00:30:06 [2025-01-26 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330666', 'tblTempUsageDetail_20' ) start [2025-01-26 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330666', 'tblTempUsageDetail_20' ) end [2025-01-26 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330666', 'tblTempVendorCDR_20' ) start [2025-01-26 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330666', 'tblTempVendorCDR_20' ) end [2025-01-26 00:30:18] Production.INFO: ProcessCDR(1,14330666,1,1,2) [2025-01-26 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330666', 'tblTempUsageDetail_20' ) start [2025-01-26 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330666', 'tblTempUsageDetail_20' ) end [2025-01-26 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:30:21] Production.INFO: ==13439== Releasing lock... [2025-01-26 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:30:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:31:05 [end_date_ymd] => 2025-01-26 00:31:05 [RateCDR] => 1 ) [2025-01-26 00:31: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-01-25 21:31:05' and `end` < '2025-01-26 00:31: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-01-26 00:31:17] Production.INFO: count ==325 [2025-01-26 00:31:17] Production.ERROR: pbx CDR StartTime 2025-01-25 21:31:05 - End Time 2025-01-26 00:31:05 [2025-01-26 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330671', 'tblTempUsageDetail_20' ) start [2025-01-26 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330671', 'tblTempUsageDetail_20' ) end [2025-01-26 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330671', 'tblTempVendorCDR_20' ) start [2025-01-26 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330671', 'tblTempVendorCDR_20' ) end [2025-01-26 00:31:17] Production.INFO: ProcessCDR(1,14330671,1,1,2) [2025-01-26 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330671', 'tblTempUsageDetail_20' ) start [2025-01-26 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330671', 'tblTempUsageDetail_20' ) end [2025-01-26 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:31:22] Production.INFO: ==13516== Releasing lock... [2025-01-26 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:31:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:32:05 [end_date_ymd] => 2025-01-26 00:32:05 [RateCDR] => 1 ) [2025-01-26 00:32: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-01-25 21:32:05' and `end` < '2025-01-26 00:32: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-01-26 00:32:19] Production.INFO: count ==325 [2025-01-26 00:32:19] Production.ERROR: pbx CDR StartTime 2025-01-25 21:32:05 - End Time 2025-01-26 00:32:05 [2025-01-26 00:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330676', 'tblTempUsageDetail_20' ) start [2025-01-26 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330676', 'tblTempUsageDetail_20' ) end [2025-01-26 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330676', 'tblTempVendorCDR_20' ) start [2025-01-26 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330676', 'tblTempVendorCDR_20' ) end [2025-01-26 00:32:19] Production.INFO: ProcessCDR(1,14330676,1,1,2) [2025-01-26 00:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330676', 'tblTempUsageDetail_20' ) start [2025-01-26 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330676', 'tblTempUsageDetail_20' ) end [2025-01-26 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:32:22] Production.INFO: ==13593== Releasing lock... [2025-01-26 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:32:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 00:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:33:04 [end_date_ymd] => 2025-01-26 00:33:04 [RateCDR] => 1 ) [2025-01-26 00:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 21:33:04' and `end` < '2025-01-26 00:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 00:33:16] Production.INFO: count ==325 [2025-01-26 00:33:17] Production.ERROR: pbx CDR StartTime 2025-01-25 21:33:04 - End Time 2025-01-26 00:33:04 [2025-01-26 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330681', 'tblTempUsageDetail_20' ) start [2025-01-26 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330681', 'tblTempUsageDetail_20' ) end [2025-01-26 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330681', 'tblTempVendorCDR_20' ) start [2025-01-26 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330681', 'tblTempVendorCDR_20' ) end [2025-01-26 00:33:17] Production.INFO: ProcessCDR(1,14330681,1,1,2) [2025-01-26 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330681', 'tblTempUsageDetail_20' ) start [2025-01-26 00:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330681', 'tblTempUsageDetail_20' ) end [2025-01-26 00:33:19] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:33:19] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:33:19] Production.INFO: ==13669== Releasing lock... [2025-01-26 00:33:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:33:19] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:34:05 [end_date_ymd] => 2025-01-26 00:34:05 [RateCDR] => 1 ) [2025-01-26 00:34: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-01-25 21:34:05' and `end` < '2025-01-26 00:34: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-01-26 00:34:18] Production.INFO: count ==325 [2025-01-26 00:34:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:34:05 - End Time 2025-01-26 00:34:05 [2025-01-26 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330686', 'tblTempUsageDetail_20' ) start [2025-01-26 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330686', 'tblTempUsageDetail_20' ) end [2025-01-26 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330686', 'tblTempVendorCDR_20' ) start [2025-01-26 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330686', 'tblTempVendorCDR_20' ) end [2025-01-26 00:34:18] Production.INFO: ProcessCDR(1,14330686,1,1,2) [2025-01-26 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330686', 'tblTempUsageDetail_20' ) start [2025-01-26 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330686', 'tblTempUsageDetail_20' ) end [2025-01-26 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:34:22] Production.INFO: ==13792== Releasing lock... [2025-01-26 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:34:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 00:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:35:06 [end_date_ymd] => 2025-01-26 00:35:06 [RateCDR] => 1 ) [2025-01-26 00:35: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-01-25 21:35:06' and `end` < '2025-01-26 00:35: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-01-26 00:35:18] Production.INFO: count ==327 [2025-01-26 00:35:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:35:06 - End Time 2025-01-26 00:35:06 [2025-01-26 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330691', 'tblTempUsageDetail_20' ) start [2025-01-26 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330691', 'tblTempUsageDetail_20' ) end [2025-01-26 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330691', 'tblTempVendorCDR_20' ) start [2025-01-26 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330691', 'tblTempVendorCDR_20' ) end [2025-01-26 00:35:18] Production.INFO: ProcessCDR(1,14330691,1,1,2) [2025-01-26 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330691', 'tblTempUsageDetail_20' ) start [2025-01-26 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330691', 'tblTempUsageDetail_20' ) end [2025-01-26 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:35:22] Production.INFO: ==13869== Releasing lock... [2025-01-26 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:35:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:36:05 [end_date_ymd] => 2025-01-26 00:36:05 [RateCDR] => 1 ) [2025-01-26 00:36: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-01-25 21:36:05' and `end` < '2025-01-26 00:36: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-01-26 00:36:18] Production.INFO: count ==319 [2025-01-26 00:36:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:36:05 - End Time 2025-01-26 00:36:05 [2025-01-26 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330696', 'tblTempUsageDetail_20' ) start [2025-01-26 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330696', 'tblTempUsageDetail_20' ) end [2025-01-26 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330696', 'tblTempVendorCDR_20' ) start [2025-01-26 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330696', 'tblTempVendorCDR_20' ) end [2025-01-26 00:36:18] Production.INFO: ProcessCDR(1,14330696,1,1,2) [2025-01-26 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330696', 'tblTempUsageDetail_20' ) start [2025-01-26 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330696', 'tblTempUsageDetail_20' ) end [2025-01-26 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:36:21] Production.INFO: ==13944== Releasing lock... [2025-01-26 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:36:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:37:05 [end_date_ymd] => 2025-01-26 00:37:05 [RateCDR] => 1 ) [2025-01-26 00:37: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-01-25 21:37:05' and `end` < '2025-01-26 00:37: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-01-26 00:37:18] Production.INFO: count ==318 [2025-01-26 00:37:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:37:05 - End Time 2025-01-26 00:37:05 [2025-01-26 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330701', 'tblTempUsageDetail_20' ) start [2025-01-26 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330701', 'tblTempUsageDetail_20' ) end [2025-01-26 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330701', 'tblTempVendorCDR_20' ) start [2025-01-26 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330701', 'tblTempVendorCDR_20' ) end [2025-01-26 00:37:18] Production.INFO: ProcessCDR(1,14330701,1,1,2) [2025-01-26 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330701', 'tblTempUsageDetail_20' ) start [2025-01-26 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330701', 'tblTempUsageDetail_20' ) end [2025-01-26 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:37:21] Production.INFO: ==14021== Releasing lock... [2025-01-26 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:37:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:38:05 [end_date_ymd] => 2025-01-26 00:38:05 [RateCDR] => 1 ) [2025-01-26 00:38: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-01-25 21:38:05' and `end` < '2025-01-26 00:38: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-01-26 00:38:18] Production.INFO: count ==317 [2025-01-26 00:38:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:38:05 - End Time 2025-01-26 00:38:05 [2025-01-26 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330706', 'tblTempUsageDetail_20' ) start [2025-01-26 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330706', 'tblTempUsageDetail_20' ) end [2025-01-26 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330706', 'tblTempVendorCDR_20' ) start [2025-01-26 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330706', 'tblTempVendorCDR_20' ) end [2025-01-26 00:38:18] Production.INFO: ProcessCDR(1,14330706,1,1,2) [2025-01-26 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330706', 'tblTempUsageDetail_20' ) start [2025-01-26 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330706', 'tblTempUsageDetail_20' ) end [2025-01-26 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:38:21] Production.INFO: ==14102== Releasing lock... [2025-01-26 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:38:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:39:05 [end_date_ymd] => 2025-01-26 00:39:05 [RateCDR] => 1 ) [2025-01-26 00:39: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-01-25 21:39:05' and `end` < '2025-01-26 00:39: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-01-26 00:39:18] Production.INFO: count ==317 [2025-01-26 00:39:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:39:05 - End Time 2025-01-26 00:39:05 [2025-01-26 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330711', 'tblTempUsageDetail_20' ) start [2025-01-26 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330711', 'tblTempUsageDetail_20' ) end [2025-01-26 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330711', 'tblTempVendorCDR_20' ) start [2025-01-26 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330711', 'tblTempVendorCDR_20' ) end [2025-01-26 00:39:18] Production.INFO: ProcessCDR(1,14330711,1,1,2) [2025-01-26 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330711', 'tblTempUsageDetail_20' ) start [2025-01-26 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330711', 'tblTempUsageDetail_20' ) end [2025-01-26 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:39:21] Production.INFO: ==14185== Releasing lock... [2025-01-26 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:39:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:40:05 [end_date_ymd] => 2025-01-26 00:40:05 [RateCDR] => 1 ) [2025-01-26 00:40: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-01-25 21:40:05' and `end` < '2025-01-26 00:40: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-01-26 00:40:18] Production.INFO: count ==323 [2025-01-26 00:40:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:40:05 - End Time 2025-01-26 00:40:05 [2025-01-26 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330717', 'tblTempUsageDetail_20' ) start [2025-01-26 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330717', 'tblTempUsageDetail_20' ) end [2025-01-26 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330717', 'tblTempVendorCDR_20' ) start [2025-01-26 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330717', 'tblTempVendorCDR_20' ) end [2025-01-26 00:40:18] Production.INFO: ProcessCDR(1,14330717,1,1,2) [2025-01-26 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330717', 'tblTempUsageDetail_20' ) start [2025-01-26 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330717', 'tblTempUsageDetail_20' ) end [2025-01-26 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:40:21] Production.INFO: ==14266== Releasing lock... [2025-01-26 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:40:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 00:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:41:06 [end_date_ymd] => 2025-01-26 00:41:06 [RateCDR] => 1 ) [2025-01-26 00:41: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-01-25 21:41:06' and `end` < '2025-01-26 00:41: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-01-26 00:41:18] Production.INFO: count ==333 [2025-01-26 00:41:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:41:06 - End Time 2025-01-26 00:41:06 [2025-01-26 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330722', 'tblTempUsageDetail_20' ) start [2025-01-26 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330722', 'tblTempUsageDetail_20' ) end [2025-01-26 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330722', 'tblTempVendorCDR_20' ) start [2025-01-26 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330722', 'tblTempVendorCDR_20' ) end [2025-01-26 00:41:18] Production.INFO: ProcessCDR(1,14330722,1,1,2) [2025-01-26 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330722', 'tblTempUsageDetail_20' ) start [2025-01-26 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330722', 'tblTempUsageDetail_20' ) end [2025-01-26 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:41:21] Production.INFO: ==14348== Releasing lock... [2025-01-26 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:41:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:42:05 [end_date_ymd] => 2025-01-26 00:42:05 [RateCDR] => 1 ) [2025-01-26 00:42: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-01-25 21:42:05' and `end` < '2025-01-26 00:42: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-01-26 00:42:17] Production.INFO: count ==332 [2025-01-26 00:42:17] Production.ERROR: pbx CDR StartTime 2025-01-25 21:42:05 - End Time 2025-01-26 00:42:05 [2025-01-26 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330727', 'tblTempUsageDetail_20' ) start [2025-01-26 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330727', 'tblTempUsageDetail_20' ) end [2025-01-26 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330727', 'tblTempVendorCDR_20' ) start [2025-01-26 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330727', 'tblTempVendorCDR_20' ) end [2025-01-26 00:42:17] Production.INFO: ProcessCDR(1,14330727,1,1,2) [2025-01-26 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330727', 'tblTempUsageDetail_20' ) start [2025-01-26 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330727', 'tblTempUsageDetail_20' ) end [2025-01-26 00:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:42:20] Production.INFO: ==14435== Releasing lock... [2025-01-26 00:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:42:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:43:05 [end_date_ymd] => 2025-01-26 00:43:05 [RateCDR] => 1 ) [2025-01-26 00:43: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-01-25 21:43:05' and `end` < '2025-01-26 00:43: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-01-26 00:43:18] Production.INFO: count ==330 [2025-01-26 00:43:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:43:05 - End Time 2025-01-26 00:43:05 [2025-01-26 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330732', 'tblTempUsageDetail_20' ) start [2025-01-26 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330732', 'tblTempUsageDetail_20' ) end [2025-01-26 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330732', 'tblTempVendorCDR_20' ) start [2025-01-26 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330732', 'tblTempVendorCDR_20' ) end [2025-01-26 00:43:18] Production.INFO: ProcessCDR(1,14330732,1,1,2) [2025-01-26 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330732', 'tblTempUsageDetail_20' ) start [2025-01-26 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330732', 'tblTempUsageDetail_20' ) end [2025-01-26 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:43:21] Production.INFO: ==14514== Releasing lock... [2025-01-26 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:43:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:44:05 [end_date_ymd] => 2025-01-26 00:44:05 [RateCDR] => 1 ) [2025-01-26 00:44: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-01-25 21:44:05' and `end` < '2025-01-26 00:44: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-01-26 00:44:17] Production.INFO: count ==326 [2025-01-26 00:44:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:44:05 - End Time 2025-01-26 00:44:05 [2025-01-26 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330737', 'tblTempUsageDetail_20' ) start [2025-01-26 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330737', 'tblTempUsageDetail_20' ) end [2025-01-26 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330737', 'tblTempVendorCDR_20' ) start [2025-01-26 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330737', 'tblTempVendorCDR_20' ) end [2025-01-26 00:44:18] Production.INFO: ProcessCDR(1,14330737,1,1,2) [2025-01-26 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330737', 'tblTempUsageDetail_20' ) start [2025-01-26 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330737', 'tblTempUsageDetail_20' ) end [2025-01-26 00:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:44:21] Production.INFO: ==14590== Releasing lock... [2025-01-26 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:44:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:45:05 [end_date_ymd] => 2025-01-26 00:45:05 [RateCDR] => 1 ) [2025-01-26 00:45: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-01-25 21:45:05' and `end` < '2025-01-26 00:45: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-01-26 00:45:17] Production.INFO: count ==325 [2025-01-26 00:45:17] Production.ERROR: pbx CDR StartTime 2025-01-25 21:45:05 - End Time 2025-01-26 00:45:05 [2025-01-26 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330741', 'tblTempUsageDetail_20' ) start [2025-01-26 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330741', 'tblTempUsageDetail_20' ) end [2025-01-26 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330741', 'tblTempVendorCDR_20' ) start [2025-01-26 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330741', 'tblTempVendorCDR_20' ) end [2025-01-26 00:45:17] Production.INFO: ProcessCDR(1,14330741,1,1,2) [2025-01-26 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330741', 'tblTempUsageDetail_20' ) start [2025-01-26 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330741', 'tblTempUsageDetail_20' ) end [2025-01-26 00:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:45:20] Production.INFO: ==14668== Releasing lock... [2025-01-26 00:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:45:20] Production.INFO: 31 MB #Memory Used# [2025-01-26 00:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:46:06 [end_date_ymd] => 2025-01-26 00:46:06 [RateCDR] => 1 ) [2025-01-26 00:46: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-01-25 21:46:06' and `end` < '2025-01-26 00:46: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-01-26 00:46:19] Production.INFO: count ==320 [2025-01-26 00:46:19] Production.ERROR: pbx CDR StartTime 2025-01-25 21:46:06 - End Time 2025-01-26 00:46:06 [2025-01-26 00:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330747', 'tblTempUsageDetail_20' ) start [2025-01-26 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330747', 'tblTempUsageDetail_20' ) end [2025-01-26 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330747', 'tblTempVendorCDR_20' ) start [2025-01-26 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330747', 'tblTempVendorCDR_20' ) end [2025-01-26 00:46:19] Production.INFO: ProcessCDR(1,14330747,1,1,2) [2025-01-26 00:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330747', 'tblTempUsageDetail_20' ) start [2025-01-26 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330747', 'tblTempUsageDetail_20' ) end [2025-01-26 00:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:46:22] Production.INFO: ==14749== Releasing lock... [2025-01-26 00:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:46:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:47:05 [end_date_ymd] => 2025-01-26 00:47:05 [RateCDR] => 1 ) [2025-01-26 00:47: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-01-25 21:47:05' and `end` < '2025-01-26 00:47: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-01-26 00:47:17] Production.INFO: count ==323 [2025-01-26 00:47:17] Production.ERROR: pbx CDR StartTime 2025-01-25 21:47:05 - End Time 2025-01-26 00:47:05 [2025-01-26 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330752', 'tblTempUsageDetail_20' ) start [2025-01-26 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330752', 'tblTempUsageDetail_20' ) end [2025-01-26 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330752', 'tblTempVendorCDR_20' ) start [2025-01-26 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330752', 'tblTempVendorCDR_20' ) end [2025-01-26 00:47:17] Production.INFO: ProcessCDR(1,14330752,1,1,2) [2025-01-26 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330752', 'tblTempUsageDetail_20' ) start [2025-01-26 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330752', 'tblTempUsageDetail_20' ) end [2025-01-26 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:47:22] Production.INFO: ==14826== Releasing lock... [2025-01-26 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:47:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 00:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:48:06 [end_date_ymd] => 2025-01-26 00:48:06 [RateCDR] => 1 ) [2025-01-26 00:48: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-01-25 21:48:06' and `end` < '2025-01-26 00:48: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-01-26 00:48:19] Production.INFO: count ==322 [2025-01-26 00:48:19] Production.ERROR: pbx CDR StartTime 2025-01-25 21:48:06 - End Time 2025-01-26 00:48:06 [2025-01-26 00:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330757', 'tblTempUsageDetail_20' ) start [2025-01-26 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330757', 'tblTempUsageDetail_20' ) end [2025-01-26 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330757', 'tblTempVendorCDR_20' ) start [2025-01-26 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330757', 'tblTempVendorCDR_20' ) end [2025-01-26 00:48:19] Production.INFO: ProcessCDR(1,14330757,1,1,2) [2025-01-26 00:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330757', 'tblTempUsageDetail_20' ) start [2025-01-26 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330757', 'tblTempUsageDetail_20' ) end [2025-01-26 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:48:22] Production.INFO: ==14902== Releasing lock... [2025-01-26 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:48:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:49:05 [end_date_ymd] => 2025-01-26 00:49:05 [RateCDR] => 1 ) [2025-01-26 00:49: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-01-25 21:49:05' and `end` < '2025-01-26 00:49: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-01-26 00:49:17] Production.INFO: count ==320 [2025-01-26 00:49:17] Production.ERROR: pbx CDR StartTime 2025-01-25 21:49:05 - End Time 2025-01-26 00:49:05 [2025-01-26 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330762', 'tblTempUsageDetail_20' ) start [2025-01-26 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330762', 'tblTempUsageDetail_20' ) end [2025-01-26 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330762', 'tblTempVendorCDR_20' ) start [2025-01-26 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330762', 'tblTempVendorCDR_20' ) end [2025-01-26 00:49:17] Production.INFO: ProcessCDR(1,14330762,1,1,2) [2025-01-26 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330762', 'tblTempUsageDetail_20' ) start [2025-01-26 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330762', 'tblTempUsageDetail_20' ) end [2025-01-26 00:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:49:20] Production.INFO: ==15017== Releasing lock... [2025-01-26 00:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:49:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:50:06 [end_date_ymd] => 2025-01-26 00:50:06 [RateCDR] => 1 ) [2025-01-26 00:50: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-01-25 21:50:06' and `end` < '2025-01-26 00:50: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-01-26 00:50:19] Production.INFO: count ==334 [2025-01-26 00:50:19] Production.ERROR: pbx CDR StartTime 2025-01-25 21:50:06 - End Time 2025-01-26 00:50:06 [2025-01-26 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330768', 'tblTempUsageDetail_20' ) start [2025-01-26 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330768', 'tblTempUsageDetail_20' ) end [2025-01-26 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330768', 'tblTempVendorCDR_20' ) start [2025-01-26 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330768', 'tblTempVendorCDR_20' ) end [2025-01-26 00:50:19] Production.INFO: ProcessCDR(1,14330768,1,1,2) [2025-01-26 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330768', 'tblTempUsageDetail_20' ) start [2025-01-26 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330768', 'tblTempUsageDetail_20' ) end [2025-01-26 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:50:22] Production.INFO: ==15095== Releasing lock... [2025-01-26 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:50:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 00:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:51:04 [end_date_ymd] => 2025-01-26 00:51:04 [RateCDR] => 1 ) [2025-01-26 00:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 21:51:04' and `end` < '2025-01-26 00:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 00:51:18] Production.INFO: count ==350 [2025-01-26 00:51:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:51:04 - End Time 2025-01-26 00:51:04 [2025-01-26 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330773', 'tblTempUsageDetail_20' ) start [2025-01-26 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330773', 'tblTempUsageDetail_20' ) end [2025-01-26 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330773', 'tblTempVendorCDR_20' ) start [2025-01-26 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330773', 'tblTempVendorCDR_20' ) end [2025-01-26 00:51:18] Production.INFO: ProcessCDR(1,14330773,1,1,2) [2025-01-26 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330773', 'tblTempUsageDetail_20' ) start [2025-01-26 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330773', 'tblTempUsageDetail_20' ) end [2025-01-26 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:51:21] Production.INFO: ==15174== Releasing lock... [2025-01-26 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:51:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 00:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:52:06 [end_date_ymd] => 2025-01-26 00:52:06 [RateCDR] => 1 ) [2025-01-26 00:52: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-01-25 21:52:06' and `end` < '2025-01-26 00:52: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-01-26 00:52:18] Production.INFO: count ==348 [2025-01-26 00:52:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:52:06 - End Time 2025-01-26 00:52:06 [2025-01-26 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330778', 'tblTempUsageDetail_20' ) start [2025-01-26 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330778', 'tblTempUsageDetail_20' ) end [2025-01-26 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330778', 'tblTempVendorCDR_20' ) start [2025-01-26 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330778', 'tblTempVendorCDR_20' ) end [2025-01-26 00:52:18] Production.INFO: ProcessCDR(1,14330778,1,1,2) [2025-01-26 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330778', 'tblTempUsageDetail_20' ) start [2025-01-26 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330778', 'tblTempUsageDetail_20' ) end [2025-01-26 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:52:21] Production.INFO: ==15257== Releasing lock... [2025-01-26 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:52:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:53:05 [end_date_ymd] => 2025-01-26 00:53:05 [RateCDR] => 1 ) [2025-01-26 00:53: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-01-25 21:53:05' and `end` < '2025-01-26 00:53: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-01-26 00:53:17] Production.INFO: count ==348 [2025-01-26 00:53:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:53:05 - End Time 2025-01-26 00:53:05 [2025-01-26 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330783', 'tblTempUsageDetail_20' ) start [2025-01-26 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330783', 'tblTempUsageDetail_20' ) end [2025-01-26 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330783', 'tblTempVendorCDR_20' ) start [2025-01-26 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330783', 'tblTempVendorCDR_20' ) end [2025-01-26 00:53:18] Production.INFO: ProcessCDR(1,14330783,1,1,2) [2025-01-26 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330783', 'tblTempUsageDetail_20' ) start [2025-01-26 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330783', 'tblTempUsageDetail_20' ) end [2025-01-26 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:53:21] Production.INFO: ==15335== Releasing lock... [2025-01-26 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:53:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:54:05 [end_date_ymd] => 2025-01-26 00:54:05 [RateCDR] => 1 ) [2025-01-26 00:54: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-01-25 21:54:05' and `end` < '2025-01-26 00:54: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-01-26 00:54:17] Production.INFO: count ==347 [2025-01-26 00:54:17] Production.ERROR: pbx CDR StartTime 2025-01-25 21:54:05 - End Time 2025-01-26 00:54:05 [2025-01-26 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330788', 'tblTempUsageDetail_20' ) start [2025-01-26 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330788', 'tblTempUsageDetail_20' ) end [2025-01-26 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330788', 'tblTempVendorCDR_20' ) start [2025-01-26 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330788', 'tblTempVendorCDR_20' ) end [2025-01-26 00:54:17] Production.INFO: ProcessCDR(1,14330788,1,1,2) [2025-01-26 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330788', 'tblTempUsageDetail_20' ) start [2025-01-26 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330788', 'tblTempUsageDetail_20' ) end [2025-01-26 00:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:54:20] Production.INFO: ==15410== Releasing lock... [2025-01-26 00:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:54:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:55:05 [end_date_ymd] => 2025-01-26 00:55:05 [RateCDR] => 1 ) [2025-01-26 00:55: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-01-25 21:55:05' and `end` < '2025-01-26 00:55: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-01-26 00:55:18] Production.INFO: count ==347 [2025-01-26 00:55:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:55:05 - End Time 2025-01-26 00:55:05 [2025-01-26 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330793', 'tblTempUsageDetail_20' ) start [2025-01-26 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330793', 'tblTempUsageDetail_20' ) end [2025-01-26 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330793', 'tblTempVendorCDR_20' ) start [2025-01-26 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330793', 'tblTempVendorCDR_20' ) end [2025-01-26 00:55:18] Production.INFO: ProcessCDR(1,14330793,1,1,2) [2025-01-26 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330793', 'tblTempUsageDetail_20' ) start [2025-01-26 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330793', 'tblTempUsageDetail_20' ) end [2025-01-26 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:55:21] Production.INFO: ==15486== Releasing lock... [2025-01-26 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:55:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 00:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:56:06 [end_date_ymd] => 2025-01-26 00:56:06 [RateCDR] => 1 ) [2025-01-26 00:56: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-01-25 21:56:06' and `end` < '2025-01-26 00:56: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-01-26 00:56:18] Production.INFO: count ==349 [2025-01-26 00:56:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:56:06 - End Time 2025-01-26 00:56:06 [2025-01-26 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330798', 'tblTempUsageDetail_20' ) start [2025-01-26 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330798', 'tblTempUsageDetail_20' ) end [2025-01-26 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330798', 'tblTempVendorCDR_20' ) start [2025-01-26 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330798', 'tblTempVendorCDR_20' ) end [2025-01-26 00:56:18] Production.INFO: ProcessCDR(1,14330798,1,1,2) [2025-01-26 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330798', 'tblTempUsageDetail_20' ) start [2025-01-26 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330798', 'tblTempUsageDetail_20' ) end [2025-01-26 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:56:21] Production.INFO: ==15562== Releasing lock... [2025-01-26 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:56:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:57:05 [end_date_ymd] => 2025-01-26 00:57:05 [RateCDR] => 1 ) [2025-01-26 00:57: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-01-25 21:57:05' and `end` < '2025-01-26 00:57: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-01-26 00:57:17] Production.INFO: count ==347 [2025-01-26 00:57:17] Production.ERROR: pbx CDR StartTime 2025-01-25 21:57:05 - End Time 2025-01-26 00:57:05 [2025-01-26 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330803', 'tblTempUsageDetail_20' ) start [2025-01-26 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330803', 'tblTempUsageDetail_20' ) end [2025-01-26 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330803', 'tblTempVendorCDR_20' ) start [2025-01-26 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330803', 'tblTempVendorCDR_20' ) end [2025-01-26 00:57:17] Production.INFO: ProcessCDR(1,14330803,1,1,2) [2025-01-26 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330803', 'tblTempUsageDetail_20' ) start [2025-01-26 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330803', 'tblTempUsageDetail_20' ) end [2025-01-26 00:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:57:20] Production.INFO: ==15638== Releasing lock... [2025-01-26 00:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:57:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:58:05 [end_date_ymd] => 2025-01-26 00:58:05 [RateCDR] => 1 ) [2025-01-26 00:58: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-01-25 21:58:05' and `end` < '2025-01-26 00:58: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-01-26 00:58:17] Production.INFO: count ==347 [2025-01-26 00:58:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:58:05 - End Time 2025-01-26 00:58:05 [2025-01-26 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330808', 'tblTempUsageDetail_20' ) start [2025-01-26 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330808', 'tblTempUsageDetail_20' ) end [2025-01-26 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330808', 'tblTempVendorCDR_20' ) start [2025-01-26 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330808', 'tblTempVendorCDR_20' ) end [2025-01-26 00:58:18] Production.INFO: ProcessCDR(1,14330808,1,1,2) [2025-01-26 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330808', 'tblTempUsageDetail_20' ) start [2025-01-26 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330808', 'tblTempUsageDetail_20' ) end [2025-01-26 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:58:21] Production.INFO: ==15725== Releasing lock... [2025-01-26 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:58:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 00:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 21:59:05 [end_date_ymd] => 2025-01-26 00:59:05 [RateCDR] => 1 ) [2025-01-26 00:59: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-01-25 21:59:05' and `end` < '2025-01-26 00:59: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-01-26 00:59:18] Production.INFO: count ==345 [2025-01-26 00:59:18] Production.ERROR: pbx CDR StartTime 2025-01-25 21:59:05 - End Time 2025-01-26 00:59:05 [2025-01-26 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330813', 'tblTempUsageDetail_20' ) start [2025-01-26 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330813', 'tblTempUsageDetail_20' ) end [2025-01-26 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330813', 'tblTempVendorCDR_20' ) start [2025-01-26 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330813', 'tblTempVendorCDR_20' ) end [2025-01-26 00:59:18] Production.INFO: ProcessCDR(1,14330813,1,1,2) [2025-01-26 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330813', 'tblTempUsageDetail_20' ) start [2025-01-26 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330813', 'tblTempUsageDetail_20' ) end [2025-01-26 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 00:59:21] Production.INFO: ==15801== Releasing lock... [2025-01-26 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 00:59:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:00:06 [end_date_ymd] => 2025-01-26 01:00:06 [RateCDR] => 1 ) [2025-01-26 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-01-25 22:00:06' and `end` < '2025-01-26 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-01-26 01:00:18] Production.INFO: count ==361 [2025-01-26 01:00:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:00:06 - End Time 2025-01-26 01:00:06 [2025-01-26 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330819', 'tblTempUsageDetail_20' ) start [2025-01-26 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330819', 'tblTempUsageDetail_20' ) end [2025-01-26 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330819', 'tblTempVendorCDR_20' ) start [2025-01-26 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330819', 'tblTempVendorCDR_20' ) end [2025-01-26 01:00:18] Production.INFO: ProcessCDR(1,14330819,1,1,2) [2025-01-26 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330819', 'tblTempUsageDetail_20' ) start [2025-01-26 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330819', 'tblTempUsageDetail_20' ) end [2025-01-26 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:00:21] Production.INFO: ==15881== Releasing lock... [2025-01-26 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:00:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:01:06 [end_date_ymd] => 2025-01-26 01:01:06 [RateCDR] => 1 ) [2025-01-26 01:01: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-01-25 22:01:06' and `end` < '2025-01-26 01:01: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-01-26 01:01:18] Production.INFO: count ==386 [2025-01-26 01:01:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:01:06 - End Time 2025-01-26 01:01:06 [2025-01-26 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330824', 'tblTempUsageDetail_20' ) start [2025-01-26 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330824', 'tblTempUsageDetail_20' ) end [2025-01-26 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330824', 'tblTempVendorCDR_20' ) start [2025-01-26 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330824', 'tblTempVendorCDR_20' ) end [2025-01-26 01:01:18] Production.INFO: ProcessCDR(1,14330824,1,1,2) [2025-01-26 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330824', 'tblTempUsageDetail_20' ) start [2025-01-26 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330824', 'tblTempUsageDetail_20' ) end [2025-01-26 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:01:21] Production.INFO: ==15977== Releasing lock... [2025-01-26 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:01:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:02:05 [end_date_ymd] => 2025-01-26 01:02:05 [RateCDR] => 1 ) [2025-01-26 01:02: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-01-25 22:02:05' and `end` < '2025-01-26 01:02: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-01-26 01:02:17] Production.INFO: count ==382 [2025-01-26 01:02:17] Production.ERROR: pbx CDR StartTime 2025-01-25 22:02:05 - End Time 2025-01-26 01:02:05 [2025-01-26 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330829', 'tblTempUsageDetail_20' ) start [2025-01-26 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330829', 'tblTempUsageDetail_20' ) end [2025-01-26 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330829', 'tblTempVendorCDR_20' ) start [2025-01-26 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330829', 'tblTempVendorCDR_20' ) end [2025-01-26 01:02:17] Production.INFO: ProcessCDR(1,14330829,1,1,2) [2025-01-26 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330829', 'tblTempUsageDetail_20' ) start [2025-01-26 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330829', 'tblTempUsageDetail_20' ) end [2025-01-26 01:02:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:02:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:02:20] Production.INFO: ==16057== Releasing lock... [2025-01-26 01:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:02:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:03:05 [end_date_ymd] => 2025-01-26 01:03:05 [RateCDR] => 1 ) [2025-01-26 01:03: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-01-25 22:03:05' and `end` < '2025-01-26 01:03: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-01-26 01:03:18] Production.INFO: count ==380 [2025-01-26 01:03:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:03:05 - End Time 2025-01-26 01:03:05 [2025-01-26 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330834', 'tblTempUsageDetail_20' ) start [2025-01-26 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330834', 'tblTempUsageDetail_20' ) end [2025-01-26 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330834', 'tblTempVendorCDR_20' ) start [2025-01-26 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330834', 'tblTempVendorCDR_20' ) end [2025-01-26 01:03:18] Production.INFO: ProcessCDR(1,14330834,1,1,2) [2025-01-26 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330834', 'tblTempUsageDetail_20' ) start [2025-01-26 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330834', 'tblTempUsageDetail_20' ) end [2025-01-26 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:03:21] Production.INFO: ==16135== Releasing lock... [2025-01-26 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:03:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:04:05 [end_date_ymd] => 2025-01-26 01:04:05 [RateCDR] => 1 ) [2025-01-26 01:04: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-01-25 22:04:05' and `end` < '2025-01-26 01:04: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-01-26 01:04:18] Production.INFO: count ==380 [2025-01-26 01:04:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:04:05 - End Time 2025-01-26 01:04:05 [2025-01-26 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330839', 'tblTempUsageDetail_20' ) start [2025-01-26 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330839', 'tblTempUsageDetail_20' ) end [2025-01-26 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330839', 'tblTempVendorCDR_20' ) start [2025-01-26 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330839', 'tblTempVendorCDR_20' ) end [2025-01-26 01:04:18] Production.INFO: ProcessCDR(1,14330839,1,1,2) [2025-01-26 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330839', 'tblTempUsageDetail_20' ) start [2025-01-26 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330839', 'tblTempUsageDetail_20' ) end [2025-01-26 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:04:21] Production.INFO: ==16220== Releasing lock... [2025-01-26 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:04:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:05:05 [end_date_ymd] => 2025-01-26 01:05:05 [RateCDR] => 1 ) [2025-01-26 01:05: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-01-25 22:05:05' and `end` < '2025-01-26 01:05: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-01-26 01:05:17] Production.INFO: count ==379 [2025-01-26 01:05:17] Production.ERROR: pbx CDR StartTime 2025-01-25 22:05:05 - End Time 2025-01-26 01:05:05 [2025-01-26 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330844', 'tblTempUsageDetail_20' ) start [2025-01-26 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330844', 'tblTempUsageDetail_20' ) end [2025-01-26 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330844', 'tblTempVendorCDR_20' ) start [2025-01-26 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330844', 'tblTempVendorCDR_20' ) end [2025-01-26 01:05:17] Production.INFO: ProcessCDR(1,14330844,1,1,2) [2025-01-26 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330844', 'tblTempUsageDetail_20' ) start [2025-01-26 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330844', 'tblTempUsageDetail_20' ) end [2025-01-26 01:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:05:20] Production.INFO: ==16343== Releasing lock... [2025-01-26 01:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:05:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:06:05 [end_date_ymd] => 2025-01-26 01:06:05 [RateCDR] => 1 ) [2025-01-26 01:06: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-01-25 22:06:05' and `end` < '2025-01-26 01:06: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-01-26 01:06:17] Production.INFO: count ==377 [2025-01-26 01:06:17] Production.ERROR: pbx CDR StartTime 2025-01-25 22:06:05 - End Time 2025-01-26 01:06:05 [2025-01-26 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330848', 'tblTempUsageDetail_20' ) start [2025-01-26 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330848', 'tblTempUsageDetail_20' ) end [2025-01-26 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330848', 'tblTempVendorCDR_20' ) start [2025-01-26 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330848', 'tblTempVendorCDR_20' ) end [2025-01-26 01:06:17] Production.INFO: ProcessCDR(1,14330848,1,1,2) [2025-01-26 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330848', 'tblTempUsageDetail_20' ) start [2025-01-26 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330848', 'tblTempUsageDetail_20' ) end [2025-01-26 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:06:21] Production.INFO: ==16423== Releasing lock... [2025-01-26 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:06:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:07:05 [end_date_ymd] => 2025-01-26 01:07:05 [RateCDR] => 1 ) [2025-01-26 01:07: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-01-25 22:07:05' and `end` < '2025-01-26 01:07: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-01-26 01:07:18] Production.INFO: count ==378 [2025-01-26 01:07:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:07:05 - End Time 2025-01-26 01:07:05 [2025-01-26 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330854', 'tblTempUsageDetail_20' ) start [2025-01-26 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330854', 'tblTempUsageDetail_20' ) end [2025-01-26 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330854', 'tblTempVendorCDR_20' ) start [2025-01-26 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330854', 'tblTempVendorCDR_20' ) end [2025-01-26 01:07:18] Production.INFO: ProcessCDR(1,14330854,1,1,2) [2025-01-26 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330854', 'tblTempUsageDetail_20' ) start [2025-01-26 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330854', 'tblTempUsageDetail_20' ) end [2025-01-26 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:07:22] Production.INFO: ==16516== Releasing lock... [2025-01-26 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:07:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:08:05 [end_date_ymd] => 2025-01-26 01:08:05 [RateCDR] => 1 ) [2025-01-26 01:08: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-01-25 22:08:05' and `end` < '2025-01-26 01:08: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-01-26 01:08:18] Production.INFO: count ==378 [2025-01-26 01:08:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:08:05 - End Time 2025-01-26 01:08:05 [2025-01-26 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330858', 'tblTempUsageDetail_20' ) start [2025-01-26 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330858', 'tblTempUsageDetail_20' ) end [2025-01-26 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330858', 'tblTempVendorCDR_20' ) start [2025-01-26 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330858', 'tblTempVendorCDR_20' ) end [2025-01-26 01:08:18] Production.INFO: ProcessCDR(1,14330858,1,1,2) [2025-01-26 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330858', 'tblTempUsageDetail_20' ) start [2025-01-26 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330858', 'tblTempUsageDetail_20' ) end [2025-01-26 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:08:21] Production.INFO: ==16601== Releasing lock... [2025-01-26 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:08:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:09:05 [end_date_ymd] => 2025-01-26 01:09:05 [RateCDR] => 1 ) [2025-01-26 01:09: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-01-25 22:09:05' and `end` < '2025-01-26 01:09: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-01-26 01:09:18] Production.INFO: count ==376 [2025-01-26 01:09:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:09:05 - End Time 2025-01-26 01:09:05 [2025-01-26 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330864', 'tblTempUsageDetail_20' ) start [2025-01-26 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330864', 'tblTempUsageDetail_20' ) end [2025-01-26 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330864', 'tblTempVendorCDR_20' ) start [2025-01-26 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330864', 'tblTempVendorCDR_20' ) end [2025-01-26 01:09:18] Production.INFO: ProcessCDR(1,14330864,1,1,2) [2025-01-26 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330864', 'tblTempUsageDetail_20' ) start [2025-01-26 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330864', 'tblTempUsageDetail_20' ) end [2025-01-26 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:09:21] Production.INFO: ==16686== Releasing lock... [2025-01-26 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:09:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:10:06 [end_date_ymd] => 2025-01-26 01:10:06 [RateCDR] => 1 ) [2025-01-26 01:10: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-01-25 22:10:06' and `end` < '2025-01-26 01:10: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-01-26 01:10:18] Production.INFO: count ==384 [2025-01-26 01:10:19] Production.ERROR: pbx CDR StartTime 2025-01-25 22:10:06 - End Time 2025-01-26 01:10:06 [2025-01-26 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330869', 'tblTempUsageDetail_20' ) start [2025-01-26 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330869', 'tblTempUsageDetail_20' ) end [2025-01-26 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330869', 'tblTempVendorCDR_20' ) start [2025-01-26 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330869', 'tblTempVendorCDR_20' ) end [2025-01-26 01:10:19] Production.INFO: ProcessCDR(1,14330869,1,1,2) [2025-01-26 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330869', 'tblTempUsageDetail_20' ) start [2025-01-26 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330869', 'tblTempUsageDetail_20' ) end [2025-01-26 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:10:22] Production.INFO: ==16774== Releasing lock... [2025-01-26 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:10:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:11:05 [end_date_ymd] => 2025-01-26 01:11:05 [RateCDR] => 1 ) [2025-01-26 01:11: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-01-25 22:11:05' and `end` < '2025-01-26 01:11: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-01-26 01:11:17] Production.INFO: count ==394 [2025-01-26 01:11:17] Production.ERROR: pbx CDR StartTime 2025-01-25 22:11:05 - End Time 2025-01-26 01:11:05 [2025-01-26 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330875', 'tblTempUsageDetail_20' ) start [2025-01-26 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330875', 'tblTempUsageDetail_20' ) end [2025-01-26 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330875', 'tblTempVendorCDR_20' ) start [2025-01-26 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330875', 'tblTempVendorCDR_20' ) end [2025-01-26 01:11:17] Production.INFO: ProcessCDR(1,14330875,1,1,2) [2025-01-26 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330875', 'tblTempUsageDetail_20' ) start [2025-01-26 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330875', 'tblTempUsageDetail_20' ) end [2025-01-26 01:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:11:20] Production.INFO: ==16859== Releasing lock... [2025-01-26 01:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:11:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:12:05 [end_date_ymd] => 2025-01-26 01:12:05 [RateCDR] => 1 ) [2025-01-26 01:12: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-01-25 22:12:05' and `end` < '2025-01-26 01:12: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-01-26 01:12:18] Production.INFO: count ==392 [2025-01-26 01:12:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:12:05 - End Time 2025-01-26 01:12:05 [2025-01-26 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330880', 'tblTempUsageDetail_20' ) start [2025-01-26 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330880', 'tblTempUsageDetail_20' ) end [2025-01-26 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330880', 'tblTempVendorCDR_20' ) start [2025-01-26 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330880', 'tblTempVendorCDR_20' ) end [2025-01-26 01:12:18] Production.INFO: ProcessCDR(1,14330880,1,1,2) [2025-01-26 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330880', 'tblTempUsageDetail_20' ) start [2025-01-26 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330880', 'tblTempUsageDetail_20' ) end [2025-01-26 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:12:21] Production.INFO: ==16952== Releasing lock... [2025-01-26 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:12:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:13:05 [end_date_ymd] => 2025-01-26 01:13:05 [RateCDR] => 1 ) [2025-01-26 01:13: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-01-25 22:13:05' and `end` < '2025-01-26 01:13: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-01-26 01:13:18] Production.INFO: count ==391 [2025-01-26 01:13:19] Production.ERROR: pbx CDR StartTime 2025-01-25 22:13:05 - End Time 2025-01-26 01:13:05 [2025-01-26 01:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330885', 'tblTempUsageDetail_20' ) start [2025-01-26 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330885', 'tblTempUsageDetail_20' ) end [2025-01-26 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330885', 'tblTempVendorCDR_20' ) start [2025-01-26 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330885', 'tblTempVendorCDR_20' ) end [2025-01-26 01:13:19] Production.INFO: ProcessCDR(1,14330885,1,1,2) [2025-01-26 01:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330885', 'tblTempUsageDetail_20' ) start [2025-01-26 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330885', 'tblTempUsageDetail_20' ) end [2025-01-26 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:13:22] Production.INFO: ==17038== Releasing lock... [2025-01-26 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:13:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:14:05 [end_date_ymd] => 2025-01-26 01:14:05 [RateCDR] => 1 ) [2025-01-26 01:14: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-01-25 22:14:05' and `end` < '2025-01-26 01:14: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-01-26 01:14:18] Production.INFO: count ==392 [2025-01-26 01:14:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:14:05 - End Time 2025-01-26 01:14:05 [2025-01-26 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330890', 'tblTempUsageDetail_20' ) start [2025-01-26 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330890', 'tblTempUsageDetail_20' ) end [2025-01-26 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330890', 'tblTempVendorCDR_20' ) start [2025-01-26 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330890', 'tblTempVendorCDR_20' ) end [2025-01-26 01:14:18] Production.INFO: ProcessCDR(1,14330890,1,1,2) [2025-01-26 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330890', 'tblTempUsageDetail_20' ) start [2025-01-26 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330890', 'tblTempUsageDetail_20' ) end [2025-01-26 01:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:14:23] Production.INFO: ==17130== Releasing lock... [2025-01-26 01:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:14:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:15:05 [end_date_ymd] => 2025-01-26 01:15:05 [RateCDR] => 1 ) [2025-01-26 01:15: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-01-25 22:15:05' and `end` < '2025-01-26 01:15: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-01-26 01:15:17] Production.INFO: count ==392 [2025-01-26 01:15:17] Production.ERROR: pbx CDR StartTime 2025-01-25 22:15:05 - End Time 2025-01-26 01:15:05 [2025-01-26 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330895', 'tblTempUsageDetail_20' ) start [2025-01-26 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330895', 'tblTempUsageDetail_20' ) end [2025-01-26 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330895', 'tblTempVendorCDR_20' ) start [2025-01-26 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330895', 'tblTempVendorCDR_20' ) end [2025-01-26 01:15:17] Production.INFO: ProcessCDR(1,14330895,1,1,2) [2025-01-26 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330895', 'tblTempUsageDetail_20' ) start [2025-01-26 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330895', 'tblTempUsageDetail_20' ) end [2025-01-26 01:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:15:20] Production.INFO: ==17209== Releasing lock... [2025-01-26 01:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:15:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:16:05 [end_date_ymd] => 2025-01-26 01:16:05 [RateCDR] => 1 ) [2025-01-26 01:16: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-01-25 22:16:05' and `end` < '2025-01-26 01:16: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-01-26 01:16:17] Production.INFO: count ==392 [2025-01-26 01:16:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:16:05 - End Time 2025-01-26 01:16:05 [2025-01-26 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330900', 'tblTempUsageDetail_20' ) start [2025-01-26 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330900', 'tblTempUsageDetail_20' ) end [2025-01-26 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330900', 'tblTempVendorCDR_20' ) start [2025-01-26 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330900', 'tblTempVendorCDR_20' ) end [2025-01-26 01:16:18] Production.INFO: ProcessCDR(1,14330900,1,1,2) [2025-01-26 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330900', 'tblTempUsageDetail_20' ) start [2025-01-26 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330900', 'tblTempUsageDetail_20' ) end [2025-01-26 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:16:21] Production.INFO: ==17297== Releasing lock... [2025-01-26 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:16:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:17:05 [end_date_ymd] => 2025-01-26 01:17:05 [RateCDR] => 1 ) [2025-01-26 01:17: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-01-25 22:17:05' and `end` < '2025-01-26 01:17: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-01-26 01:17:18] Production.INFO: count ==392 [2025-01-26 01:17:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:17:05 - End Time 2025-01-26 01:17:05 [2025-01-26 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330905', 'tblTempUsageDetail_20' ) start [2025-01-26 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330905', 'tblTempUsageDetail_20' ) end [2025-01-26 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330905', 'tblTempVendorCDR_20' ) start [2025-01-26 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330905', 'tblTempVendorCDR_20' ) end [2025-01-26 01:17:18] Production.INFO: ProcessCDR(1,14330905,1,1,2) [2025-01-26 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330905', 'tblTempUsageDetail_20' ) start [2025-01-26 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330905', 'tblTempUsageDetail_20' ) end [2025-01-26 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:17:21] Production.INFO: ==17387== Releasing lock... [2025-01-26 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:17:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:18:05 [end_date_ymd] => 2025-01-26 01:18:05 [RateCDR] => 1 ) [2025-01-26 01:18: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-01-25 22:18:05' and `end` < '2025-01-26 01:18: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-01-26 01:18:18] Production.INFO: count ==391 [2025-01-26 01:18:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:18:05 - End Time 2025-01-26 01:18:05 [2025-01-26 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330910', 'tblTempUsageDetail_20' ) start [2025-01-26 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330910', 'tblTempUsageDetail_20' ) end [2025-01-26 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330910', 'tblTempVendorCDR_20' ) start [2025-01-26 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330910', 'tblTempVendorCDR_20' ) end [2025-01-26 01:18:18] Production.INFO: ProcessCDR(1,14330910,1,1,2) [2025-01-26 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330910', 'tblTempUsageDetail_20' ) start [2025-01-26 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330910', 'tblTempUsageDetail_20' ) end [2025-01-26 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:18:21] Production.INFO: ==17474== Releasing lock... [2025-01-26 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:18:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:19:05 [end_date_ymd] => 2025-01-26 01:19:05 [RateCDR] => 1 ) [2025-01-26 01:19: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-01-25 22:19:05' and `end` < '2025-01-26 01:19: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-01-26 01:19:19] Production.INFO: count ==391 [2025-01-26 01:19:19] Production.ERROR: pbx CDR StartTime 2025-01-25 22:19:05 - End Time 2025-01-26 01:19:05 [2025-01-26 01:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330915', 'tblTempUsageDetail_20' ) start [2025-01-26 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330915', 'tblTempUsageDetail_20' ) end [2025-01-26 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330915', 'tblTempVendorCDR_20' ) start [2025-01-26 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330915', 'tblTempVendorCDR_20' ) end [2025-01-26 01:19:19] Production.INFO: ProcessCDR(1,14330915,1,1,2) [2025-01-26 01:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330915', 'tblTempUsageDetail_20' ) start [2025-01-26 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330915', 'tblTempUsageDetail_20' ) end [2025-01-26 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:19:22] Production.INFO: ==17568== Releasing lock... [2025-01-26 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:19:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:20:06 [end_date_ymd] => 2025-01-26 01:20:06 [RateCDR] => 1 ) [2025-01-26 01:20: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-01-25 22:20:06' and `end` < '2025-01-26 01:20: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-01-26 01:20:18] Production.INFO: count ==406 [2025-01-26 01:20:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:20:06 - End Time 2025-01-26 01:20:06 [2025-01-26 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330920', 'tblTempUsageDetail_20' ) start [2025-01-26 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330920', 'tblTempUsageDetail_20' ) end [2025-01-26 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330920', 'tblTempVendorCDR_20' ) start [2025-01-26 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330920', 'tblTempVendorCDR_20' ) end [2025-01-26 01:20:18] Production.INFO: ProcessCDR(1,14330920,1,1,2) [2025-01-26 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330920', 'tblTempUsageDetail_20' ) start [2025-01-26 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330920', 'tblTempUsageDetail_20' ) end [2025-01-26 01:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:20:21] Production.INFO: ==17693== Releasing lock... [2025-01-26 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:20:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:21:05 [end_date_ymd] => 2025-01-26 01:21:05 [RateCDR] => 1 ) [2025-01-26 01:21: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-01-25 22:21:05' and `end` < '2025-01-26 01:21: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-01-26 01:21:18] Production.INFO: count ==409 [2025-01-26 01:21:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:21:05 - End Time 2025-01-26 01:21:05 [2025-01-26 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330926', 'tblTempUsageDetail_20' ) start [2025-01-26 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330926', 'tblTempUsageDetail_20' ) end [2025-01-26 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330926', 'tblTempVendorCDR_20' ) start [2025-01-26 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330926', 'tblTempVendorCDR_20' ) end [2025-01-26 01:21:18] Production.INFO: ProcessCDR(1,14330926,1,1,2) [2025-01-26 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330926', 'tblTempUsageDetail_20' ) start [2025-01-26 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330926', 'tblTempUsageDetail_20' ) end [2025-01-26 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:21:21] Production.INFO: ==17786== Releasing lock... [2025-01-26 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:21:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:22:05 [end_date_ymd] => 2025-01-26 01:22:05 [RateCDR] => 1 ) [2025-01-26 01:22: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-01-25 22:22:05' and `end` < '2025-01-26 01:22: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-01-26 01:22:17] Production.INFO: count ==407 [2025-01-26 01:22:17] Production.ERROR: pbx CDR StartTime 2025-01-25 22:22:05 - End Time 2025-01-26 01:22:05 [2025-01-26 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330931', 'tblTempUsageDetail_20' ) start [2025-01-26 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330931', 'tblTempUsageDetail_20' ) end [2025-01-26 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330931', 'tblTempVendorCDR_20' ) start [2025-01-26 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330931', 'tblTempVendorCDR_20' ) end [2025-01-26 01:22:17] Production.INFO: ProcessCDR(1,14330931,1,1,2) [2025-01-26 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330931', 'tblTempUsageDetail_20' ) start [2025-01-26 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330931', 'tblTempUsageDetail_20' ) end [2025-01-26 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:22:21] Production.INFO: ==17878== Releasing lock... [2025-01-26 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:22:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:23:05 [end_date_ymd] => 2025-01-26 01:23:05 [RateCDR] => 1 ) [2025-01-26 01:23: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-01-25 22:23:05' and `end` < '2025-01-26 01:23: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-01-26 01:23:17] Production.INFO: count ==408 [2025-01-26 01:23:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:23:05 - End Time 2025-01-26 01:23:05 [2025-01-26 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330936', 'tblTempUsageDetail_20' ) start [2025-01-26 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330936', 'tblTempUsageDetail_20' ) end [2025-01-26 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330936', 'tblTempVendorCDR_20' ) start [2025-01-26 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330936', 'tblTempVendorCDR_20' ) end [2025-01-26 01:23:18] Production.INFO: ProcessCDR(1,14330936,1,1,2) [2025-01-26 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330936', 'tblTempUsageDetail_20' ) start [2025-01-26 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330936', 'tblTempUsageDetail_20' ) end [2025-01-26 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:23:22] Production.INFO: ==17961== Releasing lock... [2025-01-26 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:23:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:24:05 [end_date_ymd] => 2025-01-26 01:24:05 [RateCDR] => 1 ) [2025-01-26 01:24: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-01-25 22:24:05' and `end` < '2025-01-26 01:24: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-01-26 01:24:17] Production.INFO: count ==407 [2025-01-26 01:24:17] Production.ERROR: pbx CDR StartTime 2025-01-25 22:24:05 - End Time 2025-01-26 01:24:05 [2025-01-26 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330941', 'tblTempUsageDetail_20' ) start [2025-01-26 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330941', 'tblTempUsageDetail_20' ) end [2025-01-26 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330941', 'tblTempVendorCDR_20' ) start [2025-01-26 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330941', 'tblTempVendorCDR_20' ) end [2025-01-26 01:24:17] Production.INFO: ProcessCDR(1,14330941,1,1,2) [2025-01-26 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330941', 'tblTempUsageDetail_20' ) start [2025-01-26 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330941', 'tblTempUsageDetail_20' ) end [2025-01-26 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:24:21] Production.INFO: ==18046== Releasing lock... [2025-01-26 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:24:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:25:05 [end_date_ymd] => 2025-01-26 01:25:05 [RateCDR] => 1 ) [2025-01-26 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 22:25:05' and `end` < '2025-01-26 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 01:25:18] Production.INFO: count ==411 [2025-01-26 01:25:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:25:05 - End Time 2025-01-26 01:25:05 [2025-01-26 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330946', 'tblTempUsageDetail_20' ) start [2025-01-26 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330946', 'tblTempUsageDetail_20' ) end [2025-01-26 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330946', 'tblTempVendorCDR_20' ) start [2025-01-26 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330946', 'tblTempVendorCDR_20' ) end [2025-01-26 01:25:18] Production.INFO: ProcessCDR(1,14330946,1,1,2) [2025-01-26 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330946', 'tblTempUsageDetail_20' ) start [2025-01-26 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330946', 'tblTempUsageDetail_20' ) end [2025-01-26 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:25:21] Production.INFO: ==18139== Releasing lock... [2025-01-26 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:25:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 01:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:26:04 [end_date_ymd] => 2025-01-26 01:26:04 [RateCDR] => 1 ) [2025-01-26 01:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 22:26:04' and `end` < '2025-01-26 01:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 01:26:17] Production.INFO: count ==410 [2025-01-26 01:26:17] Production.ERROR: pbx CDR StartTime 2025-01-25 22:26:04 - End Time 2025-01-26 01:26:04 [2025-01-26 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330951', 'tblTempUsageDetail_20' ) start [2025-01-26 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330951', 'tblTempUsageDetail_20' ) end [2025-01-26 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330951', 'tblTempVendorCDR_20' ) start [2025-01-26 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330951', 'tblTempVendorCDR_20' ) end [2025-01-26 01:26:17] Production.INFO: ProcessCDR(1,14330951,1,1,2) [2025-01-26 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330951', 'tblTempUsageDetail_20' ) start [2025-01-26 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330951', 'tblTempUsageDetail_20' ) end [2025-01-26 01:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:26:20] Production.INFO: ==18224== Releasing lock... [2025-01-26 01:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:26:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:27:05 [end_date_ymd] => 2025-01-26 01:27:05 [RateCDR] => 1 ) [2025-01-26 01:27: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-01-25 22:27:05' and `end` < '2025-01-26 01:27: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-01-26 01:27:17] Production.INFO: count ==419 [2025-01-26 01:27:17] Production.ERROR: pbx CDR StartTime 2025-01-25 22:27:05 - End Time 2025-01-26 01:27:05 [2025-01-26 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330956', 'tblTempUsageDetail_20' ) start [2025-01-26 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330956', 'tblTempUsageDetail_20' ) end [2025-01-26 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330956', 'tblTempVendorCDR_20' ) start [2025-01-26 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330956', 'tblTempVendorCDR_20' ) end [2025-01-26 01:27:17] Production.INFO: ProcessCDR(1,14330956,1,1,2) [2025-01-26 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330956', 'tblTempUsageDetail_20' ) start [2025-01-26 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330956', 'tblTempUsageDetail_20' ) end [2025-01-26 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:27:22] Production.INFO: ==18314== Releasing lock... [2025-01-26 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:27:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 01:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:28:06 [end_date_ymd] => 2025-01-26 01:28:06 [RateCDR] => 1 ) [2025-01-26 01:28: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-01-25 22:28:06' and `end` < '2025-01-26 01:28: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-01-26 01:28:18] Production.INFO: count ==422 [2025-01-26 01:28:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:28:06 - End Time 2025-01-26 01:28:06 [2025-01-26 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330961', 'tblTempUsageDetail_20' ) start [2025-01-26 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330961', 'tblTempUsageDetail_20' ) end [2025-01-26 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330961', 'tblTempVendorCDR_20' ) start [2025-01-26 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330961', 'tblTempVendorCDR_20' ) end [2025-01-26 01:28:18] Production.INFO: ProcessCDR(1,14330961,1,1,2) [2025-01-26 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330961', 'tblTempUsageDetail_20' ) start [2025-01-26 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330961', 'tblTempUsageDetail_20' ) end [2025-01-26 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:28:21] Production.INFO: ==18399== Releasing lock... [2025-01-26 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:28:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:29:05 [end_date_ymd] => 2025-01-26 01:29:05 [RateCDR] => 1 ) [2025-01-26 01:29: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-01-25 22:29:05' and `end` < '2025-01-26 01:29: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-01-26 01:29:18] Production.INFO: count ==424 [2025-01-26 01:29:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:29:05 - End Time 2025-01-26 01:29:05 [2025-01-26 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330966', 'tblTempUsageDetail_20' ) start [2025-01-26 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330966', 'tblTempUsageDetail_20' ) end [2025-01-26 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330966', 'tblTempVendorCDR_20' ) start [2025-01-26 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330966', 'tblTempVendorCDR_20' ) end [2025-01-26 01:29:18] Production.INFO: ProcessCDR(1,14330966,1,1,2) [2025-01-26 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330966', 'tblTempUsageDetail_20' ) start [2025-01-26 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330966', 'tblTempUsageDetail_20' ) end [2025-01-26 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:29:22] Production.INFO: ==18492== Releasing lock... [2025-01-26 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:29:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:30:06 [end_date_ymd] => 2025-01-26 01:30:06 [RateCDR] => 1 ) [2025-01-26 01:30: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-01-25 22:30:06' and `end` < '2025-01-26 01:30: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-01-26 01:30:19] Production.INFO: count ==439 [2025-01-26 01:30:19] Production.ERROR: pbx CDR StartTime 2025-01-25 22:30:06 - End Time 2025-01-26 01:30:06 [2025-01-26 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330972', 'tblTempUsageDetail_20' ) start [2025-01-26 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330972', 'tblTempUsageDetail_20' ) end [2025-01-26 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330972', 'tblTempVendorCDR_20' ) start [2025-01-26 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330972', 'tblTempVendorCDR_20' ) end [2025-01-26 01:30:19] Production.INFO: ProcessCDR(1,14330972,1,1,2) [2025-01-26 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330972', 'tblTempUsageDetail_20' ) start [2025-01-26 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330972', 'tblTempUsageDetail_20' ) end [2025-01-26 01:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:30:23] Production.INFO: ==18584== Releasing lock... [2025-01-26 01:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:30:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:31:05 [end_date_ymd] => 2025-01-26 01:31:05 [RateCDR] => 1 ) [2025-01-26 01:31: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-01-25 22:31:05' and `end` < '2025-01-26 01:31: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-01-26 01:31:17] Production.INFO: count ==450 [2025-01-26 01:31:17] Production.ERROR: pbx CDR StartTime 2025-01-25 22:31:05 - End Time 2025-01-26 01:31:05 [2025-01-26 01:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330977', 'tblTempUsageDetail_20' ) start [2025-01-26 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330977', 'tblTempUsageDetail_20' ) end [2025-01-26 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330977', 'tblTempVendorCDR_20' ) start [2025-01-26 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330977', 'tblTempVendorCDR_20' ) end [2025-01-26 01:31:17] Production.INFO: ProcessCDR(1,14330977,1,1,2) [2025-01-26 01:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330977', 'tblTempUsageDetail_20' ) start [2025-01-26 01:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330977', 'tblTempUsageDetail_20' ) end [2025-01-26 01:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:31:20] Production.INFO: ==18673== Releasing lock... [2025-01-26 01:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:31:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 01:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:32:06 [end_date_ymd] => 2025-01-26 01:32:06 [RateCDR] => 1 ) [2025-01-26 01:32: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-01-25 22:32:06' and `end` < '2025-01-26 01:32: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-01-26 01:32:18] Production.INFO: count ==447 [2025-01-26 01:32:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:32:06 - End Time 2025-01-26 01:32:06 [2025-01-26 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330982', 'tblTempUsageDetail_20' ) start [2025-01-26 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330982', 'tblTempUsageDetail_20' ) end [2025-01-26 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330982', 'tblTempVendorCDR_20' ) start [2025-01-26 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330982', 'tblTempVendorCDR_20' ) end [2025-01-26 01:32:18] Production.INFO: ProcessCDR(1,14330982,1,1,2) [2025-01-26 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330982', 'tblTempUsageDetail_20' ) start [2025-01-26 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330982', 'tblTempUsageDetail_20' ) end [2025-01-26 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:32:21] Production.INFO: ==18773== Releasing lock... [2025-01-26 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:32:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 01:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:33:04 [end_date_ymd] => 2025-01-26 01:33:04 [RateCDR] => 1 ) [2025-01-26 01:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 22:33:04' and `end` < '2025-01-26 01:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 01:33:18] Production.INFO: count ==446 [2025-01-26 01:33:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:33:04 - End Time 2025-01-26 01:33:04 [2025-01-26 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330987', 'tblTempUsageDetail_20' ) start [2025-01-26 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330987', 'tblTempUsageDetail_20' ) end [2025-01-26 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330987', 'tblTempVendorCDR_20' ) start [2025-01-26 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330987', 'tblTempVendorCDR_20' ) end [2025-01-26 01:33:18] Production.INFO: ProcessCDR(1,14330987,1,1,2) [2025-01-26 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330987', 'tblTempUsageDetail_20' ) start [2025-01-26 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330987', 'tblTempUsageDetail_20' ) end [2025-01-26 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:33:21] Production.INFO: ==18865== Releasing lock... [2025-01-26 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:33:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:34:06 [end_date_ymd] => 2025-01-26 01:34:06 [RateCDR] => 1 ) [2025-01-26 01:34: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-01-25 22:34:06' and `end` < '2025-01-26 01:34: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-01-26 01:34:19] Production.INFO: count ==446 [2025-01-26 01:34:19] Production.ERROR: pbx CDR StartTime 2025-01-25 22:34:06 - End Time 2025-01-26 01:34:06 [2025-01-26 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330992', 'tblTempUsageDetail_20' ) start [2025-01-26 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330992', 'tblTempUsageDetail_20' ) end [2025-01-26 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330992', 'tblTempVendorCDR_20' ) start [2025-01-26 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330992', 'tblTempVendorCDR_20' ) end [2025-01-26 01:34:19] Production.INFO: ProcessCDR(1,14330992,1,1,2) [2025-01-26 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330992', 'tblTempUsageDetail_20' ) start [2025-01-26 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330992', 'tblTempUsageDetail_20' ) end [2025-01-26 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:34:22] Production.INFO: ==18958== Releasing lock... [2025-01-26 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:34:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:35:05 [end_date_ymd] => 2025-01-26 01:35:05 [RateCDR] => 1 ) [2025-01-26 01:35: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-01-25 22:35:05' and `end` < '2025-01-26 01:35: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-01-26 01:35:17] Production.INFO: count ==453 [2025-01-26 01:35:17] Production.ERROR: pbx CDR StartTime 2025-01-25 22:35:05 - End Time 2025-01-26 01:35:05 [2025-01-26 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330997', 'tblTempUsageDetail_20' ) start [2025-01-26 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14330997', 'tblTempUsageDetail_20' ) end [2025-01-26 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330997', 'tblTempVendorCDR_20' ) start [2025-01-26 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14330997', 'tblTempVendorCDR_20' ) end [2025-01-26 01:35:17] Production.INFO: ProcessCDR(1,14330997,1,1,2) [2025-01-26 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14330997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14330997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14330997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14330997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330997', 'tblTempUsageDetail_20' ) start [2025-01-26 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14330997', 'tblTempUsageDetail_20' ) end [2025-01-26 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:35:23] Production.INFO: ==19093== Releasing lock... [2025-01-26 01:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:35:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:36:05 [end_date_ymd] => 2025-01-26 01:36:05 [RateCDR] => 1 ) [2025-01-26 01:36: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-01-25 22:36:05' and `end` < '2025-01-26 01:36: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-01-26 01:36:18] Production.INFO: count ==453 [2025-01-26 01:36:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:36:05 - End Time 2025-01-26 01:36:05 [2025-01-26 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331002', 'tblTempUsageDetail_20' ) start [2025-01-26 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331002', 'tblTempUsageDetail_20' ) end [2025-01-26 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331002', 'tblTempVendorCDR_20' ) start [2025-01-26 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331002', 'tblTempVendorCDR_20' ) end [2025-01-26 01:36:18] Production.INFO: ProcessCDR(1,14331002,1,1,2) [2025-01-26 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331002', 'tblTempUsageDetail_20' ) start [2025-01-26 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331002', 'tblTempUsageDetail_20' ) end [2025-01-26 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:36:21] Production.INFO: ==19186== Releasing lock... [2025-01-26 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:36:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:37:06 [end_date_ymd] => 2025-01-26 01:37:06 [RateCDR] => 1 ) [2025-01-26 01:37: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-01-25 22:37:06' and `end` < '2025-01-26 01:37: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-01-26 01:37:19] Production.INFO: count ==453 [2025-01-26 01:37:19] Production.ERROR: pbx CDR StartTime 2025-01-25 22:37:06 - End Time 2025-01-26 01:37:06 [2025-01-26 01:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331007', 'tblTempUsageDetail_20' ) start [2025-01-26 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331007', 'tblTempUsageDetail_20' ) end [2025-01-26 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331007', 'tblTempVendorCDR_20' ) start [2025-01-26 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331007', 'tblTempVendorCDR_20' ) end [2025-01-26 01:37:19] Production.INFO: ProcessCDR(1,14331007,1,1,2) [2025-01-26 01:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331007', 'tblTempUsageDetail_20' ) start [2025-01-26 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331007', 'tblTempUsageDetail_20' ) end [2025-01-26 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:37:22] Production.INFO: ==19287== Releasing lock... [2025-01-26 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:37:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:38:06 [end_date_ymd] => 2025-01-26 01:38:06 [RateCDR] => 1 ) [2025-01-26 01:38: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-01-25 22:38:06' and `end` < '2025-01-26 01:38: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-01-26 01:38:18] Production.INFO: count ==458 [2025-01-26 01:38:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:38:06 - End Time 2025-01-26 01:38:06 [2025-01-26 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331012', 'tblTempUsageDetail_20' ) start [2025-01-26 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331012', 'tblTempUsageDetail_20' ) end [2025-01-26 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331012', 'tblTempVendorCDR_20' ) start [2025-01-26 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331012', 'tblTempVendorCDR_20' ) end [2025-01-26 01:38:18] Production.INFO: ProcessCDR(1,14331012,1,1,2) [2025-01-26 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331012', 'tblTempUsageDetail_20' ) start [2025-01-26 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331012', 'tblTempUsageDetail_20' ) end [2025-01-26 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:38:22] Production.INFO: ==19377== Releasing lock... [2025-01-26 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:38:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:39:05 [end_date_ymd] => 2025-01-26 01:39:05 [RateCDR] => 1 ) [2025-01-26 01:39: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-01-25 22:39:05' and `end` < '2025-01-26 01:39: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-01-26 01:39:18] Production.INFO: count ==457 [2025-01-26 01:39:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:39:05 - End Time 2025-01-26 01:39:05 [2025-01-26 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331017', 'tblTempUsageDetail_20' ) start [2025-01-26 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331017', 'tblTempUsageDetail_20' ) end [2025-01-26 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331017', 'tblTempVendorCDR_20' ) start [2025-01-26 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331017', 'tblTempVendorCDR_20' ) end [2025-01-26 01:39:18] Production.INFO: ProcessCDR(1,14331017,1,1,2) [2025-01-26 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331017', 'tblTempUsageDetail_20' ) start [2025-01-26 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331017', 'tblTempUsageDetail_20' ) end [2025-01-26 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:39:22] Production.INFO: ==19466== Releasing lock... [2025-01-26 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:39:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:40:06 [end_date_ymd] => 2025-01-26 01:40:06 [RateCDR] => 1 ) [2025-01-26 01:40: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-01-25 22:40:06' and `end` < '2025-01-26 01:40: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-01-26 01:40:18] Production.INFO: count ==471 [2025-01-26 01:40:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:40:06 - End Time 2025-01-26 01:40:06 [2025-01-26 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331023', 'tblTempUsageDetail_20' ) start [2025-01-26 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331023', 'tblTempUsageDetail_20' ) end [2025-01-26 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331023', 'tblTempVendorCDR_20' ) start [2025-01-26 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331023', 'tblTempVendorCDR_20' ) end [2025-01-26 01:40:19] Production.INFO: ProcessCDR(1,14331023,1,1,2) [2025-01-26 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331023', 'tblTempUsageDetail_20' ) start [2025-01-26 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331023', 'tblTempUsageDetail_20' ) end [2025-01-26 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:40:22] Production.INFO: ==19559== Releasing lock... [2025-01-26 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:40:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:41:06 [end_date_ymd] => 2025-01-26 01:41:06 [RateCDR] => 1 ) [2025-01-26 01:41: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-01-25 22:41:06' and `end` < '2025-01-26 01:41: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-01-26 01:41:18] Production.INFO: count ==492 [2025-01-26 01:41:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:41:06 - End Time 2025-01-26 01:41:06 [2025-01-26 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331028', 'tblTempUsageDetail_20' ) start [2025-01-26 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331028', 'tblTempUsageDetail_20' ) end [2025-01-26 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331028', 'tblTempVendorCDR_20' ) start [2025-01-26 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331028', 'tblTempVendorCDR_20' ) end [2025-01-26 01:41:18] Production.INFO: ProcessCDR(1,14331028,1,1,2) [2025-01-26 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331028', 'tblTempUsageDetail_20' ) start [2025-01-26 01:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331028', 'tblTempUsageDetail_20' ) end [2025-01-26 01:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:41:24] Production.INFO: ==19654== Releasing lock... [2025-01-26 01:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:41:24] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:42:06 [end_date_ymd] => 2025-01-26 01:42:06 [RateCDR] => 1 ) [2025-01-26 01:42: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-01-25 22:42:06' and `end` < '2025-01-26 01:42: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-01-26 01:42:18] Production.INFO: count ==491 [2025-01-26 01:42:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:42:06 - End Time 2025-01-26 01:42:06 [2025-01-26 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331033', 'tblTempUsageDetail_20' ) start [2025-01-26 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331033', 'tblTempUsageDetail_20' ) end [2025-01-26 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331033', 'tblTempVendorCDR_20' ) start [2025-01-26 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331033', 'tblTempVendorCDR_20' ) end [2025-01-26 01:42:18] Production.INFO: ProcessCDR(1,14331033,1,1,2) [2025-01-26 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331033', 'tblTempUsageDetail_20' ) start [2025-01-26 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331033', 'tblTempUsageDetail_20' ) end [2025-01-26 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:42:22] Production.INFO: ==19739== Releasing lock... [2025-01-26 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:42:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:43:05 [end_date_ymd] => 2025-01-26 01:43:05 [RateCDR] => 1 ) [2025-01-26 01:43: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-01-25 22:43:05' and `end` < '2025-01-26 01:43: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-01-26 01:43:18] Production.INFO: count ==490 [2025-01-26 01:43:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:43:05 - End Time 2025-01-26 01:43:05 [2025-01-26 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331038', 'tblTempUsageDetail_20' ) start [2025-01-26 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331038', 'tblTempUsageDetail_20' ) end [2025-01-26 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331038', 'tblTempVendorCDR_20' ) start [2025-01-26 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331038', 'tblTempVendorCDR_20' ) end [2025-01-26 01:43:18] Production.INFO: ProcessCDR(1,14331038,1,1,2) [2025-01-26 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331038', 'tblTempUsageDetail_20' ) start [2025-01-26 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331038', 'tblTempUsageDetail_20' ) end [2025-01-26 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:43:21] Production.INFO: ==19826== Releasing lock... [2025-01-26 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:43:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:44:05 [end_date_ymd] => 2025-01-26 01:44:05 [RateCDR] => 1 ) [2025-01-26 01:44: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-01-25 22:44:05' and `end` < '2025-01-26 01:44: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-01-26 01:44:18] Production.INFO: count ==487 [2025-01-26 01:44:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:44:05 - End Time 2025-01-26 01:44:05 [2025-01-26 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331043', 'tblTempUsageDetail_20' ) start [2025-01-26 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331043', 'tblTempUsageDetail_20' ) end [2025-01-26 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331043', 'tblTempVendorCDR_20' ) start [2025-01-26 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331043', 'tblTempVendorCDR_20' ) end [2025-01-26 01:44:18] Production.INFO: ProcessCDR(1,14331043,1,1,2) [2025-01-26 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331043', 'tblTempUsageDetail_20' ) start [2025-01-26 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331043', 'tblTempUsageDetail_20' ) end [2025-01-26 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:44:21] Production.INFO: ==19913== Releasing lock... [2025-01-26 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:44:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:45:06 [end_date_ymd] => 2025-01-26 01:45:06 [RateCDR] => 1 ) [2025-01-26 01:45: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-01-25 22:45:06' and `end` < '2025-01-26 01:45: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-01-26 01:45:19] Production.INFO: count ==487 [2025-01-26 01:45:19] Production.ERROR: pbx CDR StartTime 2025-01-25 22:45:06 - End Time 2025-01-26 01:45:06 [2025-01-26 01:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331048', 'tblTempUsageDetail_20' ) start [2025-01-26 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331048', 'tblTempUsageDetail_20' ) end [2025-01-26 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331048', 'tblTempVendorCDR_20' ) start [2025-01-26 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331048', 'tblTempVendorCDR_20' ) end [2025-01-26 01:45:19] Production.INFO: ProcessCDR(1,14331048,1,1,2) [2025-01-26 01:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331048', 'tblTempUsageDetail_20' ) start [2025-01-26 01:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331048', 'tblTempUsageDetail_20' ) end [2025-01-26 01:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:45:23] Production.INFO: ==20000== Releasing lock... [2025-01-26 01:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:45:23] Production.INFO: 32 MB #Memory Used# [2025-01-26 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:46:05 [end_date_ymd] => 2025-01-26 01:46:05 [RateCDR] => 1 ) [2025-01-26 01:46: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-01-25 22:46:05' and `end` < '2025-01-26 01:46: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-01-26 01:46:18] Production.INFO: count ==489 [2025-01-26 01:46:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:46:05 - End Time 2025-01-26 01:46:05 [2025-01-26 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331053', 'tblTempUsageDetail_20' ) start [2025-01-26 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331053', 'tblTempUsageDetail_20' ) end [2025-01-26 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331053', 'tblTempVendorCDR_20' ) start [2025-01-26 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331053', 'tblTempVendorCDR_20' ) end [2025-01-26 01:46:18] Production.INFO: ProcessCDR(1,14331053,1,1,2) [2025-01-26 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331053', 'tblTempUsageDetail_20' ) start [2025-01-26 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331053', 'tblTempUsageDetail_20' ) end [2025-01-26 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:46:22] Production.INFO: ==20093== Releasing lock... [2025-01-26 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:46:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:47:05 [end_date_ymd] => 2025-01-26 01:47:05 [RateCDR] => 1 ) [2025-01-26 01:47: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-01-25 22:47:05' and `end` < '2025-01-26 01:47: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-01-26 01:47:18] Production.INFO: count ==492 [2025-01-26 01:47:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:47:05 - End Time 2025-01-26 01:47:05 [2025-01-26 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331058', 'tblTempUsageDetail_20' ) start [2025-01-26 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331058', 'tblTempUsageDetail_20' ) end [2025-01-26 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331058', 'tblTempVendorCDR_20' ) start [2025-01-26 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331058', 'tblTempVendorCDR_20' ) end [2025-01-26 01:47:18] Production.INFO: ProcessCDR(1,14331058,1,1,2) [2025-01-26 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331058', 'tblTempUsageDetail_20' ) start [2025-01-26 01:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331058', 'tblTempUsageDetail_20' ) end [2025-01-26 01:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:47:23] Production.INFO: ==20179== Releasing lock... [2025-01-26 01:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:47:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:48:06 [end_date_ymd] => 2025-01-26 01:48:06 [RateCDR] => 1 ) [2025-01-26 01:48: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-01-25 22:48:06' and `end` < '2025-01-26 01:48: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-01-26 01:48:19] Production.INFO: count ==494 [2025-01-26 01:48:19] Production.ERROR: pbx CDR StartTime 2025-01-25 22:48:06 - End Time 2025-01-26 01:48:06 [2025-01-26 01:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331063', 'tblTempUsageDetail_20' ) start [2025-01-26 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331063', 'tblTempUsageDetail_20' ) end [2025-01-26 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331063', 'tblTempVendorCDR_20' ) start [2025-01-26 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331063', 'tblTempVendorCDR_20' ) end [2025-01-26 01:48:19] Production.INFO: ProcessCDR(1,14331063,1,1,2) [2025-01-26 01:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331063', 'tblTempUsageDetail_20' ) start [2025-01-26 01:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331063', 'tblTempUsageDetail_20' ) end [2025-01-26 01:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:48:24] Production.INFO: ==20263== Releasing lock... [2025-01-26 01:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:48:24] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:49:05 [end_date_ymd] => 2025-01-26 01:49:05 [RateCDR] => 1 ) [2025-01-26 01:49: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-01-25 22:49:05' and `end` < '2025-01-26 01:49: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-01-26 01:49:18] Production.INFO: count ==491 [2025-01-26 01:49:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:49:05 - End Time 2025-01-26 01:49:05 [2025-01-26 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331068', 'tblTempUsageDetail_20' ) start [2025-01-26 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331068', 'tblTempUsageDetail_20' ) end [2025-01-26 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331068', 'tblTempVendorCDR_20' ) start [2025-01-26 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331068', 'tblTempVendorCDR_20' ) end [2025-01-26 01:49:18] Production.INFO: ProcessCDR(1,14331068,1,1,2) [2025-01-26 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331068', 'tblTempUsageDetail_20' ) start [2025-01-26 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331068', 'tblTempUsageDetail_20' ) end [2025-01-26 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:49:22] Production.INFO: ==20350== Releasing lock... [2025-01-26 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:49:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:50:06 [end_date_ymd] => 2025-01-26 01:50:06 [RateCDR] => 1 ) [2025-01-26 01:50: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-01-25 22:50:06' and `end` < '2025-01-26 01:50: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-01-26 01:50:19] Production.INFO: count ==503 [2025-01-26 01:50:19] Production.ERROR: pbx CDR StartTime 2025-01-25 22:50:06 - End Time 2025-01-26 01:50:06 [2025-01-26 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331074', 'tblTempUsageDetail_20' ) start [2025-01-26 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331074', 'tblTempUsageDetail_20' ) end [2025-01-26 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331074', 'tblTempVendorCDR_20' ) start [2025-01-26 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331074', 'tblTempVendorCDR_20' ) end [2025-01-26 01:50:19] Production.INFO: ProcessCDR(1,14331074,1,1,2) [2025-01-26 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331074', 'tblTempUsageDetail_20' ) start [2025-01-26 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331074', 'tblTempUsageDetail_20' ) end [2025-01-26 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:50:22] Production.INFO: ==20439== Releasing lock... [2025-01-26 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:50:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 01:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:51:06 [end_date_ymd] => 2025-01-26 01:51:06 [RateCDR] => 1 ) [2025-01-26 01:51: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-01-25 22:51:06' and `end` < '2025-01-26 01:51: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-01-26 01:51:19] Production.INFO: count ==530 [2025-01-26 01:51:19] Production.ERROR: pbx CDR StartTime 2025-01-25 22:51:06 - End Time 2025-01-26 01:51:06 [2025-01-26 01:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331079', 'tblTempUsageDetail_20' ) start [2025-01-26 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331079', 'tblTempUsageDetail_20' ) end [2025-01-26 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331079', 'tblTempVendorCDR_20' ) start [2025-01-26 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331079', 'tblTempVendorCDR_20' ) end [2025-01-26 01:51:19] Production.INFO: ProcessCDR(1,14331079,1,1,2) [2025-01-26 01:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331079', 'tblTempUsageDetail_20' ) start [2025-01-26 01:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331079', 'tblTempUsageDetail_20' ) end [2025-01-26 01:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:51:24] Production.INFO: ==20564== Releasing lock... [2025-01-26 01:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:51:24] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:52:06 [end_date_ymd] => 2025-01-26 01:52:06 [RateCDR] => 1 ) [2025-01-26 01:52: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-01-25 22:52:06' and `end` < '2025-01-26 01:52: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-01-26 01:52:18] Production.INFO: count ==528 [2025-01-26 01:52:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:52:06 - End Time 2025-01-26 01:52:06 [2025-01-26 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331084', 'tblTempUsageDetail_20' ) start [2025-01-26 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331084', 'tblTempUsageDetail_20' ) end [2025-01-26 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331084', 'tblTempVendorCDR_20' ) start [2025-01-26 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331084', 'tblTempVendorCDR_20' ) end [2025-01-26 01:52:18] Production.INFO: ProcessCDR(1,14331084,1,1,2) [2025-01-26 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331084', 'tblTempUsageDetail_20' ) start [2025-01-26 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331084', 'tblTempUsageDetail_20' ) end [2025-01-26 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:52:22] Production.INFO: ==20651== Releasing lock... [2025-01-26 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:52:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 01:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:53:06 [end_date_ymd] => 2025-01-26 01:53:06 [RateCDR] => 1 ) [2025-01-26 01:53: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-01-25 22:53:06' and `end` < '2025-01-26 01:53: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-01-26 01:53:19] Production.INFO: count ==530 [2025-01-26 01:53:19] Production.ERROR: pbx CDR StartTime 2025-01-25 22:53:06 - End Time 2025-01-26 01:53:06 [2025-01-26 01:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331089', 'tblTempUsageDetail_20' ) start [2025-01-26 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331089', 'tblTempUsageDetail_20' ) end [2025-01-26 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331089', 'tblTempVendorCDR_20' ) start [2025-01-26 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331089', 'tblTempVendorCDR_20' ) end [2025-01-26 01:53:19] Production.INFO: ProcessCDR(1,14331089,1,1,2) [2025-01-26 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331089', 'tblTempUsageDetail_20' ) start [2025-01-26 01:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331089', 'tblTempUsageDetail_20' ) end [2025-01-26 01:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:53:24] Production.INFO: ==20736== Releasing lock... [2025-01-26 01:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:53:24] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:54:05 [end_date_ymd] => 2025-01-26 01:54:05 [RateCDR] => 1 ) [2025-01-26 01:54: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-01-25 22:54:05' and `end` < '2025-01-26 01:54: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-01-26 01:54:18] Production.INFO: count ==531 [2025-01-26 01:54:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:54:05 - End Time 2025-01-26 01:54:05 [2025-01-26 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331094', 'tblTempUsageDetail_20' ) start [2025-01-26 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331094', 'tblTempUsageDetail_20' ) end [2025-01-26 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331094', 'tblTempVendorCDR_20' ) start [2025-01-26 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331094', 'tblTempVendorCDR_20' ) end [2025-01-26 01:54:18] Production.INFO: ProcessCDR(1,14331094,1,1,2) [2025-01-26 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331094', 'tblTempUsageDetail_20' ) start [2025-01-26 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331094', 'tblTempUsageDetail_20' ) end [2025-01-26 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:54:22] Production.INFO: ==20817== Releasing lock... [2025-01-26 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:54:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:55:06 [end_date_ymd] => 2025-01-26 01:55:06 [RateCDR] => 1 ) [2025-01-26 01:55: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-01-25 22:55:06' and `end` < '2025-01-26 01:55: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-01-26 01:55:18] Production.INFO: count ==532 [2025-01-26 01:55:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:55:06 - End Time 2025-01-26 01:55:06 [2025-01-26 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331099', 'tblTempUsageDetail_20' ) start [2025-01-26 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331099', 'tblTempUsageDetail_20' ) end [2025-01-26 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331099', 'tblTempVendorCDR_20' ) start [2025-01-26 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331099', 'tblTempVendorCDR_20' ) end [2025-01-26 01:55:19] Production.INFO: ProcessCDR(1,14331099,1,1,2) [2025-01-26 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331099', 'tblTempUsageDetail_20' ) start [2025-01-26 01:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331099', 'tblTempUsageDetail_20' ) end [2025-01-26 01:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:55:24] Production.INFO: ==20902== Releasing lock... [2025-01-26 01:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:55:24] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:56:06 [end_date_ymd] => 2025-01-26 01:56:06 [RateCDR] => 1 ) [2025-01-26 01:56: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-01-25 22:56:06' and `end` < '2025-01-26 01:56: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-01-26 01:56:18] Production.INFO: count ==532 [2025-01-26 01:56:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:56:06 - End Time 2025-01-26 01:56:06 [2025-01-26 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331104', 'tblTempUsageDetail_20' ) start [2025-01-26 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331104', 'tblTempUsageDetail_20' ) end [2025-01-26 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331104', 'tblTempVendorCDR_20' ) start [2025-01-26 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331104', 'tblTempVendorCDR_20' ) end [2025-01-26 01:56:18] Production.INFO: ProcessCDR(1,14331104,1,1,2) [2025-01-26 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331104', 'tblTempUsageDetail_20' ) start [2025-01-26 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331104', 'tblTempUsageDetail_20' ) end [2025-01-26 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:56:22] Production.INFO: ==20990== Releasing lock... [2025-01-26 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:56:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 01:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:57:06 [end_date_ymd] => 2025-01-26 01:57:06 [RateCDR] => 1 ) [2025-01-26 01:57: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-01-25 22:57:06' and `end` < '2025-01-26 01:57: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-01-26 01:57:19] Production.INFO: count ==535 [2025-01-26 01:57:19] Production.ERROR: pbx CDR StartTime 2025-01-25 22:57:06 - End Time 2025-01-26 01:57:06 [2025-01-26 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331109', 'tblTempUsageDetail_20' ) start [2025-01-26 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331109', 'tblTempUsageDetail_20' ) end [2025-01-26 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331109', 'tblTempVendorCDR_20' ) start [2025-01-26 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331109', 'tblTempVendorCDR_20' ) end [2025-01-26 01:57:19] Production.INFO: ProcessCDR(1,14331109,1,1,2) [2025-01-26 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331109', 'tblTempUsageDetail_20' ) start [2025-01-26 01:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331109', 'tblTempUsageDetail_20' ) end [2025-01-26 01:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:57:24] Production.INFO: ==21080== Releasing lock... [2025-01-26 01:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:57:24] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:58:05 [end_date_ymd] => 2025-01-26 01:58:05 [RateCDR] => 1 ) [2025-01-26 01:58: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-01-25 22:58:05' and `end` < '2025-01-26 01:58: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-01-26 01:58:18] Production.INFO: count ==536 [2025-01-26 01:58:18] Production.ERROR: pbx CDR StartTime 2025-01-25 22:58:05 - End Time 2025-01-26 01:58:05 [2025-01-26 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331114', 'tblTempUsageDetail_20' ) start [2025-01-26 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331114', 'tblTempUsageDetail_20' ) end [2025-01-26 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331114', 'tblTempVendorCDR_20' ) start [2025-01-26 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331114', 'tblTempVendorCDR_20' ) end [2025-01-26 01:58:18] Production.INFO: ProcessCDR(1,14331114,1,1,2) [2025-01-26 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331114', 'tblTempUsageDetail_20' ) start [2025-01-26 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331114', 'tblTempUsageDetail_20' ) end [2025-01-26 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:58:21] Production.INFO: ==21164== Releasing lock... [2025-01-26 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:58:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 01:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 22:59:06 [end_date_ymd] => 2025-01-26 01:59:06 [RateCDR] => 1 ) [2025-01-26 01:59: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-01-25 22:59:06' and `end` < '2025-01-26 01:59: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-01-26 01:59:18] Production.INFO: count ==541 [2025-01-26 01:59:19] Production.ERROR: pbx CDR StartTime 2025-01-25 22:59:06 - End Time 2025-01-26 01:59:06 [2025-01-26 01:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331119', 'tblTempUsageDetail_20' ) start [2025-01-26 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331119', 'tblTempUsageDetail_20' ) end [2025-01-26 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331119', 'tblTempVendorCDR_20' ) start [2025-01-26 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331119', 'tblTempVendorCDR_20' ) end [2025-01-26 01:59:19] Production.INFO: ProcessCDR(1,14331119,1,1,2) [2025-01-26 01:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 01:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331119', 'tblTempUsageDetail_20' ) start [2025-01-26 01:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331119', 'tblTempUsageDetail_20' ) end [2025-01-26 01:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 01:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 01:59:24] Production.INFO: ==21247== Releasing lock... [2025-01-26 01:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 01:59:24] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:00:07 [end_date_ymd] => 2025-01-26 02:00:07 [RateCDR] => 1 ) [2025-01-26 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-01-25 23:00:07' and `end` < '2025-01-26 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-01-26 02:00:19] Production.INFO: count ==559 [2025-01-26 02:00:19] Production.ERROR: pbx CDR StartTime 2025-01-25 23:00:07 - End Time 2025-01-26 02:00:07 [2025-01-26 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331125', 'tblTempUsageDetail_20' ) start [2025-01-26 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331125', 'tblTempUsageDetail_20' ) end [2025-01-26 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331125', 'tblTempVendorCDR_20' ) start [2025-01-26 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331125', 'tblTempVendorCDR_20' ) end [2025-01-26 02:00:20] Production.INFO: ProcessCDR(1,14331125,1,1,2) [2025-01-26 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331125', 'tblTempUsageDetail_20' ) start [2025-01-26 02:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331125', 'tblTempUsageDetail_20' ) end [2025-01-26 02:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:00:25] Production.INFO: ==21343== Releasing lock... [2025-01-26 02:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:00:25] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:01:06 [end_date_ymd] => 2025-01-26 02:01:06 [RateCDR] => 1 ) [2025-01-26 02:01: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-01-25 23:01:06' and `end` < '2025-01-26 02:01: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-01-26 02:01:18] Production.INFO: count ==576 [2025-01-26 02:01:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:01:06 - End Time 2025-01-26 02:01:06 [2025-01-26 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331130', 'tblTempUsageDetail_20' ) start [2025-01-26 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331130', 'tblTempUsageDetail_20' ) end [2025-01-26 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331130', 'tblTempVendorCDR_20' ) start [2025-01-26 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331130', 'tblTempVendorCDR_20' ) end [2025-01-26 02:01:18] Production.INFO: ProcessCDR(1,14331130,1,1,2) [2025-01-26 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331130', 'tblTempUsageDetail_20' ) start [2025-01-26 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331130', 'tblTempUsageDetail_20' ) end [2025-01-26 02:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:01:23] Production.INFO: ==21527== Releasing lock... [2025-01-26 02:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:01:23] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:02:05 [end_date_ymd] => 2025-01-26 02:02:05 [RateCDR] => 1 ) [2025-01-26 02:02: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-01-25 23:02:05' and `end` < '2025-01-26 02:02: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-01-26 02:02:17] Production.INFO: count ==575 [2025-01-26 02:02:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:02:05 - End Time 2025-01-26 02:02:05 [2025-01-26 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331135', 'tblTempUsageDetail_20' ) start [2025-01-26 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331135', 'tblTempUsageDetail_20' ) end [2025-01-26 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331135', 'tblTempVendorCDR_20' ) start [2025-01-26 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331135', 'tblTempVendorCDR_20' ) end [2025-01-26 02:02:18] Production.INFO: ProcessCDR(1,14331135,1,1,2) [2025-01-26 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331135', 'tblTempUsageDetail_20' ) start [2025-01-26 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331135', 'tblTempUsageDetail_20' ) end [2025-01-26 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:02:21] Production.INFO: ==21613== Releasing lock... [2025-01-26 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:02:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:03:05 [end_date_ymd] => 2025-01-26 02:03:05 [RateCDR] => 1 ) [2025-01-26 02:03: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-01-25 23:03:05' and `end` < '2025-01-26 02:03: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-01-26 02:03:18] Production.INFO: count ==574 [2025-01-26 02:03:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:03:05 - End Time 2025-01-26 02:03:05 [2025-01-26 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331137', 'tblTempUsageDetail_20' ) start [2025-01-26 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331137', 'tblTempUsageDetail_20' ) end [2025-01-26 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331137', 'tblTempVendorCDR_20' ) start [2025-01-26 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331137', 'tblTempVendorCDR_20' ) end [2025-01-26 02:03:18] Production.INFO: ProcessCDR(1,14331137,1,1,2) [2025-01-26 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331137', 'tblTempUsageDetail_20' ) start [2025-01-26 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331137', 'tblTempUsageDetail_20' ) end [2025-01-26 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:03:21] Production.INFO: ==21692== Releasing lock... [2025-01-26 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:03:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:04:05 [end_date_ymd] => 2025-01-26 02:04:05 [RateCDR] => 1 ) [2025-01-26 02:04: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-01-25 23:04:05' and `end` < '2025-01-26 02:04: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-01-26 02:04:18] Production.INFO: count ==575 [2025-01-26 02:04:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:04:05 - End Time 2025-01-26 02:04:05 [2025-01-26 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331145', 'tblTempUsageDetail_20' ) start [2025-01-26 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331145', 'tblTempUsageDetail_20' ) end [2025-01-26 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331145', 'tblTempVendorCDR_20' ) start [2025-01-26 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331145', 'tblTempVendorCDR_20' ) end [2025-01-26 02:04:18] Production.INFO: ProcessCDR(1,14331145,1,1,2) [2025-01-26 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331145', 'tblTempUsageDetail_20' ) start [2025-01-26 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331145', 'tblTempUsageDetail_20' ) end [2025-01-26 02:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:04:23] Production.INFO: ==21775== Releasing lock... [2025-01-26 02:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:04:23] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:05:06 [end_date_ymd] => 2025-01-26 02:05:06 [RateCDR] => 1 ) [2025-01-26 02:05: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-01-25 23:05:06' and `end` < '2025-01-26 02:05: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-01-26 02:05:18] Production.INFO: count ==575 [2025-01-26 02:05:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:05:06 - End Time 2025-01-26 02:05:06 [2025-01-26 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331150', 'tblTempUsageDetail_20' ) start [2025-01-26 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331150', 'tblTempUsageDetail_20' ) end [2025-01-26 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331150', 'tblTempVendorCDR_20' ) start [2025-01-26 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331150', 'tblTempVendorCDR_20' ) end [2025-01-26 02:05:18] Production.INFO: ProcessCDR(1,14331150,1,1,2) [2025-01-26 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331150', 'tblTempUsageDetail_20' ) start [2025-01-26 02:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331150', 'tblTempUsageDetail_20' ) end [2025-01-26 02:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:05:23] Production.INFO: ==21858== Releasing lock... [2025-01-26 02:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:05:23] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:06:05 [end_date_ymd] => 2025-01-26 02:06:05 [RateCDR] => 1 ) [2025-01-26 02:06: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-01-25 23:06:05' and `end` < '2025-01-26 02:06: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-01-26 02:06:17] Production.INFO: count ==573 [2025-01-26 02:06:17] Production.ERROR: pbx CDR StartTime 2025-01-25 23:06:05 - End Time 2025-01-26 02:06:05 [2025-01-26 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331155', 'tblTempUsageDetail_20' ) start [2025-01-26 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331155', 'tblTempUsageDetail_20' ) end [2025-01-26 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331155', 'tblTempVendorCDR_20' ) start [2025-01-26 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331155', 'tblTempVendorCDR_20' ) end [2025-01-26 02:06:17] Production.INFO: ProcessCDR(1,14331155,1,1,2) [2025-01-26 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331155', 'tblTempUsageDetail_20' ) start [2025-01-26 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331155', 'tblTempUsageDetail_20' ) end [2025-01-26 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:06:21] Production.INFO: ==21979== Releasing lock... [2025-01-26 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:06:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:07:05 [end_date_ymd] => 2025-01-26 02:07:05 [RateCDR] => 1 ) [2025-01-26 02:07: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-01-25 23:07:05' and `end` < '2025-01-26 02:07: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-01-26 02:07:18] Production.INFO: count ==572 [2025-01-26 02:07:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:07:05 - End Time 2025-01-26 02:07:05 [2025-01-26 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331160', 'tblTempUsageDetail_20' ) start [2025-01-26 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331160', 'tblTempUsageDetail_20' ) end [2025-01-26 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331160', 'tblTempVendorCDR_20' ) start [2025-01-26 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331160', 'tblTempVendorCDR_20' ) end [2025-01-26 02:07:18] Production.INFO: ProcessCDR(1,14331160,1,1,2) [2025-01-26 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331160', 'tblTempUsageDetail_20' ) start [2025-01-26 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331160', 'tblTempUsageDetail_20' ) end [2025-01-26 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:07:21] Production.INFO: ==22060== Releasing lock... [2025-01-26 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:07:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:08:05 [end_date_ymd] => 2025-01-26 02:08:05 [RateCDR] => 1 ) [2025-01-26 02:08: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-01-25 23:08:05' and `end` < '2025-01-26 02:08: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-01-26 02:08:17] Production.INFO: count ==573 [2025-01-26 02:08:17] Production.ERROR: pbx CDR StartTime 2025-01-25 23:08:05 - End Time 2025-01-26 02:08:05 [2025-01-26 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331165', 'tblTempUsageDetail_20' ) start [2025-01-26 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331165', 'tblTempUsageDetail_20' ) end [2025-01-26 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331165', 'tblTempVendorCDR_20' ) start [2025-01-26 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331165', 'tblTempVendorCDR_20' ) end [2025-01-26 02:08:17] Production.INFO: ProcessCDR(1,14331165,1,1,2) [2025-01-26 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331165', 'tblTempUsageDetail_20' ) start [2025-01-26 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331165', 'tblTempUsageDetail_20' ) end [2025-01-26 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:08:21] Production.INFO: ==22138== Releasing lock... [2025-01-26 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:08:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 02:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:09:04 [end_date_ymd] => 2025-01-26 02:09:04 [RateCDR] => 1 ) [2025-01-26 02:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 23:09:04' and `end` < '2025-01-26 02:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 02:09:18] Production.INFO: count ==570 [2025-01-26 02:09:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:09:04 - End Time 2025-01-26 02:09:04 [2025-01-26 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331170', 'tblTempUsageDetail_20' ) start [2025-01-26 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331170', 'tblTempUsageDetail_20' ) end [2025-01-26 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331170', 'tblTempVendorCDR_20' ) start [2025-01-26 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331170', 'tblTempVendorCDR_20' ) end [2025-01-26 02:09:18] Production.INFO: ProcessCDR(1,14331170,1,1,2) [2025-01-26 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331170', 'tblTempUsageDetail_20' ) start [2025-01-26 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331170', 'tblTempUsageDetail_20' ) end [2025-01-26 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:09:21] Production.INFO: ==22223== Releasing lock... [2025-01-26 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:09:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:10:06 [end_date_ymd] => 2025-01-26 02:10:06 [RateCDR] => 1 ) [2025-01-26 02:10: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-01-25 23:10:06' and `end` < '2025-01-26 02:10: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-01-26 02:10:18] Production.INFO: count ==586 [2025-01-26 02:10:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:10:06 - End Time 2025-01-26 02:10:06 [2025-01-26 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331176', 'tblTempUsageDetail_20' ) start [2025-01-26 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331176', 'tblTempUsageDetail_20' ) end [2025-01-26 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331176', 'tblTempVendorCDR_20' ) start [2025-01-26 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331176', 'tblTempVendorCDR_20' ) end [2025-01-26 02:10:18] Production.INFO: ProcessCDR(1,14331176,1,1,2) [2025-01-26 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331176', 'tblTempUsageDetail_20' ) start [2025-01-26 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331176', 'tblTempUsageDetail_20' ) end [2025-01-26 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:10:22] Production.INFO: ==22307== Releasing lock... [2025-01-26 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:10:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:11:05 [end_date_ymd] => 2025-01-26 02:11:05 [RateCDR] => 1 ) [2025-01-26 02:11: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-01-25 23:11:05' and `end` < '2025-01-26 02:11: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-01-26 02:11:17] Production.INFO: count ==602 [2025-01-26 02:11:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:11:05 - End Time 2025-01-26 02:11:05 [2025-01-26 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331181', 'tblTempUsageDetail_20' ) start [2025-01-26 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331181', 'tblTempUsageDetail_20' ) end [2025-01-26 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331181', 'tblTempVendorCDR_20' ) start [2025-01-26 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331181', 'tblTempVendorCDR_20' ) end [2025-01-26 02:11:18] Production.INFO: ProcessCDR(1,14331181,1,1,2) [2025-01-26 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331181', 'tblTempUsageDetail_20' ) start [2025-01-26 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331181', 'tblTempUsageDetail_20' ) end [2025-01-26 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:11:21] Production.INFO: ==22390== Releasing lock... [2025-01-26 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:11:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:12:06 [end_date_ymd] => 2025-01-26 02:12:06 [RateCDR] => 1 ) [2025-01-26 02:12: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-01-25 23:12:06' and `end` < '2025-01-26 02:12: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-01-26 02:12:18] Production.INFO: count ==601 [2025-01-26 02:12:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:12:06 - End Time 2025-01-26 02:12:06 [2025-01-26 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331186', 'tblTempUsageDetail_20' ) start [2025-01-26 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331186', 'tblTempUsageDetail_20' ) end [2025-01-26 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331186', 'tblTempVendorCDR_20' ) start [2025-01-26 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331186', 'tblTempVendorCDR_20' ) end [2025-01-26 02:12:18] Production.INFO: ProcessCDR(1,14331186,1,1,2) [2025-01-26 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331186', 'tblTempUsageDetail_20' ) start [2025-01-26 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331186', 'tblTempUsageDetail_20' ) end [2025-01-26 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:12:21] Production.INFO: ==22470== Releasing lock... [2025-01-26 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:12:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:13:05 [end_date_ymd] => 2025-01-26 02:13:05 [RateCDR] => 1 ) [2025-01-26 02:13: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-01-25 23:13:05' and `end` < '2025-01-26 02:13: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-01-26 02:13:17] Production.INFO: count ==604 [2025-01-26 02:13:17] Production.ERROR: pbx CDR StartTime 2025-01-25 23:13:05 - End Time 2025-01-26 02:13:05 [2025-01-26 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331191', 'tblTempUsageDetail_20' ) start [2025-01-26 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331191', 'tblTempUsageDetail_20' ) end [2025-01-26 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331191', 'tblTempVendorCDR_20' ) start [2025-01-26 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331191', 'tblTempVendorCDR_20' ) end [2025-01-26 02:13:17] Production.INFO: ProcessCDR(1,14331191,1,1,2) [2025-01-26 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331191', 'tblTempUsageDetail_20' ) start [2025-01-26 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331191', 'tblTempUsageDetail_20' ) end [2025-01-26 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:13:21] Production.INFO: ==22552== Releasing lock... [2025-01-26 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:13:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:14:06 [end_date_ymd] => 2025-01-26 02:14:06 [RateCDR] => 1 ) [2025-01-26 02:14: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-01-25 23:14:06' and `end` < '2025-01-26 02:14: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-01-26 02:14:18] Production.INFO: count ==603 [2025-01-26 02:14:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:14:06 - End Time 2025-01-26 02:14:06 [2025-01-26 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331196', 'tblTempUsageDetail_20' ) start [2025-01-26 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331196', 'tblTempUsageDetail_20' ) end [2025-01-26 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331196', 'tblTempVendorCDR_20' ) start [2025-01-26 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331196', 'tblTempVendorCDR_20' ) end [2025-01-26 02:14:18] Production.INFO: ProcessCDR(1,14331196,1,1,2) [2025-01-26 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331196', 'tblTempUsageDetail_20' ) start [2025-01-26 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331196', 'tblTempUsageDetail_20' ) end [2025-01-26 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:14:22] Production.INFO: ==22631== Releasing lock... [2025-01-26 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:14:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:15:05 [end_date_ymd] => 2025-01-26 02:15:05 [RateCDR] => 1 ) [2025-01-26 02:15: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-01-25 23:15:05' and `end` < '2025-01-26 02:15: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-01-26 02:15:18] Production.INFO: count ==604 [2025-01-26 02:15:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:15:05 - End Time 2025-01-26 02:15:05 [2025-01-26 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331201', 'tblTempUsageDetail_20' ) start [2025-01-26 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331201', 'tblTempUsageDetail_20' ) end [2025-01-26 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331201', 'tblTempVendorCDR_20' ) start [2025-01-26 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331201', 'tblTempVendorCDR_20' ) end [2025-01-26 02:15:18] Production.INFO: ProcessCDR(1,14331201,1,1,2) [2025-01-26 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331201', 'tblTempUsageDetail_20' ) start [2025-01-26 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331201', 'tblTempUsageDetail_20' ) end [2025-01-26 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:15:21] Production.INFO: ==22717== Releasing lock... [2025-01-26 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:15:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:16:05 [end_date_ymd] => 2025-01-26 02:16:05 [RateCDR] => 1 ) [2025-01-26 02:16: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-01-25 23:16:05' and `end` < '2025-01-26 02:16: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-01-26 02:16:18] Production.INFO: count ==609 [2025-01-26 02:16:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:16:05 - End Time 2025-01-26 02:16:05 [2025-01-26 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331206', 'tblTempUsageDetail_20' ) start [2025-01-26 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331206', 'tblTempUsageDetail_20' ) end [2025-01-26 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331206', 'tblTempVendorCDR_20' ) start [2025-01-26 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331206', 'tblTempVendorCDR_20' ) end [2025-01-26 02:16:18] Production.INFO: ProcessCDR(1,14331206,1,1,2) [2025-01-26 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331206', 'tblTempUsageDetail_20' ) start [2025-01-26 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331206', 'tblTempUsageDetail_20' ) end [2025-01-26 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:16:22] Production.INFO: ==22826== Releasing lock... [2025-01-26 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:16:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:17:05 [end_date_ymd] => 2025-01-26 02:17:05 [RateCDR] => 1 ) [2025-01-26 02:17: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-01-25 23:17:05' and `end` < '2025-01-26 02:17: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-01-26 02:17:18] Production.INFO: count ==608 [2025-01-26 02:17:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:17:05 - End Time 2025-01-26 02:17:05 [2025-01-26 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331211', 'tblTempUsageDetail_20' ) start [2025-01-26 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331211', 'tblTempUsageDetail_20' ) end [2025-01-26 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331211', 'tblTempVendorCDR_20' ) start [2025-01-26 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331211', 'tblTempVendorCDR_20' ) end [2025-01-26 02:17:18] Production.INFO: ProcessCDR(1,14331211,1,1,2) [2025-01-26 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331211', 'tblTempUsageDetail_20' ) start [2025-01-26 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331211', 'tblTempUsageDetail_20' ) end [2025-01-26 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:17:21] Production.INFO: ==22930== Releasing lock... [2025-01-26 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:17:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:18:05 [end_date_ymd] => 2025-01-26 02:18:05 [RateCDR] => 1 ) [2025-01-26 02:18: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-01-25 23:18:05' and `end` < '2025-01-26 02:18: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-01-26 02:18:18] Production.INFO: count ==608 [2025-01-26 02:18:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:18:05 - End Time 2025-01-26 02:18:05 [2025-01-26 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331216', 'tblTempUsageDetail_20' ) start [2025-01-26 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331216', 'tblTempUsageDetail_20' ) end [2025-01-26 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331216', 'tblTempVendorCDR_20' ) start [2025-01-26 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331216', 'tblTempVendorCDR_20' ) end [2025-01-26 02:18:18] Production.INFO: ProcessCDR(1,14331216,1,1,2) [2025-01-26 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331216', 'tblTempUsageDetail_20' ) start [2025-01-26 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331216', 'tblTempUsageDetail_20' ) end [2025-01-26 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:18:21] Production.INFO: ==23037== Releasing lock... [2025-01-26 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:18:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 02:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:19:04 [end_date_ymd] => 2025-01-26 02:19:04 [RateCDR] => 1 ) [2025-01-26 02:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 23:19:04' and `end` < '2025-01-26 02:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 02:19:17] Production.INFO: count ==606 [2025-01-26 02:19:17] Production.ERROR: pbx CDR StartTime 2025-01-25 23:19:04 - End Time 2025-01-26 02:19:04 [2025-01-26 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331221', 'tblTempUsageDetail_20' ) start [2025-01-26 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331221', 'tblTempUsageDetail_20' ) end [2025-01-26 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331221', 'tblTempVendorCDR_20' ) start [2025-01-26 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331221', 'tblTempVendorCDR_20' ) end [2025-01-26 02:19:17] Production.INFO: ProcessCDR(1,14331221,1,1,2) [2025-01-26 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331221', 'tblTempUsageDetail_20' ) start [2025-01-26 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331221', 'tblTempUsageDetail_20' ) end [2025-01-26 02:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:19:20] Production.INFO: ==23147== Releasing lock... [2025-01-26 02:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:19:20] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:20:06 [end_date_ymd] => 2025-01-26 02:20:06 [RateCDR] => 1 ) [2025-01-26 02:20: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-01-25 23:20:06' and `end` < '2025-01-26 02:20: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-01-26 02:20:18] Production.INFO: count ==614 [2025-01-26 02:20:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:20:06 - End Time 2025-01-26 02:20:06 [2025-01-26 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331227', 'tblTempUsageDetail_20' ) start [2025-01-26 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331227', 'tblTempUsageDetail_20' ) end [2025-01-26 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331227', 'tblTempVendorCDR_20' ) start [2025-01-26 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331227', 'tblTempVendorCDR_20' ) end [2025-01-26 02:20:18] Production.INFO: ProcessCDR(1,14331227,1,1,2) [2025-01-26 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331227', 'tblTempUsageDetail_20' ) start [2025-01-26 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331227', 'tblTempUsageDetail_20' ) end [2025-01-26 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:20:22] Production.INFO: ==23260== Releasing lock... [2025-01-26 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:20:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:21:04 [end_date_ymd] => 2025-01-26 02:21:04 [RateCDR] => 1 ) [2025-01-26 02:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 23:21:04' and `end` < '2025-01-26 02:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 02:21:17] Production.INFO: count ==612 [2025-01-26 02:21:17] Production.ERROR: pbx CDR StartTime 2025-01-25 23:21:04 - End Time 2025-01-26 02:21:04 [2025-01-26 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331232', 'tblTempUsageDetail_20' ) start [2025-01-26 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331232', 'tblTempUsageDetail_20' ) end [2025-01-26 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331232', 'tblTempVendorCDR_20' ) start [2025-01-26 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331232', 'tblTempVendorCDR_20' ) end [2025-01-26 02:21:17] Production.INFO: ProcessCDR(1,14331232,1,1,2) [2025-01-26 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331232', 'tblTempUsageDetail_20' ) start [2025-01-26 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331232', 'tblTempUsageDetail_20' ) end [2025-01-26 02:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:21:20] Production.INFO: ==23371== Releasing lock... [2025-01-26 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:21:20] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:22:05 [end_date_ymd] => 2025-01-26 02:22:05 [RateCDR] => 1 ) [2025-01-26 02:22: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-01-25 23:22:05' and `end` < '2025-01-26 02:22: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-01-26 02:22:17] Production.INFO: count ==612 [2025-01-26 02:22:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:22:05 - End Time 2025-01-26 02:22:05 [2025-01-26 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331237', 'tblTempUsageDetail_20' ) start [2025-01-26 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331237', 'tblTempUsageDetail_20' ) end [2025-01-26 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331237', 'tblTempVendorCDR_20' ) start [2025-01-26 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331237', 'tblTempVendorCDR_20' ) end [2025-01-26 02:22:18] Production.INFO: ProcessCDR(1,14331237,1,1,2) [2025-01-26 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331237', 'tblTempUsageDetail_20' ) start [2025-01-26 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331237', 'tblTempUsageDetail_20' ) end [2025-01-26 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:22:21] Production.INFO: ==23521== Releasing lock... [2025-01-26 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:22:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:23:04 [end_date_ymd] => 2025-01-26 02:23:04 [RateCDR] => 1 ) [2025-01-26 02:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 23:23:04' and `end` < '2025-01-26 02:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 02:23:18] Production.INFO: count ==609 [2025-01-26 02:23:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:23:04 - End Time 2025-01-26 02:23:04 [2025-01-26 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331242', 'tblTempUsageDetail_20' ) start [2025-01-26 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331242', 'tblTempUsageDetail_20' ) end [2025-01-26 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331242', 'tblTempVendorCDR_20' ) start [2025-01-26 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331242', 'tblTempVendorCDR_20' ) end [2025-01-26 02:23:18] Production.INFO: ProcessCDR(1,14331242,1,1,2) [2025-01-26 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331242', 'tblTempUsageDetail_20' ) start [2025-01-26 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331242', 'tblTempUsageDetail_20' ) end [2025-01-26 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:23:21] Production.INFO: ==23625== Releasing lock... [2025-01-26 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:23:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:24:05 [end_date_ymd] => 2025-01-26 02:24:05 [RateCDR] => 1 ) [2025-01-26 02:24: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-01-25 23:24:05' and `end` < '2025-01-26 02:24: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-01-26 02:24:18] Production.INFO: count ==610 [2025-01-26 02:24:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:24:05 - End Time 2025-01-26 02:24:05 [2025-01-26 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331247', 'tblTempUsageDetail_20' ) start [2025-01-26 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331247', 'tblTempUsageDetail_20' ) end [2025-01-26 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331247', 'tblTempVendorCDR_20' ) start [2025-01-26 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331247', 'tblTempVendorCDR_20' ) end [2025-01-26 02:24:18] Production.INFO: ProcessCDR(1,14331247,1,1,2) [2025-01-26 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331247', 'tblTempUsageDetail_20' ) start [2025-01-26 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331247', 'tblTempUsageDetail_20' ) end [2025-01-26 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:24:21] Production.INFO: ==23734== Releasing lock... [2025-01-26 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:24:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:25:06 [end_date_ymd] => 2025-01-26 02:25:06 [RateCDR] => 1 ) [2025-01-26 02:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 23:25:06' and `end` < '2025-01-26 02:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 02:25:18] Production.INFO: count ==611 [2025-01-26 02:25:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:25:06 - End Time 2025-01-26 02:25:06 [2025-01-26 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331252', 'tblTempUsageDetail_20' ) start [2025-01-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331252', 'tblTempUsageDetail_20' ) end [2025-01-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331252', 'tblTempVendorCDR_20' ) start [2025-01-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331252', 'tblTempVendorCDR_20' ) end [2025-01-26 02:25:18] Production.INFO: ProcessCDR(1,14331252,1,1,2) [2025-01-26 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331252', 'tblTempUsageDetail_20' ) start [2025-01-26 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331252', 'tblTempUsageDetail_20' ) end [2025-01-26 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:25:21] Production.INFO: ==23843== Releasing lock... [2025-01-26 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:25:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:26:05 [end_date_ymd] => 2025-01-26 02:26:05 [RateCDR] => 1 ) [2025-01-26 02:26: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-01-25 23:26:05' and `end` < '2025-01-26 02:26: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-01-26 02:26:17] Production.INFO: count ==611 [2025-01-26 02:26:17] Production.ERROR: pbx CDR StartTime 2025-01-25 23:26:05 - End Time 2025-01-26 02:26:05 [2025-01-26 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331257', 'tblTempUsageDetail_20' ) start [2025-01-26 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331257', 'tblTempUsageDetail_20' ) end [2025-01-26 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331257', 'tblTempVendorCDR_20' ) start [2025-01-26 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331257', 'tblTempVendorCDR_20' ) end [2025-01-26 02:26:17] Production.INFO: ProcessCDR(1,14331257,1,1,2) [2025-01-26 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331257', 'tblTempUsageDetail_20' ) start [2025-01-26 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331257', 'tblTempUsageDetail_20' ) end [2025-01-26 02:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:26:20] Production.INFO: ==23955== Releasing lock... [2025-01-26 02:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:26:20] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:27:06 [end_date_ymd] => 2025-01-26 02:27:06 [RateCDR] => 1 ) [2025-01-26 02:27: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-01-25 23:27:06' and `end` < '2025-01-26 02:27: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-01-26 02:27:18] Production.INFO: count ==611 [2025-01-26 02:27:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:27:06 - End Time 2025-01-26 02:27:06 [2025-01-26 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331262', 'tblTempUsageDetail_20' ) start [2025-01-26 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331262', 'tblTempUsageDetail_20' ) end [2025-01-26 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331262', 'tblTempVendorCDR_20' ) start [2025-01-26 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331262', 'tblTempVendorCDR_20' ) end [2025-01-26 02:27:18] Production.INFO: ProcessCDR(1,14331262,1,1,2) [2025-01-26 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331262', 'tblTempUsageDetail_20' ) start [2025-01-26 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331262', 'tblTempUsageDetail_20' ) end [2025-01-26 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:27:22] Production.INFO: ==24062== Releasing lock... [2025-01-26 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:27:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:28:05 [end_date_ymd] => 2025-01-26 02:28:05 [RateCDR] => 1 ) [2025-01-26 02:28: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-01-25 23:28:05' and `end` < '2025-01-26 02:28: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-01-26 02:28:18] Production.INFO: count ==611 [2025-01-26 02:28:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:28:05 - End Time 2025-01-26 02:28:05 [2025-01-26 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331267', 'tblTempUsageDetail_20' ) start [2025-01-26 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331267', 'tblTempUsageDetail_20' ) end [2025-01-26 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331267', 'tblTempVendorCDR_20' ) start [2025-01-26 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331267', 'tblTempVendorCDR_20' ) end [2025-01-26 02:28:18] Production.INFO: ProcessCDR(1,14331267,1,1,2) [2025-01-26 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331267', 'tblTempUsageDetail_20' ) start [2025-01-26 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331267', 'tblTempUsageDetail_20' ) end [2025-01-26 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:28:21] Production.INFO: ==24171== Releasing lock... [2025-01-26 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:28:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:29:05 [end_date_ymd] => 2025-01-26 02:29:05 [RateCDR] => 1 ) [2025-01-26 02:29: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-01-25 23:29:05' and `end` < '2025-01-26 02:29: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-01-26 02:29:18] Production.INFO: count ==611 [2025-01-26 02:29:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:29:05 - End Time 2025-01-26 02:29:05 [2025-01-26 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331272', 'tblTempUsageDetail_20' ) start [2025-01-26 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331272', 'tblTempUsageDetail_20' ) end [2025-01-26 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331272', 'tblTempVendorCDR_20' ) start [2025-01-26 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331272', 'tblTempVendorCDR_20' ) end [2025-01-26 02:29:18] Production.INFO: ProcessCDR(1,14331272,1,1,2) [2025-01-26 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331272', 'tblTempUsageDetail_20' ) start [2025-01-26 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331272', 'tblTempUsageDetail_20' ) end [2025-01-26 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:29:21] Production.INFO: ==24280== Releasing lock... [2025-01-26 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:29:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:30:06 [end_date_ymd] => 2025-01-26 02:30:06 [RateCDR] => 1 ) [2025-01-26 02:30: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-01-25 23:30:06' and `end` < '2025-01-26 02:30: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-01-26 02:30:18] Production.INFO: count ==619 [2025-01-26 02:30:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:30:06 - End Time 2025-01-26 02:30:06 [2025-01-26 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331278', 'tblTempUsageDetail_20' ) start [2025-01-26 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331278', 'tblTempUsageDetail_20' ) end [2025-01-26 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331278', 'tblTempVendorCDR_20' ) start [2025-01-26 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331278', 'tblTempVendorCDR_20' ) end [2025-01-26 02:30:18] Production.INFO: ProcessCDR(1,14331278,1,1,2) [2025-01-26 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331278', 'tblTempUsageDetail_20' ) start [2025-01-26 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331278', 'tblTempUsageDetail_20' ) end [2025-01-26 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:30:22] Production.INFO: ==24382== Releasing lock... [2025-01-26 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:30:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:31:05 [end_date_ymd] => 2025-01-26 02:31:05 [RateCDR] => 1 ) [2025-01-26 02:31: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-01-25 23:31:05' and `end` < '2025-01-26 02:31: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-01-26 02:31:17] Production.INFO: count ==620 [2025-01-26 02:31:17] Production.ERROR: pbx CDR StartTime 2025-01-25 23:31:05 - End Time 2025-01-26 02:31:05 [2025-01-26 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331283', 'tblTempUsageDetail_20' ) start [2025-01-26 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331283', 'tblTempUsageDetail_20' ) end [2025-01-26 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331283', 'tblTempVendorCDR_20' ) start [2025-01-26 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331283', 'tblTempVendorCDR_20' ) end [2025-01-26 02:31:17] Production.INFO: ProcessCDR(1,14331283,1,1,2) [2025-01-26 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331283', 'tblTempUsageDetail_20' ) start [2025-01-26 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331283', 'tblTempUsageDetail_20' ) end [2025-01-26 02:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:31:20] Production.INFO: ==24488== Releasing lock... [2025-01-26 02:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:31:20] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:32:05 [end_date_ymd] => 2025-01-26 02:32:05 [RateCDR] => 1 ) [2025-01-26 02:32: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-01-25 23:32:05' and `end` < '2025-01-26 02:32: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-01-26 02:32:18] Production.INFO: count ==621 [2025-01-26 02:32:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:32:05 - End Time 2025-01-26 02:32:05 [2025-01-26 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331288', 'tblTempUsageDetail_20' ) start [2025-01-26 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331288', 'tblTempUsageDetail_20' ) end [2025-01-26 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331288', 'tblTempVendorCDR_20' ) start [2025-01-26 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331288', 'tblTempVendorCDR_20' ) end [2025-01-26 02:32:18] Production.INFO: ProcessCDR(1,14331288,1,1,2) [2025-01-26 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331288', 'tblTempUsageDetail_20' ) start [2025-01-26 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331288', 'tblTempUsageDetail_20' ) end [2025-01-26 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:32:22] Production.INFO: ==24601== Releasing lock... [2025-01-26 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:32:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 02:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:33:06 [end_date_ymd] => 2025-01-26 02:33:06 [RateCDR] => 1 ) [2025-01-26 02:33: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-01-25 23:33:06' and `end` < '2025-01-26 02:33: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-01-26 02:33:19] Production.INFO: count ==613 [2025-01-26 02:33:19] Production.ERROR: pbx CDR StartTime 2025-01-25 23:33:06 - End Time 2025-01-26 02:33:06 [2025-01-26 02:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331293', 'tblTempUsageDetail_20' ) start [2025-01-26 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331293', 'tblTempUsageDetail_20' ) end [2025-01-26 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331293', 'tblTempVendorCDR_20' ) start [2025-01-26 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331293', 'tblTempVendorCDR_20' ) end [2025-01-26 02:33:19] Production.INFO: ProcessCDR(1,14331293,1,1,2) [2025-01-26 02:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331293', 'tblTempUsageDetail_20' ) start [2025-01-26 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331293', 'tblTempUsageDetail_20' ) end [2025-01-26 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:33:22] Production.INFO: ==24710== Releasing lock... [2025-01-26 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:33:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:34:05 [end_date_ymd] => 2025-01-26 02:34:05 [RateCDR] => 1 ) [2025-01-26 02:34: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-01-25 23:34:05' and `end` < '2025-01-26 02:34: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-01-26 02:34:17] Production.INFO: count ==613 [2025-01-26 02:34:17] Production.ERROR: pbx CDR StartTime 2025-01-25 23:34:05 - End Time 2025-01-26 02:34:05 [2025-01-26 02:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331298', 'tblTempUsageDetail_20' ) start [2025-01-26 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331298', 'tblTempUsageDetail_20' ) end [2025-01-26 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331298', 'tblTempVendorCDR_20' ) start [2025-01-26 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331298', 'tblTempVendorCDR_20' ) end [2025-01-26 02:34:17] Production.INFO: ProcessCDR(1,14331298,1,1,2) [2025-01-26 02:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331298', 'tblTempUsageDetail_20' ) start [2025-01-26 02:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331298', 'tblTempUsageDetail_20' ) end [2025-01-26 02:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:34:20] Production.INFO: ==24822== Releasing lock... [2025-01-26 02:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:34:20] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:35:05 [end_date_ymd] => 2025-01-26 02:35:05 [RateCDR] => 1 ) [2025-01-26 02:35: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-01-25 23:35:05' and `end` < '2025-01-26 02:35: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-01-26 02:35:18] Production.INFO: count ==613 [2025-01-26 02:35:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:35:05 - End Time 2025-01-26 02:35:05 [2025-01-26 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331303', 'tblTempUsageDetail_20' ) start [2025-01-26 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331303', 'tblTempUsageDetail_20' ) end [2025-01-26 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331303', 'tblTempVendorCDR_20' ) start [2025-01-26 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331303', 'tblTempVendorCDR_20' ) end [2025-01-26 02:35:18] Production.INFO: ProcessCDR(1,14331303,1,1,2) [2025-01-26 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331303', 'tblTempUsageDetail_20' ) start [2025-01-26 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331303', 'tblTempUsageDetail_20' ) end [2025-01-26 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:35:21] Production.INFO: ==24944== Releasing lock... [2025-01-26 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:35:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:36:05 [end_date_ymd] => 2025-01-26 02:36:05 [RateCDR] => 1 ) [2025-01-26 02:36: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-01-25 23:36:05' and `end` < '2025-01-26 02:36: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-01-26 02:36:19] Production.INFO: count ==613 [2025-01-26 02:36:19] Production.ERROR: pbx CDR StartTime 2025-01-25 23:36:05 - End Time 2025-01-26 02:36:05 [2025-01-26 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331308', 'tblTempUsageDetail_20' ) start [2025-01-26 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331308', 'tblTempUsageDetail_20' ) end [2025-01-26 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331308', 'tblTempVendorCDR_20' ) start [2025-01-26 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331308', 'tblTempVendorCDR_20' ) end [2025-01-26 02:36:19] Production.INFO: ProcessCDR(1,14331308,1,1,2) [2025-01-26 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331308', 'tblTempUsageDetail_20' ) start [2025-01-26 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331308', 'tblTempUsageDetail_20' ) end [2025-01-26 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:36:22] Production.INFO: ==25051== Releasing lock... [2025-01-26 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:36:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:37:05 [end_date_ymd] => 2025-01-26 02:37:05 [RateCDR] => 1 ) [2025-01-26 02:37: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-01-25 23:37:05' and `end` < '2025-01-26 02:37: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-01-26 02:37:17] Production.INFO: count ==605 [2025-01-26 02:37:17] Production.ERROR: pbx CDR StartTime 2025-01-25 23:37:05 - End Time 2025-01-26 02:37:05 [2025-01-26 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331313', 'tblTempUsageDetail_20' ) start [2025-01-26 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331313', 'tblTempUsageDetail_20' ) end [2025-01-26 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331313', 'tblTempVendorCDR_20' ) start [2025-01-26 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331313', 'tblTempVendorCDR_20' ) end [2025-01-26 02:37:17] Production.INFO: ProcessCDR(1,14331313,1,1,2) [2025-01-26 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331313', 'tblTempUsageDetail_20' ) start [2025-01-26 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331313', 'tblTempUsageDetail_20' ) end [2025-01-26 02:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:37:20] Production.INFO: ==25190== Releasing lock... [2025-01-26 02:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:37:20] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:38:05 [end_date_ymd] => 2025-01-26 02:38:05 [RateCDR] => 1 ) [2025-01-26 02:38: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-01-25 23:38:05' and `end` < '2025-01-26 02:38: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-01-26 02:38:17] Production.INFO: count ==601 [2025-01-26 02:38:17] Production.ERROR: pbx CDR StartTime 2025-01-25 23:38:05 - End Time 2025-01-26 02:38:05 [2025-01-26 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331315', 'tblTempUsageDetail_20' ) start [2025-01-26 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331315', 'tblTempUsageDetail_20' ) end [2025-01-26 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331315', 'tblTempVendorCDR_20' ) start [2025-01-26 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331315', 'tblTempVendorCDR_20' ) end [2025-01-26 02:38:17] Production.INFO: ProcessCDR(1,14331315,1,1,2) [2025-01-26 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331315', 'tblTempUsageDetail_20' ) start [2025-01-26 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331315', 'tblTempUsageDetail_20' ) end [2025-01-26 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:38:21] Production.INFO: ==25294== Releasing lock... [2025-01-26 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:38:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:39:05 [end_date_ymd] => 2025-01-26 02:39:05 [RateCDR] => 1 ) [2025-01-26 02:39: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-01-25 23:39:05' and `end` < '2025-01-26 02:39: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-01-26 02:39:17] Production.INFO: count ==600 [2025-01-26 02:39:17] Production.ERROR: pbx CDR StartTime 2025-01-25 23:39:05 - End Time 2025-01-26 02:39:05 [2025-01-26 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331323', 'tblTempUsageDetail_20' ) start [2025-01-26 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331323', 'tblTempUsageDetail_20' ) end [2025-01-26 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331323', 'tblTempVendorCDR_20' ) start [2025-01-26 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331323', 'tblTempVendorCDR_20' ) end [2025-01-26 02:39:17] Production.INFO: ProcessCDR(1,14331323,1,1,2) [2025-01-26 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331323', 'tblTempUsageDetail_20' ) start [2025-01-26 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331323', 'tblTempUsageDetail_20' ) end [2025-01-26 02:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:39:20] Production.INFO: ==25399== Releasing lock... [2025-01-26 02:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:39:20] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:40:06 [end_date_ymd] => 2025-01-26 02:40:06 [RateCDR] => 1 ) [2025-01-26 02:40: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-01-25 23:40:06' and `end` < '2025-01-26 02:40: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-01-26 02:40:19] Production.INFO: count ==616 [2025-01-26 02:40:19] Production.ERROR: pbx CDR StartTime 2025-01-25 23:40:06 - End Time 2025-01-26 02:40:06 [2025-01-26 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331329', 'tblTempUsageDetail_20' ) start [2025-01-26 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331329', 'tblTempUsageDetail_20' ) end [2025-01-26 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331329', 'tblTempVendorCDR_20' ) start [2025-01-26 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331329', 'tblTempVendorCDR_20' ) end [2025-01-26 02:40:19] Production.INFO: ProcessCDR(1,14331329,1,1,2) [2025-01-26 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331329', 'tblTempUsageDetail_20' ) start [2025-01-26 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331329', 'tblTempUsageDetail_20' ) end [2025-01-26 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:40:22] Production.INFO: ==25493== Releasing lock... [2025-01-26 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:40:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:41:05 [end_date_ymd] => 2025-01-26 02:41:05 [RateCDR] => 1 ) [2025-01-26 02:41: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-01-25 23:41:05' and `end` < '2025-01-26 02:41: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-01-26 02:41:17] Production.INFO: count ==631 [2025-01-26 02:41:17] Production.ERROR: pbx CDR StartTime 2025-01-25 23:41:05 - End Time 2025-01-26 02:41:05 [2025-01-26 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331334', 'tblTempUsageDetail_20' ) start [2025-01-26 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331334', 'tblTempUsageDetail_20' ) end [2025-01-26 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331334', 'tblTempVendorCDR_20' ) start [2025-01-26 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331334', 'tblTempVendorCDR_20' ) end [2025-01-26 02:41:17] Production.INFO: ProcessCDR(1,14331334,1,1,2) [2025-01-26 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331334', 'tblTempUsageDetail_20' ) start [2025-01-26 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331334', 'tblTempUsageDetail_20' ) end [2025-01-26 02:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:41:20] Production.INFO: ==25572== Releasing lock... [2025-01-26 02:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:41:20] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:42:05 [end_date_ymd] => 2025-01-26 02:42:05 [RateCDR] => 1 ) [2025-01-26 02:42: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-01-25 23:42:05' and `end` < '2025-01-26 02:42: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-01-26 02:42:19] Production.INFO: count ==629 [2025-01-26 02:42:19] Production.ERROR: pbx CDR StartTime 2025-01-25 23:42:05 - End Time 2025-01-26 02:42:05 [2025-01-26 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331339', 'tblTempUsageDetail_20' ) start [2025-01-26 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331339', 'tblTempUsageDetail_20' ) end [2025-01-26 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331339', 'tblTempVendorCDR_20' ) start [2025-01-26 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331339', 'tblTempVendorCDR_20' ) end [2025-01-26 02:42:19] Production.INFO: ProcessCDR(1,14331339,1,1,2) [2025-01-26 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331339', 'tblTempUsageDetail_20' ) start [2025-01-26 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331339', 'tblTempUsageDetail_20' ) end [2025-01-26 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:42:22] Production.INFO: ==25646== Releasing lock... [2025-01-26 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:42:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:43:06 [end_date_ymd] => 2025-01-26 02:43:06 [RateCDR] => 1 ) [2025-01-26 02:43: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-01-25 23:43:06' and `end` < '2025-01-26 02:43: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-01-26 02:43:18] Production.INFO: count ==630 [2025-01-26 02:43:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:43:06 - End Time 2025-01-26 02:43:06 [2025-01-26 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331344', 'tblTempUsageDetail_20' ) start [2025-01-26 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331344', 'tblTempUsageDetail_20' ) end [2025-01-26 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331344', 'tblTempVendorCDR_20' ) start [2025-01-26 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331344', 'tblTempVendorCDR_20' ) end [2025-01-26 02:43:18] Production.INFO: ProcessCDR(1,14331344,1,1,2) [2025-01-26 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331344', 'tblTempUsageDetail_20' ) start [2025-01-26 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331344', 'tblTempUsageDetail_20' ) end [2025-01-26 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:43:21] Production.INFO: ==25722== Releasing lock... [2025-01-26 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:43:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:44:05 [end_date_ymd] => 2025-01-26 02:44:05 [RateCDR] => 1 ) [2025-01-26 02:44: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-01-25 23:44:05' and `end` < '2025-01-26 02:44: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-01-26 02:44:18] Production.INFO: count ==626 [2025-01-26 02:44:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:44:05 - End Time 2025-01-26 02:44:05 [2025-01-26 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331349', 'tblTempUsageDetail_20' ) start [2025-01-26 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331349', 'tblTempUsageDetail_20' ) end [2025-01-26 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331349', 'tblTempVendorCDR_20' ) start [2025-01-26 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331349', 'tblTempVendorCDR_20' ) end [2025-01-26 02:44:18] Production.INFO: ProcessCDR(1,14331349,1,1,2) [2025-01-26 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331349', 'tblTempUsageDetail_20' ) start [2025-01-26 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331349', 'tblTempUsageDetail_20' ) end [2025-01-26 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:44:21] Production.INFO: ==25802== Releasing lock... [2025-01-26 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:44:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:45:05 [end_date_ymd] => 2025-01-26 02:45:05 [RateCDR] => 1 ) [2025-01-26 02:45: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-01-25 23:45:05' and `end` < '2025-01-26 02:45: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-01-26 02:45:18] Production.INFO: count ==623 [2025-01-26 02:45:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:45:05 - End Time 2025-01-26 02:45:05 [2025-01-26 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331354', 'tblTempUsageDetail_20' ) start [2025-01-26 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331354', 'tblTempUsageDetail_20' ) end [2025-01-26 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331354', 'tblTempVendorCDR_20' ) start [2025-01-26 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331354', 'tblTempVendorCDR_20' ) end [2025-01-26 02:45:18] Production.INFO: ProcessCDR(1,14331354,1,1,2) [2025-01-26 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331354', 'tblTempUsageDetail_20' ) start [2025-01-26 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331354', 'tblTempUsageDetail_20' ) end [2025-01-26 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:45:21] Production.INFO: ==25882== Releasing lock... [2025-01-26 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:45:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:46:05 [end_date_ymd] => 2025-01-26 02:46:05 [RateCDR] => 1 ) [2025-01-26 02:46: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-01-25 23:46:05' and `end` < '2025-01-26 02:46: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-01-26 02:46:18] Production.INFO: count ==620 [2025-01-26 02:46:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:46:05 - End Time 2025-01-26 02:46:05 [2025-01-26 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331359', 'tblTempUsageDetail_20' ) start [2025-01-26 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331359', 'tblTempUsageDetail_20' ) end [2025-01-26 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331359', 'tblTempVendorCDR_20' ) start [2025-01-26 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331359', 'tblTempVendorCDR_20' ) end [2025-01-26 02:46:18] Production.INFO: ProcessCDR(1,14331359,1,1,2) [2025-01-26 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331359', 'tblTempUsageDetail_20' ) start [2025-01-26 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331359', 'tblTempUsageDetail_20' ) end [2025-01-26 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:46:21] Production.INFO: ==25961== Releasing lock... [2025-01-26 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:46:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:47:05 [end_date_ymd] => 2025-01-26 02:47:05 [RateCDR] => 1 ) [2025-01-26 02:47: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-01-25 23:47:05' and `end` < '2025-01-26 02:47: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-01-26 02:47:18] Production.INFO: count ==617 [2025-01-26 02:47:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:47:05 - End Time 2025-01-26 02:47:05 [2025-01-26 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331364', 'tblTempUsageDetail_20' ) start [2025-01-26 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331364', 'tblTempUsageDetail_20' ) end [2025-01-26 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331364', 'tblTempVendorCDR_20' ) start [2025-01-26 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331364', 'tblTempVendorCDR_20' ) end [2025-01-26 02:47:18] Production.INFO: ProcessCDR(1,14331364,1,1,2) [2025-01-26 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331364', 'tblTempUsageDetail_20' ) start [2025-01-26 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331364', 'tblTempUsageDetail_20' ) end [2025-01-26 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:47:21] Production.INFO: ==26038== Releasing lock... [2025-01-26 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:47:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:48:04 [end_date_ymd] => 2025-01-26 02:48:04 [RateCDR] => 1 ) [2025-01-26 02:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-25 23:48:04' and `end` < '2025-01-26 02:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 02:48:18] Production.INFO: count ==617 [2025-01-26 02:48:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:48:04 - End Time 2025-01-26 02:48:04 [2025-01-26 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331369', 'tblTempUsageDetail_20' ) start [2025-01-26 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331369', 'tblTempUsageDetail_20' ) end [2025-01-26 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331369', 'tblTempVendorCDR_20' ) start [2025-01-26 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331369', 'tblTempVendorCDR_20' ) end [2025-01-26 02:48:18] Production.INFO: ProcessCDR(1,14331369,1,1,2) [2025-01-26 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331369', 'tblTempUsageDetail_20' ) start [2025-01-26 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331369', 'tblTempUsageDetail_20' ) end [2025-01-26 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:48:21] Production.INFO: ==26117== Releasing lock... [2025-01-26 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:48:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:49:05 [end_date_ymd] => 2025-01-26 02:49:05 [RateCDR] => 1 ) [2025-01-26 02:49: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-01-25 23:49:05' and `end` < '2025-01-26 02:49: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-01-26 02:49:18] Production.INFO: count ==617 [2025-01-26 02:49:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:49:05 - End Time 2025-01-26 02:49:05 [2025-01-26 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331374', 'tblTempUsageDetail_20' ) start [2025-01-26 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331374', 'tblTempUsageDetail_20' ) end [2025-01-26 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331374', 'tblTempVendorCDR_20' ) start [2025-01-26 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331374', 'tblTempVendorCDR_20' ) end [2025-01-26 02:49:18] Production.INFO: ProcessCDR(1,14331374,1,1,2) [2025-01-26 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331374', 'tblTempUsageDetail_20' ) start [2025-01-26 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331374', 'tblTempUsageDetail_20' ) end [2025-01-26 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:49:21] Production.INFO: ==26202== Releasing lock... [2025-01-26 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:49:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:50:05 [end_date_ymd] => 2025-01-26 02:50:05 [RateCDR] => 1 ) [2025-01-26 02:50: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-01-25 23:50:05' and `end` < '2025-01-26 02:50: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-01-26 02:50:18] Production.INFO: count ==628 [2025-01-26 02:50:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:50:05 - End Time 2025-01-26 02:50:05 [2025-01-26 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331379', 'tblTempUsageDetail_20' ) start [2025-01-26 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331379', 'tblTempUsageDetail_20' ) end [2025-01-26 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331379', 'tblTempVendorCDR_20' ) start [2025-01-26 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331379', 'tblTempVendorCDR_20' ) end [2025-01-26 02:50:18] Production.INFO: ProcessCDR(1,14331379,1,1,2) [2025-01-26 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331379', 'tblTempUsageDetail_20' ) start [2025-01-26 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331379', 'tblTempUsageDetail_20' ) end [2025-01-26 02:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:50:21] Production.INFO: ==26279== Releasing lock... [2025-01-26 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:50:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:51:05 [end_date_ymd] => 2025-01-26 02:51:05 [RateCDR] => 1 ) [2025-01-26 02:51: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-01-25 23:51:05' and `end` < '2025-01-26 02:51: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-01-26 02:51:19] Production.INFO: count ==627 [2025-01-26 02:51:19] Production.ERROR: pbx CDR StartTime 2025-01-25 23:51:05 - End Time 2025-01-26 02:51:05 [2025-01-26 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331385', 'tblTempUsageDetail_20' ) start [2025-01-26 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331385', 'tblTempUsageDetail_20' ) end [2025-01-26 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331385', 'tblTempVendorCDR_20' ) start [2025-01-26 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331385', 'tblTempVendorCDR_20' ) end [2025-01-26 02:51:19] Production.INFO: ProcessCDR(1,14331385,1,1,2) [2025-01-26 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331385', 'tblTempUsageDetail_20' ) start [2025-01-26 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331385', 'tblTempUsageDetail_20' ) end [2025-01-26 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:51:22] Production.INFO: ==26359== Releasing lock... [2025-01-26 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:51:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:52:06 [end_date_ymd] => 2025-01-26 02:52:06 [RateCDR] => 1 ) [2025-01-26 02:52: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-01-25 23:52:06' and `end` < '2025-01-26 02:52: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-01-26 02:52:18] Production.INFO: count ==624 [2025-01-26 02:52:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:52:06 - End Time 2025-01-26 02:52:06 [2025-01-26 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331390', 'tblTempUsageDetail_20' ) start [2025-01-26 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331390', 'tblTempUsageDetail_20' ) end [2025-01-26 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331390', 'tblTempVendorCDR_20' ) start [2025-01-26 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331390', 'tblTempVendorCDR_20' ) end [2025-01-26 02:52:19] Production.INFO: ProcessCDR(1,14331390,1,1,2) [2025-01-26 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331390', 'tblTempUsageDetail_20' ) start [2025-01-26 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331390', 'tblTempUsageDetail_20' ) end [2025-01-26 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:52:22] Production.INFO: ==26440== Releasing lock... [2025-01-26 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:52:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:53:05 [end_date_ymd] => 2025-01-26 02:53:05 [RateCDR] => 1 ) [2025-01-26 02:53: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-01-25 23:53:05' and `end` < '2025-01-26 02:53: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-01-26 02:53:18] Production.INFO: count ==625 [2025-01-26 02:53:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:53:05 - End Time 2025-01-26 02:53:05 [2025-01-26 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331395', 'tblTempUsageDetail_20' ) start [2025-01-26 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331395', 'tblTempUsageDetail_20' ) end [2025-01-26 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331395', 'tblTempVendorCDR_20' ) start [2025-01-26 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331395', 'tblTempVendorCDR_20' ) end [2025-01-26 02:53:18] Production.INFO: ProcessCDR(1,14331395,1,1,2) [2025-01-26 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331395', 'tblTempUsageDetail_20' ) start [2025-01-26 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331395', 'tblTempUsageDetail_20' ) end [2025-01-26 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:53:23] Production.INFO: ==26555== Releasing lock... [2025-01-26 02:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:53:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:54:06 [end_date_ymd] => 2025-01-26 02:54:06 [RateCDR] => 1 ) [2025-01-26 02:54: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-01-25 23:54:06' and `end` < '2025-01-26 02:54: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-01-26 02:54:18] Production.INFO: count ==625 [2025-01-26 02:54:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:54:06 - End Time 2025-01-26 02:54:06 [2025-01-26 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331400', 'tblTempUsageDetail_20' ) start [2025-01-26 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331400', 'tblTempUsageDetail_20' ) end [2025-01-26 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331400', 'tblTempVendorCDR_20' ) start [2025-01-26 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331400', 'tblTempVendorCDR_20' ) end [2025-01-26 02:54:18] Production.INFO: ProcessCDR(1,14331400,1,1,2) [2025-01-26 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331400', 'tblTempUsageDetail_20' ) start [2025-01-26 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331400', 'tblTempUsageDetail_20' ) end [2025-01-26 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:54:22] Production.INFO: ==26639== Releasing lock... [2025-01-26 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:54:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:55:06 [end_date_ymd] => 2025-01-26 02:55:06 [RateCDR] => 1 ) [2025-01-26 02:55: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-01-25 23:55:06' and `end` < '2025-01-26 02:55: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-01-26 02:55:18] Production.INFO: count ==624 [2025-01-26 02:55:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:55:06 - End Time 2025-01-26 02:55:06 [2025-01-26 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331405', 'tblTempUsageDetail_20' ) start [2025-01-26 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331405', 'tblTempUsageDetail_20' ) end [2025-01-26 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331405', 'tblTempVendorCDR_20' ) start [2025-01-26 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331405', 'tblTempVendorCDR_20' ) end [2025-01-26 02:55:18] Production.INFO: ProcessCDR(1,14331405,1,1,2) [2025-01-26 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331405', 'tblTempUsageDetail_20' ) start [2025-01-26 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331405', 'tblTempUsageDetail_20' ) end [2025-01-26 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:55:21] Production.INFO: ==26718== Releasing lock... [2025-01-26 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:55:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:56:06 [end_date_ymd] => 2025-01-26 02:56:06 [RateCDR] => 1 ) [2025-01-26 02:56: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-01-25 23:56:06' and `end` < '2025-01-26 02:56: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-01-26 02:56:19] Production.INFO: count ==624 [2025-01-26 02:56:19] Production.ERROR: pbx CDR StartTime 2025-01-25 23:56:06 - End Time 2025-01-26 02:56:06 [2025-01-26 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331410', 'tblTempUsageDetail_20' ) start [2025-01-26 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331410', 'tblTempUsageDetail_20' ) end [2025-01-26 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331410', 'tblTempVendorCDR_20' ) start [2025-01-26 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331410', 'tblTempVendorCDR_20' ) end [2025-01-26 02:56:19] Production.INFO: ProcessCDR(1,14331410,1,1,2) [2025-01-26 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331410', 'tblTempUsageDetail_20' ) start [2025-01-26 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331410', 'tblTempUsageDetail_20' ) end [2025-01-26 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:56:22] Production.INFO: ==26803== Releasing lock... [2025-01-26 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:56:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:57:05 [end_date_ymd] => 2025-01-26 02:57:05 [RateCDR] => 1 ) [2025-01-26 02:57: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-01-25 23:57:05' and `end` < '2025-01-26 02:57: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-01-26 02:57:18] Production.INFO: count ==624 [2025-01-26 02:57:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:57:05 - End Time 2025-01-26 02:57:05 [2025-01-26 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331415', 'tblTempUsageDetail_20' ) start [2025-01-26 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331415', 'tblTempUsageDetail_20' ) end [2025-01-26 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331415', 'tblTempVendorCDR_20' ) start [2025-01-26 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331415', 'tblTempVendorCDR_20' ) end [2025-01-26 02:57:19] Production.INFO: ProcessCDR(1,14331415,1,1,2) [2025-01-26 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331415', 'tblTempUsageDetail_20' ) start [2025-01-26 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331415', 'tblTempUsageDetail_20' ) end [2025-01-26 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:57:21] Production.INFO: ==26886== Releasing lock... [2025-01-26 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:57:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:58:05 [end_date_ymd] => 2025-01-26 02:58:05 [RateCDR] => 1 ) [2025-01-26 02:58: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-01-25 23:58:05' and `end` < '2025-01-26 02:58: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-01-26 02:58:18] Production.INFO: count ==620 [2025-01-26 02:58:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:58:05 - End Time 2025-01-26 02:58:05 [2025-01-26 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331420', 'tblTempUsageDetail_20' ) start [2025-01-26 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331420', 'tblTempUsageDetail_20' ) end [2025-01-26 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331420', 'tblTempVendorCDR_20' ) start [2025-01-26 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331420', 'tblTempVendorCDR_20' ) end [2025-01-26 02:58:18] Production.INFO: ProcessCDR(1,14331420,1,1,2) [2025-01-26 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331420', 'tblTempUsageDetail_20' ) start [2025-01-26 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331420', 'tblTempUsageDetail_20' ) end [2025-01-26 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:58:21] Production.INFO: ==26965== Releasing lock... [2025-01-26 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:58:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-25 23:59:05 [end_date_ymd] => 2025-01-26 02:59:05 [RateCDR] => 1 ) [2025-01-26 02:59: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-01-25 23:59:05' and `end` < '2025-01-26 02:59: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-01-26 02:59:18] Production.INFO: count ==620 [2025-01-26 02:59:18] Production.ERROR: pbx CDR StartTime 2025-01-25 23:59:05 - End Time 2025-01-26 02:59:05 [2025-01-26 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331425', 'tblTempUsageDetail_20' ) start [2025-01-26 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331425', 'tblTempUsageDetail_20' ) end [2025-01-26 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331425', 'tblTempVendorCDR_20' ) start [2025-01-26 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331425', 'tblTempVendorCDR_20' ) end [2025-01-26 02:59:18] Production.INFO: ProcessCDR(1,14331425,1,1,2) [2025-01-26 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331425', 'tblTempUsageDetail_20' ) start [2025-01-26 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331425', 'tblTempUsageDetail_20' ) end [2025-01-26 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 02:59:21] Production.INFO: ==27044== Releasing lock... [2025-01-26 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 02:59:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:00:06 [end_date_ymd] => 2025-01-26 03:00:06 [RateCDR] => 1 ) [2025-01-26 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-01-26 00:00:06' and `end` < '2025-01-26 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-01-26 03:00:19] Production.INFO: count ==628 [2025-01-26 03:00:19] Production.ERROR: pbx CDR StartTime 2025-01-26 00:00:06 - End Time 2025-01-26 03:00:06 [2025-01-26 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331431', 'tblTempUsageDetail_20' ) start [2025-01-26 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331431', 'tblTempUsageDetail_20' ) end [2025-01-26 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331431', 'tblTempVendorCDR_20' ) start [2025-01-26 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331431', 'tblTempVendorCDR_20' ) end [2025-01-26 03:00:19] Production.INFO: ProcessCDR(1,14331431,1,1,2) [2025-01-26 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331431', 'tblTempUsageDetail_20' ) start [2025-01-26 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331431', 'tblTempUsageDetail_20' ) end [2025-01-26 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:00:22] Production.INFO: ==27130== Releasing lock... [2025-01-26 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:00:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:01:05 [end_date_ymd] => 2025-01-26 03:01:05 [RateCDR] => 1 ) [2025-01-26 03:01: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-01-26 00:01:05' and `end` < '2025-01-26 03:01: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-01-26 03:01:18] Production.INFO: count ==626 [2025-01-26 03:01:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:01:05 - End Time 2025-01-26 03:01:05 [2025-01-26 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331436', 'tblTempUsageDetail_20' ) start [2025-01-26 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331436', 'tblTempUsageDetail_20' ) end [2025-01-26 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331436', 'tblTempVendorCDR_20' ) start [2025-01-26 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331436', 'tblTempVendorCDR_20' ) end [2025-01-26 03:01:19] Production.INFO: ProcessCDR(1,14331436,1,1,2) [2025-01-26 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331436', 'tblTempUsageDetail_20' ) start [2025-01-26 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331436', 'tblTempUsageDetail_20' ) end [2025-01-26 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:01:22] Production.INFO: ==27221== Releasing lock... [2025-01-26 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:01:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:02:06 [end_date_ymd] => 2025-01-26 03:02:06 [RateCDR] => 1 ) [2025-01-26 03:02: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-01-26 00:02:06' and `end` < '2025-01-26 03:02: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-01-26 03:02:18] Production.INFO: count ==626 [2025-01-26 03:02:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:02:06 - End Time 2025-01-26 03:02:06 [2025-01-26 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331441', 'tblTempUsageDetail_20' ) start [2025-01-26 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331441', 'tblTempUsageDetail_20' ) end [2025-01-26 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331441', 'tblTempVendorCDR_20' ) start [2025-01-26 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331441', 'tblTempVendorCDR_20' ) end [2025-01-26 03:02:18] Production.INFO: ProcessCDR(1,14331441,1,1,2) [2025-01-26 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331441', 'tblTempUsageDetail_20' ) start [2025-01-26 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331441', 'tblTempUsageDetail_20' ) end [2025-01-26 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:02:22] Production.INFO: ==27383== Releasing lock... [2025-01-26 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:02:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:03:05 [end_date_ymd] => 2025-01-26 03:03:05 [RateCDR] => 1 ) [2025-01-26 03:03: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-01-26 00:03:05' and `end` < '2025-01-26 03:03: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-01-26 03:03:19] Production.INFO: count ==626 [2025-01-26 03:03:19] Production.ERROR: pbx CDR StartTime 2025-01-26 00:03:05 - End Time 2025-01-26 03:03:05 [2025-01-26 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331446', 'tblTempUsageDetail_20' ) start [2025-01-26 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331446', 'tblTempUsageDetail_20' ) end [2025-01-26 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331446', 'tblTempVendorCDR_20' ) start [2025-01-26 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331446', 'tblTempVendorCDR_20' ) end [2025-01-26 03:03:19] Production.INFO: ProcessCDR(1,14331446,1,1,2) [2025-01-26 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331446', 'tblTempUsageDetail_20' ) start [2025-01-26 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331446', 'tblTempUsageDetail_20' ) end [2025-01-26 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:03:22] Production.INFO: ==27469== Releasing lock... [2025-01-26 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:03:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:04:06 [end_date_ymd] => 2025-01-26 03:04:06 [RateCDR] => 1 ) [2025-01-26 03:04: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-01-26 00:04:06' and `end` < '2025-01-26 03:04: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-01-26 03:04:18] Production.INFO: count ==622 [2025-01-26 03:04:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:04:06 - End Time 2025-01-26 03:04:06 [2025-01-26 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331451', 'tblTempUsageDetail_20' ) start [2025-01-26 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331451', 'tblTempUsageDetail_20' ) end [2025-01-26 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331451', 'tblTempVendorCDR_20' ) start [2025-01-26 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331451', 'tblTempVendorCDR_20' ) end [2025-01-26 03:04:18] Production.INFO: ProcessCDR(1,14331451,1,1,2) [2025-01-26 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331451', 'tblTempUsageDetail_20' ) start [2025-01-26 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331451', 'tblTempUsageDetail_20' ) end [2025-01-26 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:04:22] Production.INFO: ==27549== Releasing lock... [2025-01-26 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:04:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:05:05 [end_date_ymd] => 2025-01-26 03:05:05 [RateCDR] => 1 ) [2025-01-26 03:05: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-01-26 00:05:05' and `end` < '2025-01-26 03:05: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-01-26 03:05:18] Production.INFO: count ==622 [2025-01-26 03:05:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:05:05 - End Time 2025-01-26 03:05:05 [2025-01-26 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331456', 'tblTempUsageDetail_20' ) start [2025-01-26 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331456', 'tblTempUsageDetail_20' ) end [2025-01-26 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331456', 'tblTempVendorCDR_20' ) start [2025-01-26 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331456', 'tblTempVendorCDR_20' ) end [2025-01-26 03:05:18] Production.INFO: ProcessCDR(1,14331456,1,1,2) [2025-01-26 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331456', 'tblTempUsageDetail_20' ) start [2025-01-26 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331456', 'tblTempUsageDetail_20' ) end [2025-01-26 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:05:21] Production.INFO: ==27628== Releasing lock... [2025-01-26 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:05:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:06:05 [end_date_ymd] => 2025-01-26 03:06:05 [RateCDR] => 1 ) [2025-01-26 03:06: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-01-26 00:06:05' and `end` < '2025-01-26 03:06: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-01-26 03:06:18] Production.INFO: count ==621 [2025-01-26 03:06:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:06:05 - End Time 2025-01-26 03:06:05 [2025-01-26 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331461', 'tblTempUsageDetail_20' ) start [2025-01-26 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331461', 'tblTempUsageDetail_20' ) end [2025-01-26 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331461', 'tblTempVendorCDR_20' ) start [2025-01-26 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331461', 'tblTempVendorCDR_20' ) end [2025-01-26 03:06:18] Production.INFO: ProcessCDR(1,14331461,1,1,2) [2025-01-26 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331461', 'tblTempUsageDetail_20' ) start [2025-01-26 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331461', 'tblTempUsageDetail_20' ) end [2025-01-26 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:06:21] Production.INFO: ==27784== Releasing lock... [2025-01-26 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:06:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:07:05 [end_date_ymd] => 2025-01-26 03:07:05 [RateCDR] => 1 ) [2025-01-26 03:07: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-01-26 00:07:05' and `end` < '2025-01-26 03:07: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-01-26 03:07:18] Production.INFO: count ==620 [2025-01-26 03:07:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:07:05 - End Time 2025-01-26 03:07:05 [2025-01-26 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331466', 'tblTempUsageDetail_20' ) start [2025-01-26 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331466', 'tblTempUsageDetail_20' ) end [2025-01-26 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331466', 'tblTempVendorCDR_20' ) start [2025-01-26 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331466', 'tblTempVendorCDR_20' ) end [2025-01-26 03:07:18] Production.INFO: ProcessCDR(1,14331466,1,1,2) [2025-01-26 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331466', 'tblTempUsageDetail_20' ) start [2025-01-26 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331466', 'tblTempUsageDetail_20' ) end [2025-01-26 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:07:21] Production.INFO: ==27862== Releasing lock... [2025-01-26 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:07:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:08:05 [end_date_ymd] => 2025-01-26 03:08:05 [RateCDR] => 1 ) [2025-01-26 03:08: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-01-26 00:08:05' and `end` < '2025-01-26 03:08: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-01-26 03:08:18] Production.INFO: count ==620 [2025-01-26 03:08:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:08:05 - End Time 2025-01-26 03:08:05 [2025-01-26 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331471', 'tblTempUsageDetail_20' ) start [2025-01-26 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331471', 'tblTempUsageDetail_20' ) end [2025-01-26 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331471', 'tblTempVendorCDR_20' ) start [2025-01-26 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331471', 'tblTempVendorCDR_20' ) end [2025-01-26 03:08:18] Production.INFO: ProcessCDR(1,14331471,1,1,2) [2025-01-26 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331471', 'tblTempUsageDetail_20' ) start [2025-01-26 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331471', 'tblTempUsageDetail_20' ) end [2025-01-26 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:08:21] Production.INFO: ==27979== Releasing lock... [2025-01-26 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:08:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:09:05 [end_date_ymd] => 2025-01-26 03:09:05 [RateCDR] => 1 ) [2025-01-26 03:09: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-01-26 00:09:05' and `end` < '2025-01-26 03:09: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-01-26 03:09:19] Production.INFO: count ==619 [2025-01-26 03:09:19] Production.ERROR: pbx CDR StartTime 2025-01-26 00:09:05 - End Time 2025-01-26 03:09:05 [2025-01-26 03:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331476', 'tblTempUsageDetail_20' ) start [2025-01-26 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331476', 'tblTempUsageDetail_20' ) end [2025-01-26 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331476', 'tblTempVendorCDR_20' ) start [2025-01-26 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331476', 'tblTempVendorCDR_20' ) end [2025-01-26 03:09:19] Production.INFO: ProcessCDR(1,14331476,1,1,2) [2025-01-26 03:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331476', 'tblTempUsageDetail_20' ) start [2025-01-26 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331476', 'tblTempUsageDetail_20' ) end [2025-01-26 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:09:22] Production.INFO: ==28140== Releasing lock... [2025-01-26 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:09:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:10:06 [end_date_ymd] => 2025-01-26 03:10:06 [RateCDR] => 1 ) [2025-01-26 03:10: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-01-26 00:10:06' and `end` < '2025-01-26 03:10: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-01-26 03:10:18] Production.INFO: count ==608 [2025-01-26 03:10:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:10:06 - End Time 2025-01-26 03:10:06 [2025-01-26 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331482', 'tblTempUsageDetail_20' ) start [2025-01-26 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331482', 'tblTempUsageDetail_20' ) end [2025-01-26 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331482', 'tblTempVendorCDR_20' ) start [2025-01-26 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331482', 'tblTempVendorCDR_20' ) end [2025-01-26 03:10:18] Production.INFO: ProcessCDR(1,14331482,1,1,2) [2025-01-26 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331482', 'tblTempUsageDetail_20' ) start [2025-01-26 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331482', 'tblTempUsageDetail_20' ) end [2025-01-26 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:10:21] Production.INFO: ==28219== Releasing lock... [2025-01-26 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:10:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 03:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:11:04 [end_date_ymd] => 2025-01-26 03:11:04 [RateCDR] => 1 ) [2025-01-26 03:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 00:11:04' and `end` < '2025-01-26 03:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 03:11:17] Production.INFO: count ==588 [2025-01-26 03:11:17] Production.ERROR: pbx CDR StartTime 2025-01-26 00:11:04 - End Time 2025-01-26 03:11:04 [2025-01-26 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331487', 'tblTempUsageDetail_20' ) start [2025-01-26 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331487', 'tblTempUsageDetail_20' ) end [2025-01-26 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331487', 'tblTempVendorCDR_20' ) start [2025-01-26 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331487', 'tblTempVendorCDR_20' ) end [2025-01-26 03:11:17] Production.INFO: ProcessCDR(1,14331487,1,1,2) [2025-01-26 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331487', 'tblTempUsageDetail_20' ) start [2025-01-26 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331487', 'tblTempUsageDetail_20' ) end [2025-01-26 03:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:11:20] Production.INFO: ==28296== Releasing lock... [2025-01-26 03:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:11:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:12:05 [end_date_ymd] => 2025-01-26 03:12:05 [RateCDR] => 1 ) [2025-01-26 03:12: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-01-26 00:12:05' and `end` < '2025-01-26 03:12: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-01-26 03:12:19] Production.INFO: count ==588 [2025-01-26 03:12:19] Production.ERROR: pbx CDR StartTime 2025-01-26 00:12:05 - End Time 2025-01-26 03:12:05 [2025-01-26 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331492', 'tblTempUsageDetail_20' ) start [2025-01-26 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331492', 'tblTempUsageDetail_20' ) end [2025-01-26 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331492', 'tblTempVendorCDR_20' ) start [2025-01-26 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331492', 'tblTempVendorCDR_20' ) end [2025-01-26 03:12:19] Production.INFO: ProcessCDR(1,14331492,1,1,2) [2025-01-26 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331492', 'tblTempUsageDetail_20' ) start [2025-01-26 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331492', 'tblTempUsageDetail_20' ) end [2025-01-26 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:12:22] Production.INFO: ==28378== Releasing lock... [2025-01-26 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:12:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 03:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:13:04 [end_date_ymd] => 2025-01-26 03:13:04 [RateCDR] => 1 ) [2025-01-26 03:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 00:13:04' and `end` < '2025-01-26 03:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 03:13:17] Production.INFO: count ==586 [2025-01-26 03:13:17] Production.ERROR: pbx CDR StartTime 2025-01-26 00:13:04 - End Time 2025-01-26 03:13:04 [2025-01-26 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331497', 'tblTempUsageDetail_20' ) start [2025-01-26 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331497', 'tblTempUsageDetail_20' ) end [2025-01-26 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331497', 'tblTempVendorCDR_20' ) start [2025-01-26 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331497', 'tblTempVendorCDR_20' ) end [2025-01-26 03:13:17] Production.INFO: ProcessCDR(1,14331497,1,1,2) [2025-01-26 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331497', 'tblTempUsageDetail_20' ) start [2025-01-26 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331497', 'tblTempUsageDetail_20' ) end [2025-01-26 03:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:13:20] Production.INFO: ==28531== Releasing lock... [2025-01-26 03:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:13:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:14:05 [end_date_ymd] => 2025-01-26 03:14:05 [RateCDR] => 1 ) [2025-01-26 03:14: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-01-26 00:14:05' and `end` < '2025-01-26 03:14: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-01-26 03:14:17] Production.INFO: count ==585 [2025-01-26 03:14:17] Production.ERROR: pbx CDR StartTime 2025-01-26 00:14:05 - End Time 2025-01-26 03:14:05 [2025-01-26 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331502', 'tblTempUsageDetail_20' ) start [2025-01-26 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331502', 'tblTempUsageDetail_20' ) end [2025-01-26 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331502', 'tblTempVendorCDR_20' ) start [2025-01-26 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331502', 'tblTempVendorCDR_20' ) end [2025-01-26 03:14:17] Production.INFO: ProcessCDR(1,14331502,1,1,2) [2025-01-26 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331502', 'tblTempUsageDetail_20' ) start [2025-01-26 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331502', 'tblTempUsageDetail_20' ) end [2025-01-26 03:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:14:21] Production.INFO: ==28615== Releasing lock... [2025-01-26 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:14:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:15:05 [end_date_ymd] => 2025-01-26 03:15:05 [RateCDR] => 1 ) [2025-01-26 03:15: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-01-26 00:15:05' and `end` < '2025-01-26 03:15: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-01-26 03:15:18] Production.INFO: count ==585 [2025-01-26 03:15:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:15:05 - End Time 2025-01-26 03:15:05 [2025-01-26 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331507', 'tblTempUsageDetail_20' ) start [2025-01-26 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331507', 'tblTempUsageDetail_20' ) end [2025-01-26 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331507', 'tblTempVendorCDR_20' ) start [2025-01-26 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331507', 'tblTempVendorCDR_20' ) end [2025-01-26 03:15:18] Production.INFO: ProcessCDR(1,14331507,1,1,2) [2025-01-26 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331507', 'tblTempUsageDetail_20' ) start [2025-01-26 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331507', 'tblTempUsageDetail_20' ) end [2025-01-26 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:15:21] Production.INFO: ==28695== Releasing lock... [2025-01-26 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:15:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:16:05 [end_date_ymd] => 2025-01-26 03:16:05 [RateCDR] => 1 ) [2025-01-26 03:16: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-01-26 00:16:05' and `end` < '2025-01-26 03:16: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-01-26 03:16:17] Production.INFO: count ==585 [2025-01-26 03:16:17] Production.ERROR: pbx CDR StartTime 2025-01-26 00:16:05 - End Time 2025-01-26 03:16:05 [2025-01-26 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331512', 'tblTempUsageDetail_20' ) start [2025-01-26 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331512', 'tblTempUsageDetail_20' ) end [2025-01-26 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331512', 'tblTempVendorCDR_20' ) start [2025-01-26 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331512', 'tblTempVendorCDR_20' ) end [2025-01-26 03:16:17] Production.INFO: ProcessCDR(1,14331512,1,1,2) [2025-01-26 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331512', 'tblTempUsageDetail_20' ) start [2025-01-26 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331512', 'tblTempUsageDetail_20' ) end [2025-01-26 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:16:21] Production.INFO: ==28773== Releasing lock... [2025-01-26 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:16:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:17:05 [end_date_ymd] => 2025-01-26 03:17:05 [RateCDR] => 1 ) [2025-01-26 03:17: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-01-26 00:17:05' and `end` < '2025-01-26 03:17: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-01-26 03:17:18] Production.INFO: count ==581 [2025-01-26 03:17:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:17:05 - End Time 2025-01-26 03:17:05 [2025-01-26 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331517', 'tblTempUsageDetail_20' ) start [2025-01-26 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331517', 'tblTempUsageDetail_20' ) end [2025-01-26 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331517', 'tblTempVendorCDR_20' ) start [2025-01-26 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331517', 'tblTempVendorCDR_20' ) end [2025-01-26 03:17:18] Production.INFO: ProcessCDR(1,14331517,1,1,2) [2025-01-26 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331517', 'tblTempUsageDetail_20' ) start [2025-01-26 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331517', 'tblTempUsageDetail_20' ) end [2025-01-26 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:17:21] Production.INFO: ==28929== Releasing lock... [2025-01-26 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:17:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:18:05 [end_date_ymd] => 2025-01-26 03:18:05 [RateCDR] => 1 ) [2025-01-26 03:18: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-01-26 00:18:05' and `end` < '2025-01-26 03:18: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-01-26 03:18:18] Production.INFO: count ==576 [2025-01-26 03:18:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:18:05 - End Time 2025-01-26 03:18:05 [2025-01-26 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331522', 'tblTempUsageDetail_20' ) start [2025-01-26 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331522', 'tblTempUsageDetail_20' ) end [2025-01-26 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331522', 'tblTempVendorCDR_20' ) start [2025-01-26 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331522', 'tblTempVendorCDR_20' ) end [2025-01-26 03:18:18] Production.INFO: ProcessCDR(1,14331522,1,1,2) [2025-01-26 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331522', 'tblTempUsageDetail_20' ) start [2025-01-26 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331522', 'tblTempUsageDetail_20' ) end [2025-01-26 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:18:21] Production.INFO: ==29002== Releasing lock... [2025-01-26 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:18:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 03:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:19:06 [end_date_ymd] => 2025-01-26 03:19:06 [RateCDR] => 1 ) [2025-01-26 03:19: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-01-26 00:19:06' and `end` < '2025-01-26 03:19: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-01-26 03:19:18] Production.INFO: count ==575 [2025-01-26 03:19:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:19:06 - End Time 2025-01-26 03:19:06 [2025-01-26 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331527', 'tblTempUsageDetail_20' ) start [2025-01-26 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331527', 'tblTempUsageDetail_20' ) end [2025-01-26 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331527', 'tblTempVendorCDR_20' ) start [2025-01-26 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331527', 'tblTempVendorCDR_20' ) end [2025-01-26 03:19:18] Production.INFO: ProcessCDR(1,14331527,1,1,2) [2025-01-26 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331527', 'tblTempUsageDetail_20' ) start [2025-01-26 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331527', 'tblTempUsageDetail_20' ) end [2025-01-26 03:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:19:22] Production.INFO: ==29084== Releasing lock... [2025-01-26 03:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:19:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:20:05 [end_date_ymd] => 2025-01-26 03:20:05 [RateCDR] => 1 ) [2025-01-26 03:20: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-01-26 00:20:05' and `end` < '2025-01-26 03:20: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-01-26 03:20:18] Production.INFO: count ==581 [2025-01-26 03:20:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:20:05 - End Time 2025-01-26 03:20:05 [2025-01-26 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331533', 'tblTempUsageDetail_20' ) start [2025-01-26 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331533', 'tblTempUsageDetail_20' ) end [2025-01-26 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331533', 'tblTempVendorCDR_20' ) start [2025-01-26 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331533', 'tblTempVendorCDR_20' ) end [2025-01-26 03:20:18] Production.INFO: ProcessCDR(1,14331533,1,1,2) [2025-01-26 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331533', 'tblTempUsageDetail_20' ) start [2025-01-26 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331533', 'tblTempUsageDetail_20' ) end [2025-01-26 03:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:20:21] Production.INFO: ==29165== Releasing lock... [2025-01-26 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:20:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:21:05 [end_date_ymd] => 2025-01-26 03:21:05 [RateCDR] => 1 ) [2025-01-26 03:21: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-01-26 00:21:05' and `end` < '2025-01-26 03:21: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-01-26 03:21:20] Production.INFO: count ==595 [2025-01-26 03:21:20] Production.ERROR: pbx CDR StartTime 2025-01-26 00:21:05 - End Time 2025-01-26 03:21:05 [2025-01-26 03:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331538', 'tblTempUsageDetail_20' ) start [2025-01-26 03:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331538', 'tblTempUsageDetail_20' ) end [2025-01-26 03:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331538', 'tblTempVendorCDR_20' ) start [2025-01-26 03:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331538', 'tblTempVendorCDR_20' ) end [2025-01-26 03:21:20] Production.INFO: ProcessCDR(1,14331538,1,1,2) [2025-01-26 03:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331538', 'tblTempUsageDetail_20' ) start [2025-01-26 03:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331538', 'tblTempUsageDetail_20' ) end [2025-01-26 03:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:21:23] Production.INFO: ==29242== Releasing lock... [2025-01-26 03:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:21:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:22:05 [end_date_ymd] => 2025-01-26 03:22:05 [RateCDR] => 1 ) [2025-01-26 03:22: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-01-26 00:22:05' and `end` < '2025-01-26 03:22: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-01-26 03:22:18] Production.INFO: count ==594 [2025-01-26 03:22:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:22:05 - End Time 2025-01-26 03:22:05 [2025-01-26 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331543', 'tblTempUsageDetail_20' ) start [2025-01-26 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331543', 'tblTempUsageDetail_20' ) end [2025-01-26 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331543', 'tblTempVendorCDR_20' ) start [2025-01-26 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331543', 'tblTempVendorCDR_20' ) end [2025-01-26 03:22:18] Production.INFO: ProcessCDR(1,14331543,1,1,2) [2025-01-26 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331543', 'tblTempUsageDetail_20' ) start [2025-01-26 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331543', 'tblTempUsageDetail_20' ) end [2025-01-26 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:22:21] Production.INFO: ==29321== Releasing lock... [2025-01-26 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:22:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 03:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:23:06 [end_date_ymd] => 2025-01-26 03:23:06 [RateCDR] => 1 ) [2025-01-26 03:23: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-01-26 00:23:06' and `end` < '2025-01-26 03:23: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-01-26 03:23:19] Production.INFO: count ==593 [2025-01-26 03:23:19] Production.ERROR: pbx CDR StartTime 2025-01-26 00:23:06 - End Time 2025-01-26 03:23:06 [2025-01-26 03:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331548', 'tblTempUsageDetail_20' ) start [2025-01-26 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331548', 'tblTempUsageDetail_20' ) end [2025-01-26 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331548', 'tblTempVendorCDR_20' ) start [2025-01-26 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331548', 'tblTempVendorCDR_20' ) end [2025-01-26 03:23:19] Production.INFO: ProcessCDR(1,14331548,1,1,2) [2025-01-26 03:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331548', 'tblTempUsageDetail_20' ) start [2025-01-26 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331548', 'tblTempUsageDetail_20' ) end [2025-01-26 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:23:22] Production.INFO: ==29398== Releasing lock... [2025-01-26 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:23:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:24:05 [end_date_ymd] => 2025-01-26 03:24:05 [RateCDR] => 1 ) [2025-01-26 03:24: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-01-26 00:24:05' and `end` < '2025-01-26 03:24: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-01-26 03:24:19] Production.INFO: count ==589 [2025-01-26 03:24:19] Production.ERROR: pbx CDR StartTime 2025-01-26 00:24:05 - End Time 2025-01-26 03:24:05 [2025-01-26 03:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331553', 'tblTempUsageDetail_20' ) start [2025-01-26 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331553', 'tblTempUsageDetail_20' ) end [2025-01-26 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331553', 'tblTempVendorCDR_20' ) start [2025-01-26 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331553', 'tblTempVendorCDR_20' ) end [2025-01-26 03:24:19] Production.INFO: ProcessCDR(1,14331553,1,1,2) [2025-01-26 03:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331553', 'tblTempUsageDetail_20' ) start [2025-01-26 03:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331553', 'tblTempUsageDetail_20' ) end [2025-01-26 03:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:24:24] Production.INFO: ==29478== Releasing lock... [2025-01-26 03:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:24:24] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:25:05 [end_date_ymd] => 2025-01-26 03:25:05 [RateCDR] => 1 ) [2025-01-26 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 00:25:05' and `end` < '2025-01-26 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 03:25:17] Production.INFO: count ==587 [2025-01-26 03:25:17] Production.ERROR: pbx CDR StartTime 2025-01-26 00:25:05 - End Time 2025-01-26 03:25:05 [2025-01-26 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331558', 'tblTempUsageDetail_20' ) start [2025-01-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331558', 'tblTempUsageDetail_20' ) end [2025-01-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331558', 'tblTempVendorCDR_20' ) start [2025-01-26 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331558', 'tblTempVendorCDR_20' ) end [2025-01-26 03:25:18] Production.INFO: ProcessCDR(1,14331558,1,1,2) [2025-01-26 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331558', 'tblTempUsageDetail_20' ) start [2025-01-26 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331558', 'tblTempUsageDetail_20' ) end [2025-01-26 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:25:21] Production.INFO: ==29595== Releasing lock... [2025-01-26 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:25:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:26:05 [end_date_ymd] => 2025-01-26 03:26:05 [RateCDR] => 1 ) [2025-01-26 03:26: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-01-26 00:26:05' and `end` < '2025-01-26 03:26: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-01-26 03:26:18] Production.INFO: count ==586 [2025-01-26 03:26:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:26:05 - End Time 2025-01-26 03:26:05 [2025-01-26 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331563', 'tblTempUsageDetail_20' ) start [2025-01-26 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331563', 'tblTempUsageDetail_20' ) end [2025-01-26 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331563', 'tblTempVendorCDR_20' ) start [2025-01-26 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331563', 'tblTempVendorCDR_20' ) end [2025-01-26 03:26:18] Production.INFO: ProcessCDR(1,14331563,1,1,2) [2025-01-26 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331563', 'tblTempUsageDetail_20' ) start [2025-01-26 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331563', 'tblTempUsageDetail_20' ) end [2025-01-26 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:26:21] Production.INFO: ==29673== Releasing lock... [2025-01-26 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:26:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:27:05 [end_date_ymd] => 2025-01-26 03:27:05 [RateCDR] => 1 ) [2025-01-26 03:27: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-01-26 00:27:05' and `end` < '2025-01-26 03:27: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-01-26 03:27:19] Production.INFO: count ==586 [2025-01-26 03:27:19] Production.ERROR: pbx CDR StartTime 2025-01-26 00:27:05 - End Time 2025-01-26 03:27:05 [2025-01-26 03:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331568', 'tblTempUsageDetail_20' ) start [2025-01-26 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331568', 'tblTempUsageDetail_20' ) end [2025-01-26 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331568', 'tblTempVendorCDR_20' ) start [2025-01-26 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331568', 'tblTempVendorCDR_20' ) end [2025-01-26 03:27:19] Production.INFO: ProcessCDR(1,14331568,1,1,2) [2025-01-26 03:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331568', 'tblTempUsageDetail_20' ) start [2025-01-26 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331568', 'tblTempUsageDetail_20' ) end [2025-01-26 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:27:22] Production.INFO: ==29748== Releasing lock... [2025-01-26 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:27:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:28:05 [end_date_ymd] => 2025-01-26 03:28:05 [RateCDR] => 1 ) [2025-01-26 03:28: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-01-26 00:28:05' and `end` < '2025-01-26 03:28: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-01-26 03:28:17] Production.INFO: count ==587 [2025-01-26 03:28:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:28:05 - End Time 2025-01-26 03:28:05 [2025-01-26 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331573', 'tblTempUsageDetail_20' ) start [2025-01-26 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331573', 'tblTempUsageDetail_20' ) end [2025-01-26 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331573', 'tblTempVendorCDR_20' ) start [2025-01-26 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331573', 'tblTempVendorCDR_20' ) end [2025-01-26 03:28:18] Production.INFO: ProcessCDR(1,14331573,1,1,2) [2025-01-26 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331573', 'tblTempUsageDetail_20' ) start [2025-01-26 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331573', 'tblTempUsageDetail_20' ) end [2025-01-26 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:28:21] Production.INFO: ==29828== Releasing lock... [2025-01-26 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:28:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:29:05 [end_date_ymd] => 2025-01-26 03:29:05 [RateCDR] => 1 ) [2025-01-26 03:29: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-01-26 00:29:05' and `end` < '2025-01-26 03:29: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-01-26 03:29:17] Production.INFO: count ==585 [2025-01-26 03:29:17] Production.ERROR: pbx CDR StartTime 2025-01-26 00:29:05 - End Time 2025-01-26 03:29:05 [2025-01-26 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331578', 'tblTempUsageDetail_20' ) start [2025-01-26 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331578', 'tblTempUsageDetail_20' ) end [2025-01-26 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331578', 'tblTempVendorCDR_20' ) start [2025-01-26 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331578', 'tblTempVendorCDR_20' ) end [2025-01-26 03:29:17] Production.INFO: ProcessCDR(1,14331578,1,1,2) [2025-01-26 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331578', 'tblTempUsageDetail_20' ) start [2025-01-26 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331578', 'tblTempUsageDetail_20' ) end [2025-01-26 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:29:21] Production.INFO: ==29906== Releasing lock... [2025-01-26 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:29:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:30:06 [end_date_ymd] => 2025-01-26 03:30:06 [RateCDR] => 1 ) [2025-01-26 03:30: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-01-26 00:30:06' and `end` < '2025-01-26 03:30: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-01-26 03:30:19] Production.INFO: count ==575 [2025-01-26 03:30:19] Production.ERROR: pbx CDR StartTime 2025-01-26 00:30:06 - End Time 2025-01-26 03:30:06 [2025-01-26 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331584', 'tblTempUsageDetail_20' ) start [2025-01-26 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331584', 'tblTempUsageDetail_20' ) end [2025-01-26 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331584', 'tblTempVendorCDR_20' ) start [2025-01-26 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331584', 'tblTempVendorCDR_20' ) end [2025-01-26 03:30:19] Production.INFO: ProcessCDR(1,14331584,1,1,2) [2025-01-26 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331584', 'tblTempUsageDetail_20' ) start [2025-01-26 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331584', 'tblTempUsageDetail_20' ) end [2025-01-26 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:30:22] Production.INFO: ==29984== Releasing lock... [2025-01-26 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:30:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:31:05 [end_date_ymd] => 2025-01-26 03:31:05 [RateCDR] => 1 ) [2025-01-26 03:31: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-01-26 00:31:05' and `end` < '2025-01-26 03:31: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-01-26 03:31:18] Production.INFO: count ==564 [2025-01-26 03:31:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:31:05 - End Time 2025-01-26 03:31:05 [2025-01-26 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331589', 'tblTempUsageDetail_20' ) start [2025-01-26 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331589', 'tblTempUsageDetail_20' ) end [2025-01-26 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331589', 'tblTempVendorCDR_20' ) start [2025-01-26 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331589', 'tblTempVendorCDR_20' ) end [2025-01-26 03:31:18] Production.INFO: ProcessCDR(1,14331589,1,1,2) [2025-01-26 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331589', 'tblTempUsageDetail_20' ) start [2025-01-26 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331589', 'tblTempUsageDetail_20' ) end [2025-01-26 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:31:22] Production.INFO: ==30068== Releasing lock... [2025-01-26 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:31:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:32:06 [end_date_ymd] => 2025-01-26 03:32:06 [RateCDR] => 1 ) [2025-01-26 03:32: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-01-26 00:32:06' and `end` < '2025-01-26 03:32: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-01-26 03:32:18] Production.INFO: count ==564 [2025-01-26 03:32:19] Production.ERROR: pbx CDR StartTime 2025-01-26 00:32:06 - End Time 2025-01-26 03:32:06 [2025-01-26 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331594', 'tblTempUsageDetail_20' ) start [2025-01-26 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331594', 'tblTempUsageDetail_20' ) end [2025-01-26 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331594', 'tblTempVendorCDR_20' ) start [2025-01-26 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331594', 'tblTempVendorCDR_20' ) end [2025-01-26 03:32:19] Production.INFO: ProcessCDR(1,14331594,1,1,2) [2025-01-26 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331594', 'tblTempUsageDetail_20' ) start [2025-01-26 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331594', 'tblTempUsageDetail_20' ) end [2025-01-26 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:32:22] Production.INFO: ==30149== Releasing lock... [2025-01-26 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:32:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:33:05 [end_date_ymd] => 2025-01-26 03:33:05 [RateCDR] => 1 ) [2025-01-26 03:33: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-01-26 00:33:05' and `end` < '2025-01-26 03:33: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-01-26 03:33:17] Production.INFO: count ==564 [2025-01-26 03:33:17] Production.ERROR: pbx CDR StartTime 2025-01-26 00:33:05 - End Time 2025-01-26 03:33:05 [2025-01-26 03:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331599', 'tblTempUsageDetail_20' ) start [2025-01-26 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331599', 'tblTempUsageDetail_20' ) end [2025-01-26 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331599', 'tblTempVendorCDR_20' ) start [2025-01-26 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331599', 'tblTempVendorCDR_20' ) end [2025-01-26 03:33:17] Production.INFO: ProcessCDR(1,14331599,1,1,2) [2025-01-26 03:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331599', 'tblTempUsageDetail_20' ) start [2025-01-26 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331599', 'tblTempUsageDetail_20' ) end [2025-01-26 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:33:21] Production.INFO: ==30235== Releasing lock... [2025-01-26 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:33:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:34:06 [end_date_ymd] => 2025-01-26 03:34:06 [RateCDR] => 1 ) [2025-01-26 03:34: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-01-26 00:34:06' and `end` < '2025-01-26 03:34: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-01-26 03:34:18] Production.INFO: count ==563 [2025-01-26 03:34:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:34:06 - End Time 2025-01-26 03:34:06 [2025-01-26 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331604', 'tblTempUsageDetail_20' ) start [2025-01-26 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331604', 'tblTempUsageDetail_20' ) end [2025-01-26 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331604', 'tblTempVendorCDR_20' ) start [2025-01-26 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331604', 'tblTempVendorCDR_20' ) end [2025-01-26 03:34:18] Production.INFO: ProcessCDR(1,14331604,1,1,2) [2025-01-26 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331604', 'tblTempUsageDetail_20' ) start [2025-01-26 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331604', 'tblTempUsageDetail_20' ) end [2025-01-26 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:34:22] Production.INFO: ==30317== Releasing lock... [2025-01-26 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:34:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:35:05 [end_date_ymd] => 2025-01-26 03:35:05 [RateCDR] => 1 ) [2025-01-26 03:35: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-01-26 00:35:05' and `end` < '2025-01-26 03:35: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-01-26 03:35:18] Production.INFO: count ==559 [2025-01-26 03:35:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:35:05 - End Time 2025-01-26 03:35:05 [2025-01-26 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331609', 'tblTempUsageDetail_20' ) start [2025-01-26 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331609', 'tblTempUsageDetail_20' ) end [2025-01-26 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331609', 'tblTempVendorCDR_20' ) start [2025-01-26 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331609', 'tblTempVendorCDR_20' ) end [2025-01-26 03:35:18] Production.INFO: ProcessCDR(1,14331609,1,1,2) [2025-01-26 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331609', 'tblTempUsageDetail_20' ) start [2025-01-26 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331609', 'tblTempUsageDetail_20' ) end [2025-01-26 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:35:22] Production.INFO: ==30407== Releasing lock... [2025-01-26 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:35:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:36:06 [end_date_ymd] => 2025-01-26 03:36:06 [RateCDR] => 1 ) [2025-01-26 03:36: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-01-26 00:36:06' and `end` < '2025-01-26 03:36: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-01-26 03:36:19] Production.INFO: count ==559 [2025-01-26 03:36:19] Production.ERROR: pbx CDR StartTime 2025-01-26 00:36:06 - End Time 2025-01-26 03:36:06 [2025-01-26 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331614', 'tblTempUsageDetail_20' ) start [2025-01-26 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331614', 'tblTempUsageDetail_20' ) end [2025-01-26 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331614', 'tblTempVendorCDR_20' ) start [2025-01-26 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331614', 'tblTempVendorCDR_20' ) end [2025-01-26 03:36:19] Production.INFO: ProcessCDR(1,14331614,1,1,2) [2025-01-26 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331614', 'tblTempUsageDetail_20' ) start [2025-01-26 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331614', 'tblTempUsageDetail_20' ) end [2025-01-26 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:36:22] Production.INFO: ==30527== Releasing lock... [2025-01-26 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:36:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:37:05 [end_date_ymd] => 2025-01-26 03:37:05 [RateCDR] => 1 ) [2025-01-26 03:37: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-01-26 00:37:05' and `end` < '2025-01-26 03:37: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-01-26 03:37:17] Production.INFO: count ==558 [2025-01-26 03:37:17] Production.ERROR: pbx CDR StartTime 2025-01-26 00:37:05 - End Time 2025-01-26 03:37:05 [2025-01-26 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331619', 'tblTempUsageDetail_20' ) start [2025-01-26 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331619', 'tblTempUsageDetail_20' ) end [2025-01-26 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331619', 'tblTempVendorCDR_20' ) start [2025-01-26 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331619', 'tblTempVendorCDR_20' ) end [2025-01-26 03:37:17] Production.INFO: ProcessCDR(1,14331619,1,1,2) [2025-01-26 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331619', 'tblTempUsageDetail_20' ) start [2025-01-26 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331619', 'tblTempUsageDetail_20' ) end [2025-01-26 03:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:37:21] Production.INFO: ==30603== Releasing lock... [2025-01-26 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:37:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:38:06 [end_date_ymd] => 2025-01-26 03:38:06 [RateCDR] => 1 ) [2025-01-26 03:38: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-01-26 00:38:06' and `end` < '2025-01-26 03:38: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-01-26 03:38:18] Production.INFO: count ==558 [2025-01-26 03:38:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:38:06 - End Time 2025-01-26 03:38:06 [2025-01-26 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331624', 'tblTempUsageDetail_20' ) start [2025-01-26 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331624', 'tblTempUsageDetail_20' ) end [2025-01-26 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331624', 'tblTempVendorCDR_20' ) start [2025-01-26 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331624', 'tblTempVendorCDR_20' ) end [2025-01-26 03:38:18] Production.INFO: ProcessCDR(1,14331624,1,1,2) [2025-01-26 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331624', 'tblTempUsageDetail_20' ) start [2025-01-26 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331624', 'tblTempUsageDetail_20' ) end [2025-01-26 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:38:22] Production.INFO: ==30686== Releasing lock... [2025-01-26 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:38:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:39:05 [end_date_ymd] => 2025-01-26 03:39:05 [RateCDR] => 1 ) [2025-01-26 03:39: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-01-26 00:39:05' and `end` < '2025-01-26 03:39: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-01-26 03:39:18] Production.INFO: count ==558 [2025-01-26 03:39:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:39:05 - End Time 2025-01-26 03:39:05 [2025-01-26 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331629', 'tblTempUsageDetail_20' ) start [2025-01-26 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331629', 'tblTempUsageDetail_20' ) end [2025-01-26 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331629', 'tblTempVendorCDR_20' ) start [2025-01-26 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331629', 'tblTempVendorCDR_20' ) end [2025-01-26 03:39:18] Production.INFO: ProcessCDR(1,14331629,1,1,2) [2025-01-26 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331629', 'tblTempUsageDetail_20' ) start [2025-01-26 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331629', 'tblTempUsageDetail_20' ) end [2025-01-26 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:39:21] Production.INFO: ==30768== Releasing lock... [2025-01-26 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:39:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:40:06 [end_date_ymd] => 2025-01-26 03:40:06 [RateCDR] => 1 ) [2025-01-26 03:40: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-01-26 00:40:06' and `end` < '2025-01-26 03:40: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-01-26 03:40:18] Production.INFO: count ==554 [2025-01-26 03:40:19] Production.ERROR: pbx CDR StartTime 2025-01-26 00:40:06 - End Time 2025-01-26 03:40:06 [2025-01-26 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331634', 'tblTempUsageDetail_20' ) start [2025-01-26 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331634', 'tblTempUsageDetail_20' ) end [2025-01-26 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331634', 'tblTempVendorCDR_20' ) start [2025-01-26 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331634', 'tblTempVendorCDR_20' ) end [2025-01-26 03:40:19] Production.INFO: ProcessCDR(1,14331634,1,1,2) [2025-01-26 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331634', 'tblTempUsageDetail_20' ) start [2025-01-26 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331634', 'tblTempUsageDetail_20' ) end [2025-01-26 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:40:22] Production.INFO: ==30888== Releasing lock... [2025-01-26 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:40:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:41:05 [end_date_ymd] => 2025-01-26 03:41:05 [RateCDR] => 1 ) [2025-01-26 03:41: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-01-26 00:41:05' and `end` < '2025-01-26 03:41: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-01-26 03:41:18] Production.INFO: count ==546 [2025-01-26 03:41:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:41:05 - End Time 2025-01-26 03:41:05 [2025-01-26 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331640', 'tblTempUsageDetail_20' ) start [2025-01-26 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331640', 'tblTempUsageDetail_20' ) end [2025-01-26 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331640', 'tblTempVendorCDR_20' ) start [2025-01-26 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331640', 'tblTempVendorCDR_20' ) end [2025-01-26 03:41:18] Production.INFO: ProcessCDR(1,14331640,1,1,2) [2025-01-26 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331640', 'tblTempUsageDetail_20' ) start [2025-01-26 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331640', 'tblTempUsageDetail_20' ) end [2025-01-26 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:41:21] Production.INFO: ==30974== Releasing lock... [2025-01-26 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:41:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:42:05 [end_date_ymd] => 2025-01-26 03:42:05 [RateCDR] => 1 ) [2025-01-26 03:42: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-01-26 00:42:05' and `end` < '2025-01-26 03:42: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-01-26 03:42:18] Production.INFO: count ==546 [2025-01-26 03:42:19] Production.ERROR: pbx CDR StartTime 2025-01-26 00:42:05 - End Time 2025-01-26 03:42:05 [2025-01-26 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331645', 'tblTempUsageDetail_20' ) start [2025-01-26 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331645', 'tblTempUsageDetail_20' ) end [2025-01-26 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331645', 'tblTempVendorCDR_20' ) start [2025-01-26 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331645', 'tblTempVendorCDR_20' ) end [2025-01-26 03:42:19] Production.INFO: ProcessCDR(1,14331645,1,1,2) [2025-01-26 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331645', 'tblTempUsageDetail_20' ) start [2025-01-26 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331645', 'tblTempUsageDetail_20' ) end [2025-01-26 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:42:22] Production.INFO: ==31053== Releasing lock... [2025-01-26 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:42:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:43:05 [end_date_ymd] => 2025-01-26 03:43:05 [RateCDR] => 1 ) [2025-01-26 03:43: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-01-26 00:43:05' and `end` < '2025-01-26 03:43: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-01-26 03:43:18] Production.INFO: count ==546 [2025-01-26 03:43:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:43:05 - End Time 2025-01-26 03:43:05 [2025-01-26 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331650', 'tblTempUsageDetail_20' ) start [2025-01-26 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331650', 'tblTempUsageDetail_20' ) end [2025-01-26 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331650', 'tblTempVendorCDR_20' ) start [2025-01-26 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331650', 'tblTempVendorCDR_20' ) end [2025-01-26 03:43:18] Production.INFO: ProcessCDR(1,14331650,1,1,2) [2025-01-26 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331650', 'tblTempUsageDetail_20' ) start [2025-01-26 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331650', 'tblTempUsageDetail_20' ) end [2025-01-26 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:43:21] Production.INFO: ==31137== Releasing lock... [2025-01-26 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:43:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:44:05 [end_date_ymd] => 2025-01-26 03:44:05 [RateCDR] => 1 ) [2025-01-26 03:44: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-01-26 00:44:05' and `end` < '2025-01-26 03:44: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-01-26 03:44:18] Production.INFO: count ==546 [2025-01-26 03:44:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:44:05 - End Time 2025-01-26 03:44:05 [2025-01-26 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331655', 'tblTempUsageDetail_20' ) start [2025-01-26 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331655', 'tblTempUsageDetail_20' ) end [2025-01-26 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331655', 'tblTempVendorCDR_20' ) start [2025-01-26 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331655', 'tblTempVendorCDR_20' ) end [2025-01-26 03:44:18] Production.INFO: ProcessCDR(1,14331655,1,1,2) [2025-01-26 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331655', 'tblTempUsageDetail_20' ) start [2025-01-26 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331655', 'tblTempUsageDetail_20' ) end [2025-01-26 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:44:21] Production.INFO: ==31220== Releasing lock... [2025-01-26 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:44:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:45:05 [end_date_ymd] => 2025-01-26 03:45:05 [RateCDR] => 1 ) [2025-01-26 03:45: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-01-26 00:45:05' and `end` < '2025-01-26 03:45: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-01-26 03:45:17] Production.INFO: count ==546 [2025-01-26 03:45:17] Production.ERROR: pbx CDR StartTime 2025-01-26 00:45:05 - End Time 2025-01-26 03:45:05 [2025-01-26 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331660', 'tblTempUsageDetail_20' ) start [2025-01-26 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331660', 'tblTempUsageDetail_20' ) end [2025-01-26 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331660', 'tblTempVendorCDR_20' ) start [2025-01-26 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331660', 'tblTempVendorCDR_20' ) end [2025-01-26 03:45:17] Production.INFO: ProcessCDR(1,14331660,1,1,2) [2025-01-26 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331660', 'tblTempUsageDetail_20' ) start [2025-01-26 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331660', 'tblTempUsageDetail_20' ) end [2025-01-26 03:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:45:20] Production.INFO: ==31314== Releasing lock... [2025-01-26 03:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:45:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:46:05 [end_date_ymd] => 2025-01-26 03:46:05 [RateCDR] => 1 ) [2025-01-26 03:46: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-01-26 00:46:05' and `end` < '2025-01-26 03:46: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-01-26 03:46:18] Production.INFO: count ==545 [2025-01-26 03:46:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:46:05 - End Time 2025-01-26 03:46:05 [2025-01-26 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331665', 'tblTempUsageDetail_20' ) start [2025-01-26 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331665', 'tblTempUsageDetail_20' ) end [2025-01-26 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331665', 'tblTempVendorCDR_20' ) start [2025-01-26 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331665', 'tblTempVendorCDR_20' ) end [2025-01-26 03:46:18] Production.INFO: ProcessCDR(1,14331665,1,1,2) [2025-01-26 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331665', 'tblTempUsageDetail_20' ) start [2025-01-26 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331665', 'tblTempUsageDetail_20' ) end [2025-01-26 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:46:21] Production.INFO: ==31432== Releasing lock... [2025-01-26 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:47:05 [end_date_ymd] => 2025-01-26 03:47:05 [RateCDR] => 1 ) [2025-01-26 03:47: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-01-26 00:47:05' and `end` < '2025-01-26 03:47: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-01-26 03:47:18] Production.INFO: count ==543 [2025-01-26 03:47:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:47:05 - End Time 2025-01-26 03:47:05 [2025-01-26 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331670', 'tblTempUsageDetail_20' ) start [2025-01-26 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331670', 'tblTempUsageDetail_20' ) end [2025-01-26 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331670', 'tblTempVendorCDR_20' ) start [2025-01-26 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331670', 'tblTempVendorCDR_20' ) end [2025-01-26 03:47:18] Production.INFO: ProcessCDR(1,14331670,1,1,2) [2025-01-26 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331670', 'tblTempUsageDetail_20' ) start [2025-01-26 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331670', 'tblTempUsageDetail_20' ) end [2025-01-26 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:47:22] Production.INFO: ==31546== Releasing lock... [2025-01-26 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:47:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:48:05 [end_date_ymd] => 2025-01-26 03:48:05 [RateCDR] => 1 ) [2025-01-26 03:48: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-01-26 00:48:05' and `end` < '2025-01-26 03:48: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-01-26 03:48:19] Production.INFO: count ==543 [2025-01-26 03:48:19] Production.ERROR: pbx CDR StartTime 2025-01-26 00:48:05 - End Time 2025-01-26 03:48:05 [2025-01-26 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331675', 'tblTempUsageDetail_20' ) start [2025-01-26 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331675', 'tblTempUsageDetail_20' ) end [2025-01-26 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331675', 'tblTempVendorCDR_20' ) start [2025-01-26 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331675', 'tblTempVendorCDR_20' ) end [2025-01-26 03:48:19] Production.INFO: ProcessCDR(1,14331675,1,1,2) [2025-01-26 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331675', 'tblTempUsageDetail_20' ) start [2025-01-26 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331675', 'tblTempUsageDetail_20' ) end [2025-01-26 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:48:22] Production.INFO: ==31657== Releasing lock... [2025-01-26 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:48:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:49:05 [end_date_ymd] => 2025-01-26 03:49:05 [RateCDR] => 1 ) [2025-01-26 03:49: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-01-26 00:49:05' and `end` < '2025-01-26 03:49: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-01-26 03:49:18] Production.INFO: count ==542 [2025-01-26 03:49:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:49:05 - End Time 2025-01-26 03:49:05 [2025-01-26 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331680', 'tblTempUsageDetail_20' ) start [2025-01-26 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331680', 'tblTempUsageDetail_20' ) end [2025-01-26 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331680', 'tblTempVendorCDR_20' ) start [2025-01-26 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331680', 'tblTempVendorCDR_20' ) end [2025-01-26 03:49:18] Production.INFO: ProcessCDR(1,14331680,1,1,2) [2025-01-26 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331680', 'tblTempUsageDetail_20' ) start [2025-01-26 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331680', 'tblTempUsageDetail_20' ) end [2025-01-26 03:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:49:23] Production.INFO: ==31771== Releasing lock... [2025-01-26 03:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:49:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:50:06 [end_date_ymd] => 2025-01-26 03:50:06 [RateCDR] => 1 ) [2025-01-26 03:50: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-01-26 00:50:06' and `end` < '2025-01-26 03:50: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-01-26 03:50:18] Production.INFO: count ==534 [2025-01-26 03:50:19] Production.ERROR: pbx CDR StartTime 2025-01-26 00:50:06 - End Time 2025-01-26 03:50:06 [2025-01-26 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331686', 'tblTempUsageDetail_20' ) start [2025-01-26 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331686', 'tblTempUsageDetail_20' ) end [2025-01-26 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331686', 'tblTempVendorCDR_20' ) start [2025-01-26 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331686', 'tblTempVendorCDR_20' ) end [2025-01-26 03:50:19] Production.INFO: ProcessCDR(1,14331686,1,1,2) [2025-01-26 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331686', 'tblTempUsageDetail_20' ) start [2025-01-26 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331686', 'tblTempUsageDetail_20' ) end [2025-01-26 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:50:22] Production.INFO: ==31885== Releasing lock... [2025-01-26 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:50:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:51:06 [end_date_ymd] => 2025-01-26 03:51:06 [RateCDR] => 1 ) [2025-01-26 03:51: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-01-26 00:51:06' and `end` < '2025-01-26 03:51: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-01-26 03:51:19] Production.INFO: count ==519 [2025-01-26 03:51:19] Production.ERROR: pbx CDR StartTime 2025-01-26 00:51:06 - End Time 2025-01-26 03:51:06 [2025-01-26 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331691', 'tblTempUsageDetail_20' ) start [2025-01-26 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331691', 'tblTempUsageDetail_20' ) end [2025-01-26 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331691', 'tblTempVendorCDR_20' ) start [2025-01-26 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331691', 'tblTempVendorCDR_20' ) end [2025-01-26 03:51:19] Production.INFO: ProcessCDR(1,14331691,1,1,2) [2025-01-26 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331691', 'tblTempUsageDetail_20' ) start [2025-01-26 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331691', 'tblTempUsageDetail_20' ) end [2025-01-26 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:51:22] Production.INFO: ==32002== Releasing lock... [2025-01-26 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:51:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:52:06 [end_date_ymd] => 2025-01-26 03:52:06 [RateCDR] => 1 ) [2025-01-26 03:52: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-01-26 00:52:06' and `end` < '2025-01-26 03:52: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-01-26 03:52:18] Production.INFO: count ==519 [2025-01-26 03:52:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:52:06 - End Time 2025-01-26 03:52:06 [2025-01-26 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331696', 'tblTempUsageDetail_20' ) start [2025-01-26 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331696', 'tblTempUsageDetail_20' ) end [2025-01-26 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331696', 'tblTempVendorCDR_20' ) start [2025-01-26 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331696', 'tblTempVendorCDR_20' ) end [2025-01-26 03:52:18] Production.INFO: ProcessCDR(1,14331696,1,1,2) [2025-01-26 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331696', 'tblTempUsageDetail_20' ) start [2025-01-26 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331696', 'tblTempUsageDetail_20' ) end [2025-01-26 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:52:22] Production.INFO: ==32119== Releasing lock... [2025-01-26 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:52:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:53:06 [end_date_ymd] => 2025-01-26 03:53:06 [RateCDR] => 1 ) [2025-01-26 03:53: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-01-26 00:53:06' and `end` < '2025-01-26 03:53: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-01-26 03:53:18] Production.INFO: count ==521 [2025-01-26 03:53:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:53:06 - End Time 2025-01-26 03:53:06 [2025-01-26 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331701', 'tblTempUsageDetail_20' ) start [2025-01-26 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331701', 'tblTempUsageDetail_20' ) end [2025-01-26 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331701', 'tblTempVendorCDR_20' ) start [2025-01-26 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331701', 'tblTempVendorCDR_20' ) end [2025-01-26 03:53:18] Production.INFO: ProcessCDR(1,14331701,1,1,2) [2025-01-26 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331701', 'tblTempUsageDetail_20' ) start [2025-01-26 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331701', 'tblTempUsageDetail_20' ) end [2025-01-26 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:53:22] Production.INFO: ==32230== Releasing lock... [2025-01-26 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:53:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:54:06 [end_date_ymd] => 2025-01-26 03:54:06 [RateCDR] => 1 ) [2025-01-26 03:54: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-01-26 00:54:06' and `end` < '2025-01-26 03:54: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-01-26 03:54:20] Production.INFO: count ==521 [2025-01-26 03:54:20] Production.ERROR: pbx CDR StartTime 2025-01-26 00:54:06 - End Time 2025-01-26 03:54:06 [2025-01-26 03:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331706', 'tblTempUsageDetail_20' ) start [2025-01-26 03:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331706', 'tblTempUsageDetail_20' ) end [2025-01-26 03:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331706', 'tblTempVendorCDR_20' ) start [2025-01-26 03:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331706', 'tblTempVendorCDR_20' ) end [2025-01-26 03:54:20] Production.INFO: ProcessCDR(1,14331706,1,1,2) [2025-01-26 03:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331706', 'tblTempUsageDetail_20' ) start [2025-01-26 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331706', 'tblTempUsageDetail_20' ) end [2025-01-26 03:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:54:23] Production.INFO: ==32344== Releasing lock... [2025-01-26 03:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:54:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:55:05 [end_date_ymd] => 2025-01-26 03:55:05 [RateCDR] => 1 ) [2025-01-26 03:55: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-01-26 00:55:05' and `end` < '2025-01-26 03:55: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-01-26 03:55:18] Production.INFO: count ==521 [2025-01-26 03:55:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:55:05 - End Time 2025-01-26 03:55:05 [2025-01-26 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331711', 'tblTempUsageDetail_20' ) start [2025-01-26 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331711', 'tblTempUsageDetail_20' ) end [2025-01-26 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331711', 'tblTempVendorCDR_20' ) start [2025-01-26 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331711', 'tblTempVendorCDR_20' ) end [2025-01-26 03:55:18] Production.INFO: ProcessCDR(1,14331711,1,1,2) [2025-01-26 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331711', 'tblTempUsageDetail_20' ) start [2025-01-26 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331711', 'tblTempUsageDetail_20' ) end [2025-01-26 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:55:21] Production.INFO: ==32454== Releasing lock... [2025-01-26 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:55:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:56:05 [end_date_ymd] => 2025-01-26 03:56:05 [RateCDR] => 1 ) [2025-01-26 03:56: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-01-26 00:56:05' and `end` < '2025-01-26 03:56: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-01-26 03:56:18] Production.INFO: count ==519 [2025-01-26 03:56:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:56:05 - End Time 2025-01-26 03:56:05 [2025-01-26 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331716', 'tblTempUsageDetail_20' ) start [2025-01-26 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331716', 'tblTempUsageDetail_20' ) end [2025-01-26 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331716', 'tblTempVendorCDR_20' ) start [2025-01-26 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331716', 'tblTempVendorCDR_20' ) end [2025-01-26 03:56:18] Production.INFO: ProcessCDR(1,14331716,1,1,2) [2025-01-26 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331716', 'tblTempUsageDetail_20' ) start [2025-01-26 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331716', 'tblTempUsageDetail_20' ) end [2025-01-26 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:56:22] Production.INFO: ==32606== Releasing lock... [2025-01-26 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:56:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:57:05 [end_date_ymd] => 2025-01-26 03:57:05 [RateCDR] => 1 ) [2025-01-26 03:57: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-01-26 00:57:05' and `end` < '2025-01-26 03:57: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-01-26 03:57:18] Production.INFO: count ==519 [2025-01-26 03:57:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:57:05 - End Time 2025-01-26 03:57:05 [2025-01-26 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331721', 'tblTempUsageDetail_20' ) start [2025-01-26 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331721', 'tblTempUsageDetail_20' ) end [2025-01-26 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331721', 'tblTempVendorCDR_20' ) start [2025-01-26 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331721', 'tblTempVendorCDR_20' ) end [2025-01-26 03:57:18] Production.INFO: ProcessCDR(1,14331721,1,1,2) [2025-01-26 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331721', 'tblTempUsageDetail_20' ) start [2025-01-26 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331721', 'tblTempUsageDetail_20' ) end [2025-01-26 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:57:22] Production.INFO: ==32721== Releasing lock... [2025-01-26 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:57:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:58:05 [end_date_ymd] => 2025-01-26 03:58:05 [RateCDR] => 1 ) [2025-01-26 03:58: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-01-26 00:58:05' and `end` < '2025-01-26 03:58: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-01-26 03:58:17] Production.INFO: count ==519 [2025-01-26 03:58:17] Production.ERROR: pbx CDR StartTime 2025-01-26 00:58:05 - End Time 2025-01-26 03:58:05 [2025-01-26 03:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331726', 'tblTempUsageDetail_20' ) start [2025-01-26 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331726', 'tblTempUsageDetail_20' ) end [2025-01-26 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331726', 'tblTempVendorCDR_20' ) start [2025-01-26 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331726', 'tblTempVendorCDR_20' ) end [2025-01-26 03:58:17] Production.INFO: ProcessCDR(1,14331726,1,1,2) [2025-01-26 03:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331726', 'tblTempUsageDetail_20' ) start [2025-01-26 03:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331726', 'tblTempUsageDetail_20' ) end [2025-01-26 03:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:58:20] Production.INFO: ==384== Releasing lock... [2025-01-26 03:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:58:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 00:59:05 [end_date_ymd] => 2025-01-26 03:59:05 [RateCDR] => 1 ) [2025-01-26 03:59: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-01-26 00:59:05' and `end` < '2025-01-26 03:59: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-01-26 03:59:18] Production.INFO: count ==518 [2025-01-26 03:59:18] Production.ERROR: pbx CDR StartTime 2025-01-26 00:59:05 - End Time 2025-01-26 03:59:05 [2025-01-26 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331731', 'tblTempUsageDetail_20' ) start [2025-01-26 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331731', 'tblTempUsageDetail_20' ) end [2025-01-26 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331731', 'tblTempVendorCDR_20' ) start [2025-01-26 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331731', 'tblTempVendorCDR_20' ) end [2025-01-26 03:59:18] Production.INFO: ProcessCDR(1,14331731,1,1,2) [2025-01-26 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331731', 'tblTempUsageDetail_20' ) start [2025-01-26 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331731', 'tblTempUsageDetail_20' ) end [2025-01-26 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 03:59:22] Production.INFO: ==473== Releasing lock... [2025-01-26 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 03:59:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:00:06 [end_date_ymd] => 2025-01-26 04:00:06 [RateCDR] => 1 ) [2025-01-26 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-01-26 01:00:06' and `end` < '2025-01-26 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-01-26 04:00:19] Production.INFO: count ==514 [2025-01-26 04:00:19] Production.ERROR: pbx CDR StartTime 2025-01-26 01:00:06 - End Time 2025-01-26 04:00:06 [2025-01-26 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331737', 'tblTempUsageDetail_20' ) start [2025-01-26 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331737', 'tblTempUsageDetail_20' ) end [2025-01-26 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331737', 'tblTempVendorCDR_20' ) start [2025-01-26 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331737', 'tblTempVendorCDR_20' ) end [2025-01-26 04:00:19] Production.INFO: ProcessCDR(1,14331737,1,1,2) [2025-01-26 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331737', 'tblTempUsageDetail_20' ) start [2025-01-26 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331737', 'tblTempUsageDetail_20' ) end [2025-01-26 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:00:23] Production.INFO: ==559== Releasing lock... [2025-01-26 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:00:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:01:05 [end_date_ymd] => 2025-01-26 04:01:05 [RateCDR] => 1 ) [2025-01-26 04:01: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-01-26 01:01:05' and `end` < '2025-01-26 04:01: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-01-26 04:01:17] Production.INFO: count ==505 [2025-01-26 04:01:17] Production.ERROR: pbx CDR StartTime 2025-01-26 01:01:05 - End Time 2025-01-26 04:01:05 [2025-01-26 04:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331743', 'tblTempUsageDetail_20' ) start [2025-01-26 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331743', 'tblTempUsageDetail_20' ) end [2025-01-26 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331743', 'tblTempVendorCDR_20' ) start [2025-01-26 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331743', 'tblTempVendorCDR_20' ) end [2025-01-26 04:01:17] Production.INFO: ProcessCDR(1,14331743,1,1,2) [2025-01-26 04:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331743', 'tblTempUsageDetail_20' ) start [2025-01-26 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331743', 'tblTempUsageDetail_20' ) end [2025-01-26 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:01:21] Production.INFO: ==662== Releasing lock... [2025-01-26 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:01:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 04:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:02:04 [end_date_ymd] => 2025-01-26 04:02:04 [RateCDR] => 1 ) [2025-01-26 04:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 01:02:04' and `end` < '2025-01-26 04:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 04:02:17] Production.INFO: count ==505 [2025-01-26 04:02:17] Production.ERROR: pbx CDR StartTime 2025-01-26 01:02:04 - End Time 2025-01-26 04:02:04 [2025-01-26 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331748', 'tblTempUsageDetail_20' ) start [2025-01-26 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331748', 'tblTempUsageDetail_20' ) end [2025-01-26 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331748', 'tblTempVendorCDR_20' ) start [2025-01-26 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331748', 'tblTempVendorCDR_20' ) end [2025-01-26 04:02:17] Production.INFO: ProcessCDR(1,14331748,1,1,2) [2025-01-26 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331748', 'tblTempUsageDetail_20' ) start [2025-01-26 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331748', 'tblTempUsageDetail_20' ) end [2025-01-26 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:02:21] Production.INFO: ==759== Releasing lock... [2025-01-26 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:02:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:03:05 [end_date_ymd] => 2025-01-26 04:03:05 [RateCDR] => 1 ) [2025-01-26 04:03: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-01-26 01:03:05' and `end` < '2025-01-26 04:03: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-01-26 04:03:19] Production.INFO: count ==505 [2025-01-26 04:03:19] Production.ERROR: pbx CDR StartTime 2025-01-26 01:03:05 - End Time 2025-01-26 04:03:05 [2025-01-26 04:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331753', 'tblTempUsageDetail_20' ) start [2025-01-26 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331753', 'tblTempUsageDetail_20' ) end [2025-01-26 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331753', 'tblTempVendorCDR_20' ) start [2025-01-26 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331753', 'tblTempVendorCDR_20' ) end [2025-01-26 04:03:19] Production.INFO: ProcessCDR(1,14331753,1,1,2) [2025-01-26 04:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331753', 'tblTempUsageDetail_20' ) start [2025-01-26 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331753', 'tblTempUsageDetail_20' ) end [2025-01-26 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:03:22] Production.INFO: ==833== Releasing lock... [2025-01-26 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:03:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:04:05 [end_date_ymd] => 2025-01-26 04:04:05 [RateCDR] => 1 ) [2025-01-26 04:04: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-01-26 01:04:05' and `end` < '2025-01-26 04:04: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-01-26 04:04:17] Production.INFO: count ==504 [2025-01-26 04:04:17] Production.ERROR: pbx CDR StartTime 2025-01-26 01:04:05 - End Time 2025-01-26 04:04:05 [2025-01-26 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331758', 'tblTempUsageDetail_20' ) start [2025-01-26 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331758', 'tblTempUsageDetail_20' ) end [2025-01-26 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331758', 'tblTempVendorCDR_20' ) start [2025-01-26 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331758', 'tblTempVendorCDR_20' ) end [2025-01-26 04:04:18] Production.INFO: ProcessCDR(1,14331758,1,1,2) [2025-01-26 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331758', 'tblTempUsageDetail_20' ) start [2025-01-26 04:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331758', 'tblTempUsageDetail_20' ) end [2025-01-26 04:04:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:04:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:04:21] Production.INFO: ==911== Releasing lock... [2025-01-26 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:04:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:05:05 [end_date_ymd] => 2025-01-26 04:05:05 [RateCDR] => 1 ) [2025-01-26 04:05: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-01-26 01:05:05' and `end` < '2025-01-26 04:05: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-01-26 04:05:17] Production.INFO: count ==504 [2025-01-26 04:05:17] Production.ERROR: pbx CDR StartTime 2025-01-26 01:05:05 - End Time 2025-01-26 04:05:05 [2025-01-26 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331763', 'tblTempUsageDetail_20' ) start [2025-01-26 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331763', 'tblTempUsageDetail_20' ) end [2025-01-26 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331763', 'tblTempVendorCDR_20' ) start [2025-01-26 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331763', 'tblTempVendorCDR_20' ) end [2025-01-26 04:05:17] Production.INFO: ProcessCDR(1,14331763,1,1,2) [2025-01-26 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331763', 'tblTempUsageDetail_20' ) start [2025-01-26 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331763', 'tblTempUsageDetail_20' ) end [2025-01-26 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:05:21] Production.INFO: ==987== Releasing lock... [2025-01-26 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:05:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:06:05 [end_date_ymd] => 2025-01-26 04:06:05 [RateCDR] => 1 ) [2025-01-26 04:06: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-01-26 01:06:05' and `end` < '2025-01-26 04:06: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-01-26 04:06:19] Production.INFO: count ==504 [2025-01-26 04:06:19] Production.ERROR: pbx CDR StartTime 2025-01-26 01:06:05 - End Time 2025-01-26 04:06:05 [2025-01-26 04:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331768', 'tblTempUsageDetail_20' ) start [2025-01-26 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331768', 'tblTempUsageDetail_20' ) end [2025-01-26 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331768', 'tblTempVendorCDR_20' ) start [2025-01-26 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331768', 'tblTempVendorCDR_20' ) end [2025-01-26 04:06:19] Production.INFO: ProcessCDR(1,14331768,1,1,2) [2025-01-26 04:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331768', 'tblTempUsageDetail_20' ) start [2025-01-26 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331768', 'tblTempUsageDetail_20' ) end [2025-01-26 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:06:22] Production.INFO: ==1063== Releasing lock... [2025-01-26 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:06:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 04:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:07:06 [end_date_ymd] => 2025-01-26 04:07:06 [RateCDR] => 1 ) [2025-01-26 04:07: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-01-26 01:07:06' and `end` < '2025-01-26 04:07: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-01-26 04:07:18] Production.INFO: count ==503 [2025-01-26 04:07:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:07:06 - End Time 2025-01-26 04:07:06 [2025-01-26 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331773', 'tblTempUsageDetail_20' ) start [2025-01-26 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331773', 'tblTempUsageDetail_20' ) end [2025-01-26 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331773', 'tblTempVendorCDR_20' ) start [2025-01-26 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331773', 'tblTempVendorCDR_20' ) end [2025-01-26 04:07:18] Production.INFO: ProcessCDR(1,14331773,1,1,2) [2025-01-26 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331773', 'tblTempUsageDetail_20' ) start [2025-01-26 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331773', 'tblTempUsageDetail_20' ) end [2025-01-26 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:07:21] Production.INFO: ==1137== Releasing lock... [2025-01-26 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:07:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:08:06 [end_date_ymd] => 2025-01-26 04:08:06 [RateCDR] => 1 ) [2025-01-26 04:08: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-01-26 01:08:06' and `end` < '2025-01-26 04:08: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-01-26 04:08:18] Production.INFO: count ==503 [2025-01-26 04:08:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:08:06 - End Time 2025-01-26 04:08:06 [2025-01-26 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331778', 'tblTempUsageDetail_20' ) start [2025-01-26 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331778', 'tblTempUsageDetail_20' ) end [2025-01-26 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331778', 'tblTempVendorCDR_20' ) start [2025-01-26 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331778', 'tblTempVendorCDR_20' ) end [2025-01-26 04:08:18] Production.INFO: ProcessCDR(1,14331778,1,1,2) [2025-01-26 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331778', 'tblTempUsageDetail_20' ) start [2025-01-26 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331778', 'tblTempUsageDetail_20' ) end [2025-01-26 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:08:21] Production.INFO: ==1219== Releasing lock... [2025-01-26 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:08:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:09:05 [end_date_ymd] => 2025-01-26 04:09:05 [RateCDR] => 1 ) [2025-01-26 04:09: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-01-26 01:09:05' and `end` < '2025-01-26 04:09: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-01-26 04:09:17] Production.INFO: count ==503 [2025-01-26 04:09:17] Production.ERROR: pbx CDR StartTime 2025-01-26 01:09:05 - End Time 2025-01-26 04:09:05 [2025-01-26 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331783', 'tblTempUsageDetail_20' ) start [2025-01-26 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331783', 'tblTempUsageDetail_20' ) end [2025-01-26 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331783', 'tblTempVendorCDR_20' ) start [2025-01-26 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331783', 'tblTempVendorCDR_20' ) end [2025-01-26 04:09:17] Production.INFO: ProcessCDR(1,14331783,1,1,2) [2025-01-26 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331783', 'tblTempUsageDetail_20' ) start [2025-01-26 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331783', 'tblTempUsageDetail_20' ) end [2025-01-26 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:09:21] Production.INFO: ==1308== Releasing lock... [2025-01-26 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:09:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:10:06 [end_date_ymd] => 2025-01-26 04:10:06 [RateCDR] => 1 ) [2025-01-26 04:10: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-01-26 01:10:06' and `end` < '2025-01-26 04:10: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-01-26 04:10:19] Production.INFO: count ==501 [2025-01-26 04:10:19] Production.ERROR: pbx CDR StartTime 2025-01-26 01:10:06 - End Time 2025-01-26 04:10:06 [2025-01-26 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331789', 'tblTempUsageDetail_20' ) start [2025-01-26 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331789', 'tblTempUsageDetail_20' ) end [2025-01-26 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331789', 'tblTempVendorCDR_20' ) start [2025-01-26 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331789', 'tblTempVendorCDR_20' ) end [2025-01-26 04:10:19] Production.INFO: ProcessCDR(1,14331789,1,1,2) [2025-01-26 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331789', 'tblTempUsageDetail_20' ) start [2025-01-26 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331789', 'tblTempUsageDetail_20' ) end [2025-01-26 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:10:22] Production.INFO: ==1384== Releasing lock... [2025-01-26 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:10:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 04:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:11:04 [end_date_ymd] => 2025-01-26 04:11:04 [RateCDR] => 1 ) [2025-01-26 04:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 01:11:04' and `end` < '2025-01-26 04:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 04:11:17] Production.INFO: count ==489 [2025-01-26 04:11:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:11:04 - End Time 2025-01-26 04:11:04 [2025-01-26 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331794', 'tblTempUsageDetail_20' ) start [2025-01-26 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331794', 'tblTempUsageDetail_20' ) end [2025-01-26 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331794', 'tblTempVendorCDR_20' ) start [2025-01-26 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331794', 'tblTempVendorCDR_20' ) end [2025-01-26 04:11:18] Production.INFO: ProcessCDR(1,14331794,1,1,2) [2025-01-26 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331794', 'tblTempUsageDetail_20' ) start [2025-01-26 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331794', 'tblTempUsageDetail_20' ) end [2025-01-26 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:11:21] Production.INFO: ==1501== Releasing lock... [2025-01-26 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:11:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:12:05 [end_date_ymd] => 2025-01-26 04:12:05 [RateCDR] => 1 ) [2025-01-26 04:12: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-01-26 01:12:05' and `end` < '2025-01-26 04:12: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-01-26 04:12:18] Production.INFO: count ==489 [2025-01-26 04:12:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:12:05 - End Time 2025-01-26 04:12:05 [2025-01-26 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331799', 'tblTempUsageDetail_20' ) start [2025-01-26 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331799', 'tblTempUsageDetail_20' ) end [2025-01-26 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331799', 'tblTempVendorCDR_20' ) start [2025-01-26 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331799', 'tblTempVendorCDR_20' ) end [2025-01-26 04:12:18] Production.INFO: ProcessCDR(1,14331799,1,1,2) [2025-01-26 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331799', 'tblTempUsageDetail_20' ) start [2025-01-26 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331799', 'tblTempUsageDetail_20' ) end [2025-01-26 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:12:21] Production.INFO: ==1618== Releasing lock... [2025-01-26 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:12:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:13:05 [end_date_ymd] => 2025-01-26 04:13:05 [RateCDR] => 1 ) [2025-01-26 04:13: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-01-26 01:13:05' and `end` < '2025-01-26 04:13: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-01-26 04:13:18] Production.INFO: count ==485 [2025-01-26 04:13:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:13:05 - End Time 2025-01-26 04:13:05 [2025-01-26 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331804', 'tblTempUsageDetail_20' ) start [2025-01-26 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331804', 'tblTempUsageDetail_20' ) end [2025-01-26 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331804', 'tblTempVendorCDR_20' ) start [2025-01-26 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331804', 'tblTempVendorCDR_20' ) end [2025-01-26 04:13:18] Production.INFO: ProcessCDR(1,14331804,1,1,2) [2025-01-26 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331804', 'tblTempUsageDetail_20' ) start [2025-01-26 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331804', 'tblTempUsageDetail_20' ) end [2025-01-26 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:13:21] Production.INFO: ==1694== Releasing lock... [2025-01-26 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:13:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:14:05 [end_date_ymd] => 2025-01-26 04:14:05 [RateCDR] => 1 ) [2025-01-26 04:14: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-01-26 01:14:05' and `end` < '2025-01-26 04:14: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-01-26 04:14:17] Production.INFO: count ==483 [2025-01-26 04:14:17] Production.ERROR: pbx CDR StartTime 2025-01-26 01:14:05 - End Time 2025-01-26 04:14:05 [2025-01-26 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331809', 'tblTempUsageDetail_20' ) start [2025-01-26 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331809', 'tblTempUsageDetail_20' ) end [2025-01-26 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331809', 'tblTempVendorCDR_20' ) start [2025-01-26 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331809', 'tblTempVendorCDR_20' ) end [2025-01-26 04:14:17] Production.INFO: ProcessCDR(1,14331809,1,1,2) [2025-01-26 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331809', 'tblTempUsageDetail_20' ) start [2025-01-26 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331809', 'tblTempUsageDetail_20' ) end [2025-01-26 04:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:14:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:14:20] Production.INFO: ==1773== Releasing lock... [2025-01-26 04:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:14:20] Production.INFO: 31 MB #Memory Used# [2025-01-26 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:15:05 [end_date_ymd] => 2025-01-26 04:15:05 [RateCDR] => 1 ) [2025-01-26 04:15: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-01-26 01:15:05' and `end` < '2025-01-26 04:15: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-01-26 04:15:18] Production.INFO: count ==483 [2025-01-26 04:15:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:15:05 - End Time 2025-01-26 04:15:05 [2025-01-26 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331814', 'tblTempUsageDetail_20' ) start [2025-01-26 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331814', 'tblTempUsageDetail_20' ) end [2025-01-26 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331814', 'tblTempVendorCDR_20' ) start [2025-01-26 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331814', 'tblTempVendorCDR_20' ) end [2025-01-26 04:15:18] Production.INFO: ProcessCDR(1,14331814,1,1,2) [2025-01-26 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331814', 'tblTempUsageDetail_20' ) start [2025-01-26 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331814', 'tblTempUsageDetail_20' ) end [2025-01-26 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:15:21] Production.INFO: ==1855== Releasing lock... [2025-01-26 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:15:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:16:05 [end_date_ymd] => 2025-01-26 04:16:05 [RateCDR] => 1 ) [2025-01-26 04:16: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-01-26 01:16:05' and `end` < '2025-01-26 04:16: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-01-26 04:16:18] Production.INFO: count ==483 [2025-01-26 04:16:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:16:05 - End Time 2025-01-26 04:16:05 [2025-01-26 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331819', 'tblTempUsageDetail_20' ) start [2025-01-26 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331819', 'tblTempUsageDetail_20' ) end [2025-01-26 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331819', 'tblTempVendorCDR_20' ) start [2025-01-26 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331819', 'tblTempVendorCDR_20' ) end [2025-01-26 04:16:18] Production.INFO: ProcessCDR(1,14331819,1,1,2) [2025-01-26 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331819', 'tblTempUsageDetail_20' ) start [2025-01-26 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331819', 'tblTempUsageDetail_20' ) end [2025-01-26 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:16:21] Production.INFO: ==1930== Releasing lock... [2025-01-26 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:16:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:17:05 [end_date_ymd] => 2025-01-26 04:17:05 [RateCDR] => 1 ) [2025-01-26 04:17: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-01-26 01:17:05' and `end` < '2025-01-26 04:17: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-01-26 04:17:18] Production.INFO: count ==483 [2025-01-26 04:17:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:17:05 - End Time 2025-01-26 04:17:05 [2025-01-26 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331824', 'tblTempUsageDetail_20' ) start [2025-01-26 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331824', 'tblTempUsageDetail_20' ) end [2025-01-26 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331824', 'tblTempVendorCDR_20' ) start [2025-01-26 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331824', 'tblTempVendorCDR_20' ) end [2025-01-26 04:17:18] Production.INFO: ProcessCDR(1,14331824,1,1,2) [2025-01-26 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331824', 'tblTempUsageDetail_20' ) start [2025-01-26 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331824', 'tblTempUsageDetail_20' ) end [2025-01-26 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:17:21] Production.INFO: ==2005== Releasing lock... [2025-01-26 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:17:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:18:05 [end_date_ymd] => 2025-01-26 04:18:05 [RateCDR] => 1 ) [2025-01-26 04:18: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-01-26 01:18:05' and `end` < '2025-01-26 04:18: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-01-26 04:18:17] Production.INFO: count ==483 [2025-01-26 04:18:17] Production.ERROR: pbx CDR StartTime 2025-01-26 01:18:05 - End Time 2025-01-26 04:18:05 [2025-01-26 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331829', 'tblTempUsageDetail_20' ) start [2025-01-26 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331829', 'tblTempUsageDetail_20' ) end [2025-01-26 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331829', 'tblTempVendorCDR_20' ) start [2025-01-26 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331829', 'tblTempVendorCDR_20' ) end [2025-01-26 04:18:17] Production.INFO: ProcessCDR(1,14331829,1,1,2) [2025-01-26 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331829', 'tblTempUsageDetail_20' ) start [2025-01-26 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331829', 'tblTempUsageDetail_20' ) end [2025-01-26 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:18:21] Production.INFO: ==2089== Releasing lock... [2025-01-26 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:18:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:19:05 [end_date_ymd] => 2025-01-26 04:19:05 [RateCDR] => 1 ) [2025-01-26 04:19: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-01-26 01:19:05' and `end` < '2025-01-26 04:19: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-01-26 04:19:18] Production.INFO: count ==483 [2025-01-26 04:19:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:19:05 - End Time 2025-01-26 04:19:05 [2025-01-26 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331834', 'tblTempUsageDetail_20' ) start [2025-01-26 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331834', 'tblTempUsageDetail_20' ) end [2025-01-26 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331834', 'tblTempVendorCDR_20' ) start [2025-01-26 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331834', 'tblTempVendorCDR_20' ) end [2025-01-26 04:19:18] Production.INFO: ProcessCDR(1,14331834,1,1,2) [2025-01-26 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331834', 'tblTempUsageDetail_20' ) start [2025-01-26 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331834', 'tblTempUsageDetail_20' ) end [2025-01-26 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:19:21] Production.INFO: ==2168== Releasing lock... [2025-01-26 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:19:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:20:06 [end_date_ymd] => 2025-01-26 04:20:06 [RateCDR] => 1 ) [2025-01-26 04:20: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-01-26 01:20:06' and `end` < '2025-01-26 04:20: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-01-26 04:20:19] Production.INFO: count ==471 [2025-01-26 04:20:19] Production.ERROR: pbx CDR StartTime 2025-01-26 01:20:06 - End Time 2025-01-26 04:20:06 [2025-01-26 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331840', 'tblTempUsageDetail_20' ) start [2025-01-26 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331840', 'tblTempUsageDetail_20' ) end [2025-01-26 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331840', 'tblTempVendorCDR_20' ) start [2025-01-26 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331840', 'tblTempVendorCDR_20' ) end [2025-01-26 04:20:19] Production.INFO: ProcessCDR(1,14331840,1,1,2) [2025-01-26 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331840', 'tblTempUsageDetail_20' ) start [2025-01-26 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331840', 'tblTempUsageDetail_20' ) end [2025-01-26 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:20:22] Production.INFO: ==2247== Releasing lock... [2025-01-26 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:20:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-26 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:21:05 [end_date_ymd] => 2025-01-26 04:21:05 [RateCDR] => 1 ) [2025-01-26 04:21: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-01-26 01:21:05' and `end` < '2025-01-26 04:21: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-01-26 04:21:18] Production.INFO: count ==465 [2025-01-26 04:21:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:21:05 - End Time 2025-01-26 04:21:05 [2025-01-26 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331845', 'tblTempUsageDetail_20' ) start [2025-01-26 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331845', 'tblTempUsageDetail_20' ) end [2025-01-26 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331845', 'tblTempVendorCDR_20' ) start [2025-01-26 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331845', 'tblTempVendorCDR_20' ) end [2025-01-26 04:21:18] Production.INFO: ProcessCDR(1,14331845,1,1,2) [2025-01-26 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331845', 'tblTempUsageDetail_20' ) start [2025-01-26 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331845', 'tblTempUsageDetail_20' ) end [2025-01-26 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:21:21] Production.INFO: ==2327== Releasing lock... [2025-01-26 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:21:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:22:05 [end_date_ymd] => 2025-01-26 04:22:05 [RateCDR] => 1 ) [2025-01-26 04:22: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-01-26 01:22:05' and `end` < '2025-01-26 04:22: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-01-26 04:22:17] Production.INFO: count ==464 [2025-01-26 04:22:17] Production.ERROR: pbx CDR StartTime 2025-01-26 01:22:05 - End Time 2025-01-26 04:22:05 [2025-01-26 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331850', 'tblTempUsageDetail_20' ) start [2025-01-26 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331850', 'tblTempUsageDetail_20' ) end [2025-01-26 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331850', 'tblTempVendorCDR_20' ) start [2025-01-26 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331850', 'tblTempVendorCDR_20' ) end [2025-01-26 04:22:17] Production.INFO: ProcessCDR(1,14331850,1,1,2) [2025-01-26 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331850', 'tblTempUsageDetail_20' ) start [2025-01-26 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331850', 'tblTempUsageDetail_20' ) end [2025-01-26 04:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:22:20] Production.INFO: ==2401== Releasing lock... [2025-01-26 04:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:22:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:23:05 [end_date_ymd] => 2025-01-26 04:23:05 [RateCDR] => 1 ) [2025-01-26 04:23: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-01-26 01:23:05' and `end` < '2025-01-26 04:23: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-01-26 04:23:18] Production.INFO: count ==458 [2025-01-26 04:23:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:23:05 - End Time 2025-01-26 04:23:05 [2025-01-26 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331855', 'tblTempUsageDetail_20' ) start [2025-01-26 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331855', 'tblTempUsageDetail_20' ) end [2025-01-26 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331855', 'tblTempVendorCDR_20' ) start [2025-01-26 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331855', 'tblTempVendorCDR_20' ) end [2025-01-26 04:23:18] Production.INFO: ProcessCDR(1,14331855,1,1,2) [2025-01-26 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331855', 'tblTempUsageDetail_20' ) start [2025-01-26 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331855', 'tblTempUsageDetail_20' ) end [2025-01-26 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:23:21] Production.INFO: ==2477== Releasing lock... [2025-01-26 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:23:21] Production.INFO: 31 MB #Memory Used# [2025-01-26 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:24:05 [end_date_ymd] => 2025-01-26 04:24:05 [RateCDR] => 1 ) [2025-01-26 04:24: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-01-26 01:24:05' and `end` < '2025-01-26 04:24: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-01-26 04:24:18] Production.INFO: count ==457 [2025-01-26 04:24:19] Production.ERROR: pbx CDR StartTime 2025-01-26 01:24:05 - End Time 2025-01-26 04:24:05 [2025-01-26 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331860', 'tblTempUsageDetail_20' ) start [2025-01-26 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331860', 'tblTempUsageDetail_20' ) end [2025-01-26 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331860', 'tblTempVendorCDR_20' ) start [2025-01-26 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331860', 'tblTempVendorCDR_20' ) end [2025-01-26 04:24:19] Production.INFO: ProcessCDR(1,14331860,1,1,2) [2025-01-26 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331860', 'tblTempUsageDetail_20' ) start [2025-01-26 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331860', 'tblTempUsageDetail_20' ) end [2025-01-26 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:24:22] Production.INFO: ==2553== Releasing lock... [2025-01-26 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:24:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:25:05 [end_date_ymd] => 2025-01-26 04:25:05 [RateCDR] => 1 ) [2025-01-26 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 01:25:05' and `end` < '2025-01-26 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 04:25:17] Production.INFO: count ==456 [2025-01-26 04:25:17] Production.ERROR: pbx CDR StartTime 2025-01-26 01:25:05 - End Time 2025-01-26 04:25:05 [2025-01-26 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331865', 'tblTempUsageDetail_20' ) start [2025-01-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331865', 'tblTempUsageDetail_20' ) end [2025-01-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331865', 'tblTempVendorCDR_20' ) start [2025-01-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331865', 'tblTempVendorCDR_20' ) end [2025-01-26 04:25:17] Production.INFO: ProcessCDR(1,14331865,1,1,2) [2025-01-26 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331865', 'tblTempUsageDetail_20' ) start [2025-01-26 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331865', 'tblTempUsageDetail_20' ) end [2025-01-26 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:25:20] Production.INFO: ==2627== Releasing lock... [2025-01-26 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:25:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 04:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:26:06 [end_date_ymd] => 2025-01-26 04:26:06 [RateCDR] => 1 ) [2025-01-26 04:26: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-01-26 01:26:06' and `end` < '2025-01-26 04:26: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-01-26 04:26:19] Production.INFO: count ==455 [2025-01-26 04:26:19] Production.ERROR: pbx CDR StartTime 2025-01-26 01:26:06 - End Time 2025-01-26 04:26:06 [2025-01-26 04:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331870', 'tblTempUsageDetail_20' ) start [2025-01-26 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331870', 'tblTempUsageDetail_20' ) end [2025-01-26 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331870', 'tblTempVendorCDR_20' ) start [2025-01-26 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331870', 'tblTempVendorCDR_20' ) end [2025-01-26 04:26:19] Production.INFO: ProcessCDR(1,14331870,1,1,2) [2025-01-26 04:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331870', 'tblTempUsageDetail_20' ) start [2025-01-26 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331870', 'tblTempUsageDetail_20' ) end [2025-01-26 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:26:22] Production.INFO: ==2703== Releasing lock... [2025-01-26 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:26:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:27:05 [end_date_ymd] => 2025-01-26 04:27:05 [RateCDR] => 1 ) [2025-01-26 04:27: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-01-26 01:27:05' and `end` < '2025-01-26 04:27: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-01-26 04:27:18] Production.INFO: count ==444 [2025-01-26 04:27:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:27:05 - End Time 2025-01-26 04:27:05 [2025-01-26 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331875', 'tblTempUsageDetail_20' ) start [2025-01-26 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331875', 'tblTempUsageDetail_20' ) end [2025-01-26 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331875', 'tblTempVendorCDR_20' ) start [2025-01-26 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331875', 'tblTempVendorCDR_20' ) end [2025-01-26 04:27:18] Production.INFO: ProcessCDR(1,14331875,1,1,2) [2025-01-26 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331875', 'tblTempUsageDetail_20' ) start [2025-01-26 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331875', 'tblTempUsageDetail_20' ) end [2025-01-26 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:27:21] Production.INFO: ==2815== Releasing lock... [2025-01-26 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:27:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:28:05 [end_date_ymd] => 2025-01-26 04:28:05 [RateCDR] => 1 ) [2025-01-26 04:28: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-01-26 01:28:05' and `end` < '2025-01-26 04:28: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-01-26 04:28:18] Production.INFO: count ==441 [2025-01-26 04:28:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:28:05 - End Time 2025-01-26 04:28:05 [2025-01-26 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331880', 'tblTempUsageDetail_20' ) start [2025-01-26 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331880', 'tblTempUsageDetail_20' ) end [2025-01-26 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331880', 'tblTempVendorCDR_20' ) start [2025-01-26 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331880', 'tblTempVendorCDR_20' ) end [2025-01-26 04:28:18] Production.INFO: ProcessCDR(1,14331880,1,1,2) [2025-01-26 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331880', 'tblTempUsageDetail_20' ) start [2025-01-26 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331880', 'tblTempUsageDetail_20' ) end [2025-01-26 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:28:21] Production.INFO: ==2891== Releasing lock... [2025-01-26 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-26 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:29:05 [end_date_ymd] => 2025-01-26 04:29:05 [RateCDR] => 1 ) [2025-01-26 04:29: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-01-26 01:29:05' and `end` < '2025-01-26 04:29: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-01-26 04:29:18] Production.INFO: count ==438 [2025-01-26 04:29:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:29:05 - End Time 2025-01-26 04:29:05 [2025-01-26 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331885', 'tblTempUsageDetail_20' ) start [2025-01-26 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331885', 'tblTempUsageDetail_20' ) end [2025-01-26 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331885', 'tblTempVendorCDR_20' ) start [2025-01-26 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331885', 'tblTempVendorCDR_20' ) end [2025-01-26 04:29:18] Production.INFO: ProcessCDR(1,14331885,1,1,2) [2025-01-26 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331885', 'tblTempUsageDetail_20' ) start [2025-01-26 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331885', 'tblTempUsageDetail_20' ) end [2025-01-26 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:29:21] Production.INFO: ==2968== Releasing lock... [2025-01-26 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:29:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-26 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:30:06 [end_date_ymd] => 2025-01-26 04:30:06 [RateCDR] => 1 ) [2025-01-26 04:30: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-01-26 01:30:06' and `end` < '2025-01-26 04:30: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-01-26 04:30:18] Production.INFO: count ==427 [2025-01-26 04:30:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:30:06 - End Time 2025-01-26 04:30:06 [2025-01-26 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331890', 'tblTempUsageDetail_20' ) start [2025-01-26 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331890', 'tblTempUsageDetail_20' ) end [2025-01-26 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331890', 'tblTempVendorCDR_20' ) start [2025-01-26 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331890', 'tblTempVendorCDR_20' ) end [2025-01-26 04:30:18] Production.INFO: ProcessCDR(1,14331890,1,1,2) [2025-01-26 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331890', 'tblTempUsageDetail_20' ) start [2025-01-26 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331890', 'tblTempUsageDetail_20' ) end [2025-01-26 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:30:22] Production.INFO: ==3047== Releasing lock... [2025-01-26 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:30:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-26 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:31:05 [end_date_ymd] => 2025-01-26 04:31:05 [RateCDR] => 1 ) [2025-01-26 04:31: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-01-26 01:31:05' and `end` < '2025-01-26 04:31: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-01-26 04:31:18] Production.INFO: count ==419 [2025-01-26 04:31:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:31:05 - End Time 2025-01-26 04:31:05 [2025-01-26 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331897', 'tblTempUsageDetail_20' ) start [2025-01-26 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331897', 'tblTempUsageDetail_20' ) end [2025-01-26 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331897', 'tblTempVendorCDR_20' ) start [2025-01-26 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331897', 'tblTempVendorCDR_20' ) end [2025-01-26 04:31:18] Production.INFO: ProcessCDR(1,14331897,1,1,2) [2025-01-26 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331897', 'tblTempUsageDetail_20' ) start [2025-01-26 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331897', 'tblTempUsageDetail_20' ) end [2025-01-26 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:31:21] Production.INFO: ==3132== Releasing lock... [2025-01-26 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:31:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-26 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:32:05 [end_date_ymd] => 2025-01-26 04:32:05 [RateCDR] => 1 ) [2025-01-26 04:32: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-01-26 01:32:05' and `end` < '2025-01-26 04:32: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-01-26 04:32:18] Production.INFO: count ==419 [2025-01-26 04:32:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:32:05 - End Time 2025-01-26 04:32:05 [2025-01-26 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331902', 'tblTempUsageDetail_20' ) start [2025-01-26 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331902', 'tblTempUsageDetail_20' ) end [2025-01-26 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331902', 'tblTempVendorCDR_20' ) start [2025-01-26 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331902', 'tblTempVendorCDR_20' ) end [2025-01-26 04:32:18] Production.INFO: ProcessCDR(1,14331902,1,1,2) [2025-01-26 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331902', 'tblTempUsageDetail_20' ) start [2025-01-26 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331902', 'tblTempUsageDetail_20' ) end [2025-01-26 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:32:21] Production.INFO: ==3223== Releasing lock... [2025-01-26 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:32:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-26 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:33:05 [end_date_ymd] => 2025-01-26 04:33:05 [RateCDR] => 1 ) [2025-01-26 04:33: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-01-26 01:33:05' and `end` < '2025-01-26 04:33: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-01-26 04:33:18] Production.INFO: count ==414 [2025-01-26 04:33:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:33:05 - End Time 2025-01-26 04:33:05 [2025-01-26 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331907', 'tblTempUsageDetail_20' ) start [2025-01-26 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331907', 'tblTempUsageDetail_20' ) end [2025-01-26 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331907', 'tblTempVendorCDR_20' ) start [2025-01-26 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331907', 'tblTempVendorCDR_20' ) end [2025-01-26 04:33:18] Production.INFO: ProcessCDR(1,14331907,1,1,2) [2025-01-26 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331907', 'tblTempUsageDetail_20' ) start [2025-01-26 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331907', 'tblTempUsageDetail_20' ) end [2025-01-26 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:33:21] Production.INFO: ==3303== Releasing lock... [2025-01-26 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:33:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-26 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:34:05 [end_date_ymd] => 2025-01-26 04:34:05 [RateCDR] => 1 ) [2025-01-26 04:34: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-01-26 01:34:05' and `end` < '2025-01-26 04:34: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-01-26 04:34:17] Production.INFO: count ==414 [2025-01-26 04:34:17] Production.ERROR: pbx CDR StartTime 2025-01-26 01:34:05 - End Time 2025-01-26 04:34:05 [2025-01-26 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331912', 'tblTempUsageDetail_20' ) start [2025-01-26 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331912', 'tblTempUsageDetail_20' ) end [2025-01-26 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331912', 'tblTempVendorCDR_20' ) start [2025-01-26 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331912', 'tblTempVendorCDR_20' ) end [2025-01-26 04:34:17] Production.INFO: ProcessCDR(1,14331912,1,1,2) [2025-01-26 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331912', 'tblTempUsageDetail_20' ) start [2025-01-26 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331912', 'tblTempUsageDetail_20' ) end [2025-01-26 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:34:20] Production.INFO: ==3379== Releasing lock... [2025-01-26 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:34:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-26 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:35:05 [end_date_ymd] => 2025-01-26 04:35:05 [RateCDR] => 1 ) [2025-01-26 04:35: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-01-26 01:35:05' and `end` < '2025-01-26 04:35: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-01-26 04:35:18] Production.INFO: count ==412 [2025-01-26 04:35:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:35:05 - End Time 2025-01-26 04:35:05 [2025-01-26 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331917', 'tblTempUsageDetail_20' ) start [2025-01-26 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331917', 'tblTempUsageDetail_20' ) end [2025-01-26 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331917', 'tblTempVendorCDR_20' ) start [2025-01-26 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331917', 'tblTempVendorCDR_20' ) end [2025-01-26 04:35:18] Production.INFO: ProcessCDR(1,14331917,1,1,2) [2025-01-26 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331917', 'tblTempUsageDetail_20' ) start [2025-01-26 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331917', 'tblTempUsageDetail_20' ) end [2025-01-26 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:35:21] Production.INFO: ==3453== Releasing lock... [2025-01-26 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:35:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-26 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:36:05 [end_date_ymd] => 2025-01-26 04:36:05 [RateCDR] => 1 ) [2025-01-26 04:36: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-01-26 01:36:05' and `end` < '2025-01-26 04:36: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-01-26 04:36:18] Production.INFO: count ==412 [2025-01-26 04:36:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:36:05 - End Time 2025-01-26 04:36:05 [2025-01-26 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331922', 'tblTempUsageDetail_20' ) start [2025-01-26 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331922', 'tblTempUsageDetail_20' ) end [2025-01-26 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331922', 'tblTempVendorCDR_20' ) start [2025-01-26 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331922', 'tblTempVendorCDR_20' ) end [2025-01-26 04:36:18] Production.INFO: ProcessCDR(1,14331922,1,1,2) [2025-01-26 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331922', 'tblTempUsageDetail_20' ) start [2025-01-26 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331922', 'tblTempUsageDetail_20' ) end [2025-01-26 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:36:21] Production.INFO: ==3524== Releasing lock... [2025-01-26 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:36:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-26 04:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:37:06 [end_date_ymd] => 2025-01-26 04:37:06 [RateCDR] => 1 ) [2025-01-26 04:37: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-01-26 01:37:06' and `end` < '2025-01-26 04:37: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-01-26 04:37:18] Production.INFO: count ==405 [2025-01-26 04:37:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:37:06 - End Time 2025-01-26 04:37:06 [2025-01-26 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331927', 'tblTempUsageDetail_20' ) start [2025-01-26 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331927', 'tblTempUsageDetail_20' ) end [2025-01-26 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331927', 'tblTempVendorCDR_20' ) start [2025-01-26 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331927', 'tblTempVendorCDR_20' ) end [2025-01-26 04:37:18] Production.INFO: ProcessCDR(1,14331927,1,1,2) [2025-01-26 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331927', 'tblTempUsageDetail_20' ) start [2025-01-26 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331927', 'tblTempUsageDetail_20' ) end [2025-01-26 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:37:21] Production.INFO: ==3599== Releasing lock... [2025-01-26 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:37:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-26 04:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:38:04 [end_date_ymd] => 2025-01-26 04:38:04 [RateCDR] => 1 ) [2025-01-26 04:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 01:38:04' and `end` < '2025-01-26 04:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 04:38:17] Production.INFO: count ==404 [2025-01-26 04:38:17] Production.ERROR: pbx CDR StartTime 2025-01-26 01:38:04 - End Time 2025-01-26 04:38:04 [2025-01-26 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331932', 'tblTempUsageDetail_20' ) start [2025-01-26 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331932', 'tblTempUsageDetail_20' ) end [2025-01-26 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331932', 'tblTempVendorCDR_20' ) start [2025-01-26 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331932', 'tblTempVendorCDR_20' ) end [2025-01-26 04:38:17] Production.INFO: ProcessCDR(1,14331932,1,1,2) [2025-01-26 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331932', 'tblTempUsageDetail_20' ) start [2025-01-26 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331932', 'tblTempUsageDetail_20' ) end [2025-01-26 04:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:38:20] Production.INFO: ==3674== Releasing lock... [2025-01-26 04:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:38:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-26 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:39:05 [end_date_ymd] => 2025-01-26 04:39:05 [RateCDR] => 1 ) [2025-01-26 04:39: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-01-26 01:39:05' and `end` < '2025-01-26 04:39: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-01-26 04:39:18] Production.INFO: count ==404 [2025-01-26 04:39:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:39:05 - End Time 2025-01-26 04:39:05 [2025-01-26 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331937', 'tblTempUsageDetail_20' ) start [2025-01-26 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331937', 'tblTempUsageDetail_20' ) end [2025-01-26 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331937', 'tblTempVendorCDR_20' ) start [2025-01-26 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331937', 'tblTempVendorCDR_20' ) end [2025-01-26 04:39:18] Production.INFO: ProcessCDR(1,14331937,1,1,2) [2025-01-26 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331937', 'tblTempUsageDetail_20' ) start [2025-01-26 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331937', 'tblTempUsageDetail_20' ) end [2025-01-26 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:39:21] Production.INFO: ==3749== Releasing lock... [2025-01-26 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:39:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-26 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:40:06 [end_date_ymd] => 2025-01-26 04:40:06 [RateCDR] => 1 ) [2025-01-26 04:40: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-01-26 01:40:06' and `end` < '2025-01-26 04:40: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-01-26 04:40:18] Production.INFO: count ==387 [2025-01-26 04:40:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:40:06 - End Time 2025-01-26 04:40:06 [2025-01-26 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331943', 'tblTempUsageDetail_20' ) start [2025-01-26 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331943', 'tblTempUsageDetail_20' ) end [2025-01-26 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331943', 'tblTempVendorCDR_20' ) start [2025-01-26 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331943', 'tblTempVendorCDR_20' ) end [2025-01-26 04:40:18] Production.INFO: ProcessCDR(1,14331943,1,1,2) [2025-01-26 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331943', 'tblTempUsageDetail_20' ) start [2025-01-26 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331943', 'tblTempUsageDetail_20' ) end [2025-01-26 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:40:21] Production.INFO: ==3825== Releasing lock... [2025-01-26 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:40:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-26 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:41:05 [end_date_ymd] => 2025-01-26 04:41:05 [RateCDR] => 1 ) [2025-01-26 04:41: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-01-26 01:41:05' and `end` < '2025-01-26 04:41: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-01-26 04:41:17] Production.INFO: count ==366 [2025-01-26 04:41:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:41:05 - End Time 2025-01-26 04:41:05 [2025-01-26 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331948', 'tblTempUsageDetail_20' ) start [2025-01-26 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331948', 'tblTempUsageDetail_20' ) end [2025-01-26 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331948', 'tblTempVendorCDR_20' ) start [2025-01-26 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331948', 'tblTempVendorCDR_20' ) end [2025-01-26 04:41:18] Production.INFO: ProcessCDR(1,14331948,1,1,2) [2025-01-26 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331948', 'tblTempUsageDetail_20' ) start [2025-01-26 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331948', 'tblTempUsageDetail_20' ) end [2025-01-26 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:41:20] Production.INFO: ==3902== Releasing lock... [2025-01-26 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:41:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-26 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:42:06 [end_date_ymd] => 2025-01-26 04:42:06 [RateCDR] => 1 ) [2025-01-26 04:42: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-01-26 01:42:06' and `end` < '2025-01-26 04:42: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-01-26 04:42:19] Production.INFO: count ==366 [2025-01-26 04:42:19] Production.ERROR: pbx CDR StartTime 2025-01-26 01:42:06 - End Time 2025-01-26 04:42:06 [2025-01-26 04:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331953', 'tblTempUsageDetail_20' ) start [2025-01-26 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331953', 'tblTempUsageDetail_20' ) end [2025-01-26 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331953', 'tblTempVendorCDR_20' ) start [2025-01-26 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331953', 'tblTempVendorCDR_20' ) end [2025-01-26 04:42:19] Production.INFO: ProcessCDR(1,14331953,1,1,2) [2025-01-26 04:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331953', 'tblTempUsageDetail_20' ) start [2025-01-26 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331953', 'tblTempUsageDetail_20' ) end [2025-01-26 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:42:22] Production.INFO: ==4017== Releasing lock... [2025-01-26 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:42:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-26 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:43:05 [end_date_ymd] => 2025-01-26 04:43:05 [RateCDR] => 1 ) [2025-01-26 04:43: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-01-26 01:43:05' and `end` < '2025-01-26 04:43: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-01-26 04:43:17] Production.INFO: count ==366 [2025-01-26 04:43:17] Production.ERROR: pbx CDR StartTime 2025-01-26 01:43:05 - End Time 2025-01-26 04:43:05 [2025-01-26 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331958', 'tblTempUsageDetail_20' ) start [2025-01-26 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331958', 'tblTempUsageDetail_20' ) end [2025-01-26 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331958', 'tblTempVendorCDR_20' ) start [2025-01-26 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331958', 'tblTempVendorCDR_20' ) end [2025-01-26 04:43:17] Production.INFO: ProcessCDR(1,14331958,1,1,2) [2025-01-26 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331958', 'tblTempUsageDetail_20' ) start [2025-01-26 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331958', 'tblTempUsageDetail_20' ) end [2025-01-26 04:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:43:20] Production.INFO: ==4094== Releasing lock... [2025-01-26 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:43:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-26 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:44:05 [end_date_ymd] => 2025-01-26 04:44:05 [RateCDR] => 1 ) [2025-01-26 04:44: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-01-26 01:44:05' and `end` < '2025-01-26 04:44: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-01-26 04:44:18] Production.INFO: count ==366 [2025-01-26 04:44:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:44:05 - End Time 2025-01-26 04:44:05 [2025-01-26 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331963', 'tblTempUsageDetail_20' ) start [2025-01-26 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331963', 'tblTempUsageDetail_20' ) end [2025-01-26 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331963', 'tblTempVendorCDR_20' ) start [2025-01-26 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331963', 'tblTempVendorCDR_20' ) end [2025-01-26 04:44:18] Production.INFO: ProcessCDR(1,14331963,1,1,2) [2025-01-26 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331963', 'tblTempUsageDetail_20' ) start [2025-01-26 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331963', 'tblTempUsageDetail_20' ) end [2025-01-26 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:44:21] Production.INFO: ==4173== Releasing lock... [2025-01-26 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:44:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-26 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:45:05 [end_date_ymd] => 2025-01-26 04:45:05 [RateCDR] => 1 ) [2025-01-26 04:45: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-01-26 01:45:05' and `end` < '2025-01-26 04:45: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-01-26 04:45:17] Production.INFO: count ==366 [2025-01-26 04:45:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:45:05 - End Time 2025-01-26 04:45:05 [2025-01-26 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331968', 'tblTempUsageDetail_20' ) start [2025-01-26 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331968', 'tblTempUsageDetail_20' ) end [2025-01-26 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331968', 'tblTempVendorCDR_20' ) start [2025-01-26 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331968', 'tblTempVendorCDR_20' ) end [2025-01-26 04:45:18] Production.INFO: ProcessCDR(1,14331968,1,1,2) [2025-01-26 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331968', 'tblTempUsageDetail_20' ) start [2025-01-26 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331968', 'tblTempUsageDetail_20' ) end [2025-01-26 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:45:21] Production.INFO: ==4249== Releasing lock... [2025-01-26 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:45:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-26 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:46:05 [end_date_ymd] => 2025-01-26 04:46:05 [RateCDR] => 1 ) [2025-01-26 04:46: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-01-26 01:46:05' and `end` < '2025-01-26 04:46: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-01-26 04:46:29] Production.INFO: count ==363 [2025-01-26 04:46:29] Production.ERROR: pbx CDR StartTime 2025-01-26 01:46:05 - End Time 2025-01-26 04:46:05 [2025-01-26 04:46:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331973', 'tblTempUsageDetail_20' ) start [2025-01-26 04:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331973', 'tblTempUsageDetail_20' ) end [2025-01-26 04:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331973', 'tblTempVendorCDR_20' ) start [2025-01-26 04:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331973', 'tblTempVendorCDR_20' ) end [2025-01-26 04:46:29] Production.INFO: ProcessCDR(1,14331973,1,1,2) [2025-01-26 04:46:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:46:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:46:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:46:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331973', 'tblTempUsageDetail_20' ) start [2025-01-26 04:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331973', 'tblTempUsageDetail_20' ) end [2025-01-26 04:46:32] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:46:32] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:46:32] Production.INFO: ==4326== Releasing lock... [2025-01-26 04:46:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:46:32] Production.INFO: 30.25 MB #Memory Used# [2025-01-26 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:47:05 [end_date_ymd] => 2025-01-26 04:47:05 [RateCDR] => 1 ) [2025-01-26 04:47: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-01-26 01:47:05' and `end` < '2025-01-26 04:47: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-01-26 04:47:19] Production.INFO: count ==360 [2025-01-26 04:47:20] Production.ERROR: pbx CDR StartTime 2025-01-26 01:47:05 - End Time 2025-01-26 04:47:05 [2025-01-26 04:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331978', 'tblTempUsageDetail_20' ) start [2025-01-26 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331978', 'tblTempUsageDetail_20' ) end [2025-01-26 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331978', 'tblTempVendorCDR_20' ) start [2025-01-26 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331978', 'tblTempVendorCDR_20' ) end [2025-01-26 04:47:20] Production.INFO: ProcessCDR(1,14331978,1,1,2) [2025-01-26 04:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331978', 'tblTempUsageDetail_20' ) start [2025-01-26 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331978', 'tblTempUsageDetail_20' ) end [2025-01-26 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:47:22] Production.INFO: ==4399== Releasing lock... [2025-01-26 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:47:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-26 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:48:05 [end_date_ymd] => 2025-01-26 04:48:05 [RateCDR] => 1 ) [2025-01-26 04:48: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-01-26 01:48:05' and `end` < '2025-01-26 04:48: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-01-26 04:48:20] Production.INFO: count ==359 [2025-01-26 04:48:20] Production.ERROR: pbx CDR StartTime 2025-01-26 01:48:05 - End Time 2025-01-26 04:48:05 [2025-01-26 04:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331983', 'tblTempUsageDetail_20' ) start [2025-01-26 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331983', 'tblTempUsageDetail_20' ) end [2025-01-26 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331983', 'tblTempVendorCDR_20' ) start [2025-01-26 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331983', 'tblTempVendorCDR_20' ) end [2025-01-26 04:48:20] Production.INFO: ProcessCDR(1,14331983,1,1,2) [2025-01-26 04:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331983', 'tblTempUsageDetail_20' ) start [2025-01-26 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331983', 'tblTempUsageDetail_20' ) end [2025-01-26 04:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:48:23] Production.INFO: ==4474== Releasing lock... [2025-01-26 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:48:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-26 04:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:49:04 [end_date_ymd] => 2025-01-26 04:49:04 [RateCDR] => 1 ) [2025-01-26 04:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 01:49:04' and `end` < '2025-01-26 04:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 04:49:18] Production.INFO: count ==359 [2025-01-26 04:49:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:49:04 - End Time 2025-01-26 04:49:04 [2025-01-26 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331988', 'tblTempUsageDetail_20' ) start [2025-01-26 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331988', 'tblTempUsageDetail_20' ) end [2025-01-26 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331988', 'tblTempVendorCDR_20' ) start [2025-01-26 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331988', 'tblTempVendorCDR_20' ) end [2025-01-26 04:49:18] Production.INFO: ProcessCDR(1,14331988,1,1,2) [2025-01-26 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331988', 'tblTempUsageDetail_20' ) start [2025-01-26 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331988', 'tblTempUsageDetail_20' ) end [2025-01-26 04:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:49:21] Production.INFO: ==4548== Releasing lock... [2025-01-26 04:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-26 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:50:06 [end_date_ymd] => 2025-01-26 04:50:06 [RateCDR] => 1 ) [2025-01-26 04:50: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-01-26 01:50:06' and `end` < '2025-01-26 04:50: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-01-26 04:50:20] Production.INFO: count ==343 [2025-01-26 04:50:20] Production.ERROR: pbx CDR StartTime 2025-01-26 01:50:06 - End Time 2025-01-26 04:50:06 [2025-01-26 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331993', 'tblTempUsageDetail_20' ) start [2025-01-26 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331993', 'tblTempUsageDetail_20' ) end [2025-01-26 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331993', 'tblTempVendorCDR_20' ) start [2025-01-26 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331993', 'tblTempVendorCDR_20' ) end [2025-01-26 04:50:20] Production.INFO: ProcessCDR(1,14331993,1,1,2) [2025-01-26 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331993', 'tblTempUsageDetail_20' ) start [2025-01-26 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331993', 'tblTempUsageDetail_20' ) end [2025-01-26 04:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:50:24] Production.INFO: ==4634== Releasing lock... [2025-01-26 04:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:50:24] Production.INFO: 30 MB #Memory Used# [2025-01-26 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:51:05 [end_date_ymd] => 2025-01-26 04:51:05 [RateCDR] => 1 ) [2025-01-26 04:51: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-01-26 01:51:05' and `end` < '2025-01-26 04:51: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-01-26 04:51:20] Production.INFO: count ==319 [2025-01-26 04:51:20] Production.ERROR: pbx CDR StartTime 2025-01-26 01:51:05 - End Time 2025-01-26 04:51:05 [2025-01-26 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331999', 'tblTempUsageDetail_20' ) start [2025-01-26 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14331999', 'tblTempUsageDetail_20' ) end [2025-01-26 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331999', 'tblTempVendorCDR_20' ) start [2025-01-26 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14331999', 'tblTempVendorCDR_20' ) end [2025-01-26 04:51:20] Production.INFO: ProcessCDR(1,14331999,1,1,2) [2025-01-26 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14331999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14331999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14331999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14331999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331999', 'tblTempUsageDetail_20' ) start [2025-01-26 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14331999', 'tblTempUsageDetail_20' ) end [2025-01-26 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:51:23] Production.INFO: ==4713== Releasing lock... [2025-01-26 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:51:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-26 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:52:05 [end_date_ymd] => 2025-01-26 04:52:05 [RateCDR] => 1 ) [2025-01-26 04:52: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-01-26 01:52:05' and `end` < '2025-01-26 04:52: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-01-26 04:52:20] Production.INFO: count ==318 [2025-01-26 04:52:20] Production.ERROR: pbx CDR StartTime 2025-01-26 01:52:05 - End Time 2025-01-26 04:52:05 [2025-01-26 04:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332004', 'tblTempUsageDetail_20' ) start [2025-01-26 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332004', 'tblTempUsageDetail_20' ) end [2025-01-26 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332004', 'tblTempVendorCDR_20' ) start [2025-01-26 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332004', 'tblTempVendorCDR_20' ) end [2025-01-26 04:52:20] Production.INFO: ProcessCDR(1,14332004,1,1,2) [2025-01-26 04:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332004', 'tblTempUsageDetail_20' ) start [2025-01-26 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332004', 'tblTempUsageDetail_20' ) end [2025-01-26 04:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:52:23] Production.INFO: ==4788== Releasing lock... [2025-01-26 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:52:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-26 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:53:05 [end_date_ymd] => 2025-01-26 04:53:05 [RateCDR] => 1 ) [2025-01-26 04:53: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-01-26 01:53:05' and `end` < '2025-01-26 04:53: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-01-26 04:53:21] Production.INFO: count ==315 [2025-01-26 04:53:21] Production.ERROR: pbx CDR StartTime 2025-01-26 01:53:05 - End Time 2025-01-26 04:53:05 [2025-01-26 04:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332009', 'tblTempUsageDetail_20' ) start [2025-01-26 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332009', 'tblTempUsageDetail_20' ) end [2025-01-26 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332009', 'tblTempVendorCDR_20' ) start [2025-01-26 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332009', 'tblTempVendorCDR_20' ) end [2025-01-26 04:53:21] Production.INFO: ProcessCDR(1,14332009,1,1,2) [2025-01-26 04:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332009', 'tblTempUsageDetail_20' ) start [2025-01-26 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332009', 'tblTempUsageDetail_20' ) end [2025-01-26 04:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:53:24] Production.INFO: ==4865== Releasing lock... [2025-01-26 04:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:53:24] Production.INFO: 29.75 MB #Memory Used# [2025-01-26 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:54:05 [end_date_ymd] => 2025-01-26 04:54:05 [RateCDR] => 1 ) [2025-01-26 04:54: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-01-26 01:54:05' and `end` < '2025-01-26 04:54: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-01-26 04:54:21] Production.INFO: count ==312 [2025-01-26 04:54:21] Production.ERROR: pbx CDR StartTime 2025-01-26 01:54:05 - End Time 2025-01-26 04:54:05 [2025-01-26 04:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332014', 'tblTempUsageDetail_20' ) start [2025-01-26 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332014', 'tblTempUsageDetail_20' ) end [2025-01-26 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332014', 'tblTempVendorCDR_20' ) start [2025-01-26 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332014', 'tblTempVendorCDR_20' ) end [2025-01-26 04:54:21] Production.INFO: ProcessCDR(1,14332014,1,1,2) [2025-01-26 04:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332014', 'tblTempUsageDetail_20' ) start [2025-01-26 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332014', 'tblTempUsageDetail_20' ) end [2025-01-26 04:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:54:23] Production.INFO: ==4939== Releasing lock... [2025-01-26 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:54:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-26 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:55:05 [end_date_ymd] => 2025-01-26 04:55:05 [RateCDR] => 1 ) [2025-01-26 04:55: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-01-26 01:55:05' and `end` < '2025-01-26 04:55: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-01-26 04:55:19] Production.INFO: count ==311 [2025-01-26 04:55:19] Production.ERROR: pbx CDR StartTime 2025-01-26 01:55:05 - End Time 2025-01-26 04:55:05 [2025-01-26 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332019', 'tblTempUsageDetail_20' ) start [2025-01-26 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332019', 'tblTempUsageDetail_20' ) end [2025-01-26 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332019', 'tblTempVendorCDR_20' ) start [2025-01-26 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332019', 'tblTempVendorCDR_20' ) end [2025-01-26 04:55:19] Production.INFO: ProcessCDR(1,14332019,1,1,2) [2025-01-26 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332019', 'tblTempUsageDetail_20' ) start [2025-01-26 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332019', 'tblTempUsageDetail_20' ) end [2025-01-26 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:55:22] Production.INFO: ==5015== Releasing lock... [2025-01-26 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:55:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-26 04:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:56:04 [end_date_ymd] => 2025-01-26 04:56:04 [RateCDR] => 1 ) [2025-01-26 04:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 01:56:04' and `end` < '2025-01-26 04:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 04:56:18] Production.INFO: count ==311 [2025-01-26 04:56:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:56:04 - End Time 2025-01-26 04:56:04 [2025-01-26 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332024', 'tblTempUsageDetail_20' ) start [2025-01-26 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332024', 'tblTempUsageDetail_20' ) end [2025-01-26 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332024', 'tblTempVendorCDR_20' ) start [2025-01-26 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332024', 'tblTempVendorCDR_20' ) end [2025-01-26 04:56:18] Production.INFO: ProcessCDR(1,14332024,1,1,2) [2025-01-26 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332024', 'tblTempUsageDetail_20' ) start [2025-01-26 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332024', 'tblTempUsageDetail_20' ) end [2025-01-26 04:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:56:21] Production.INFO: ==5090== Releasing lock... [2025-01-26 04:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:56:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-26 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:57:05 [end_date_ymd] => 2025-01-26 04:57:05 [RateCDR] => 1 ) [2025-01-26 04:57: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-01-26 01:57:05' and `end` < '2025-01-26 04:57: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-01-26 04:57:18] Production.INFO: count ==308 [2025-01-26 04:57:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:57:05 - End Time 2025-01-26 04:57:05 [2025-01-26 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332029', 'tblTempUsageDetail_20' ) start [2025-01-26 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332029', 'tblTempUsageDetail_20' ) end [2025-01-26 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332029', 'tblTempVendorCDR_20' ) start [2025-01-26 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332029', 'tblTempVendorCDR_20' ) end [2025-01-26 04:57:18] Production.INFO: ProcessCDR(1,14332029,1,1,2) [2025-01-26 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332029', 'tblTempUsageDetail_20' ) start [2025-01-26 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332029', 'tblTempUsageDetail_20' ) end [2025-01-26 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:57:21] Production.INFO: ==5166== Releasing lock... [2025-01-26 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:57:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-26 04:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:58:06 [end_date_ymd] => 2025-01-26 04:58:06 [RateCDR] => 1 ) [2025-01-26 04:58: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-01-26 01:58:06' and `end` < '2025-01-26 04:58: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-01-26 04:58:20] Production.INFO: count ==304 [2025-01-26 04:58:20] Production.ERROR: pbx CDR StartTime 2025-01-26 01:58:06 - End Time 2025-01-26 04:58:06 [2025-01-26 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332034', 'tblTempUsageDetail_20' ) start [2025-01-26 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332034', 'tblTempUsageDetail_20' ) end [2025-01-26 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332034', 'tblTempVendorCDR_20' ) start [2025-01-26 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332034', 'tblTempVendorCDR_20' ) end [2025-01-26 04:58:20] Production.INFO: ProcessCDR(1,14332034,1,1,2) [2025-01-26 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332034', 'tblTempUsageDetail_20' ) start [2025-01-26 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332034', 'tblTempUsageDetail_20' ) end [2025-01-26 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:58:23] Production.INFO: ==5285== Releasing lock... [2025-01-26 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:58:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-26 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 01:59:05 [end_date_ymd] => 2025-01-26 04:59:05 [RateCDR] => 1 ) [2025-01-26 04:59: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-01-26 01:59:05' and `end` < '2025-01-26 04:59: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-01-26 04:59:18] Production.INFO: count ==299 [2025-01-26 04:59:18] Production.ERROR: pbx CDR StartTime 2025-01-26 01:59:05 - End Time 2025-01-26 04:59:05 [2025-01-26 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332039', 'tblTempUsageDetail_20' ) start [2025-01-26 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332039', 'tblTempUsageDetail_20' ) end [2025-01-26 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332039', 'tblTempVendorCDR_20' ) start [2025-01-26 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332039', 'tblTempVendorCDR_20' ) end [2025-01-26 04:59:18] Production.INFO: ProcessCDR(1,14332039,1,1,2) [2025-01-26 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332039', 'tblTempUsageDetail_20' ) start [2025-01-26 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332039', 'tblTempUsageDetail_20' ) end [2025-01-26 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 04:59:21] Production.INFO: ==5358== Releasing lock... [2025-01-26 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 04:59:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-26 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:00:06 [end_date_ymd] => 2025-01-26 05:00:06 [RateCDR] => 1 ) [2025-01-26 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 02:00:06' and `end` < '2025-01-26 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 05:00:20] Production.INFO: count ==296 [2025-01-26 05:00:20] Production.ERROR: pbx CDR StartTime 2025-01-26 02:00:06 - End Time 2025-01-26 05:00:06 [2025-01-26 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332045', 'tblTempUsageDetail_20' ) start [2025-01-26 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332045', 'tblTempUsageDetail_20' ) end [2025-01-26 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332045', 'tblTempVendorCDR_20' ) start [2025-01-26 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332045', 'tblTempVendorCDR_20' ) end [2025-01-26 05:00:20] Production.INFO: ProcessCDR(1,14332045,1,1,2) [2025-01-26 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332045', 'tblTempUsageDetail_20' ) start [2025-01-26 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332045', 'tblTempUsageDetail_20' ) end [2025-01-26 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:00:24] Production.INFO: ==5434== Releasing lock... [2025-01-26 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:00:24] Production.INFO: 29.75 MB #Memory Used# [2025-01-26 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:01:05 [end_date_ymd] => 2025-01-26 05:01:05 [RateCDR] => 1 ) [2025-01-26 05:01: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-01-26 02:01:05' and `end` < '2025-01-26 05:01: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-01-26 05:01:19] Production.INFO: count ==278 [2025-01-26 05:01:19] Production.ERROR: pbx CDR StartTime 2025-01-26 02:01:05 - End Time 2025-01-26 05:01:05 [2025-01-26 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332050', 'tblTempUsageDetail_20' ) start [2025-01-26 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332050', 'tblTempUsageDetail_20' ) end [2025-01-26 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332050', 'tblTempVendorCDR_20' ) start [2025-01-26 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332050', 'tblTempVendorCDR_20' ) end [2025-01-26 05:01:19] Production.INFO: ProcessCDR(1,14332050,1,1,2) [2025-01-26 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332050', 'tblTempUsageDetail_20' ) start [2025-01-26 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332050', 'tblTempUsageDetail_20' ) end [2025-01-26 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:01:22] Production.INFO: ==5524== Releasing lock... [2025-01-26 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:01:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-26 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:02:06 [end_date_ymd] => 2025-01-26 05:02:06 [RateCDR] => 1 ) [2025-01-26 05:02: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-01-26 02:02:06' and `end` < '2025-01-26 05:02: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-01-26 05:02:19] Production.INFO: count ==278 [2025-01-26 05:02:19] Production.ERROR: pbx CDR StartTime 2025-01-26 02:02:06 - End Time 2025-01-26 05:02:06 [2025-01-26 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332055', 'tblTempUsageDetail_20' ) start [2025-01-26 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332055', 'tblTempUsageDetail_20' ) end [2025-01-26 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332055', 'tblTempVendorCDR_20' ) start [2025-01-26 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332055', 'tblTempVendorCDR_20' ) end [2025-01-26 05:02:19] Production.INFO: ProcessCDR(1,14332055,1,1,2) [2025-01-26 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332055', 'tblTempUsageDetail_20' ) start [2025-01-26 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332055', 'tblTempUsageDetail_20' ) end [2025-01-26 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:02:22] Production.INFO: ==5598== Releasing lock... [2025-01-26 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:02:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-26 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:03:05 [end_date_ymd] => 2025-01-26 05:03:05 [RateCDR] => 1 ) [2025-01-26 05:03: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-01-26 02:03:05' and `end` < '2025-01-26 05:03: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-01-26 05:03:19] Production.INFO: count ==278 [2025-01-26 05:03:19] Production.ERROR: pbx CDR StartTime 2025-01-26 02:03:05 - End Time 2025-01-26 05:03:05 [2025-01-26 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332060', 'tblTempUsageDetail_20' ) start [2025-01-26 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332060', 'tblTempUsageDetail_20' ) end [2025-01-26 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332060', 'tblTempVendorCDR_20' ) start [2025-01-26 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332060', 'tblTempVendorCDR_20' ) end [2025-01-26 05:03:19] Production.INFO: ProcessCDR(1,14332060,1,1,2) [2025-01-26 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332060', 'tblTempUsageDetail_20' ) start [2025-01-26 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332060', 'tblTempUsageDetail_20' ) end [2025-01-26 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:03:22] Production.INFO: ==5671== Releasing lock... [2025-01-26 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:03:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-26 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:04:06 [end_date_ymd] => 2025-01-26 05:04:06 [RateCDR] => 1 ) [2025-01-26 05:04: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-01-26 02:04:06' and `end` < '2025-01-26 05:04: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-01-26 05:04:19] Production.INFO: count ==275 [2025-01-26 05:04:19] Production.ERROR: pbx CDR StartTime 2025-01-26 02:04:06 - End Time 2025-01-26 05:04:06 [2025-01-26 05:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332065', 'tblTempUsageDetail_20' ) start [2025-01-26 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332065', 'tblTempUsageDetail_20' ) end [2025-01-26 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332065', 'tblTempVendorCDR_20' ) start [2025-01-26 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332065', 'tblTempVendorCDR_20' ) end [2025-01-26 05:04:19] Production.INFO: ProcessCDR(1,14332065,1,1,2) [2025-01-26 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332065', 'tblTempUsageDetail_20' ) start [2025-01-26 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332065', 'tblTempUsageDetail_20' ) end [2025-01-26 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:04:22] Production.INFO: ==5748== Releasing lock... [2025-01-26 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:04:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-26 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:05:05 [end_date_ymd] => 2025-01-26 05:05:05 [RateCDR] => 1 ) [2025-01-26 05:05: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-01-26 02:05:05' and `end` < '2025-01-26 05:05: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-01-26 05:05:17] Production.INFO: count ==274 [2025-01-26 05:05:17] Production.ERROR: pbx CDR StartTime 2025-01-26 02:05:05 - End Time 2025-01-26 05:05:05 [2025-01-26 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332070', 'tblTempUsageDetail_20' ) start [2025-01-26 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332070', 'tblTempUsageDetail_20' ) end [2025-01-26 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332070', 'tblTempVendorCDR_20' ) start [2025-01-26 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332070', 'tblTempVendorCDR_20' ) end [2025-01-26 05:05:17] Production.INFO: ProcessCDR(1,14332070,1,1,2) [2025-01-26 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332070', 'tblTempUsageDetail_20' ) start [2025-01-26 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332070', 'tblTempUsageDetail_20' ) end [2025-01-26 05:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:05:20] Production.INFO: ==5822== Releasing lock... [2025-01-26 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:05:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-26 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:06:05 [end_date_ymd] => 2025-01-26 05:06:05 [RateCDR] => 1 ) [2025-01-26 05:06: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-01-26 02:06:05' and `end` < '2025-01-26 05:06: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-01-26 05:06:24] Production.INFO: count ==274 [2025-01-26 05:06:24] Production.ERROR: pbx CDR StartTime 2025-01-26 02:06:05 - End Time 2025-01-26 05:06:05 [2025-01-26 05:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332075', 'tblTempUsageDetail_20' ) start [2025-01-26 05:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332075', 'tblTempUsageDetail_20' ) end [2025-01-26 05:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332075', 'tblTempVendorCDR_20' ) start [2025-01-26 05:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332075', 'tblTempVendorCDR_20' ) end [2025-01-26 05:06:24] Production.INFO: ProcessCDR(1,14332075,1,1,2) [2025-01-26 05:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332075', 'tblTempUsageDetail_20' ) start [2025-01-26 05:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332075', 'tblTempUsageDetail_20' ) end [2025-01-26 05:06:27] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:06:27] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:06:27] Production.INFO: ==5899== Releasing lock... [2025-01-26 05:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:06:27] Production.INFO: 29.5 MB #Memory Used# [2025-01-26 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:07:05 [end_date_ymd] => 2025-01-26 05:07:05 [RateCDR] => 1 ) [2025-01-26 05:07: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-01-26 02:07:05' and `end` < '2025-01-26 05:07: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-01-26 05:07:17] Production.INFO: count ==274 [2025-01-26 05:07:17] Production.ERROR: pbx CDR StartTime 2025-01-26 02:07:05 - End Time 2025-01-26 05:07:05 [2025-01-26 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332080', 'tblTempUsageDetail_20' ) start [2025-01-26 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332080', 'tblTempUsageDetail_20' ) end [2025-01-26 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332080', 'tblTempVendorCDR_20' ) start [2025-01-26 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332080', 'tblTempVendorCDR_20' ) end [2025-01-26 05:07:17] Production.INFO: ProcessCDR(1,14332080,1,1,2) [2025-01-26 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332080', 'tblTempUsageDetail_20' ) start [2025-01-26 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332080', 'tblTempUsageDetail_20' ) end [2025-01-26 05:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:07:20] Production.INFO: ==5975== Releasing lock... [2025-01-26 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:07:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-26 05:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:08:06 [end_date_ymd] => 2025-01-26 05:08:06 [RateCDR] => 1 ) [2025-01-26 05:08: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-01-26 02:08:06' and `end` < '2025-01-26 05:08: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-01-26 05:08:18] Production.INFO: count ==273 [2025-01-26 05:08:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:08:06 - End Time 2025-01-26 05:08:06 [2025-01-26 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332085', 'tblTempUsageDetail_20' ) start [2025-01-26 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332085', 'tblTempUsageDetail_20' ) end [2025-01-26 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332085', 'tblTempVendorCDR_20' ) start [2025-01-26 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332085', 'tblTempVendorCDR_20' ) end [2025-01-26 05:08:18] Production.INFO: ProcessCDR(1,14332085,1,1,2) [2025-01-26 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332085', 'tblTempUsageDetail_20' ) start [2025-01-26 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332085', 'tblTempUsageDetail_20' ) end [2025-01-26 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:08:21] Production.INFO: ==6050== Releasing lock... [2025-01-26 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:08:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-26 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:09:05 [end_date_ymd] => 2025-01-26 05:09:05 [RateCDR] => 1 ) [2025-01-26 05:09: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-01-26 02:09:05' and `end` < '2025-01-26 05:09: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-01-26 05:09:18] Production.INFO: count ==273 [2025-01-26 05:09:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:09:05 - End Time 2025-01-26 05:09:05 [2025-01-26 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332090', 'tblTempUsageDetail_20' ) start [2025-01-26 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332090', 'tblTempUsageDetail_20' ) end [2025-01-26 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332090', 'tblTempVendorCDR_20' ) start [2025-01-26 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332090', 'tblTempVendorCDR_20' ) end [2025-01-26 05:09:18] Production.INFO: ProcessCDR(1,14332090,1,1,2) [2025-01-26 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332090', 'tblTempUsageDetail_20' ) start [2025-01-26 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332090', 'tblTempUsageDetail_20' ) end [2025-01-26 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:09:21] Production.INFO: ==6122== Releasing lock... [2025-01-26 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-26 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:10:06 [end_date_ymd] => 2025-01-26 05:10:06 [RateCDR] => 1 ) [2025-01-26 05:10: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-01-26 02:10:06' and `end` < '2025-01-26 05:10: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-01-26 05:10:18] Production.INFO: count ==263 [2025-01-26 05:10:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:10:06 - End Time 2025-01-26 05:10:06 [2025-01-26 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332096', 'tblTempUsageDetail_20' ) start [2025-01-26 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332096', 'tblTempUsageDetail_20' ) end [2025-01-26 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332096', 'tblTempVendorCDR_20' ) start [2025-01-26 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332096', 'tblTempVendorCDR_20' ) end [2025-01-26 05:10:18] Production.INFO: ProcessCDR(1,14332096,1,1,2) [2025-01-26 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332096', 'tblTempUsageDetail_20' ) start [2025-01-26 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332096', 'tblTempUsageDetail_20' ) end [2025-01-26 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:10:22] Production.INFO: ==6208== Releasing lock... [2025-01-26 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-26 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:11:05 [end_date_ymd] => 2025-01-26 05:11:05 [RateCDR] => 1 ) [2025-01-26 05:11: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-01-26 02:11:05' and `end` < '2025-01-26 05:11: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-01-26 05:11:17] Production.INFO: count ==247 [2025-01-26 05:11:17] Production.ERROR: pbx CDR StartTime 2025-01-26 02:11:05 - End Time 2025-01-26 05:11:05 [2025-01-26 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332101', 'tblTempUsageDetail_20' ) start [2025-01-26 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332101', 'tblTempUsageDetail_20' ) end [2025-01-26 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332101', 'tblTempVendorCDR_20' ) start [2025-01-26 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332101', 'tblTempVendorCDR_20' ) end [2025-01-26 05:11:17] Production.INFO: ProcessCDR(1,14332101,1,1,2) [2025-01-26 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332101', 'tblTempUsageDetail_20' ) start [2025-01-26 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332101', 'tblTempUsageDetail_20' ) end [2025-01-26 05:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:11:20] Production.INFO: ==6283== Releasing lock... [2025-01-26 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:11:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-26 05:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:12:06 [end_date_ymd] => 2025-01-26 05:12:06 [RateCDR] => 1 ) [2025-01-26 05:12: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-01-26 02:12:06' and `end` < '2025-01-26 05:12: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-01-26 05:12:19] Production.INFO: count ==242 [2025-01-26 05:12:19] Production.ERROR: pbx CDR StartTime 2025-01-26 02:12:06 - End Time 2025-01-26 05:12:06 [2025-01-26 05:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332106', 'tblTempUsageDetail_20' ) start [2025-01-26 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332106', 'tblTempUsageDetail_20' ) end [2025-01-26 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332106', 'tblTempVendorCDR_20' ) start [2025-01-26 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332106', 'tblTempVendorCDR_20' ) end [2025-01-26 05:12:19] Production.INFO: ProcessCDR(1,14332106,1,1,2) [2025-01-26 05:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332106', 'tblTempUsageDetail_20' ) start [2025-01-26 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332106', 'tblTempUsageDetail_20' ) end [2025-01-26 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:12:22] Production.INFO: ==6361== Releasing lock... [2025-01-26 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:12:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-26 05:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:13:04 [end_date_ymd] => 2025-01-26 05:13:04 [RateCDR] => 1 ) [2025-01-26 05:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 02:13:04' and `end` < '2025-01-26 05:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 05:13:17] Production.INFO: count ==241 [2025-01-26 05:13:17] Production.ERROR: pbx CDR StartTime 2025-01-26 02:13:04 - End Time 2025-01-26 05:13:04 [2025-01-26 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332111', 'tblTempUsageDetail_20' ) start [2025-01-26 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332111', 'tblTempUsageDetail_20' ) end [2025-01-26 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332111', 'tblTempVendorCDR_20' ) start [2025-01-26 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332111', 'tblTempVendorCDR_20' ) end [2025-01-26 05:13:18] Production.INFO: ProcessCDR(1,14332111,1,1,2) [2025-01-26 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332111', 'tblTempUsageDetail_20' ) start [2025-01-26 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332111', 'tblTempUsageDetail_20' ) end [2025-01-26 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:13:20] Production.INFO: ==6480== Releasing lock... [2025-01-26 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:13:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-26 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:14:05 [end_date_ymd] => 2025-01-26 05:14:05 [RateCDR] => 1 ) [2025-01-26 05:14: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-01-26 02:14:05' and `end` < '2025-01-26 05:14: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-01-26 05:14:18] Production.INFO: count ==241 [2025-01-26 05:14:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:14:05 - End Time 2025-01-26 05:14:05 [2025-01-26 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332116', 'tblTempUsageDetail_20' ) start [2025-01-26 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332116', 'tblTempUsageDetail_20' ) end [2025-01-26 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332116', 'tblTempVendorCDR_20' ) start [2025-01-26 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332116', 'tblTempVendorCDR_20' ) end [2025-01-26 05:14:18] Production.INFO: ProcessCDR(1,14332116,1,1,2) [2025-01-26 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332116', 'tblTempUsageDetail_20' ) start [2025-01-26 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332116', 'tblTempUsageDetail_20' ) end [2025-01-26 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:14:21] Production.INFO: ==6554== Releasing lock... [2025-01-26 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-26 05:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:15:04 [end_date_ymd] => 2025-01-26 05:15:04 [RateCDR] => 1 ) [2025-01-26 05:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 02:15:04' and `end` < '2025-01-26 05:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 05:15:17] Production.INFO: count ==240 [2025-01-26 05:15:17] Production.ERROR: pbx CDR StartTime 2025-01-26 02:15:04 - End Time 2025-01-26 05:15:04 [2025-01-26 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332121', 'tblTempUsageDetail_20' ) start [2025-01-26 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332121', 'tblTempUsageDetail_20' ) end [2025-01-26 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332121', 'tblTempVendorCDR_20' ) start [2025-01-26 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332121', 'tblTempVendorCDR_20' ) end [2025-01-26 05:15:17] Production.INFO: ProcessCDR(1,14332121,1,1,2) [2025-01-26 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332121', 'tblTempUsageDetail_20' ) start [2025-01-26 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332121', 'tblTempUsageDetail_20' ) end [2025-01-26 05:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:15:20] Production.INFO: ==6629== Releasing lock... [2025-01-26 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:15:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-26 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:16:05 [end_date_ymd] => 2025-01-26 05:16:05 [RateCDR] => 1 ) [2025-01-26 05:16: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-01-26 02:16:05' and `end` < '2025-01-26 05:16: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-01-26 05:16:17] Production.INFO: count ==238 [2025-01-26 05:16:17] Production.ERROR: pbx CDR StartTime 2025-01-26 02:16:05 - End Time 2025-01-26 05:16:05 [2025-01-26 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332126', 'tblTempUsageDetail_20' ) start [2025-01-26 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332126', 'tblTempUsageDetail_20' ) end [2025-01-26 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332126', 'tblTempVendorCDR_20' ) start [2025-01-26 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332126', 'tblTempVendorCDR_20' ) end [2025-01-26 05:16:17] Production.INFO: ProcessCDR(1,14332126,1,1,2) [2025-01-26 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332126', 'tblTempUsageDetail_20' ) start [2025-01-26 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332126', 'tblTempUsageDetail_20' ) end [2025-01-26 05:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:16:20] Production.INFO: ==6707== Releasing lock... [2025-01-26 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:16:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-26 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:17:05 [end_date_ymd] => 2025-01-26 05:17:05 [RateCDR] => 1 ) [2025-01-26 05:17: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-01-26 02:17:05' and `end` < '2025-01-26 05:17: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-01-26 05:17:18] Production.INFO: count ==238 [2025-01-26 05:17:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:17:05 - End Time 2025-01-26 05:17:05 [2025-01-26 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332131', 'tblTempUsageDetail_20' ) start [2025-01-26 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332131', 'tblTempUsageDetail_20' ) end [2025-01-26 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332131', 'tblTempVendorCDR_20' ) start [2025-01-26 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332131', 'tblTempVendorCDR_20' ) end [2025-01-26 05:17:18] Production.INFO: ProcessCDR(1,14332131,1,1,2) [2025-01-26 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332131', 'tblTempUsageDetail_20' ) start [2025-01-26 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332131', 'tblTempUsageDetail_20' ) end [2025-01-26 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:17:21] Production.INFO: ==6779== Releasing lock... [2025-01-26 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:17:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-26 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:18:05 [end_date_ymd] => 2025-01-26 05:18:05 [RateCDR] => 1 ) [2025-01-26 05:18: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-01-26 02:18:05' and `end` < '2025-01-26 05:18: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-01-26 05:18:17] Production.INFO: count ==238 [2025-01-26 05:18:17] Production.ERROR: pbx CDR StartTime 2025-01-26 02:18:05 - End Time 2025-01-26 05:18:05 [2025-01-26 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332136', 'tblTempUsageDetail_20' ) start [2025-01-26 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332136', 'tblTempUsageDetail_20' ) end [2025-01-26 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332136', 'tblTempVendorCDR_20' ) start [2025-01-26 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332136', 'tblTempVendorCDR_20' ) end [2025-01-26 05:18:17] Production.INFO: ProcessCDR(1,14332136,1,1,2) [2025-01-26 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332136', 'tblTempUsageDetail_20' ) start [2025-01-26 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332136', 'tblTempUsageDetail_20' ) end [2025-01-26 05:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:18:20] Production.INFO: ==6853== Releasing lock... [2025-01-26 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:18:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-26 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:19:05 [end_date_ymd] => 2025-01-26 05:19:05 [RateCDR] => 1 ) [2025-01-26 05:19: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-01-26 02:19:05' and `end` < '2025-01-26 05:19: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-01-26 05:19:17] Production.INFO: count ==238 [2025-01-26 05:19:17] Production.ERROR: pbx CDR StartTime 2025-01-26 02:19:05 - End Time 2025-01-26 05:19:05 [2025-01-26 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332141', 'tblTempUsageDetail_20' ) start [2025-01-26 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332141', 'tblTempUsageDetail_20' ) end [2025-01-26 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332141', 'tblTempVendorCDR_20' ) start [2025-01-26 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332141', 'tblTempVendorCDR_20' ) end [2025-01-26 05:19:17] Production.INFO: ProcessCDR(1,14332141,1,1,2) [2025-01-26 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332141', 'tblTempUsageDetail_20' ) start [2025-01-26 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332141', 'tblTempUsageDetail_20' ) end [2025-01-26 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:19:20] Production.INFO: ==6933== Releasing lock... [2025-01-26 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:19:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-26 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:20:05 [end_date_ymd] => 2025-01-26 05:20:05 [RateCDR] => 1 ) [2025-01-26 05:20: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-01-26 02:20:05' and `end` < '2025-01-26 05:20: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-01-26 05:20:18] Production.INFO: count ==236 [2025-01-26 05:20:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:20:05 - End Time 2025-01-26 05:20:05 [2025-01-26 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332147', 'tblTempUsageDetail_20' ) start [2025-01-26 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332147', 'tblTempUsageDetail_20' ) end [2025-01-26 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332147', 'tblTempVendorCDR_20' ) start [2025-01-26 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332147', 'tblTempVendorCDR_20' ) end [2025-01-26 05:20:18] Production.INFO: ProcessCDR(1,14332147,1,1,2) [2025-01-26 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332147', 'tblTempUsageDetail_20' ) start [2025-01-26 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332147', 'tblTempUsageDetail_20' ) end [2025-01-26 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:20:21] Production.INFO: ==7007== Releasing lock... [2025-01-26 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:20:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-26 05:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:21:05 [end_date_ymd] => 2025-01-26 05:21:05 [RateCDR] => 1 ) [2025-01-26 05:21: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-01-26 02:21:05' and `end` < '2025-01-26 05:21: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-01-26 05:21:19] Production.INFO: count ==234 [2025-01-26 05:21:19] Production.ERROR: pbx CDR StartTime 2025-01-26 02:21:05 - End Time 2025-01-26 05:21:05 [2025-01-26 05:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332152', 'tblTempUsageDetail_20' ) start [2025-01-26 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332152', 'tblTempUsageDetail_20' ) end [2025-01-26 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332152', 'tblTempVendorCDR_20' ) start [2025-01-26 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332152', 'tblTempVendorCDR_20' ) end [2025-01-26 05:21:19] Production.INFO: ProcessCDR(1,14332152,1,1,2) [2025-01-26 05:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332152', 'tblTempUsageDetail_20' ) start [2025-01-26 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332152', 'tblTempUsageDetail_20' ) end [2025-01-26 05:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:21:22] Production.INFO: ==7088== Releasing lock... [2025-01-26 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:21:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-26 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:22:05 [end_date_ymd] => 2025-01-26 05:22:05 [RateCDR] => 1 ) [2025-01-26 05:22: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-01-26 02:22:05' and `end` < '2025-01-26 05:22: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-01-26 05:22:18] Production.INFO: count ==234 [2025-01-26 05:22:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:22:05 - End Time 2025-01-26 05:22:05 [2025-01-26 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332157', 'tblTempUsageDetail_20' ) start [2025-01-26 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332157', 'tblTempUsageDetail_20' ) end [2025-01-26 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332157', 'tblTempVendorCDR_20' ) start [2025-01-26 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332157', 'tblTempVendorCDR_20' ) end [2025-01-26 05:22:18] Production.INFO: ProcessCDR(1,14332157,1,1,2) [2025-01-26 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332157', 'tblTempUsageDetail_20' ) start [2025-01-26 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332157', 'tblTempUsageDetail_20' ) end [2025-01-26 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:22:21] Production.INFO: ==7162== Releasing lock... [2025-01-26 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-26 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:23:05 [end_date_ymd] => 2025-01-26 05:23:05 [RateCDR] => 1 ) [2025-01-26 05:23: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-01-26 02:23:05' and `end` < '2025-01-26 05:23: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-01-26 05:23:17] Production.INFO: count ==234 [2025-01-26 05:23:17] Production.ERROR: pbx CDR StartTime 2025-01-26 02:23:05 - End Time 2025-01-26 05:23:05 [2025-01-26 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332162', 'tblTempUsageDetail_20' ) start [2025-01-26 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332162', 'tblTempUsageDetail_20' ) end [2025-01-26 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332162', 'tblTempVendorCDR_20' ) start [2025-01-26 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332162', 'tblTempVendorCDR_20' ) end [2025-01-26 05:23:17] Production.INFO: ProcessCDR(1,14332162,1,1,2) [2025-01-26 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332162', 'tblTempUsageDetail_20' ) start [2025-01-26 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332162', 'tblTempUsageDetail_20' ) end [2025-01-26 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:23:20] Production.INFO: ==7239== Releasing lock... [2025-01-26 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:23:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-26 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:24:05 [end_date_ymd] => 2025-01-26 05:24:05 [RateCDR] => 1 ) [2025-01-26 05:24: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-01-26 02:24:05' and `end` < '2025-01-26 05:24: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-01-26 05:24:17] Production.INFO: count ==233 [2025-01-26 05:24:17] Production.ERROR: pbx CDR StartTime 2025-01-26 02:24:05 - End Time 2025-01-26 05:24:05 [2025-01-26 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332167', 'tblTempUsageDetail_20' ) start [2025-01-26 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332167', 'tblTempUsageDetail_20' ) end [2025-01-26 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332167', 'tblTempVendorCDR_20' ) start [2025-01-26 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332167', 'tblTempVendorCDR_20' ) end [2025-01-26 05:24:17] Production.INFO: ProcessCDR(1,14332167,1,1,2) [2025-01-26 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332167', 'tblTempUsageDetail_20' ) start [2025-01-26 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332167', 'tblTempUsageDetail_20' ) end [2025-01-26 05:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:24:20] Production.INFO: ==7311== Releasing lock... [2025-01-26 05:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:24:20] Production.INFO: 29 MB #Memory Used# [2025-01-26 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:25:05 [end_date_ymd] => 2025-01-26 05:25:05 [RateCDR] => 1 ) [2025-01-26 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 02:25:05' and `end` < '2025-01-26 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 05:25:17] Production.INFO: count ==230 [2025-01-26 05:25:17] Production.ERROR: pbx CDR StartTime 2025-01-26 02:25:05 - End Time 2025-01-26 05:25:05 [2025-01-26 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332172', 'tblTempUsageDetail_20' ) start [2025-01-26 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332172', 'tblTempUsageDetail_20' ) end [2025-01-26 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332172', 'tblTempVendorCDR_20' ) start [2025-01-26 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332172', 'tblTempVendorCDR_20' ) end [2025-01-26 05:25:17] Production.INFO: ProcessCDR(1,14332172,1,1,2) [2025-01-26 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332172', 'tblTempUsageDetail_20' ) start [2025-01-26 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332172', 'tblTempUsageDetail_20' ) end [2025-01-26 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:25:21] Production.INFO: ==7390== Releasing lock... [2025-01-26 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:25:21] Production.INFO: 29 MB #Memory Used# [2025-01-26 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:26:05 [end_date_ymd] => 2025-01-26 05:26:05 [RateCDR] => 1 ) [2025-01-26 05:26: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-01-26 02:26:05' and `end` < '2025-01-26 05:26: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-01-26 05:26:18] Production.INFO: count ==230 [2025-01-26 05:26:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:26:05 - End Time 2025-01-26 05:26:05 [2025-01-26 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332177', 'tblTempUsageDetail_20' ) start [2025-01-26 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332177', 'tblTempUsageDetail_20' ) end [2025-01-26 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332177', 'tblTempVendorCDR_20' ) start [2025-01-26 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332177', 'tblTempVendorCDR_20' ) end [2025-01-26 05:26:18] Production.INFO: ProcessCDR(1,14332177,1,1,2) [2025-01-26 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332177', 'tblTempUsageDetail_20' ) start [2025-01-26 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332177', 'tblTempUsageDetail_20' ) end [2025-01-26 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:26:21] Production.INFO: ==7464== Releasing lock... [2025-01-26 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:26:21] Production.INFO: 29 MB #Memory Used# [2025-01-26 05:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:27:04 [end_date_ymd] => 2025-01-26 05:27:04 [RateCDR] => 1 ) [2025-01-26 05:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 02:27:04' and `end` < '2025-01-26 05:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 05:27:17] Production.INFO: count ==230 [2025-01-26 05:27:17] Production.ERROR: pbx CDR StartTime 2025-01-26 02:27:04 - End Time 2025-01-26 05:27:04 [2025-01-26 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332180', 'tblTempUsageDetail_20' ) start [2025-01-26 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332180', 'tblTempUsageDetail_20' ) end [2025-01-26 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332180', 'tblTempVendorCDR_20' ) start [2025-01-26 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332180', 'tblTempVendorCDR_20' ) end [2025-01-26 05:27:17] Production.INFO: ProcessCDR(1,14332180,1,1,2) [2025-01-26 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332180', 'tblTempUsageDetail_20' ) start [2025-01-26 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332180', 'tblTempUsageDetail_20' ) end [2025-01-26 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:27:20] Production.INFO: ==7544== Releasing lock... [2025-01-26 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:27:20] Production.INFO: 29 MB #Memory Used# [2025-01-26 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:28:05 [end_date_ymd] => 2025-01-26 05:28:05 [RateCDR] => 1 ) [2025-01-26 05:28: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-01-26 02:28:05' and `end` < '2025-01-26 05:28: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-01-26 05:28:18] Production.INFO: count ==230 [2025-01-26 05:28:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:28:05 - End Time 2025-01-26 05:28:05 [2025-01-26 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332187', 'tblTempUsageDetail_20' ) start [2025-01-26 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332187', 'tblTempUsageDetail_20' ) end [2025-01-26 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332187', 'tblTempVendorCDR_20' ) start [2025-01-26 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332187', 'tblTempVendorCDR_20' ) end [2025-01-26 05:28:18] Production.INFO: ProcessCDR(1,14332187,1,1,2) [2025-01-26 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332187', 'tblTempUsageDetail_20' ) start [2025-01-26 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332187', 'tblTempUsageDetail_20' ) end [2025-01-26 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:28:21] Production.INFO: ==7658== Releasing lock... [2025-01-26 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:28:21] Production.INFO: 29 MB #Memory Used# [2025-01-26 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:29:05 [end_date_ymd] => 2025-01-26 05:29:05 [RateCDR] => 1 ) [2025-01-26 05:29: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-01-26 02:29:05' and `end` < '2025-01-26 05:29: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-01-26 05:29:17] Production.INFO: count ==230 [2025-01-26 05:29:17] Production.ERROR: pbx CDR StartTime 2025-01-26 02:29:05 - End Time 2025-01-26 05:29:05 [2025-01-26 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332192', 'tblTempUsageDetail_20' ) start [2025-01-26 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332192', 'tblTempUsageDetail_20' ) end [2025-01-26 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332192', 'tblTempVendorCDR_20' ) start [2025-01-26 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332192', 'tblTempVendorCDR_20' ) end [2025-01-26 05:29:17] Production.INFO: ProcessCDR(1,14332192,1,1,2) [2025-01-26 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332192', 'tblTempUsageDetail_20' ) start [2025-01-26 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332192', 'tblTempUsageDetail_20' ) end [2025-01-26 05:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:29:20] Production.INFO: ==7741== Releasing lock... [2025-01-26 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:29:20] Production.INFO: 29 MB #Memory Used# [2025-01-26 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:30:06 [end_date_ymd] => 2025-01-26 05:30:06 [RateCDR] => 1 ) [2025-01-26 05:30: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-01-26 02:30:06' and `end` < '2025-01-26 05:30: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-01-26 05:30:19] Production.INFO: count ==225 [2025-01-26 05:30:19] Production.ERROR: pbx CDR StartTime 2025-01-26 02:30:06 - End Time 2025-01-26 05:30:06 [2025-01-26 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332197', 'tblTempUsageDetail_20' ) start [2025-01-26 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332197', 'tblTempUsageDetail_20' ) end [2025-01-26 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332197', 'tblTempVendorCDR_20' ) start [2025-01-26 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332197', 'tblTempVendorCDR_20' ) end [2025-01-26 05:30:19] Production.INFO: ProcessCDR(1,14332197,1,1,2) [2025-01-26 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332197', 'tblTempUsageDetail_20' ) start [2025-01-26 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332197', 'tblTempUsageDetail_20' ) end [2025-01-26 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:30:22] Production.INFO: ==7817== Releasing lock... [2025-01-26 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:30:22] Production.INFO: 29 MB #Memory Used# [2025-01-26 05:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:31:04 [end_date_ymd] => 2025-01-26 05:31:04 [RateCDR] => 1 ) [2025-01-26 05:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 02:31:04' and `end` < '2025-01-26 05:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 05:31:17] Production.INFO: count ==222 [2025-01-26 05:31:17] Production.ERROR: pbx CDR StartTime 2025-01-26 02:31:04 - End Time 2025-01-26 05:31:04 [2025-01-26 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332203', 'tblTempUsageDetail_20' ) start [2025-01-26 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332203', 'tblTempUsageDetail_20' ) end [2025-01-26 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332203', 'tblTempVendorCDR_20' ) start [2025-01-26 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332203', 'tblTempVendorCDR_20' ) end [2025-01-26 05:31:17] Production.INFO: ProcessCDR(1,14332203,1,1,2) [2025-01-26 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332203', 'tblTempUsageDetail_20' ) start [2025-01-26 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332203', 'tblTempUsageDetail_20' ) end [2025-01-26 05:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:31:20] Production.INFO: ==7897== Releasing lock... [2025-01-26 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:31:20] Production.INFO: 29 MB #Memory Used# [2025-01-26 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:32:05 [end_date_ymd] => 2025-01-26 05:32:05 [RateCDR] => 1 ) [2025-01-26 05:32: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-01-26 02:32:05' and `end` < '2025-01-26 05:32: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-01-26 05:32:18] Production.INFO: count ==221 [2025-01-26 05:32:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:32:05 - End Time 2025-01-26 05:32:05 [2025-01-26 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332208', 'tblTempUsageDetail_20' ) start [2025-01-26 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332208', 'tblTempUsageDetail_20' ) end [2025-01-26 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332208', 'tblTempVendorCDR_20' ) start [2025-01-26 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332208', 'tblTempVendorCDR_20' ) end [2025-01-26 05:32:18] Production.INFO: ProcessCDR(1,14332208,1,1,2) [2025-01-26 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332208', 'tblTempUsageDetail_20' ) start [2025-01-26 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332208', 'tblTempUsageDetail_20' ) end [2025-01-26 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:32:21] Production.INFO: ==7969== Releasing lock... [2025-01-26 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:32:21] Production.INFO: 29 MB #Memory Used# [2025-01-26 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:33:05 [end_date_ymd] => 2025-01-26 05:33:05 [RateCDR] => 1 ) [2025-01-26 05:33: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-01-26 02:33:05' and `end` < '2025-01-26 05:33: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-01-26 05:33:18] Production.INFO: count ==221 [2025-01-26 05:33:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:33:05 - End Time 2025-01-26 05:33:05 [2025-01-26 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332213', 'tblTempUsageDetail_20' ) start [2025-01-26 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332213', 'tblTempUsageDetail_20' ) end [2025-01-26 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332213', 'tblTempVendorCDR_20' ) start [2025-01-26 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332213', 'tblTempVendorCDR_20' ) end [2025-01-26 05:33:18] Production.INFO: ProcessCDR(1,14332213,1,1,2) [2025-01-26 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332213', 'tblTempUsageDetail_20' ) start [2025-01-26 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332213', 'tblTempUsageDetail_20' ) end [2025-01-26 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:33:21] Production.INFO: ==8047== Releasing lock... [2025-01-26 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:33:21] Production.INFO: 29 MB #Memory Used# [2025-01-26 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:34:05 [end_date_ymd] => 2025-01-26 05:34:05 [RateCDR] => 1 ) [2025-01-26 05:34: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-01-26 02:34:05' and `end` < '2025-01-26 05:34: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-01-26 05:34:18] Production.INFO: count ==221 [2025-01-26 05:34:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:34:05 - End Time 2025-01-26 05:34:05 [2025-01-26 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332218', 'tblTempUsageDetail_20' ) start [2025-01-26 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332218', 'tblTempUsageDetail_20' ) end [2025-01-26 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332218', 'tblTempVendorCDR_20' ) start [2025-01-26 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332218', 'tblTempVendorCDR_20' ) end [2025-01-26 05:34:18] Production.INFO: ProcessCDR(1,14332218,1,1,2) [2025-01-26 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332218', 'tblTempUsageDetail_20' ) start [2025-01-26 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332218', 'tblTempUsageDetail_20' ) end [2025-01-26 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:34:21] Production.INFO: ==8125== Releasing lock... [2025-01-26 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:34:21] Production.INFO: 29 MB #Memory Used# [2025-01-26 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:35:05 [end_date_ymd] => 2025-01-26 05:35:05 [RateCDR] => 1 ) [2025-01-26 05:35: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-01-26 02:35:05' and `end` < '2025-01-26 05:35: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-01-26 05:35:18] Production.INFO: count ==221 [2025-01-26 05:35:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:35:05 - End Time 2025-01-26 05:35:05 [2025-01-26 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332223', 'tblTempUsageDetail_20' ) start [2025-01-26 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332223', 'tblTempUsageDetail_20' ) end [2025-01-26 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332223', 'tblTempVendorCDR_20' ) start [2025-01-26 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332223', 'tblTempVendorCDR_20' ) end [2025-01-26 05:35:18] Production.INFO: ProcessCDR(1,14332223,1,1,2) [2025-01-26 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332223', 'tblTempUsageDetail_20' ) start [2025-01-26 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332223', 'tblTempUsageDetail_20' ) end [2025-01-26 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:35:21] Production.INFO: ==8202== Releasing lock... [2025-01-26 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:35:21] Production.INFO: 29 MB #Memory Used# [2025-01-26 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:36:05 [end_date_ymd] => 2025-01-26 05:36:05 [RateCDR] => 1 ) [2025-01-26 05:36: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-01-26 02:36:05' and `end` < '2025-01-26 05:36: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-01-26 05:36:18] Production.INFO: count ==221 [2025-01-26 05:36:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:36:05 - End Time 2025-01-26 05:36:05 [2025-01-26 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332228', 'tblTempUsageDetail_20' ) start [2025-01-26 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332228', 'tblTempUsageDetail_20' ) end [2025-01-26 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332228', 'tblTempVendorCDR_20' ) start [2025-01-26 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332228', 'tblTempVendorCDR_20' ) end [2025-01-26 05:36:18] Production.INFO: ProcessCDR(1,14332228,1,1,2) [2025-01-26 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332228', 'tblTempUsageDetail_20' ) start [2025-01-26 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332228', 'tblTempUsageDetail_20' ) end [2025-01-26 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:36:21] Production.INFO: ==8281== Releasing lock... [2025-01-26 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:36:21] Production.INFO: 29 MB #Memory Used# [2025-01-26 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:37:05 [end_date_ymd] => 2025-01-26 05:37:05 [RateCDR] => 1 ) [2025-01-26 05:37: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-01-26 02:37:05' and `end` < '2025-01-26 05:37: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-01-26 05:37:17] Production.INFO: count ==221 [2025-01-26 05:37:17] Production.ERROR: pbx CDR StartTime 2025-01-26 02:37:05 - End Time 2025-01-26 05:37:05 [2025-01-26 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332233', 'tblTempUsageDetail_20' ) start [2025-01-26 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332233', 'tblTempUsageDetail_20' ) end [2025-01-26 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332233', 'tblTempVendorCDR_20' ) start [2025-01-26 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332233', 'tblTempVendorCDR_20' ) end [2025-01-26 05:37:17] Production.INFO: ProcessCDR(1,14332233,1,1,2) [2025-01-26 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332233', 'tblTempUsageDetail_20' ) start [2025-01-26 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332233', 'tblTempUsageDetail_20' ) end [2025-01-26 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:37:20] Production.INFO: ==8354== Releasing lock... [2025-01-26 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:37:20] Production.INFO: 29 MB #Memory Used# [2025-01-26 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:38:06 [end_date_ymd] => 2025-01-26 05:38:06 [RateCDR] => 1 ) [2025-01-26 05:38: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-01-26 02:38:06' and `end` < '2025-01-26 05:38: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-01-26 05:38:18] Production.INFO: count ==221 [2025-01-26 05:38:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:38:06 - End Time 2025-01-26 05:38:06 [2025-01-26 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332238', 'tblTempUsageDetail_20' ) start [2025-01-26 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332238', 'tblTempUsageDetail_20' ) end [2025-01-26 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332238', 'tblTempVendorCDR_20' ) start [2025-01-26 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332238', 'tblTempVendorCDR_20' ) end [2025-01-26 05:38:18] Production.INFO: ProcessCDR(1,14332238,1,1,2) [2025-01-26 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332238', 'tblTempUsageDetail_20' ) start [2025-01-26 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332238', 'tblTempUsageDetail_20' ) end [2025-01-26 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:38:21] Production.INFO: ==8439== Releasing lock... [2025-01-26 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:38:21] Production.INFO: 29 MB #Memory Used# [2025-01-26 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:39:05 [end_date_ymd] => 2025-01-26 05:39:05 [RateCDR] => 1 ) [2025-01-26 05:39: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-01-26 02:39:05' and `end` < '2025-01-26 05:39: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-01-26 05:39:18] Production.INFO: count ==221 [2025-01-26 05:39:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:39:05 - End Time 2025-01-26 05:39:05 [2025-01-26 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332243', 'tblTempUsageDetail_20' ) start [2025-01-26 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332243', 'tblTempUsageDetail_20' ) end [2025-01-26 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332243', 'tblTempVendorCDR_20' ) start [2025-01-26 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332243', 'tblTempVendorCDR_20' ) end [2025-01-26 05:39:18] Production.INFO: ProcessCDR(1,14332243,1,1,2) [2025-01-26 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332243', 'tblTempUsageDetail_20' ) start [2025-01-26 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332243', 'tblTempUsageDetail_20' ) end [2025-01-26 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:39:22] Production.INFO: ==8519== Releasing lock... [2025-01-26 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:39:22] Production.INFO: 29 MB #Memory Used# [2025-01-26 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:40:06 [end_date_ymd] => 2025-01-26 05:40:06 [RateCDR] => 1 ) [2025-01-26 05:40: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-01-26 02:40:06' and `end` < '2025-01-26 05:40: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-01-26 05:40:18] Production.INFO: count ==208 [2025-01-26 05:40:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:40:06 - End Time 2025-01-26 05:40:06 [2025-01-26 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332249', 'tblTempUsageDetail_20' ) start [2025-01-26 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332249', 'tblTempUsageDetail_20' ) end [2025-01-26 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332249', 'tblTempVendorCDR_20' ) start [2025-01-26 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332249', 'tblTempVendorCDR_20' ) end [2025-01-26 05:40:18] Production.INFO: ProcessCDR(1,14332249,1,1,2) [2025-01-26 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332249', 'tblTempUsageDetail_20' ) start [2025-01-26 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332249', 'tblTempUsageDetail_20' ) end [2025-01-26 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:40:22] Production.INFO: ==8605== Releasing lock... [2025-01-26 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:40:22] Production.INFO: 29 MB #Memory Used# [2025-01-26 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:41:05 [end_date_ymd] => 2025-01-26 05:41:05 [RateCDR] => 1 ) [2025-01-26 05:41: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-01-26 02:41:05' and `end` < '2025-01-26 05:41: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-01-26 05:41:17] Production.INFO: count ==194 [2025-01-26 05:41:17] Production.ERROR: pbx CDR StartTime 2025-01-26 02:41:05 - End Time 2025-01-26 05:41:05 [2025-01-26 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332254', 'tblTempUsageDetail_20' ) start [2025-01-26 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332254', 'tblTempUsageDetail_20' ) end [2025-01-26 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332254', 'tblTempVendorCDR_20' ) start [2025-01-26 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332254', 'tblTempVendorCDR_20' ) end [2025-01-26 05:41:17] Production.INFO: ProcessCDR(1,14332254,1,1,2) [2025-01-26 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332254', 'tblTempUsageDetail_20' ) start [2025-01-26 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332254', 'tblTempUsageDetail_20' ) end [2025-01-26 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:41:20] Production.INFO: ==8688== Releasing lock... [2025-01-26 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:41:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 05:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:42:06 [end_date_ymd] => 2025-01-26 05:42:06 [RateCDR] => 1 ) [2025-01-26 05:42: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-01-26 02:42:06' and `end` < '2025-01-26 05:42: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-01-26 05:42:19] Production.INFO: count ==194 [2025-01-26 05:42:19] Production.ERROR: pbx CDR StartTime 2025-01-26 02:42:06 - End Time 2025-01-26 05:42:06 [2025-01-26 05:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332259', 'tblTempUsageDetail_20' ) start [2025-01-26 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332259', 'tblTempUsageDetail_20' ) end [2025-01-26 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332259', 'tblTempVendorCDR_20' ) start [2025-01-26 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332259', 'tblTempVendorCDR_20' ) end [2025-01-26 05:42:19] Production.INFO: ProcessCDR(1,14332259,1,1,2) [2025-01-26 05:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332259', 'tblTempUsageDetail_20' ) start [2025-01-26 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332259', 'tblTempUsageDetail_20' ) end [2025-01-26 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:42:22] Production.INFO: ==8775== Releasing lock... [2025-01-26 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:42:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:43:05 [end_date_ymd] => 2025-01-26 05:43:05 [RateCDR] => 1 ) [2025-01-26 05:43: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-01-26 02:43:05' and `end` < '2025-01-26 05:43: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-01-26 05:43:19] Production.INFO: count ==193 [2025-01-26 05:43:19] Production.ERROR: pbx CDR StartTime 2025-01-26 02:43:05 - End Time 2025-01-26 05:43:05 [2025-01-26 05:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332264', 'tblTempUsageDetail_20' ) start [2025-01-26 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332264', 'tblTempUsageDetail_20' ) end [2025-01-26 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332264', 'tblTempVendorCDR_20' ) start [2025-01-26 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332264', 'tblTempVendorCDR_20' ) end [2025-01-26 05:43:19] Production.INFO: ProcessCDR(1,14332264,1,1,2) [2025-01-26 05:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332264', 'tblTempUsageDetail_20' ) start [2025-01-26 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332264', 'tblTempUsageDetail_20' ) end [2025-01-26 05:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:43:22] Production.INFO: ==8852== Releasing lock... [2025-01-26 05:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:43:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:44:05 [end_date_ymd] => 2025-01-26 05:44:05 [RateCDR] => 1 ) [2025-01-26 05:44: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-01-26 02:44:05' and `end` < '2025-01-26 05:44: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-01-26 05:44:18] Production.INFO: count ==193 [2025-01-26 05:44:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:44:05 - End Time 2025-01-26 05:44:05 [2025-01-26 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332269', 'tblTempUsageDetail_20' ) start [2025-01-26 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332269', 'tblTempUsageDetail_20' ) end [2025-01-26 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332269', 'tblTempVendorCDR_20' ) start [2025-01-26 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332269', 'tblTempVendorCDR_20' ) end [2025-01-26 05:44:18] Production.INFO: ProcessCDR(1,14332269,1,1,2) [2025-01-26 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332269', 'tblTempUsageDetail_20' ) start [2025-01-26 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332269', 'tblTempUsageDetail_20' ) end [2025-01-26 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:44:21] Production.INFO: ==8976== Releasing lock... [2025-01-26 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:45:05 [end_date_ymd] => 2025-01-26 05:45:05 [RateCDR] => 1 ) [2025-01-26 05:45: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-01-26 02:45:05' and `end` < '2025-01-26 05:45: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-01-26 05:45:18] Production.INFO: count ==193 [2025-01-26 05:45:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:45:05 - End Time 2025-01-26 05:45:05 [2025-01-26 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332274', 'tblTempUsageDetail_20' ) start [2025-01-26 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332274', 'tblTempUsageDetail_20' ) end [2025-01-26 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332274', 'tblTempVendorCDR_20' ) start [2025-01-26 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332274', 'tblTempVendorCDR_20' ) end [2025-01-26 05:45:18] Production.INFO: ProcessCDR(1,14332274,1,1,2) [2025-01-26 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332274', 'tblTempUsageDetail_20' ) start [2025-01-26 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332274', 'tblTempUsageDetail_20' ) end [2025-01-26 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:45:21] Production.INFO: ==9061== Releasing lock... [2025-01-26 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:46:05 [end_date_ymd] => 2025-01-26 05:46:05 [RateCDR] => 1 ) [2025-01-26 05:46: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-01-26 02:46:05' and `end` < '2025-01-26 05:46: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-01-26 05:46:18] Production.INFO: count ==193 [2025-01-26 05:46:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:46:05 - End Time 2025-01-26 05:46:05 [2025-01-26 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332279', 'tblTempUsageDetail_20' ) start [2025-01-26 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332279', 'tblTempUsageDetail_20' ) end [2025-01-26 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332279', 'tblTempVendorCDR_20' ) start [2025-01-26 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332279', 'tblTempVendorCDR_20' ) end [2025-01-26 05:46:18] Production.INFO: ProcessCDR(1,14332279,1,1,2) [2025-01-26 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332279', 'tblTempUsageDetail_20' ) start [2025-01-26 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332279', 'tblTempUsageDetail_20' ) end [2025-01-26 05:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:46:22] Production.INFO: ==9153== Releasing lock... [2025-01-26 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:46:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:47:05 [end_date_ymd] => 2025-01-26 05:47:05 [RateCDR] => 1 ) [2025-01-26 05:47: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-01-26 02:47:05' and `end` < '2025-01-26 05:47: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-01-26 05:47:17] Production.INFO: count ==193 [2025-01-26 05:47:17] Production.ERROR: pbx CDR StartTime 2025-01-26 02:47:05 - End Time 2025-01-26 05:47:05 [2025-01-26 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332284', 'tblTempUsageDetail_20' ) start [2025-01-26 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332284', 'tblTempUsageDetail_20' ) end [2025-01-26 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332284', 'tblTempVendorCDR_20' ) start [2025-01-26 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332284', 'tblTempVendorCDR_20' ) end [2025-01-26 05:47:17] Production.INFO: ProcessCDR(1,14332284,1,1,2) [2025-01-26 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332284', 'tblTempUsageDetail_20' ) start [2025-01-26 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332284', 'tblTempUsageDetail_20' ) end [2025-01-26 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:47:20] Production.INFO: ==9287== Releasing lock... [2025-01-26 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:47:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:48:05 [end_date_ymd] => 2025-01-26 05:48:05 [RateCDR] => 1 ) [2025-01-26 05:48: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-01-26 02:48:05' and `end` < '2025-01-26 05:48: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-01-26 05:48:18] Production.INFO: count ==193 [2025-01-26 05:48:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:48:05 - End Time 2025-01-26 05:48:05 [2025-01-26 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332289', 'tblTempUsageDetail_20' ) start [2025-01-26 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332289', 'tblTempUsageDetail_20' ) end [2025-01-26 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332289', 'tblTempVendorCDR_20' ) start [2025-01-26 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332289', 'tblTempVendorCDR_20' ) end [2025-01-26 05:48:18] Production.INFO: ProcessCDR(1,14332289,1,1,2) [2025-01-26 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332289', 'tblTempUsageDetail_20' ) start [2025-01-26 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332289', 'tblTempUsageDetail_20' ) end [2025-01-26 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:48:21] Production.INFO: ==9387== Releasing lock... [2025-01-26 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:49:05 [end_date_ymd] => 2025-01-26 05:49:05 [RateCDR] => 1 ) [2025-01-26 05:49: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-01-26 02:49:05' and `end` < '2025-01-26 05:49: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-01-26 05:49:18] Production.INFO: count ==193 [2025-01-26 05:49:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:49:05 - End Time 2025-01-26 05:49:05 [2025-01-26 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332294', 'tblTempUsageDetail_20' ) start [2025-01-26 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332294', 'tblTempUsageDetail_20' ) end [2025-01-26 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332294', 'tblTempVendorCDR_20' ) start [2025-01-26 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332294', 'tblTempVendorCDR_20' ) end [2025-01-26 05:49:18] Production.INFO: ProcessCDR(1,14332294,1,1,2) [2025-01-26 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332294', 'tblTempUsageDetail_20' ) start [2025-01-26 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332294', 'tblTempUsageDetail_20' ) end [2025-01-26 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:49:21] Production.INFO: ==9470== Releasing lock... [2025-01-26 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:49:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:50:06 [end_date_ymd] => 2025-01-26 05:50:06 [RateCDR] => 1 ) [2025-01-26 05:50: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-01-26 02:50:06' and `end` < '2025-01-26 05:50: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-01-26 05:50:18] Production.INFO: count ==183 [2025-01-26 05:50:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:50:06 - End Time 2025-01-26 05:50:06 [2025-01-26 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332300', 'tblTempUsageDetail_20' ) start [2025-01-26 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332300', 'tblTempUsageDetail_20' ) end [2025-01-26 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332300', 'tblTempVendorCDR_20' ) start [2025-01-26 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332300', 'tblTempVendorCDR_20' ) end [2025-01-26 05:50:18] Production.INFO: ProcessCDR(1,14332300,1,1,2) [2025-01-26 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332300', 'tblTempUsageDetail_20' ) start [2025-01-26 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332300', 'tblTempUsageDetail_20' ) end [2025-01-26 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:50:21] Production.INFO: ==9553== Releasing lock... [2025-01-26 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:50:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:51:05 [end_date_ymd] => 2025-01-26 05:51:05 [RateCDR] => 1 ) [2025-01-26 05:51: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-01-26 02:51:05' and `end` < '2025-01-26 05:51: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-01-26 05:51:18] Production.INFO: count ==183 [2025-01-26 05:51:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:51:05 - End Time 2025-01-26 05:51:05 [2025-01-26 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332305', 'tblTempUsageDetail_20' ) start [2025-01-26 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332305', 'tblTempUsageDetail_20' ) end [2025-01-26 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332305', 'tblTempVendorCDR_20' ) start [2025-01-26 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332305', 'tblTempVendorCDR_20' ) end [2025-01-26 05:51:18] Production.INFO: ProcessCDR(1,14332305,1,1,2) [2025-01-26 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332305', 'tblTempUsageDetail_20' ) start [2025-01-26 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332305', 'tblTempUsageDetail_20' ) end [2025-01-26 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:51:21] Production.INFO: ==9641== Releasing lock... [2025-01-26 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:52:05 [end_date_ymd] => 2025-01-26 05:52:05 [RateCDR] => 1 ) [2025-01-26 05:52: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-01-26 02:52:05' and `end` < '2025-01-26 05:52: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-01-26 05:52:17] Production.INFO: count ==183 [2025-01-26 05:52:17] Production.ERROR: pbx CDR StartTime 2025-01-26 02:52:05 - End Time 2025-01-26 05:52:05 [2025-01-26 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332310', 'tblTempUsageDetail_20' ) start [2025-01-26 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332310', 'tblTempUsageDetail_20' ) end [2025-01-26 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332310', 'tblTempVendorCDR_20' ) start [2025-01-26 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332310', 'tblTempVendorCDR_20' ) end [2025-01-26 05:52:17] Production.INFO: ProcessCDR(1,14332310,1,1,2) [2025-01-26 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332310', 'tblTempUsageDetail_20' ) start [2025-01-26 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332310', 'tblTempUsageDetail_20' ) end [2025-01-26 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:52:21] Production.INFO: ==9718== Releasing lock... [2025-01-26 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:52:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:53:05 [end_date_ymd] => 2025-01-26 05:53:05 [RateCDR] => 1 ) [2025-01-26 05:53: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-01-26 02:53:05' and `end` < '2025-01-26 05:53: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-01-26 05:53:17] Production.INFO: count ==179 [2025-01-26 05:53:17] Production.ERROR: pbx CDR StartTime 2025-01-26 02:53:05 - End Time 2025-01-26 05:53:05 [2025-01-26 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332315', 'tblTempUsageDetail_20' ) start [2025-01-26 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332315', 'tblTempUsageDetail_20' ) end [2025-01-26 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332315', 'tblTempVendorCDR_20' ) start [2025-01-26 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332315', 'tblTempVendorCDR_20' ) end [2025-01-26 05:53:17] Production.INFO: ProcessCDR(1,14332315,1,1,2) [2025-01-26 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332315', 'tblTempUsageDetail_20' ) start [2025-01-26 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332315', 'tblTempUsageDetail_20' ) end [2025-01-26 05:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:53:20] Production.INFO: ==9801== Releasing lock... [2025-01-26 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:53:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:54:05 [end_date_ymd] => 2025-01-26 05:54:05 [RateCDR] => 1 ) [2025-01-26 05:54: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-01-26 02:54:05' and `end` < '2025-01-26 05:54: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-01-26 05:54:18] Production.INFO: count ==178 [2025-01-26 05:54:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:54:05 - End Time 2025-01-26 05:54:05 [2025-01-26 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332320', 'tblTempUsageDetail_20' ) start [2025-01-26 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332320', 'tblTempUsageDetail_20' ) end [2025-01-26 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332320', 'tblTempVendorCDR_20' ) start [2025-01-26 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332320', 'tblTempVendorCDR_20' ) end [2025-01-26 05:54:18] Production.INFO: ProcessCDR(1,14332320,1,1,2) [2025-01-26 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332320', 'tblTempUsageDetail_20' ) start [2025-01-26 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332320', 'tblTempUsageDetail_20' ) end [2025-01-26 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:54:21] Production.INFO: ==9884== Releasing lock... [2025-01-26 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:55:05 [end_date_ymd] => 2025-01-26 05:55:05 [RateCDR] => 1 ) [2025-01-26 05:55: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-01-26 02:55:05' and `end` < '2025-01-26 05:55: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-01-26 05:55:17] Production.INFO: count ==177 [2025-01-26 05:55:17] Production.ERROR: pbx CDR StartTime 2025-01-26 02:55:05 - End Time 2025-01-26 05:55:05 [2025-01-26 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332325', 'tblTempUsageDetail_20' ) start [2025-01-26 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332325', 'tblTempUsageDetail_20' ) end [2025-01-26 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332325', 'tblTempVendorCDR_20' ) start [2025-01-26 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332325', 'tblTempVendorCDR_20' ) end [2025-01-26 05:55:17] Production.INFO: ProcessCDR(1,14332325,1,1,2) [2025-01-26 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332325', 'tblTempUsageDetail_20' ) start [2025-01-26 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332325', 'tblTempUsageDetail_20' ) end [2025-01-26 05:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:55:20] Production.INFO: ==9966== Releasing lock... [2025-01-26 05:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:55:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:56:05 [end_date_ymd] => 2025-01-26 05:56:05 [RateCDR] => 1 ) [2025-01-26 05:56: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-01-26 02:56:05' and `end` < '2025-01-26 05:56: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-01-26 05:56:17] Production.INFO: count ==176 [2025-01-26 05:56:17] Production.ERROR: pbx CDR StartTime 2025-01-26 02:56:05 - End Time 2025-01-26 05:56:05 [2025-01-26 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332330', 'tblTempUsageDetail_20' ) start [2025-01-26 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332330', 'tblTempUsageDetail_20' ) end [2025-01-26 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332330', 'tblTempVendorCDR_20' ) start [2025-01-26 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332330', 'tblTempVendorCDR_20' ) end [2025-01-26 05:56:17] Production.INFO: ProcessCDR(1,14332330,1,1,2) [2025-01-26 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332330', 'tblTempUsageDetail_20' ) start [2025-01-26 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332330', 'tblTempUsageDetail_20' ) end [2025-01-26 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:56:21] Production.INFO: ==10054== Releasing lock... [2025-01-26 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:57:05 [end_date_ymd] => 2025-01-26 05:57:05 [RateCDR] => 1 ) [2025-01-26 05:57: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-01-26 02:57:05' and `end` < '2025-01-26 05:57: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-01-26 05:57:18] Production.INFO: count ==176 [2025-01-26 05:57:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:57:05 - End Time 2025-01-26 05:57:05 [2025-01-26 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332335', 'tblTempUsageDetail_20' ) start [2025-01-26 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332335', 'tblTempUsageDetail_20' ) end [2025-01-26 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332335', 'tblTempVendorCDR_20' ) start [2025-01-26 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332335', 'tblTempVendorCDR_20' ) end [2025-01-26 05:57:18] Production.INFO: ProcessCDR(1,14332335,1,1,2) [2025-01-26 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332335', 'tblTempUsageDetail_20' ) start [2025-01-26 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332335', 'tblTempUsageDetail_20' ) end [2025-01-26 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:57:21] Production.INFO: ==10144== Releasing lock... [2025-01-26 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:58:05 [end_date_ymd] => 2025-01-26 05:58:05 [RateCDR] => 1 ) [2025-01-26 05:58: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-01-26 02:58:05' and `end` < '2025-01-26 05:58: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-01-26 05:58:18] Production.INFO: count ==176 [2025-01-26 05:58:18] Production.ERROR: pbx CDR StartTime 2025-01-26 02:58:05 - End Time 2025-01-26 05:58:05 [2025-01-26 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332340', 'tblTempUsageDetail_20' ) start [2025-01-26 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332340', 'tblTempUsageDetail_20' ) end [2025-01-26 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332340', 'tblTempVendorCDR_20' ) start [2025-01-26 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332340', 'tblTempVendorCDR_20' ) end [2025-01-26 05:58:18] Production.INFO: ProcessCDR(1,14332340,1,1,2) [2025-01-26 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332340', 'tblTempUsageDetail_20' ) start [2025-01-26 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332340', 'tblTempUsageDetail_20' ) end [2025-01-26 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:58:21] Production.INFO: ==10227== Releasing lock... [2025-01-26 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 02:59:05 [end_date_ymd] => 2025-01-26 05:59:05 [RateCDR] => 1 ) [2025-01-26 05:59: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-01-26 02:59:05' and `end` < '2025-01-26 05:59: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-01-26 05:59:17] Production.INFO: count ==175 [2025-01-26 05:59:17] Production.ERROR: pbx CDR StartTime 2025-01-26 02:59:05 - End Time 2025-01-26 05:59:05 [2025-01-26 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332345', 'tblTempUsageDetail_20' ) start [2025-01-26 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332345', 'tblTempUsageDetail_20' ) end [2025-01-26 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332345', 'tblTempVendorCDR_20' ) start [2025-01-26 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332345', 'tblTempVendorCDR_20' ) end [2025-01-26 05:59:17] Production.INFO: ProcessCDR(1,14332345,1,1,2) [2025-01-26 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332345', 'tblTempUsageDetail_20' ) start [2025-01-26 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332345', 'tblTempUsageDetail_20' ) end [2025-01-26 05:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 05:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 05:59:20] Production.INFO: ==10349== Releasing lock... [2025-01-26 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 05:59:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:00:06 [end_date_ymd] => 2025-01-26 06:00:06 [RateCDR] => 1 ) [2025-01-26 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-01-26 03:00:06' and `end` < '2025-01-26 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-01-26 06:00:19] Production.INFO: count ==171 [2025-01-26 06:00:19] Production.ERROR: pbx CDR StartTime 2025-01-26 03:00:06 - End Time 2025-01-26 06:00:06 [2025-01-26 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332350', 'tblTempUsageDetail_20' ) start [2025-01-26 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332350', 'tblTempUsageDetail_20' ) end [2025-01-26 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332350', 'tblTempVendorCDR_20' ) start [2025-01-26 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332350', 'tblTempVendorCDR_20' ) end [2025-01-26 06:00:19] Production.INFO: ProcessCDR(1,14332350,1,1,2) [2025-01-26 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332350', 'tblTempUsageDetail_20' ) start [2025-01-26 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332350', 'tblTempUsageDetail_20' ) end [2025-01-26 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:00:22] Production.INFO: ==10437== Releasing lock... [2025-01-26 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:01:05 [end_date_ymd] => 2025-01-26 06:01:05 [RateCDR] => 1 ) [2025-01-26 06:01: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-01-26 03:01:05' and `end` < '2025-01-26 06:01: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-01-26 06:01:18] Production.INFO: count ==167 [2025-01-26 06:01:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:01:05 - End Time 2025-01-26 06:01:05 [2025-01-26 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332356', 'tblTempUsageDetail_20' ) start [2025-01-26 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332356', 'tblTempUsageDetail_20' ) end [2025-01-26 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332356', 'tblTempVendorCDR_20' ) start [2025-01-26 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332356', 'tblTempVendorCDR_20' ) end [2025-01-26 06:01:18] Production.INFO: ProcessCDR(1,14332356,1,1,2) [2025-01-26 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332356', 'tblTempUsageDetail_20' ) start [2025-01-26 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332356', 'tblTempUsageDetail_20' ) end [2025-01-26 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:01:21] Production.INFO: ==10533== Releasing lock... [2025-01-26 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:02:05 [end_date_ymd] => 2025-01-26 06:02:05 [RateCDR] => 1 ) [2025-01-26 06:02: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-01-26 03:02:05' and `end` < '2025-01-26 06:02: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-01-26 06:02:18] Production.INFO: count ==167 [2025-01-26 06:02:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:02:05 - End Time 2025-01-26 06:02:05 [2025-01-26 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332361', 'tblTempUsageDetail_20' ) start [2025-01-26 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332361', 'tblTempUsageDetail_20' ) end [2025-01-26 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332361', 'tblTempVendorCDR_20' ) start [2025-01-26 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332361', 'tblTempVendorCDR_20' ) end [2025-01-26 06:02:18] Production.INFO: ProcessCDR(1,14332361,1,1,2) [2025-01-26 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332361', 'tblTempUsageDetail_20' ) start [2025-01-26 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332361', 'tblTempUsageDetail_20' ) end [2025-01-26 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:02:21] Production.INFO: ==10618== Releasing lock... [2025-01-26 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:02:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:03:04 [end_date_ymd] => 2025-01-26 06:03:04 [RateCDR] => 1 ) [2025-01-26 06:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 03:03:04' and `end` < '2025-01-26 06:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 06:03:17] Production.INFO: count ==167 [2025-01-26 06:03:17] Production.ERROR: pbx CDR StartTime 2025-01-26 03:03:04 - End Time 2025-01-26 06:03:04 [2025-01-26 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332366', 'tblTempUsageDetail_20' ) start [2025-01-26 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332366', 'tblTempUsageDetail_20' ) end [2025-01-26 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332366', 'tblTempVendorCDR_20' ) start [2025-01-26 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332366', 'tblTempVendorCDR_20' ) end [2025-01-26 06:03:17] Production.INFO: ProcessCDR(1,14332366,1,1,2) [2025-01-26 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332366', 'tblTempUsageDetail_20' ) start [2025-01-26 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332366', 'tblTempUsageDetail_20' ) end [2025-01-26 06:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:03:20] Production.INFO: ==10697== Releasing lock... [2025-01-26 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:03:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:04:05 [end_date_ymd] => 2025-01-26 06:04:05 [RateCDR] => 1 ) [2025-01-26 06:04: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-01-26 03:04:05' and `end` < '2025-01-26 06:04: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-01-26 06:04:18] Production.INFO: count ==167 [2025-01-26 06:04:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:04:05 - End Time 2025-01-26 06:04:05 [2025-01-26 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332371', 'tblTempUsageDetail_20' ) start [2025-01-26 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332371', 'tblTempUsageDetail_20' ) end [2025-01-26 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332371', 'tblTempVendorCDR_20' ) start [2025-01-26 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332371', 'tblTempVendorCDR_20' ) end [2025-01-26 06:04:18] Production.INFO: ProcessCDR(1,14332371,1,1,2) [2025-01-26 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332371', 'tblTempUsageDetail_20' ) start [2025-01-26 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332371', 'tblTempUsageDetail_20' ) end [2025-01-26 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:04:21] Production.INFO: ==10784== Releasing lock... [2025-01-26 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:04:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:05:04 [end_date_ymd] => 2025-01-26 06:05:04 [RateCDR] => 1 ) [2025-01-26 06:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 03:05:04' and `end` < '2025-01-26 06:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 06:05:17] Production.INFO: count ==167 [2025-01-26 06:05:17] Production.ERROR: pbx CDR StartTime 2025-01-26 03:05:04 - End Time 2025-01-26 06:05:04 [2025-01-26 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332376', 'tblTempUsageDetail_20' ) start [2025-01-26 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332376', 'tblTempUsageDetail_20' ) end [2025-01-26 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332376', 'tblTempVendorCDR_20' ) start [2025-01-26 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332376', 'tblTempVendorCDR_20' ) end [2025-01-26 06:05:17] Production.INFO: ProcessCDR(1,14332376,1,1,2) [2025-01-26 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332376', 'tblTempUsageDetail_20' ) start [2025-01-26 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332376', 'tblTempUsageDetail_20' ) end [2025-01-26 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:05:20] Production.INFO: ==10867== Releasing lock... [2025-01-26 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:05:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:06:05 [end_date_ymd] => 2025-01-26 06:06:05 [RateCDR] => 1 ) [2025-01-26 06:06: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-01-26 03:06:05' and `end` < '2025-01-26 06:06: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-01-26 06:06:18] Production.INFO: count ==167 [2025-01-26 06:06:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:06:05 - End Time 2025-01-26 06:06:05 [2025-01-26 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332381', 'tblTempUsageDetail_20' ) start [2025-01-26 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332381', 'tblTempUsageDetail_20' ) end [2025-01-26 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332381', 'tblTempVendorCDR_20' ) start [2025-01-26 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332381', 'tblTempVendorCDR_20' ) end [2025-01-26 06:06:18] Production.INFO: ProcessCDR(1,14332381,1,1,2) [2025-01-26 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332381', 'tblTempUsageDetail_20' ) start [2025-01-26 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332381', 'tblTempUsageDetail_20' ) end [2025-01-26 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:06:21] Production.INFO: ==10956== Releasing lock... [2025-01-26 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:06:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:07:05 [end_date_ymd] => 2025-01-26 06:07:05 [RateCDR] => 1 ) [2025-01-26 06:07: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-01-26 03:07:05' and `end` < '2025-01-26 06:07: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-01-26 06:07:19] Production.INFO: count ==167 [2025-01-26 06:07:19] Production.ERROR: pbx CDR StartTime 2025-01-26 03:07:05 - End Time 2025-01-26 06:07:05 [2025-01-26 06:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332386', 'tblTempUsageDetail_20' ) start [2025-01-26 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332386', 'tblTempUsageDetail_20' ) end [2025-01-26 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332386', 'tblTempVendorCDR_20' ) start [2025-01-26 06:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332386', 'tblTempVendorCDR_20' ) end [2025-01-26 06:07:19] Production.INFO: ProcessCDR(1,14332386,1,1,2) [2025-01-26 06:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332386', 'tblTempUsageDetail_20' ) start [2025-01-26 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332386', 'tblTempUsageDetail_20' ) end [2025-01-26 06:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:07:22] Production.INFO: ==11044== Releasing lock... [2025-01-26 06:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:07:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:08:05 [end_date_ymd] => 2025-01-26 06:08:05 [RateCDR] => 1 ) [2025-01-26 06:08: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-01-26 03:08:05' and `end` < '2025-01-26 06:08: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-01-26 06:08:18] Production.INFO: count ==167 [2025-01-26 06:08:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:08:05 - End Time 2025-01-26 06:08:05 [2025-01-26 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332391', 'tblTempUsageDetail_20' ) start [2025-01-26 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332391', 'tblTempUsageDetail_20' ) end [2025-01-26 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332391', 'tblTempVendorCDR_20' ) start [2025-01-26 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332391', 'tblTempVendorCDR_20' ) end [2025-01-26 06:08:18] Production.INFO: ProcessCDR(1,14332391,1,1,2) [2025-01-26 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332391', 'tblTempUsageDetail_20' ) start [2025-01-26 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332391', 'tblTempUsageDetail_20' ) end [2025-01-26 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:08:21] Production.INFO: ==11133== Releasing lock... [2025-01-26 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:08:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:09:05 [end_date_ymd] => 2025-01-26 06:09:05 [RateCDR] => 1 ) [2025-01-26 06:09: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-01-26 03:09:05' and `end` < '2025-01-26 06:09: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-01-26 06:09:19] Production.INFO: count ==167 [2025-01-26 06:09:19] Production.ERROR: pbx CDR StartTime 2025-01-26 03:09:05 - End Time 2025-01-26 06:09:05 [2025-01-26 06:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332396', 'tblTempUsageDetail_20' ) start [2025-01-26 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332396', 'tblTempUsageDetail_20' ) end [2025-01-26 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332396', 'tblTempVendorCDR_20' ) start [2025-01-26 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332396', 'tblTempVendorCDR_20' ) end [2025-01-26 06:09:19] Production.INFO: ProcessCDR(1,14332396,1,1,2) [2025-01-26 06:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332396', 'tblTempUsageDetail_20' ) start [2025-01-26 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332396', 'tblTempUsageDetail_20' ) end [2025-01-26 06:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:09:22] Production.INFO: ==11217== Releasing lock... [2025-01-26 06:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:09:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:10:06 [end_date_ymd] => 2025-01-26 06:10:06 [RateCDR] => 1 ) [2025-01-26 06:10: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-01-26 03:10:06' and `end` < '2025-01-26 06:10: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-01-26 06:10:18] Production.INFO: count ==165 [2025-01-26 06:10:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:10:06 - End Time 2025-01-26 06:10:06 [2025-01-26 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332402', 'tblTempUsageDetail_20' ) start [2025-01-26 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332402', 'tblTempUsageDetail_20' ) end [2025-01-26 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332402', 'tblTempVendorCDR_20' ) start [2025-01-26 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332402', 'tblTempVendorCDR_20' ) end [2025-01-26 06:10:18] Production.INFO: ProcessCDR(1,14332402,1,1,2) [2025-01-26 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332402', 'tblTempUsageDetail_20' ) start [2025-01-26 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332402', 'tblTempUsageDetail_20' ) end [2025-01-26 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:10:21] Production.INFO: ==11307== Releasing lock... [2025-01-26 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:10:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:11:05 [end_date_ymd] => 2025-01-26 06:11:05 [RateCDR] => 1 ) [2025-01-26 06:11: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-01-26 03:11:05' and `end` < '2025-01-26 06:11: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-01-26 06:11:18] Production.INFO: count ==165 [2025-01-26 06:11:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:11:05 - End Time 2025-01-26 06:11:05 [2025-01-26 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332407', 'tblTempUsageDetail_20' ) start [2025-01-26 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332407', 'tblTempUsageDetail_20' ) end [2025-01-26 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332407', 'tblTempVendorCDR_20' ) start [2025-01-26 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332407', 'tblTempVendorCDR_20' ) end [2025-01-26 06:11:18] Production.INFO: ProcessCDR(1,14332407,1,1,2) [2025-01-26 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332407', 'tblTempUsageDetail_20' ) start [2025-01-26 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332407', 'tblTempUsageDetail_20' ) end [2025-01-26 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:11:21] Production.INFO: ==11396== Releasing lock... [2025-01-26 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:11:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:12:05 [end_date_ymd] => 2025-01-26 06:12:05 [RateCDR] => 1 ) [2025-01-26 06:12: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-01-26 03:12:05' and `end` < '2025-01-26 06:12: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-01-26 06:12:18] Production.INFO: count ==165 [2025-01-26 06:12:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:12:05 - End Time 2025-01-26 06:12:05 [2025-01-26 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332412', 'tblTempUsageDetail_20' ) start [2025-01-26 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332412', 'tblTempUsageDetail_20' ) end [2025-01-26 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332412', 'tblTempVendorCDR_20' ) start [2025-01-26 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332412', 'tblTempVendorCDR_20' ) end [2025-01-26 06:12:18] Production.INFO: ProcessCDR(1,14332412,1,1,2) [2025-01-26 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332412', 'tblTempUsageDetail_20' ) start [2025-01-26 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332412', 'tblTempUsageDetail_20' ) end [2025-01-26 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:12:21] Production.INFO: ==11490== Releasing lock... [2025-01-26 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:13:05 [end_date_ymd] => 2025-01-26 06:13:05 [RateCDR] => 1 ) [2025-01-26 06:13: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-01-26 03:13:05' and `end` < '2025-01-26 06:13: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-01-26 06:13:18] Production.INFO: count ==165 [2025-01-26 06:13:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:13:05 - End Time 2025-01-26 06:13:05 [2025-01-26 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332417', 'tblTempUsageDetail_20' ) start [2025-01-26 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332417', 'tblTempUsageDetail_20' ) end [2025-01-26 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332417', 'tblTempVendorCDR_20' ) start [2025-01-26 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332417', 'tblTempVendorCDR_20' ) end [2025-01-26 06:13:18] Production.INFO: ProcessCDR(1,14332417,1,1,2) [2025-01-26 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332417', 'tblTempUsageDetail_20' ) start [2025-01-26 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332417', 'tblTempUsageDetail_20' ) end [2025-01-26 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:13:21] Production.INFO: ==11576== Releasing lock... [2025-01-26 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:13:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:14:05 [end_date_ymd] => 2025-01-26 06:14:05 [RateCDR] => 1 ) [2025-01-26 06:14: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-01-26 03:14:05' and `end` < '2025-01-26 06:14: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-01-26 06:14:18] Production.INFO: count ==165 [2025-01-26 06:14:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:14:05 - End Time 2025-01-26 06:14:05 [2025-01-26 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332422', 'tblTempUsageDetail_20' ) start [2025-01-26 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332422', 'tblTempUsageDetail_20' ) end [2025-01-26 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332422', 'tblTempVendorCDR_20' ) start [2025-01-26 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332422', 'tblTempVendorCDR_20' ) end [2025-01-26 06:14:18] Production.INFO: ProcessCDR(1,14332422,1,1,2) [2025-01-26 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332422', 'tblTempUsageDetail_20' ) start [2025-01-26 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332422', 'tblTempUsageDetail_20' ) end [2025-01-26 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:14:21] Production.INFO: ==11656== Releasing lock... [2025-01-26 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:14:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:15:05 [end_date_ymd] => 2025-01-26 06:15:05 [RateCDR] => 1 ) [2025-01-26 06:15: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-01-26 03:15:05' and `end` < '2025-01-26 06:15: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-01-26 06:15:18] Production.INFO: count ==165 [2025-01-26 06:15:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:15:05 - End Time 2025-01-26 06:15:05 [2025-01-26 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332427', 'tblTempUsageDetail_20' ) start [2025-01-26 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332427', 'tblTempUsageDetail_20' ) end [2025-01-26 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332427', 'tblTempVendorCDR_20' ) start [2025-01-26 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332427', 'tblTempVendorCDR_20' ) end [2025-01-26 06:15:18] Production.INFO: ProcessCDR(1,14332427,1,1,2) [2025-01-26 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332427', 'tblTempUsageDetail_20' ) start [2025-01-26 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332427', 'tblTempUsageDetail_20' ) end [2025-01-26 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:15:21] Production.INFO: ==11783== Releasing lock... [2025-01-26 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:16:04 [end_date_ymd] => 2025-01-26 06:16:04 [RateCDR] => 1 ) [2025-01-26 06:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 03:16:04' and `end` < '2025-01-26 06:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 06:16:18] Production.INFO: count ==165 [2025-01-26 06:16:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:16:04 - End Time 2025-01-26 06:16:04 [2025-01-26 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332428', 'tblTempUsageDetail_20' ) start [2025-01-26 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332428', 'tblTempUsageDetail_20' ) end [2025-01-26 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332428', 'tblTempVendorCDR_20' ) start [2025-01-26 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332428', 'tblTempVendorCDR_20' ) end [2025-01-26 06:16:18] Production.INFO: ProcessCDR(1,14332428,1,1,2) [2025-01-26 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332428', 'tblTempUsageDetail_20' ) start [2025-01-26 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332428', 'tblTempUsageDetail_20' ) end [2025-01-26 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:16:21] Production.INFO: ==11865== Releasing lock... [2025-01-26 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:16:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:17:04 [end_date_ymd] => 2025-01-26 06:17:04 [RateCDR] => 1 ) [2025-01-26 06:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 03:17:04' and `end` < '2025-01-26 06:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 06:17:17] Production.INFO: count ==165 [2025-01-26 06:17:17] Production.ERROR: pbx CDR StartTime 2025-01-26 03:17:04 - End Time 2025-01-26 06:17:04 [2025-01-26 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332437', 'tblTempUsageDetail_20' ) start [2025-01-26 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332437', 'tblTempUsageDetail_20' ) end [2025-01-26 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332437', 'tblTempVendorCDR_20' ) start [2025-01-26 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332437', 'tblTempVendorCDR_20' ) end [2025-01-26 06:17:17] Production.INFO: ProcessCDR(1,14332437,1,1,2) [2025-01-26 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332437', 'tblTempUsageDetail_20' ) start [2025-01-26 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332437', 'tblTempUsageDetail_20' ) end [2025-01-26 06:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:17:20] Production.INFO: ==11946== Releasing lock... [2025-01-26 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:17:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:18:05 [end_date_ymd] => 2025-01-26 06:18:05 [RateCDR] => 1 ) [2025-01-26 06:18: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-01-26 03:18:05' and `end` < '2025-01-26 06:18: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-01-26 06:18:18] Production.INFO: count ==162 [2025-01-26 06:18:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:18:05 - End Time 2025-01-26 06:18:05 [2025-01-26 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332442', 'tblTempUsageDetail_20' ) start [2025-01-26 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332442', 'tblTempUsageDetail_20' ) end [2025-01-26 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332442', 'tblTempVendorCDR_20' ) start [2025-01-26 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332442', 'tblTempVendorCDR_20' ) end [2025-01-26 06:18:18] Production.INFO: ProcessCDR(1,14332442,1,1,2) [2025-01-26 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332442', 'tblTempUsageDetail_20' ) start [2025-01-26 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332442', 'tblTempUsageDetail_20' ) end [2025-01-26 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:18:22] Production.INFO: ==12029== Releasing lock... [2025-01-26 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:18:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:19:06 [end_date_ymd] => 2025-01-26 06:19:06 [RateCDR] => 1 ) [2025-01-26 06:19: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-01-26 03:19:06' and `end` < '2025-01-26 06:19: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-01-26 06:19:18] Production.INFO: count ==162 [2025-01-26 06:19:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:19:06 - End Time 2025-01-26 06:19:06 [2025-01-26 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332447', 'tblTempUsageDetail_20' ) start [2025-01-26 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332447', 'tblTempUsageDetail_20' ) end [2025-01-26 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332447', 'tblTempVendorCDR_20' ) start [2025-01-26 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332447', 'tblTempVendorCDR_20' ) end [2025-01-26 06:19:18] Production.INFO: ProcessCDR(1,14332447,1,1,2) [2025-01-26 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332447', 'tblTempUsageDetail_20' ) start [2025-01-26 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332447', 'tblTempUsageDetail_20' ) end [2025-01-26 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:19:21] Production.INFO: ==12117== Releasing lock... [2025-01-26 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:20:06 [end_date_ymd] => 2025-01-26 06:20:06 [RateCDR] => 1 ) [2025-01-26 06:20: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-01-26 03:20:06' and `end` < '2025-01-26 06:20: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-01-26 06:20:19] Production.INFO: count ==150 [2025-01-26 06:20:19] Production.ERROR: pbx CDR StartTime 2025-01-26 03:20:06 - End Time 2025-01-26 06:20:06 [2025-01-26 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332453', 'tblTempUsageDetail_20' ) start [2025-01-26 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332453', 'tblTempUsageDetail_20' ) end [2025-01-26 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332453', 'tblTempVendorCDR_20' ) start [2025-01-26 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332453', 'tblTempVendorCDR_20' ) end [2025-01-26 06:20:19] Production.INFO: ProcessCDR(1,14332453,1,1,2) [2025-01-26 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332453', 'tblTempUsageDetail_20' ) start [2025-01-26 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332453', 'tblTempUsageDetail_20' ) end [2025-01-26 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:20:22] Production.INFO: ==12204== Releasing lock... [2025-01-26 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:20:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:21:06 [end_date_ymd] => 2025-01-26 06:21:06 [RateCDR] => 1 ) [2025-01-26 06:21: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-01-26 03:21:06' and `end` < '2025-01-26 06:21: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-01-26 06:21:19] Production.INFO: count ==135 [2025-01-26 06:21:19] Production.ERROR: pbx CDR StartTime 2025-01-26 03:21:06 - End Time 2025-01-26 06:21:06 [2025-01-26 06:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332458', 'tblTempUsageDetail_20' ) start [2025-01-26 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332458', 'tblTempUsageDetail_20' ) end [2025-01-26 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332458', 'tblTempVendorCDR_20' ) start [2025-01-26 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332458', 'tblTempVendorCDR_20' ) end [2025-01-26 06:21:19] Production.INFO: ProcessCDR(1,14332458,1,1,2) [2025-01-26 06:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332458', 'tblTempUsageDetail_20' ) start [2025-01-26 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332458', 'tblTempUsageDetail_20' ) end [2025-01-26 06:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:21:22] Production.INFO: ==12290== Releasing lock... [2025-01-26 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:21:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:22:05 [end_date_ymd] => 2025-01-26 06:22:05 [RateCDR] => 1 ) [2025-01-26 06:22: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-01-26 03:22:05' and `end` < '2025-01-26 06:22: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-01-26 06:22:18] Production.INFO: count ==135 [2025-01-26 06:22:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:22:05 - End Time 2025-01-26 06:22:05 [2025-01-26 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332463', 'tblTempUsageDetail_20' ) start [2025-01-26 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332463', 'tblTempUsageDetail_20' ) end [2025-01-26 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332463', 'tblTempVendorCDR_20' ) start [2025-01-26 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332463', 'tblTempVendorCDR_20' ) end [2025-01-26 06:22:18] Production.INFO: ProcessCDR(1,14332463,1,1,2) [2025-01-26 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332463', 'tblTempUsageDetail_20' ) start [2025-01-26 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332463', 'tblTempUsageDetail_20' ) end [2025-01-26 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:22:21] Production.INFO: ==12369== Releasing lock... [2025-01-26 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:22:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:23:05 [end_date_ymd] => 2025-01-26 06:23:05 [RateCDR] => 1 ) [2025-01-26 06:23: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-01-26 03:23:05' and `end` < '2025-01-26 06:23: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-01-26 06:23:18] Production.INFO: count ==135 [2025-01-26 06:23:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:23:05 - End Time 2025-01-26 06:23:05 [2025-01-26 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332468', 'tblTempUsageDetail_20' ) start [2025-01-26 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332468', 'tblTempUsageDetail_20' ) end [2025-01-26 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332468', 'tblTempVendorCDR_20' ) start [2025-01-26 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332468', 'tblTempVendorCDR_20' ) end [2025-01-26 06:23:18] Production.INFO: ProcessCDR(1,14332468,1,1,2) [2025-01-26 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332468', 'tblTempUsageDetail_20' ) start [2025-01-26 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332468', 'tblTempUsageDetail_20' ) end [2025-01-26 06:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:23:20] Production.INFO: ==12451== Releasing lock... [2025-01-26 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:23:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:24:05 [end_date_ymd] => 2025-01-26 06:24:05 [RateCDR] => 1 ) [2025-01-26 06:24: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-01-26 03:24:05' and `end` < '2025-01-26 06:24: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-01-26 06:24:18] Production.INFO: count ==132 [2025-01-26 06:24:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:24:05 - End Time 2025-01-26 06:24:05 [2025-01-26 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332473', 'tblTempUsageDetail_20' ) start [2025-01-26 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332473', 'tblTempUsageDetail_20' ) end [2025-01-26 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332473', 'tblTempVendorCDR_20' ) start [2025-01-26 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332473', 'tblTempVendorCDR_20' ) end [2025-01-26 06:24:18] Production.INFO: ProcessCDR(1,14332473,1,1,2) [2025-01-26 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332473', 'tblTempUsageDetail_20' ) start [2025-01-26 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332473', 'tblTempUsageDetail_20' ) end [2025-01-26 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:24:21] Production.INFO: ==12538== Releasing lock... [2025-01-26 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:25:05 [end_date_ymd] => 2025-01-26 06:25:05 [RateCDR] => 1 ) [2025-01-26 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 03:25:05' and `end` < '2025-01-26 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 06:25:17] Production.INFO: count ==132 [2025-01-26 06:25:17] Production.ERROR: pbx CDR StartTime 2025-01-26 03:25:05 - End Time 2025-01-26 06:25:05 [2025-01-26 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332478', 'tblTempUsageDetail_20' ) start [2025-01-26 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332478', 'tblTempUsageDetail_20' ) end [2025-01-26 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332478', 'tblTempVendorCDR_20' ) start [2025-01-26 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332478', 'tblTempVendorCDR_20' ) end [2025-01-26 06:25:17] Production.INFO: ProcessCDR(1,14332478,1,1,2) [2025-01-26 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332478', 'tblTempUsageDetail_20' ) start [2025-01-26 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332478', 'tblTempUsageDetail_20' ) end [2025-01-26 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:25:20] Production.INFO: ==12617== Releasing lock... [2025-01-26 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:25:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:26:05 [end_date_ymd] => 2025-01-26 06:26:05 [RateCDR] => 1 ) [2025-01-26 06:26: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-01-26 03:26:05' and `end` < '2025-01-26 06:26: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-01-26 06:26:17] Production.INFO: count ==132 [2025-01-26 06:26:17] Production.ERROR: pbx CDR StartTime 2025-01-26 03:26:05 - End Time 2025-01-26 06:26:05 [2025-01-26 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332483', 'tblTempUsageDetail_20' ) start [2025-01-26 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332483', 'tblTempUsageDetail_20' ) end [2025-01-26 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332483', 'tblTempVendorCDR_20' ) start [2025-01-26 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332483', 'tblTempVendorCDR_20' ) end [2025-01-26 06:26:17] Production.INFO: ProcessCDR(1,14332483,1,1,2) [2025-01-26 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332483', 'tblTempUsageDetail_20' ) start [2025-01-26 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332483', 'tblTempUsageDetail_20' ) end [2025-01-26 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:26:20] Production.INFO: ==12702== Releasing lock... [2025-01-26 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:26:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:27:05 [end_date_ymd] => 2025-01-26 06:27:05 [RateCDR] => 1 ) [2025-01-26 06:27: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-01-26 03:27:05' and `end` < '2025-01-26 06:27: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-01-26 06:27:18] Production.INFO: count ==132 [2025-01-26 06:27:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:27:05 - End Time 2025-01-26 06:27:05 [2025-01-26 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332488', 'tblTempUsageDetail_20' ) start [2025-01-26 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332488', 'tblTempUsageDetail_20' ) end [2025-01-26 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332488', 'tblTempVendorCDR_20' ) start [2025-01-26 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332488', 'tblTempVendorCDR_20' ) end [2025-01-26 06:27:18] Production.INFO: ProcessCDR(1,14332488,1,1,2) [2025-01-26 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332488', 'tblTempUsageDetail_20' ) start [2025-01-26 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332488', 'tblTempUsageDetail_20' ) end [2025-01-26 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:27:21] Production.INFO: ==12791== Releasing lock... [2025-01-26 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:28:05 [end_date_ymd] => 2025-01-26 06:28:05 [RateCDR] => 1 ) [2025-01-26 06:28: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-01-26 03:28:05' and `end` < '2025-01-26 06:28: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-01-26 06:28:19] Production.INFO: count ==131 [2025-01-26 06:28:19] Production.ERROR: pbx CDR StartTime 2025-01-26 03:28:05 - End Time 2025-01-26 06:28:05 [2025-01-26 06:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332493', 'tblTempUsageDetail_20' ) start [2025-01-26 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332493', 'tblTempUsageDetail_20' ) end [2025-01-26 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332493', 'tblTempVendorCDR_20' ) start [2025-01-26 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332493', 'tblTempVendorCDR_20' ) end [2025-01-26 06:28:19] Production.INFO: ProcessCDR(1,14332493,1,1,2) [2025-01-26 06:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332493', 'tblTempUsageDetail_20' ) start [2025-01-26 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332493', 'tblTempUsageDetail_20' ) end [2025-01-26 06:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:28:22] Production.INFO: ==12874== Releasing lock... [2025-01-26 06:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:28:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:29:05 [end_date_ymd] => 2025-01-26 06:29:05 [RateCDR] => 1 ) [2025-01-26 06:29: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-01-26 03:29:05' and `end` < '2025-01-26 06:29: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-01-26 06:29:17] Production.INFO: count ==131 [2025-01-26 06:29:17] Production.ERROR: pbx CDR StartTime 2025-01-26 03:29:05 - End Time 2025-01-26 06:29:05 [2025-01-26 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332498', 'tblTempUsageDetail_20' ) start [2025-01-26 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332498', 'tblTempUsageDetail_20' ) end [2025-01-26 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332498', 'tblTempVendorCDR_20' ) start [2025-01-26 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332498', 'tblTempVendorCDR_20' ) end [2025-01-26 06:29:17] Production.INFO: ProcessCDR(1,14332498,1,1,2) [2025-01-26 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332498', 'tblTempUsageDetail_20' ) start [2025-01-26 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332498', 'tblTempUsageDetail_20' ) end [2025-01-26 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:29:20] Production.INFO: ==12953== Releasing lock... [2025-01-26 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:29:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:30:06 [end_date_ymd] => 2025-01-26 06:30:06 [RateCDR] => 1 ) [2025-01-26 06:30: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-01-26 03:30:06' and `end` < '2025-01-26 06:30: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-01-26 06:30:19] Production.INFO: count ==129 [2025-01-26 06:30:19] Production.ERROR: pbx CDR StartTime 2025-01-26 03:30:06 - End Time 2025-01-26 06:30:06 [2025-01-26 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332503', 'tblTempUsageDetail_20' ) start [2025-01-26 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332503', 'tblTempUsageDetail_20' ) end [2025-01-26 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332503', 'tblTempVendorCDR_20' ) start [2025-01-26 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332503', 'tblTempVendorCDR_20' ) end [2025-01-26 06:30:19] Production.INFO: ProcessCDR(1,14332503,1,1,2) [2025-01-26 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332503', 'tblTempUsageDetail_20' ) start [2025-01-26 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332503', 'tblTempUsageDetail_20' ) end [2025-01-26 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:30:21] Production.INFO: ==13077== Releasing lock... [2025-01-26 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:30:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:31:05 [end_date_ymd] => 2025-01-26 06:31:05 [RateCDR] => 1 ) [2025-01-26 06:31: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-01-26 03:31:05' and `end` < '2025-01-26 06:31: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-01-26 06:31:19] Production.INFO: count ==128 [2025-01-26 06:31:19] Production.ERROR: pbx CDR StartTime 2025-01-26 03:31:05 - End Time 2025-01-26 06:31:05 [2025-01-26 06:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332509', 'tblTempUsageDetail_20' ) start [2025-01-26 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332509', 'tblTempUsageDetail_20' ) end [2025-01-26 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332509', 'tblTempVendorCDR_20' ) start [2025-01-26 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332509', 'tblTempVendorCDR_20' ) end [2025-01-26 06:31:19] Production.INFO: ProcessCDR(1,14332509,1,1,2) [2025-01-26 06:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332509', 'tblTempUsageDetail_20' ) start [2025-01-26 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332509', 'tblTempUsageDetail_20' ) end [2025-01-26 06:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:31:22] Production.INFO: ==13160== Releasing lock... [2025-01-26 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:31:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:32:05 [end_date_ymd] => 2025-01-26 06:32:05 [RateCDR] => 1 ) [2025-01-26 06:32: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-01-26 03:32:05' and `end` < '2025-01-26 06:32: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-01-26 06:32:17] Production.INFO: count ==128 [2025-01-26 06:32:17] Production.ERROR: pbx CDR StartTime 2025-01-26 03:32:05 - End Time 2025-01-26 06:32:05 [2025-01-26 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332514', 'tblTempUsageDetail_20' ) start [2025-01-26 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332514', 'tblTempUsageDetail_20' ) end [2025-01-26 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332514', 'tblTempVendorCDR_20' ) start [2025-01-26 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332514', 'tblTempVendorCDR_20' ) end [2025-01-26 06:32:17] Production.INFO: ProcessCDR(1,14332514,1,1,2) [2025-01-26 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332514', 'tblTempUsageDetail_20' ) start [2025-01-26 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332514', 'tblTempUsageDetail_20' ) end [2025-01-26 06:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:32:20] Production.INFO: ==13249== Releasing lock... [2025-01-26 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:32:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:33:04 [end_date_ymd] => 2025-01-26 06:33:04 [RateCDR] => 1 ) [2025-01-26 06:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 03:33:04' and `end` < '2025-01-26 06:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 06:33:16] Production.INFO: count ==128 [2025-01-26 06:33:17] Production.ERROR: pbx CDR StartTime 2025-01-26 03:33:04 - End Time 2025-01-26 06:33:04 [2025-01-26 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332519', 'tblTempUsageDetail_20' ) start [2025-01-26 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332519', 'tblTempUsageDetail_20' ) end [2025-01-26 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332519', 'tblTempVendorCDR_20' ) start [2025-01-26 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332519', 'tblTempVendorCDR_20' ) end [2025-01-26 06:33:17] Production.INFO: ProcessCDR(1,14332519,1,1,2) [2025-01-26 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332519', 'tblTempUsageDetail_20' ) start [2025-01-26 06:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332519', 'tblTempUsageDetail_20' ) end [2025-01-26 06:33:19] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:33:19] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:33:19] Production.INFO: ==13333== Releasing lock... [2025-01-26 06:33:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:33:19] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:34:05 [end_date_ymd] => 2025-01-26 06:34:05 [RateCDR] => 1 ) [2025-01-26 06:34: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-01-26 03:34:05' and `end` < '2025-01-26 06:34: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-01-26 06:34:18] Production.INFO: count ==127 [2025-01-26 06:34:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:34:05 - End Time 2025-01-26 06:34:05 [2025-01-26 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332524', 'tblTempUsageDetail_20' ) start [2025-01-26 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332524', 'tblTempUsageDetail_20' ) end [2025-01-26 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332524', 'tblTempVendorCDR_20' ) start [2025-01-26 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332524', 'tblTempVendorCDR_20' ) end [2025-01-26 06:34:18] Production.INFO: ProcessCDR(1,14332524,1,1,2) [2025-01-26 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332524', 'tblTempUsageDetail_20' ) start [2025-01-26 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332524', 'tblTempUsageDetail_20' ) end [2025-01-26 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:34:21] Production.INFO: ==13414== Releasing lock... [2025-01-26 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:35:05 [end_date_ymd] => 2025-01-26 06:35:05 [RateCDR] => 1 ) [2025-01-26 06:35: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-01-26 03:35:05' and `end` < '2025-01-26 06:35: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-01-26 06:35:17] Production.INFO: count ==127 [2025-01-26 06:35:17] Production.ERROR: pbx CDR StartTime 2025-01-26 03:35:05 - End Time 2025-01-26 06:35:05 [2025-01-26 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332529', 'tblTempUsageDetail_20' ) start [2025-01-26 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332529', 'tblTempUsageDetail_20' ) end [2025-01-26 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332529', 'tblTempVendorCDR_20' ) start [2025-01-26 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332529', 'tblTempVendorCDR_20' ) end [2025-01-26 06:35:17] Production.INFO: ProcessCDR(1,14332529,1,1,2) [2025-01-26 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332529', 'tblTempUsageDetail_20' ) start [2025-01-26 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332529', 'tblTempUsageDetail_20' ) end [2025-01-26 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:35:20] Production.INFO: ==13496== Releasing lock... [2025-01-26 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:35:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:36:05 [end_date_ymd] => 2025-01-26 06:36:05 [RateCDR] => 1 ) [2025-01-26 06:36: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-01-26 03:36:05' and `end` < '2025-01-26 06:36: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-01-26 06:36:18] Production.INFO: count ==127 [2025-01-26 06:36:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:36:05 - End Time 2025-01-26 06:36:05 [2025-01-26 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332534', 'tblTempUsageDetail_20' ) start [2025-01-26 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332534', 'tblTempUsageDetail_20' ) end [2025-01-26 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332534', 'tblTempVendorCDR_20' ) start [2025-01-26 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332534', 'tblTempVendorCDR_20' ) end [2025-01-26 06:36:18] Production.INFO: ProcessCDR(1,14332534,1,1,2) [2025-01-26 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332534', 'tblTempUsageDetail_20' ) start [2025-01-26 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332534', 'tblTempUsageDetail_20' ) end [2025-01-26 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:36:21] Production.INFO: ==13578== Releasing lock... [2025-01-26 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:37:05 [end_date_ymd] => 2025-01-26 06:37:05 [RateCDR] => 1 ) [2025-01-26 06:37: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-01-26 03:37:05' and `end` < '2025-01-26 06:37: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-01-26 06:37:18] Production.INFO: count ==127 [2025-01-26 06:37:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:37:05 - End Time 2025-01-26 06:37:05 [2025-01-26 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332539', 'tblTempUsageDetail_20' ) start [2025-01-26 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332539', 'tblTempUsageDetail_20' ) end [2025-01-26 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332539', 'tblTempVendorCDR_20' ) start [2025-01-26 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332539', 'tblTempVendorCDR_20' ) end [2025-01-26 06:37:18] Production.INFO: ProcessCDR(1,14332539,1,1,2) [2025-01-26 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332539', 'tblTempUsageDetail_20' ) start [2025-01-26 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332539', 'tblTempUsageDetail_20' ) end [2025-01-26 06:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:37:22] Production.INFO: ==13653== Releasing lock... [2025-01-26 06:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:37:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:38:05 [end_date_ymd] => 2025-01-26 06:38:05 [RateCDR] => 1 ) [2025-01-26 06:38: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-01-26 03:38:05' and `end` < '2025-01-26 06:38: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-01-26 06:38:17] Production.INFO: count ==127 [2025-01-26 06:38:17] Production.ERROR: pbx CDR StartTime 2025-01-26 03:38:05 - End Time 2025-01-26 06:38:05 [2025-01-26 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332544', 'tblTempUsageDetail_20' ) start [2025-01-26 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332544', 'tblTempUsageDetail_20' ) end [2025-01-26 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332544', 'tblTempVendorCDR_20' ) start [2025-01-26 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332544', 'tblTempVendorCDR_20' ) end [2025-01-26 06:38:17] Production.INFO: ProcessCDR(1,14332544,1,1,2) [2025-01-26 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332544', 'tblTempUsageDetail_20' ) start [2025-01-26 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332544', 'tblTempUsageDetail_20' ) end [2025-01-26 06:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:38:20] Production.INFO: ==13738== Releasing lock... [2025-01-26 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:38:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:39:06 [end_date_ymd] => 2025-01-26 06:39:06 [RateCDR] => 1 ) [2025-01-26 06:39: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-01-26 03:39:06' and `end` < '2025-01-26 06:39: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-01-26 06:39:19] Production.INFO: count ==127 [2025-01-26 06:39:19] Production.ERROR: pbx CDR StartTime 2025-01-26 03:39:06 - End Time 2025-01-26 06:39:06 [2025-01-26 06:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332549', 'tblTempUsageDetail_20' ) start [2025-01-26 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332549', 'tblTempUsageDetail_20' ) end [2025-01-26 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332549', 'tblTempVendorCDR_20' ) start [2025-01-26 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332549', 'tblTempVendorCDR_20' ) end [2025-01-26 06:39:19] Production.INFO: ProcessCDR(1,14332549,1,1,2) [2025-01-26 06:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332549', 'tblTempUsageDetail_20' ) start [2025-01-26 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332549', 'tblTempUsageDetail_20' ) end [2025-01-26 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:39:22] Production.INFO: ==13821== Releasing lock... [2025-01-26 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:39:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:40:06 [end_date_ymd] => 2025-01-26 06:40:06 [RateCDR] => 1 ) [2025-01-26 06:40: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-01-26 03:40:06' and `end` < '2025-01-26 06:40: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-01-26 06:40:18] Production.INFO: count ==127 [2025-01-26 06:40:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:40:06 - End Time 2025-01-26 06:40:06 [2025-01-26 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332555', 'tblTempUsageDetail_20' ) start [2025-01-26 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332555', 'tblTempUsageDetail_20' ) end [2025-01-26 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332555', 'tblTempVendorCDR_20' ) start [2025-01-26 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332555', 'tblTempVendorCDR_20' ) end [2025-01-26 06:40:18] Production.INFO: ProcessCDR(1,14332555,1,1,2) [2025-01-26 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332555', 'tblTempUsageDetail_20' ) start [2025-01-26 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332555', 'tblTempUsageDetail_20' ) end [2025-01-26 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:40:21] Production.INFO: ==13906== Releasing lock... [2025-01-26 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:41:05 [end_date_ymd] => 2025-01-26 06:41:05 [RateCDR] => 1 ) [2025-01-26 06:41: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-01-26 03:41:05' and `end` < '2025-01-26 06:41: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-01-26 06:41:18] Production.INFO: count ==127 [2025-01-26 06:41:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:41:05 - End Time 2025-01-26 06:41:05 [2025-01-26 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332560', 'tblTempUsageDetail_20' ) start [2025-01-26 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332560', 'tblTempUsageDetail_20' ) end [2025-01-26 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332560', 'tblTempVendorCDR_20' ) start [2025-01-26 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332560', 'tblTempVendorCDR_20' ) end [2025-01-26 06:41:18] Production.INFO: ProcessCDR(1,14332560,1,1,2) [2025-01-26 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332560', 'tblTempUsageDetail_20' ) start [2025-01-26 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332560', 'tblTempUsageDetail_20' ) end [2025-01-26 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:41:21] Production.INFO: ==13994== Releasing lock... [2025-01-26 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:42:05 [end_date_ymd] => 2025-01-26 06:42:05 [RateCDR] => 1 ) [2025-01-26 06:42: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-01-26 03:42:05' and `end` < '2025-01-26 06:42: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-01-26 06:42:19] Production.INFO: count ==127 [2025-01-26 06:42:19] Production.ERROR: pbx CDR StartTime 2025-01-26 03:42:05 - End Time 2025-01-26 06:42:05 [2025-01-26 06:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332565', 'tblTempUsageDetail_20' ) start [2025-01-26 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332565', 'tblTempUsageDetail_20' ) end [2025-01-26 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332565', 'tblTempVendorCDR_20' ) start [2025-01-26 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332565', 'tblTempVendorCDR_20' ) end [2025-01-26 06:42:19] Production.INFO: ProcessCDR(1,14332565,1,1,2) [2025-01-26 06:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332565', 'tblTempUsageDetail_20' ) start [2025-01-26 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332565', 'tblTempUsageDetail_20' ) end [2025-01-26 06:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:42:22] Production.INFO: ==14074== Releasing lock... [2025-01-26 06:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:42:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:43:06 [end_date_ymd] => 2025-01-26 06:43:06 [RateCDR] => 1 ) [2025-01-26 06:43: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-01-26 03:43:06' and `end` < '2025-01-26 06:43: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-01-26 06:43:18] Production.INFO: count ==127 [2025-01-26 06:43:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:43:06 - End Time 2025-01-26 06:43:06 [2025-01-26 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332570', 'tblTempUsageDetail_20' ) start [2025-01-26 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332570', 'tblTempUsageDetail_20' ) end [2025-01-26 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332570', 'tblTempVendorCDR_20' ) start [2025-01-26 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332570', 'tblTempVendorCDR_20' ) end [2025-01-26 06:43:18] Production.INFO: ProcessCDR(1,14332570,1,1,2) [2025-01-26 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332570', 'tblTempUsageDetail_20' ) start [2025-01-26 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332570', 'tblTempUsageDetail_20' ) end [2025-01-26 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:43:21] Production.INFO: ==14157== Releasing lock... [2025-01-26 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:44:05 [end_date_ymd] => 2025-01-26 06:44:05 [RateCDR] => 1 ) [2025-01-26 06:44: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-01-26 03:44:05' and `end` < '2025-01-26 06:44: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-01-26 06:44:17] Production.INFO: count ==127 [2025-01-26 06:44:17] Production.ERROR: pbx CDR StartTime 2025-01-26 03:44:05 - End Time 2025-01-26 06:44:05 [2025-01-26 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332575', 'tblTempUsageDetail_20' ) start [2025-01-26 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332575', 'tblTempUsageDetail_20' ) end [2025-01-26 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332575', 'tblTempVendorCDR_20' ) start [2025-01-26 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332575', 'tblTempVendorCDR_20' ) end [2025-01-26 06:44:17] Production.INFO: ProcessCDR(1,14332575,1,1,2) [2025-01-26 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332575', 'tblTempUsageDetail_20' ) start [2025-01-26 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332575', 'tblTempUsageDetail_20' ) end [2025-01-26 06:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:44:20] Production.INFO: ==14234== Releasing lock... [2025-01-26 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:44:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:45:05 [end_date_ymd] => 2025-01-26 06:45:05 [RateCDR] => 1 ) [2025-01-26 06:45: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-01-26 03:45:05' and `end` < '2025-01-26 06:45: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-01-26 06:45:18] Production.INFO: count ==127 [2025-01-26 06:45:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:45:05 - End Time 2025-01-26 06:45:05 [2025-01-26 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332580', 'tblTempUsageDetail_20' ) start [2025-01-26 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332580', 'tblTempUsageDetail_20' ) end [2025-01-26 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332580', 'tblTempVendorCDR_20' ) start [2025-01-26 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332580', 'tblTempVendorCDR_20' ) end [2025-01-26 06:45:18] Production.INFO: ProcessCDR(1,14332580,1,1,2) [2025-01-26 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332580', 'tblTempUsageDetail_20' ) start [2025-01-26 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332580', 'tblTempUsageDetail_20' ) end [2025-01-26 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:45:21] Production.INFO: ==14315== Releasing lock... [2025-01-26 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:46:05 [end_date_ymd] => 2025-01-26 06:46:05 [RateCDR] => 1 ) [2025-01-26 06:46: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-01-26 03:46:05' and `end` < '2025-01-26 06:46: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-01-26 06:46:18] Production.INFO: count ==127 [2025-01-26 06:46:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:46:05 - End Time 2025-01-26 06:46:05 [2025-01-26 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332585', 'tblTempUsageDetail_20' ) start [2025-01-26 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332585', 'tblTempUsageDetail_20' ) end [2025-01-26 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332585', 'tblTempVendorCDR_20' ) start [2025-01-26 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332585', 'tblTempVendorCDR_20' ) end [2025-01-26 06:46:18] Production.INFO: ProcessCDR(1,14332585,1,1,2) [2025-01-26 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332585', 'tblTempUsageDetail_20' ) start [2025-01-26 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332585', 'tblTempUsageDetail_20' ) end [2025-01-26 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:46:21] Production.INFO: ==14434== Releasing lock... [2025-01-26 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:47:05 [end_date_ymd] => 2025-01-26 06:47:05 [RateCDR] => 1 ) [2025-01-26 06:47: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-01-26 03:47:05' and `end` < '2025-01-26 06:47: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-01-26 06:47:18] Production.INFO: count ==127 [2025-01-26 06:47:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:47:05 - End Time 2025-01-26 06:47:05 [2025-01-26 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332590', 'tblTempUsageDetail_20' ) start [2025-01-26 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332590', 'tblTempUsageDetail_20' ) end [2025-01-26 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332590', 'tblTempVendorCDR_20' ) start [2025-01-26 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332590', 'tblTempVendorCDR_20' ) end [2025-01-26 06:47:18] Production.INFO: ProcessCDR(1,14332590,1,1,2) [2025-01-26 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332590', 'tblTempUsageDetail_20' ) start [2025-01-26 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332590', 'tblTempUsageDetail_20' ) end [2025-01-26 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:47:21] Production.INFO: ==14516== Releasing lock... [2025-01-26 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:48:04 [end_date_ymd] => 2025-01-26 06:48:04 [RateCDR] => 1 ) [2025-01-26 06:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 03:48:04' and `end` < '2025-01-26 06:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 06:48:17] Production.INFO: count ==126 [2025-01-26 06:48:17] Production.ERROR: pbx CDR StartTime 2025-01-26 03:48:04 - End Time 2025-01-26 06:48:04 [2025-01-26 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332595', 'tblTempUsageDetail_20' ) start [2025-01-26 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332595', 'tblTempUsageDetail_20' ) end [2025-01-26 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332595', 'tblTempVendorCDR_20' ) start [2025-01-26 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332595', 'tblTempVendorCDR_20' ) end [2025-01-26 06:48:17] Production.INFO: ProcessCDR(1,14332595,1,1,2) [2025-01-26 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332595', 'tblTempUsageDetail_20' ) start [2025-01-26 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332595', 'tblTempUsageDetail_20' ) end [2025-01-26 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:48:21] Production.INFO: ==14597== Releasing lock... [2025-01-26 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:49:05 [end_date_ymd] => 2025-01-26 06:49:05 [RateCDR] => 1 ) [2025-01-26 06:49: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-01-26 03:49:05' and `end` < '2025-01-26 06:49: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-01-26 06:49:18] Production.INFO: count ==125 [2025-01-26 06:49:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:49:05 - End Time 2025-01-26 06:49:05 [2025-01-26 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332600', 'tblTempUsageDetail_20' ) start [2025-01-26 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332600', 'tblTempUsageDetail_20' ) end [2025-01-26 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332600', 'tblTempVendorCDR_20' ) start [2025-01-26 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332600', 'tblTempVendorCDR_20' ) end [2025-01-26 06:49:18] Production.INFO: ProcessCDR(1,14332600,1,1,2) [2025-01-26 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332600', 'tblTempUsageDetail_20' ) start [2025-01-26 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332600', 'tblTempUsageDetail_20' ) end [2025-01-26 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:49:21] Production.INFO: ==14682== Releasing lock... [2025-01-26 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:50:06 [end_date_ymd] => 2025-01-26 06:50:06 [RateCDR] => 1 ) [2025-01-26 06:50: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-01-26 03:50:06' and `end` < '2025-01-26 06:50: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-01-26 06:50:18] Production.INFO: count ==121 [2025-01-26 06:50:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:50:06 - End Time 2025-01-26 06:50:06 [2025-01-26 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332606', 'tblTempUsageDetail_20' ) start [2025-01-26 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332606', 'tblTempUsageDetail_20' ) end [2025-01-26 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332606', 'tblTempVendorCDR_20' ) start [2025-01-26 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332606', 'tblTempVendorCDR_20' ) end [2025-01-26 06:50:18] Production.INFO: ProcessCDR(1,14332606,1,1,2) [2025-01-26 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332606', 'tblTempUsageDetail_20' ) start [2025-01-26 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332606', 'tblTempUsageDetail_20' ) end [2025-01-26 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:50:21] Production.INFO: ==14762== Releasing lock... [2025-01-26 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:50:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:51:05 [end_date_ymd] => 2025-01-26 06:51:05 [RateCDR] => 1 ) [2025-01-26 06:51: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-01-26 03:51:05' and `end` < '2025-01-26 06:51: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-01-26 06:51:18] Production.INFO: count ==121 [2025-01-26 06:51:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:51:05 - End Time 2025-01-26 06:51:05 [2025-01-26 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332611', 'tblTempUsageDetail_20' ) start [2025-01-26 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332611', 'tblTempUsageDetail_20' ) end [2025-01-26 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332611', 'tblTempVendorCDR_20' ) start [2025-01-26 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332611', 'tblTempVendorCDR_20' ) end [2025-01-26 06:51:18] Production.INFO: ProcessCDR(1,14332611,1,1,2) [2025-01-26 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332611', 'tblTempUsageDetail_20' ) start [2025-01-26 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332611', 'tblTempUsageDetail_20' ) end [2025-01-26 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:51:21] Production.INFO: ==14843== Releasing lock... [2025-01-26 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:52:05 [end_date_ymd] => 2025-01-26 06:52:05 [RateCDR] => 1 ) [2025-01-26 06:52: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-01-26 03:52:05' and `end` < '2025-01-26 06:52: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-01-26 06:52:18] Production.INFO: count ==120 [2025-01-26 06:52:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:52:05 - End Time 2025-01-26 06:52:05 [2025-01-26 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332616', 'tblTempUsageDetail_20' ) start [2025-01-26 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332616', 'tblTempUsageDetail_20' ) end [2025-01-26 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332616', 'tblTempVendorCDR_20' ) start [2025-01-26 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332616', 'tblTempVendorCDR_20' ) end [2025-01-26 06:52:18] Production.INFO: ProcessCDR(1,14332616,1,1,2) [2025-01-26 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332616', 'tblTempUsageDetail_20' ) start [2025-01-26 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332616', 'tblTempUsageDetail_20' ) end [2025-01-26 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:52:21] Production.INFO: ==14927== Releasing lock... [2025-01-26 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:53:04 [end_date_ymd] => 2025-01-26 06:53:04 [RateCDR] => 1 ) [2025-01-26 06:53: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-01-26 03:53:04' and `end` < '2025-01-26 06:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 06:53:17] Production.INFO: count ==119 [2025-01-26 06:53:17] Production.ERROR: pbx CDR StartTime 2025-01-26 03:53:04 - End Time 2025-01-26 06:53:04 [2025-01-26 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332620', 'tblTempUsageDetail_20' ) start [2025-01-26 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332620', 'tblTempUsageDetail_20' ) end [2025-01-26 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332620', 'tblTempVendorCDR_20' ) start [2025-01-26 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332620', 'tblTempVendorCDR_20' ) end [2025-01-26 06:53:17] Production.INFO: ProcessCDR(1,14332620,1,1,2) [2025-01-26 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332620', 'tblTempUsageDetail_20' ) start [2025-01-26 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332620', 'tblTempUsageDetail_20' ) end [2025-01-26 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:53:20] Production.INFO: ==15004== Releasing lock... [2025-01-26 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:53:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:54:05 [end_date_ymd] => 2025-01-26 06:54:05 [RateCDR] => 1 ) [2025-01-26 06:54: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-01-26 03:54:05' and `end` < '2025-01-26 06:54: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-01-26 06:54:17] Production.INFO: count ==119 [2025-01-26 06:54:17] Production.ERROR: pbx CDR StartTime 2025-01-26 03:54:05 - End Time 2025-01-26 06:54:05 [2025-01-26 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332626', 'tblTempUsageDetail_20' ) start [2025-01-26 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332626', 'tblTempUsageDetail_20' ) end [2025-01-26 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332626', 'tblTempVendorCDR_20' ) start [2025-01-26 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332626', 'tblTempVendorCDR_20' ) end [2025-01-26 06:54:17] Production.INFO: ProcessCDR(1,14332626,1,1,2) [2025-01-26 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332626', 'tblTempUsageDetail_20' ) start [2025-01-26 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332626', 'tblTempUsageDetail_20' ) end [2025-01-26 06:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:54:20] Production.INFO: ==15090== Releasing lock... [2025-01-26 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:54:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:55:04 [end_date_ymd] => 2025-01-26 06:55:04 [RateCDR] => 1 ) [2025-01-26 06:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 03:55:04' and `end` < '2025-01-26 06:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 06:55:16] Production.INFO: count ==119 [2025-01-26 06:55:16] Production.ERROR: pbx CDR StartTime 2025-01-26 03:55:04 - End Time 2025-01-26 06:55:04 [2025-01-26 06:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332630', 'tblTempUsageDetail_20' ) start [2025-01-26 06:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332630', 'tblTempUsageDetail_20' ) end [2025-01-26 06:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332630', 'tblTempVendorCDR_20' ) start [2025-01-26 06:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332630', 'tblTempVendorCDR_20' ) end [2025-01-26 06:55:16] Production.INFO: ProcessCDR(1,14332630,1,1,2) [2025-01-26 06:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332630', 'tblTempUsageDetail_20' ) start [2025-01-26 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332630', 'tblTempUsageDetail_20' ) end [2025-01-26 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:55:20] Production.INFO: ==15168== Releasing lock... [2025-01-26 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:55:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:56:05 [end_date_ymd] => 2025-01-26 06:56:05 [RateCDR] => 1 ) [2025-01-26 06:56: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-01-26 03:56:05' and `end` < '2025-01-26 06:56: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-01-26 06:56:18] Production.INFO: count ==119 [2025-01-26 06:56:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:56:05 - End Time 2025-01-26 06:56:05 [2025-01-26 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332636', 'tblTempUsageDetail_20' ) start [2025-01-26 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332636', 'tblTempUsageDetail_20' ) end [2025-01-26 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332636', 'tblTempVendorCDR_20' ) start [2025-01-26 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332636', 'tblTempVendorCDR_20' ) end [2025-01-26 06:56:18] Production.INFO: ProcessCDR(1,14332636,1,1,2) [2025-01-26 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332636', 'tblTempUsageDetail_20' ) start [2025-01-26 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332636', 'tblTempUsageDetail_20' ) end [2025-01-26 06:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:56:22] Production.INFO: ==15248== Releasing lock... [2025-01-26 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:56:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:57:05 [end_date_ymd] => 2025-01-26 06:57:05 [RateCDR] => 1 ) [2025-01-26 06:57: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-01-26 03:57:05' and `end` < '2025-01-26 06:57: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-01-26 06:57:18] Production.INFO: count ==119 [2025-01-26 06:57:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:57:05 - End Time 2025-01-26 06:57:05 [2025-01-26 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332641', 'tblTempUsageDetail_20' ) start [2025-01-26 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332641', 'tblTempUsageDetail_20' ) end [2025-01-26 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332641', 'tblTempVendorCDR_20' ) start [2025-01-26 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332641', 'tblTempVendorCDR_20' ) end [2025-01-26 06:57:18] Production.INFO: ProcessCDR(1,14332641,1,1,2) [2025-01-26 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332641', 'tblTempUsageDetail_20' ) start [2025-01-26 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332641', 'tblTempUsageDetail_20' ) end [2025-01-26 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:57:21] Production.INFO: ==15347== Releasing lock... [2025-01-26 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:57:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:58:05 [end_date_ymd] => 2025-01-26 06:58:05 [RateCDR] => 1 ) [2025-01-26 06:58: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-01-26 03:58:05' and `end` < '2025-01-26 06:58: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-01-26 06:58:18] Production.INFO: count ==119 [2025-01-26 06:58:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:58:05 - End Time 2025-01-26 06:58:05 [2025-01-26 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332646', 'tblTempUsageDetail_20' ) start [2025-01-26 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332646', 'tblTempUsageDetail_20' ) end [2025-01-26 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332646', 'tblTempVendorCDR_20' ) start [2025-01-26 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332646', 'tblTempVendorCDR_20' ) end [2025-01-26 06:58:18] Production.INFO: ProcessCDR(1,14332646,1,1,2) [2025-01-26 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332646', 'tblTempUsageDetail_20' ) start [2025-01-26 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332646', 'tblTempUsageDetail_20' ) end [2025-01-26 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:58:21] Production.INFO: ==15425== Releasing lock... [2025-01-26 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:58:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 06:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 03:59:06 [end_date_ymd] => 2025-01-26 06:59:06 [RateCDR] => 1 ) [2025-01-26 06:59: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-01-26 03:59:06' and `end` < '2025-01-26 06:59: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-01-26 06:59:18] Production.INFO: count ==119 [2025-01-26 06:59:18] Production.ERROR: pbx CDR StartTime 2025-01-26 03:59:06 - End Time 2025-01-26 06:59:06 [2025-01-26 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332651', 'tblTempUsageDetail_20' ) start [2025-01-26 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332651', 'tblTempUsageDetail_20' ) end [2025-01-26 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332651', 'tblTempVendorCDR_20' ) start [2025-01-26 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332651', 'tblTempVendorCDR_20' ) end [2025-01-26 06:59:18] Production.INFO: ProcessCDR(1,14332651,1,1,2) [2025-01-26 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332651', 'tblTempUsageDetail_20' ) start [2025-01-26 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332651', 'tblTempUsageDetail_20' ) end [2025-01-26 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 06:59:21] Production.INFO: ==15504== Releasing lock... [2025-01-26 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 06:59:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:00:05 [end_date_ymd] => 2025-01-26 07:00:05 [RateCDR] => 1 ) [2025-01-26 07: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-01-26 04:00:05' and `end` < '2025-01-26 07: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-01-26 07:00:19] Production.INFO: count ==104 [2025-01-26 07:00:19] Production.ERROR: pbx CDR StartTime 2025-01-26 04:00:05 - End Time 2025-01-26 07:00:05 [2025-01-26 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332656', 'tblTempUsageDetail_20' ) start [2025-01-26 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332656', 'tblTempUsageDetail_20' ) end [2025-01-26 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332656', 'tblTempVendorCDR_20' ) start [2025-01-26 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332656', 'tblTempVendorCDR_20' ) end [2025-01-26 07:00:19] Production.INFO: ProcessCDR(1,14332656,1,1,2) [2025-01-26 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332656', 'tblTempUsageDetail_20' ) start [2025-01-26 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332656', 'tblTempUsageDetail_20' ) end [2025-01-26 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:00:22] Production.INFO: ==15584== Releasing lock... [2025-01-26 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:00:22] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:01:05 [end_date_ymd] => 2025-01-26 07:01:05 [RateCDR] => 1 ) [2025-01-26 07:01: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-01-26 04:01:05' and `end` < '2025-01-26 07:01: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-01-26 07:01:26] Production.INFO: count ==94 [2025-01-26 07:01:26] Production.ERROR: pbx CDR StartTime 2025-01-26 04:01:05 - End Time 2025-01-26 07:01:05 [2025-01-26 07:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332662', 'tblTempUsageDetail_20' ) start [2025-01-26 07:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332662', 'tblTempUsageDetail_20' ) end [2025-01-26 07:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332662', 'tblTempVendorCDR_20' ) start [2025-01-26 07:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332662', 'tblTempVendorCDR_20' ) end [2025-01-26 07:01:26] Production.INFO: ProcessCDR(1,14332662,1,1,2) [2025-01-26 07:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332662', 'tblTempUsageDetail_20' ) start [2025-01-26 07:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332662', 'tblTempUsageDetail_20' ) end [2025-01-26 07:01:29] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:01:29] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:01:29] Production.INFO: ==15714== Releasing lock... [2025-01-26 07:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:01:29] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:02:05 [end_date_ymd] => 2025-01-26 07:02:05 [RateCDR] => 1 ) [2025-01-26 07:02: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-01-26 04:02:05' and `end` < '2025-01-26 07:02: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-01-26 07:02:19] Production.INFO: count ==94 [2025-01-26 07:02:19] Production.ERROR: pbx CDR StartTime 2025-01-26 04:02:05 - End Time 2025-01-26 07:02:05 [2025-01-26 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332667', 'tblTempUsageDetail_20' ) start [2025-01-26 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332667', 'tblTempUsageDetail_20' ) end [2025-01-26 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332667', 'tblTempVendorCDR_20' ) start [2025-01-26 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332667', 'tblTempVendorCDR_20' ) end [2025-01-26 07:02:19] Production.INFO: ProcessCDR(1,14332667,1,1,2) [2025-01-26 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332667', 'tblTempUsageDetail_20' ) start [2025-01-26 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332667', 'tblTempUsageDetail_20' ) end [2025-01-26 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:02:22] Production.INFO: ==15870== Releasing lock... [2025-01-26 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:02:22] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:03:05 [end_date_ymd] => 2025-01-26 07:03:05 [RateCDR] => 1 ) [2025-01-26 07:03: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-01-26 04:03:05' and `end` < '2025-01-26 07:03: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-01-26 07:03:20] Production.INFO: count ==94 [2025-01-26 07:03:20] Production.ERROR: pbx CDR StartTime 2025-01-26 04:03:05 - End Time 2025-01-26 07:03:05 [2025-01-26 07:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332672', 'tblTempUsageDetail_20' ) start [2025-01-26 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332672', 'tblTempUsageDetail_20' ) end [2025-01-26 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332672', 'tblTempVendorCDR_20' ) start [2025-01-26 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332672', 'tblTempVendorCDR_20' ) end [2025-01-26 07:03:20] Production.INFO: ProcessCDR(1,14332672,1,1,2) [2025-01-26 07:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332672', 'tblTempUsageDetail_20' ) start [2025-01-26 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332672', 'tblTempUsageDetail_20' ) end [2025-01-26 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:03:23] Production.INFO: ==15946== Releasing lock... [2025-01-26 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:03:23] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:04:05 [end_date_ymd] => 2025-01-26 07:04:05 [RateCDR] => 1 ) [2025-01-26 07:04: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-01-26 04:04:05' and `end` < '2025-01-26 07:04: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-01-26 07:04:19] Production.INFO: count ==94 [2025-01-26 07:04:19] Production.ERROR: pbx CDR StartTime 2025-01-26 04:04:05 - End Time 2025-01-26 07:04:05 [2025-01-26 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332677', 'tblTempUsageDetail_20' ) start [2025-01-26 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332677', 'tblTempUsageDetail_20' ) end [2025-01-26 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332677', 'tblTempVendorCDR_20' ) start [2025-01-26 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332677', 'tblTempVendorCDR_20' ) end [2025-01-26 07:04:19] Production.INFO: ProcessCDR(1,14332677,1,1,2) [2025-01-26 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332677', 'tblTempUsageDetail_20' ) start [2025-01-26 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332677', 'tblTempUsageDetail_20' ) end [2025-01-26 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:04:22] Production.INFO: ==16024== Releasing lock... [2025-01-26 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:04:22] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:05:05 [end_date_ymd] => 2025-01-26 07:05:05 [RateCDR] => 1 ) [2025-01-26 07:05: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-01-26 04:05:05' and `end` < '2025-01-26 07:05: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-01-26 07:05:19] Production.INFO: count ==94 [2025-01-26 07:05:19] Production.ERROR: pbx CDR StartTime 2025-01-26 04:05:05 - End Time 2025-01-26 07:05:05 [2025-01-26 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332682', 'tblTempUsageDetail_20' ) start [2025-01-26 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332682', 'tblTempUsageDetail_20' ) end [2025-01-26 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332682', 'tblTempVendorCDR_20' ) start [2025-01-26 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332682', 'tblTempVendorCDR_20' ) end [2025-01-26 07:05:19] Production.INFO: ProcessCDR(1,14332682,1,1,2) [2025-01-26 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332682', 'tblTempUsageDetail_20' ) start [2025-01-26 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332682', 'tblTempUsageDetail_20' ) end [2025-01-26 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:05:22] Production.INFO: ==16181== Releasing lock... [2025-01-26 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:05:22] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:06:05 [end_date_ymd] => 2025-01-26 07:06:05 [RateCDR] => 1 ) [2025-01-26 07:06: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-01-26 04:06:05' and `end` < '2025-01-26 07:06: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-01-26 07:06:18] Production.INFO: count ==94 [2025-01-26 07:06:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:06:05 - End Time 2025-01-26 07:06:05 [2025-01-26 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332687', 'tblTempUsageDetail_20' ) start [2025-01-26 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332687', 'tblTempUsageDetail_20' ) end [2025-01-26 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332687', 'tblTempVendorCDR_20' ) start [2025-01-26 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332687', 'tblTempVendorCDR_20' ) end [2025-01-26 07:06:19] Production.INFO: ProcessCDR(1,14332687,1,1,2) [2025-01-26 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332687', 'tblTempUsageDetail_20' ) start [2025-01-26 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332687', 'tblTempUsageDetail_20' ) end [2025-01-26 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:06:21] Production.INFO: ==16260== Releasing lock... [2025-01-26 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:06:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:07:05 [end_date_ymd] => 2025-01-26 07:07:05 [RateCDR] => 1 ) [2025-01-26 07:07: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-01-26 04:07:05' and `end` < '2025-01-26 07:07: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-01-26 07:07:18] Production.INFO: count ==94 [2025-01-26 07:07:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:07:05 - End Time 2025-01-26 07:07:05 [2025-01-26 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332692', 'tblTempUsageDetail_20' ) start [2025-01-26 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332692', 'tblTempUsageDetail_20' ) end [2025-01-26 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332692', 'tblTempVendorCDR_20' ) start [2025-01-26 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332692', 'tblTempVendorCDR_20' ) end [2025-01-26 07:07:18] Production.INFO: ProcessCDR(1,14332692,1,1,2) [2025-01-26 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332692', 'tblTempUsageDetail_20' ) start [2025-01-26 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332692', 'tblTempUsageDetail_20' ) end [2025-01-26 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:07:21] Production.INFO: ==16336== Releasing lock... [2025-01-26 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:07:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:08:05 [end_date_ymd] => 2025-01-26 07:08:05 [RateCDR] => 1 ) [2025-01-26 07:08: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-01-26 04:08:05' and `end` < '2025-01-26 07:08: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-01-26 07:08:20] Production.INFO: count ==94 [2025-01-26 07:08:20] Production.ERROR: pbx CDR StartTime 2025-01-26 04:08:05 - End Time 2025-01-26 07:08:05 [2025-01-26 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332697', 'tblTempUsageDetail_20' ) start [2025-01-26 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332697', 'tblTempUsageDetail_20' ) end [2025-01-26 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332697', 'tblTempVendorCDR_20' ) start [2025-01-26 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332697', 'tblTempVendorCDR_20' ) end [2025-01-26 07:08:20] Production.INFO: ProcessCDR(1,14332697,1,1,2) [2025-01-26 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332697', 'tblTempUsageDetail_20' ) start [2025-01-26 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332697', 'tblTempUsageDetail_20' ) end [2025-01-26 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:08:23] Production.INFO: ==16450== Releasing lock... [2025-01-26 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:08:23] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:09:05 [end_date_ymd] => 2025-01-26 07:09:05 [RateCDR] => 1 ) [2025-01-26 07:09: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-01-26 04:09:05' and `end` < '2025-01-26 07:09: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-01-26 07:09:18] Production.INFO: count ==94 [2025-01-26 07:09:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:09:05 - End Time 2025-01-26 07:09:05 [2025-01-26 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332702', 'tblTempUsageDetail_20' ) start [2025-01-26 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332702', 'tblTempUsageDetail_20' ) end [2025-01-26 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332702', 'tblTempVendorCDR_20' ) start [2025-01-26 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332702', 'tblTempVendorCDR_20' ) end [2025-01-26 07:09:18] Production.INFO: ProcessCDR(1,14332702,1,1,2) [2025-01-26 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332702', 'tblTempUsageDetail_20' ) start [2025-01-26 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332702', 'tblTempUsageDetail_20' ) end [2025-01-26 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:09:21] Production.INFO: ==16569== Releasing lock... [2025-01-26 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:09:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:10:07 [end_date_ymd] => 2025-01-26 07:10:07 [RateCDR] => 1 ) [2025-01-26 07:10: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-01-26 04:10:07' and `end` < '2025-01-26 07:10: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-01-26 07:10:21] Production.INFO: count ==92 [2025-01-26 07:10:21] Production.ERROR: pbx CDR StartTime 2025-01-26 04:10:07 - End Time 2025-01-26 07:10:07 [2025-01-26 07:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332708', 'tblTempUsageDetail_20' ) start [2025-01-26 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332708', 'tblTempUsageDetail_20' ) end [2025-01-26 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332708', 'tblTempVendorCDR_20' ) start [2025-01-26 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332708', 'tblTempVendorCDR_20' ) end [2025-01-26 07:10:21] Production.INFO: ProcessCDR(1,14332708,1,1,2) [2025-01-26 07:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332708', 'tblTempUsageDetail_20' ) start [2025-01-26 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332708', 'tblTempUsageDetail_20' ) end [2025-01-26 07:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:10:24] Production.INFO: ==16643== Releasing lock... [2025-01-26 07:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:10:24] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:11:04 [end_date_ymd] => 2025-01-26 07:11:04 [RateCDR] => 1 ) [2025-01-26 07:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 04:11:04' and `end` < '2025-01-26 07:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 07:11:18] Production.INFO: count ==92 [2025-01-26 07:11:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:11:04 - End Time 2025-01-26 07:11:04 [2025-01-26 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332713', 'tblTempUsageDetail_20' ) start [2025-01-26 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332713', 'tblTempUsageDetail_20' ) end [2025-01-26 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332713', 'tblTempVendorCDR_20' ) start [2025-01-26 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332713', 'tblTempVendorCDR_20' ) end [2025-01-26 07:11:18] Production.INFO: ProcessCDR(1,14332713,1,1,2) [2025-01-26 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332713', 'tblTempUsageDetail_20' ) start [2025-01-26 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332713', 'tblTempUsageDetail_20' ) end [2025-01-26 07:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:11:21] Production.INFO: ==16720== Releasing lock... [2025-01-26 07:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:11:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:12:05 [end_date_ymd] => 2025-01-26 07:12:05 [RateCDR] => 1 ) [2025-01-26 07:12: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-01-26 04:12:05' and `end` < '2025-01-26 07:12: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-01-26 07:12:18] Production.INFO: count ==92 [2025-01-26 07:12:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:12:05 - End Time 2025-01-26 07:12:05 [2025-01-26 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332718', 'tblTempUsageDetail_20' ) start [2025-01-26 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332718', 'tblTempUsageDetail_20' ) end [2025-01-26 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332718', 'tblTempVendorCDR_20' ) start [2025-01-26 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332718', 'tblTempVendorCDR_20' ) end [2025-01-26 07:12:18] Production.INFO: ProcessCDR(1,14332718,1,1,2) [2025-01-26 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332718', 'tblTempUsageDetail_20' ) start [2025-01-26 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332718', 'tblTempUsageDetail_20' ) end [2025-01-26 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:12:21] Production.INFO: ==16870== Releasing lock... [2025-01-26 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:12:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:13:05 [end_date_ymd] => 2025-01-26 07:13:05 [RateCDR] => 1 ) [2025-01-26 07:13: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-01-26 04:13:05' and `end` < '2025-01-26 07:13: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-01-26 07:13:19] Production.INFO: count ==92 [2025-01-26 07:13:19] Production.ERROR: pbx CDR StartTime 2025-01-26 04:13:05 - End Time 2025-01-26 07:13:05 [2025-01-26 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332723', 'tblTempUsageDetail_20' ) start [2025-01-26 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332723', 'tblTempUsageDetail_20' ) end [2025-01-26 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332723', 'tblTempVendorCDR_20' ) start [2025-01-26 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332723', 'tblTempVendorCDR_20' ) end [2025-01-26 07:13:19] Production.INFO: ProcessCDR(1,14332723,1,1,2) [2025-01-26 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332723', 'tblTempUsageDetail_20' ) start [2025-01-26 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332723', 'tblTempUsageDetail_20' ) end [2025-01-26 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:13:22] Production.INFO: ==16949== Releasing lock... [2025-01-26 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:13:22] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:14:05 [end_date_ymd] => 2025-01-26 07:14:05 [RateCDR] => 1 ) [2025-01-26 07:14: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-01-26 04:14:05' and `end` < '2025-01-26 07:14: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-01-26 07:14:19] Production.INFO: count ==92 [2025-01-26 07:14:19] Production.ERROR: pbx CDR StartTime 2025-01-26 04:14:05 - End Time 2025-01-26 07:14:05 [2025-01-26 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332728', 'tblTempUsageDetail_20' ) start [2025-01-26 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332728', 'tblTempUsageDetail_20' ) end [2025-01-26 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332728', 'tblTempVendorCDR_20' ) start [2025-01-26 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332728', 'tblTempVendorCDR_20' ) end [2025-01-26 07:14:19] Production.INFO: ProcessCDR(1,14332728,1,1,2) [2025-01-26 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332728', 'tblTempUsageDetail_20' ) start [2025-01-26 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332728', 'tblTempUsageDetail_20' ) end [2025-01-26 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:14:22] Production.INFO: ==17022== Releasing lock... [2025-01-26 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:14:22] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:15:04 [end_date_ymd] => 2025-01-26 07:15:04 [RateCDR] => 1 ) [2025-01-26 07:15: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-01-26 04:15:04' and `end` < '2025-01-26 07:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 07:15:18] Production.INFO: count ==92 [2025-01-26 07:15:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:15:04 - End Time 2025-01-26 07:15:04 [2025-01-26 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332733', 'tblTempUsageDetail_20' ) start [2025-01-26 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332733', 'tblTempUsageDetail_20' ) end [2025-01-26 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332733', 'tblTempVendorCDR_20' ) start [2025-01-26 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332733', 'tblTempVendorCDR_20' ) end [2025-01-26 07:15:18] Production.INFO: ProcessCDR(1,14332733,1,1,2) [2025-01-26 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332733', 'tblTempUsageDetail_20' ) start [2025-01-26 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332733', 'tblTempUsageDetail_20' ) end [2025-01-26 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:15:21] Production.INFO: ==17099== Releasing lock... [2025-01-26 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:15:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:16:05 [end_date_ymd] => 2025-01-26 07:16:05 [RateCDR] => 1 ) [2025-01-26 07:16: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-01-26 04:16:05' and `end` < '2025-01-26 07:16: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-01-26 07:16:19] Production.INFO: count ==92 [2025-01-26 07:16:19] Production.ERROR: pbx CDR StartTime 2025-01-26 04:16:05 - End Time 2025-01-26 07:16:05 [2025-01-26 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332738', 'tblTempUsageDetail_20' ) start [2025-01-26 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332738', 'tblTempUsageDetail_20' ) end [2025-01-26 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332738', 'tblTempVendorCDR_20' ) start [2025-01-26 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332738', 'tblTempVendorCDR_20' ) end [2025-01-26 07:16:19] Production.INFO: ProcessCDR(1,14332738,1,1,2) [2025-01-26 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332738', 'tblTempUsageDetail_20' ) start [2025-01-26 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332738', 'tblTempUsageDetail_20' ) end [2025-01-26 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:16:22] Production.INFO: ==17290== Releasing lock... [2025-01-26 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:16:22] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:17:04 [end_date_ymd] => 2025-01-26 07:17:04 [RateCDR] => 1 ) [2025-01-26 07:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 04:17:04' and `end` < '2025-01-26 07:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 07:17:18] Production.INFO: count ==92 [2025-01-26 07:17:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:17:04 - End Time 2025-01-26 07:17:04 [2025-01-26 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332743', 'tblTempUsageDetail_20' ) start [2025-01-26 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332743', 'tblTempUsageDetail_20' ) end [2025-01-26 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332743', 'tblTempVendorCDR_20' ) start [2025-01-26 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332743', 'tblTempVendorCDR_20' ) end [2025-01-26 07:17:18] Production.INFO: ProcessCDR(1,14332743,1,1,2) [2025-01-26 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332743', 'tblTempUsageDetail_20' ) start [2025-01-26 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332743', 'tblTempUsageDetail_20' ) end [2025-01-26 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:17:21] Production.INFO: ==17366== Releasing lock... [2025-01-26 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:17:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:18:05 [end_date_ymd] => 2025-01-26 07:18:05 [RateCDR] => 1 ) [2025-01-26 07:18: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-01-26 04:18:05' and `end` < '2025-01-26 07:18: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-01-26 07:18:19] Production.INFO: count ==92 [2025-01-26 07:18:19] Production.ERROR: pbx CDR StartTime 2025-01-26 04:18:05 - End Time 2025-01-26 07:18:05 [2025-01-26 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332748', 'tblTempUsageDetail_20' ) start [2025-01-26 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332748', 'tblTempUsageDetail_20' ) end [2025-01-26 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332748', 'tblTempVendorCDR_20' ) start [2025-01-26 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332748', 'tblTempVendorCDR_20' ) end [2025-01-26 07:18:19] Production.INFO: ProcessCDR(1,14332748,1,1,2) [2025-01-26 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332748', 'tblTempUsageDetail_20' ) start [2025-01-26 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332748', 'tblTempUsageDetail_20' ) end [2025-01-26 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:18:22] Production.INFO: ==17446== Releasing lock... [2025-01-26 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:18:22] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:19:05 [end_date_ymd] => 2025-01-26 07:19:05 [RateCDR] => 1 ) [2025-01-26 07:19: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-01-26 04:19:05' and `end` < '2025-01-26 07:19: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-01-26 07:19:18] Production.INFO: count ==92 [2025-01-26 07:19:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:19:05 - End Time 2025-01-26 07:19:05 [2025-01-26 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332753', 'tblTempUsageDetail_20' ) start [2025-01-26 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332753', 'tblTempUsageDetail_20' ) end [2025-01-26 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332753', 'tblTempVendorCDR_20' ) start [2025-01-26 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332753', 'tblTempVendorCDR_20' ) end [2025-01-26 07:19:18] Production.INFO: ProcessCDR(1,14332753,1,1,2) [2025-01-26 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332753', 'tblTempUsageDetail_20' ) start [2025-01-26 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332753', 'tblTempUsageDetail_20' ) end [2025-01-26 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:19:21] Production.INFO: ==17525== Releasing lock... [2025-01-26 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:19:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:20:05 [end_date_ymd] => 2025-01-26 07:20:05 [RateCDR] => 1 ) [2025-01-26 07:20: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-01-26 04:20:05' and `end` < '2025-01-26 07:20: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-01-26 07:20:18] Production.INFO: count ==92 [2025-01-26 07:20:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:20:05 - End Time 2025-01-26 07:20:05 [2025-01-26 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332758', 'tblTempUsageDetail_20' ) start [2025-01-26 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332758', 'tblTempUsageDetail_20' ) end [2025-01-26 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332758', 'tblTempVendorCDR_20' ) start [2025-01-26 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332758', 'tblTempVendorCDR_20' ) end [2025-01-26 07:20:18] Production.INFO: ProcessCDR(1,14332758,1,1,2) [2025-01-26 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332758', 'tblTempUsageDetail_20' ) start [2025-01-26 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332758', 'tblTempUsageDetail_20' ) end [2025-01-26 07:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:20:21] Production.INFO: ==17604== Releasing lock... [2025-01-26 07:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:20:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:21:06 [end_date_ymd] => 2025-01-26 07:21:06 [RateCDR] => 1 ) [2025-01-26 07:21: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-01-26 04:21:06' and `end` < '2025-01-26 07:21: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-01-26 07:21:22] Production.INFO: count ==92 [2025-01-26 07:21:22] Production.ERROR: pbx CDR StartTime 2025-01-26 04:21:06 - End Time 2025-01-26 07:21:06 [2025-01-26 07:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332764', 'tblTempUsageDetail_20' ) start [2025-01-26 07:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332764', 'tblTempUsageDetail_20' ) end [2025-01-26 07:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332764', 'tblTempVendorCDR_20' ) start [2025-01-26 07:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332764', 'tblTempVendorCDR_20' ) end [2025-01-26 07:21:22] Production.INFO: ProcessCDR(1,14332764,1,1,2) [2025-01-26 07:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332764', 'tblTempUsageDetail_20' ) start [2025-01-26 07:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332764', 'tblTempUsageDetail_20' ) end [2025-01-26 07:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:21:25] Production.INFO: ==17680== Releasing lock... [2025-01-26 07:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:21:25] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:22:05 [end_date_ymd] => 2025-01-26 07:22:05 [RateCDR] => 1 ) [2025-01-26 07:22: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-01-26 04:22:05' and `end` < '2025-01-26 07:22: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-01-26 07:22:18] Production.INFO: count ==92 [2025-01-26 07:22:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:22:05 - End Time 2025-01-26 07:22:05 [2025-01-26 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332769', 'tblTempUsageDetail_20' ) start [2025-01-26 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332769', 'tblTempUsageDetail_20' ) end [2025-01-26 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332769', 'tblTempVendorCDR_20' ) start [2025-01-26 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332769', 'tblTempVendorCDR_20' ) end [2025-01-26 07:22:18] Production.INFO: ProcessCDR(1,14332769,1,1,2) [2025-01-26 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332769', 'tblTempUsageDetail_20' ) start [2025-01-26 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332769', 'tblTempUsageDetail_20' ) end [2025-01-26 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:22:21] Production.INFO: ==17755== Releasing lock... [2025-01-26 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:22:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:23:05 [end_date_ymd] => 2025-01-26 07:23:05 [RateCDR] => 1 ) [2025-01-26 07:23: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-01-26 04:23:05' and `end` < '2025-01-26 07:23: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-01-26 07:23:18] Production.INFO: count ==92 [2025-01-26 07:23:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:23:05 - End Time 2025-01-26 07:23:05 [2025-01-26 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332774', 'tblTempUsageDetail_20' ) start [2025-01-26 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332774', 'tblTempUsageDetail_20' ) end [2025-01-26 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332774', 'tblTempVendorCDR_20' ) start [2025-01-26 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332774', 'tblTempVendorCDR_20' ) end [2025-01-26 07:23:18] Production.INFO: ProcessCDR(1,14332774,1,1,2) [2025-01-26 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332774', 'tblTempUsageDetail_20' ) start [2025-01-26 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332774', 'tblTempUsageDetail_20' ) end [2025-01-26 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:23:21] Production.INFO: ==17839== Releasing lock... [2025-01-26 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:23:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:24:05 [end_date_ymd] => 2025-01-26 07:24:05 [RateCDR] => 1 ) [2025-01-26 07:24: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-01-26 04:24:05' and `end` < '2025-01-26 07:24: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-01-26 07:24:18] Production.INFO: count ==92 [2025-01-26 07:24:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:24:05 - End Time 2025-01-26 07:24:05 [2025-01-26 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332779', 'tblTempUsageDetail_20' ) start [2025-01-26 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332779', 'tblTempUsageDetail_20' ) end [2025-01-26 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332779', 'tblTempVendorCDR_20' ) start [2025-01-26 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332779', 'tblTempVendorCDR_20' ) end [2025-01-26 07:24:18] Production.INFO: ProcessCDR(1,14332779,1,1,2) [2025-01-26 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332779', 'tblTempUsageDetail_20' ) start [2025-01-26 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332779', 'tblTempUsageDetail_20' ) end [2025-01-26 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:24:21] Production.INFO: ==17919== Releasing lock... [2025-01-26 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:24:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:25:05 [end_date_ymd] => 2025-01-26 07:25:05 [RateCDR] => 1 ) [2025-01-26 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 04:25:05' and `end` < '2025-01-26 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 07:25:17] Production.INFO: count ==92 [2025-01-26 07:25:17] Production.ERROR: pbx CDR StartTime 2025-01-26 04:25:05 - End Time 2025-01-26 07:25:05 [2025-01-26 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332784', 'tblTempUsageDetail_20' ) start [2025-01-26 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332784', 'tblTempUsageDetail_20' ) end [2025-01-26 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332784', 'tblTempVendorCDR_20' ) start [2025-01-26 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332784', 'tblTempVendorCDR_20' ) end [2025-01-26 07:25:17] Production.INFO: ProcessCDR(1,14332784,1,1,2) [2025-01-26 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332784', 'tblTempUsageDetail_20' ) start [2025-01-26 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332784', 'tblTempUsageDetail_20' ) end [2025-01-26 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:25:21] Production.INFO: ==17996== Releasing lock... [2025-01-26 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:25:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:26:06 [end_date_ymd] => 2025-01-26 07:26:06 [RateCDR] => 1 ) [2025-01-26 07:26: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-01-26 04:26:06' and `end` < '2025-01-26 07:26: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-01-26 07:26:18] Production.INFO: count ==92 [2025-01-26 07:26:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:26:06 - End Time 2025-01-26 07:26:06 [2025-01-26 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332789', 'tblTempUsageDetail_20' ) start [2025-01-26 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332789', 'tblTempUsageDetail_20' ) end [2025-01-26 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332789', 'tblTempVendorCDR_20' ) start [2025-01-26 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332789', 'tblTempVendorCDR_20' ) end [2025-01-26 07:26:18] Production.INFO: ProcessCDR(1,14332789,1,1,2) [2025-01-26 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332789', 'tblTempUsageDetail_20' ) start [2025-01-26 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332789', 'tblTempUsageDetail_20' ) end [2025-01-26 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:26:21] Production.INFO: ==18075== Releasing lock... [2025-01-26 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:26:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:27:05 [end_date_ymd] => 2025-01-26 07:27:05 [RateCDR] => 1 ) [2025-01-26 07:27: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-01-26 04:27:05' and `end` < '2025-01-26 07:27: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-01-26 07:27:17] Production.INFO: count ==92 [2025-01-26 07:27:17] Production.ERROR: pbx CDR StartTime 2025-01-26 04:27:05 - End Time 2025-01-26 07:27:05 [2025-01-26 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332794', 'tblTempUsageDetail_20' ) start [2025-01-26 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332794', 'tblTempUsageDetail_20' ) end [2025-01-26 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332794', 'tblTempVendorCDR_20' ) start [2025-01-26 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332794', 'tblTempVendorCDR_20' ) end [2025-01-26 07:27:17] Production.INFO: ProcessCDR(1,14332794,1,1,2) [2025-01-26 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332794', 'tblTempUsageDetail_20' ) start [2025-01-26 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332794', 'tblTempUsageDetail_20' ) end [2025-01-26 07:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:27:20] Production.INFO: ==18154== Releasing lock... [2025-01-26 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:27:20] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:28:05 [end_date_ymd] => 2025-01-26 07:28:05 [RateCDR] => 1 ) [2025-01-26 07:28: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-01-26 04:28:05' and `end` < '2025-01-26 07:28: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-01-26 07:28:18] Production.INFO: count ==92 [2025-01-26 07:28:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:28:05 - End Time 2025-01-26 07:28:05 [2025-01-26 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332799', 'tblTempUsageDetail_20' ) start [2025-01-26 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332799', 'tblTempUsageDetail_20' ) end [2025-01-26 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332799', 'tblTempVendorCDR_20' ) start [2025-01-26 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332799', 'tblTempVendorCDR_20' ) end [2025-01-26 07:28:18] Production.INFO: ProcessCDR(1,14332799,1,1,2) [2025-01-26 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332799', 'tblTempUsageDetail_20' ) start [2025-01-26 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332799', 'tblTempUsageDetail_20' ) end [2025-01-26 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:28:21] Production.INFO: ==18230== Releasing lock... [2025-01-26 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:28:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:29:05 [end_date_ymd] => 2025-01-26 07:29:05 [RateCDR] => 1 ) [2025-01-26 07:29: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-01-26 04:29:05' and `end` < '2025-01-26 07:29: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-01-26 07:29:17] Production.INFO: count ==92 [2025-01-26 07:29:17] Production.ERROR: pbx CDR StartTime 2025-01-26 04:29:05 - End Time 2025-01-26 07:29:05 [2025-01-26 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332804', 'tblTempUsageDetail_20' ) start [2025-01-26 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332804', 'tblTempUsageDetail_20' ) end [2025-01-26 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332804', 'tblTempVendorCDR_20' ) start [2025-01-26 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332804', 'tblTempVendorCDR_20' ) end [2025-01-26 07:29:17] Production.INFO: ProcessCDR(1,14332804,1,1,2) [2025-01-26 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332804', 'tblTempUsageDetail_20' ) start [2025-01-26 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332804', 'tblTempUsageDetail_20' ) end [2025-01-26 07:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:29:20] Production.INFO: ==18316== Releasing lock... [2025-01-26 07:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:29:20] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:30:05 [end_date_ymd] => 2025-01-26 07:30:05 [RateCDR] => 1 ) [2025-01-26 07:30: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-01-26 04:30:05' and `end` < '2025-01-26 07:30: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-01-26 07:30:18] Production.INFO: count ==89 [2025-01-26 07:30:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:30:05 - End Time 2025-01-26 07:30:05 [2025-01-26 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332809', 'tblTempUsageDetail_20' ) start [2025-01-26 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332809', 'tblTempUsageDetail_20' ) end [2025-01-26 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332809', 'tblTempVendorCDR_20' ) start [2025-01-26 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332809', 'tblTempVendorCDR_20' ) end [2025-01-26 07:30:18] Production.INFO: ProcessCDR(1,14332809,1,1,2) [2025-01-26 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332809', 'tblTempUsageDetail_20' ) start [2025-01-26 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332809', 'tblTempUsageDetail_20' ) end [2025-01-26 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:30:21] Production.INFO: ==18393== Releasing lock... [2025-01-26 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:30:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:31:05 [end_date_ymd] => 2025-01-26 07:31:05 [RateCDR] => 1 ) [2025-01-26 07:31: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-01-26 04:31:05' and `end` < '2025-01-26 07:31: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-01-26 07:31:18] Production.INFO: count ==89 [2025-01-26 07:31:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:31:05 - End Time 2025-01-26 07:31:05 [2025-01-26 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332815', 'tblTempUsageDetail_20' ) start [2025-01-26 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332815', 'tblTempUsageDetail_20' ) end [2025-01-26 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332815', 'tblTempVendorCDR_20' ) start [2025-01-26 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332815', 'tblTempVendorCDR_20' ) end [2025-01-26 07:31:18] Production.INFO: ProcessCDR(1,14332815,1,1,2) [2025-01-26 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332815', 'tblTempUsageDetail_20' ) start [2025-01-26 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332815', 'tblTempUsageDetail_20' ) end [2025-01-26 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:31:21] Production.INFO: ==18473== Releasing lock... [2025-01-26 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:31:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:32:05 [end_date_ymd] => 2025-01-26 07:32:05 [RateCDR] => 1 ) [2025-01-26 07:32: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-01-26 04:32:05' and `end` < '2025-01-26 07:32: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-01-26 07:32:18] Production.INFO: count ==89 [2025-01-26 07:32:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:32:05 - End Time 2025-01-26 07:32:05 [2025-01-26 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332820', 'tblTempUsageDetail_20' ) start [2025-01-26 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332820', 'tblTempUsageDetail_20' ) end [2025-01-26 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332820', 'tblTempVendorCDR_20' ) start [2025-01-26 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332820', 'tblTempVendorCDR_20' ) end [2025-01-26 07:32:18] Production.INFO: ProcessCDR(1,14332820,1,1,2) [2025-01-26 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332820', 'tblTempUsageDetail_20' ) start [2025-01-26 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332820', 'tblTempUsageDetail_20' ) end [2025-01-26 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:32:21] Production.INFO: ==18590== Releasing lock... [2025-01-26 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:32:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:33:04 [end_date_ymd] => 2025-01-26 07:33:04 [RateCDR] => 1 ) [2025-01-26 07:33: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-01-26 04:33:04' and `end` < '2025-01-26 07:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 07:33:17] Production.INFO: count ==89 [2025-01-26 07:33:17] Production.ERROR: pbx CDR StartTime 2025-01-26 04:33:04 - End Time 2025-01-26 07:33:04 [2025-01-26 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332825', 'tblTempUsageDetail_20' ) start [2025-01-26 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332825', 'tblTempUsageDetail_20' ) end [2025-01-26 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332825', 'tblTempVendorCDR_20' ) start [2025-01-26 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332825', 'tblTempVendorCDR_20' ) end [2025-01-26 07:33:17] Production.INFO: ProcessCDR(1,14332825,1,1,2) [2025-01-26 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332825', 'tblTempUsageDetail_20' ) start [2025-01-26 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332825', 'tblTempUsageDetail_20' ) end [2025-01-26 07:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:33:20] Production.INFO: ==18663== Releasing lock... [2025-01-26 07:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:33:20] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:34:05 [end_date_ymd] => 2025-01-26 07:34:05 [RateCDR] => 1 ) [2025-01-26 07:34: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-01-26 04:34:05' and `end` < '2025-01-26 07:34: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-01-26 07:34:17] Production.INFO: count ==89 [2025-01-26 07:34:17] Production.ERROR: pbx CDR StartTime 2025-01-26 04:34:05 - End Time 2025-01-26 07:34:05 [2025-01-26 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332830', 'tblTempUsageDetail_20' ) start [2025-01-26 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332830', 'tblTempUsageDetail_20' ) end [2025-01-26 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332830', 'tblTempVendorCDR_20' ) start [2025-01-26 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332830', 'tblTempVendorCDR_20' ) end [2025-01-26 07:34:17] Production.INFO: ProcessCDR(1,14332830,1,1,2) [2025-01-26 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332830', 'tblTempUsageDetail_20' ) start [2025-01-26 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332830', 'tblTempUsageDetail_20' ) end [2025-01-26 07:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:34:20] Production.INFO: ==18763== Releasing lock... [2025-01-26 07:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:34:20] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:35:05 [end_date_ymd] => 2025-01-26 07:35:05 [RateCDR] => 1 ) [2025-01-26 07:35: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-01-26 04:35:05' and `end` < '2025-01-26 07:35: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-01-26 07:35:17] Production.INFO: count ==89 [2025-01-26 07:35:17] Production.ERROR: pbx CDR StartTime 2025-01-26 04:35:05 - End Time 2025-01-26 07:35:05 [2025-01-26 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332835', 'tblTempUsageDetail_20' ) start [2025-01-26 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332835', 'tblTempUsageDetail_20' ) end [2025-01-26 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332835', 'tblTempVendorCDR_20' ) start [2025-01-26 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332835', 'tblTempVendorCDR_20' ) end [2025-01-26 07:35:17] Production.INFO: ProcessCDR(1,14332835,1,1,2) [2025-01-26 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332835', 'tblTempUsageDetail_20' ) start [2025-01-26 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332835', 'tblTempUsageDetail_20' ) end [2025-01-26 07:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:35:20] Production.INFO: ==18841== Releasing lock... [2025-01-26 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:35:20] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:36:05 [end_date_ymd] => 2025-01-26 07:36:05 [RateCDR] => 1 ) [2025-01-26 07:36: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-01-26 04:36:05' and `end` < '2025-01-26 07:36: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-01-26 07:36:18] Production.INFO: count ==89 [2025-01-26 07:36:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:36:05 - End Time 2025-01-26 07:36:05 [2025-01-26 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332840', 'tblTempUsageDetail_20' ) start [2025-01-26 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332840', 'tblTempUsageDetail_20' ) end [2025-01-26 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332840', 'tblTempVendorCDR_20' ) start [2025-01-26 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332840', 'tblTempVendorCDR_20' ) end [2025-01-26 07:36:18] Production.INFO: ProcessCDR(1,14332840,1,1,2) [2025-01-26 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332840', 'tblTempUsageDetail_20' ) start [2025-01-26 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332840', 'tblTempUsageDetail_20' ) end [2025-01-26 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:36:21] Production.INFO: ==18919== Releasing lock... [2025-01-26 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:36:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:37:05 [end_date_ymd] => 2025-01-26 07:37:05 [RateCDR] => 1 ) [2025-01-26 07:37: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-01-26 04:37:05' and `end` < '2025-01-26 07:37: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-01-26 07:37:18] Production.INFO: count ==89 [2025-01-26 07:37:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:37:05 - End Time 2025-01-26 07:37:05 [2025-01-26 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332845', 'tblTempUsageDetail_20' ) start [2025-01-26 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332845', 'tblTempUsageDetail_20' ) end [2025-01-26 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332845', 'tblTempVendorCDR_20' ) start [2025-01-26 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332845', 'tblTempVendorCDR_20' ) end [2025-01-26 07:37:18] Production.INFO: ProcessCDR(1,14332845,1,1,2) [2025-01-26 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332845', 'tblTempUsageDetail_20' ) start [2025-01-26 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332845', 'tblTempUsageDetail_20' ) end [2025-01-26 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:37:22] Production.INFO: ==19000== Releasing lock... [2025-01-26 07:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:37:22] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:38:05 [end_date_ymd] => 2025-01-26 07:38:05 [RateCDR] => 1 ) [2025-01-26 07:38: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-01-26 04:38:05' and `end` < '2025-01-26 07:38: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-01-26 07:38:18] Production.INFO: count ==89 [2025-01-26 07:38:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:38:05 - End Time 2025-01-26 07:38:05 [2025-01-26 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332850', 'tblTempUsageDetail_20' ) start [2025-01-26 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332850', 'tblTempUsageDetail_20' ) end [2025-01-26 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332850', 'tblTempVendorCDR_20' ) start [2025-01-26 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332850', 'tblTempVendorCDR_20' ) end [2025-01-26 07:38:18] Production.INFO: ProcessCDR(1,14332850,1,1,2) [2025-01-26 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332850', 'tblTempUsageDetail_20' ) start [2025-01-26 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332850', 'tblTempUsageDetail_20' ) end [2025-01-26 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:38:21] Production.INFO: ==19085== Releasing lock... [2025-01-26 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:38:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:39:05 [end_date_ymd] => 2025-01-26 07:39:05 [RateCDR] => 1 ) [2025-01-26 07:39: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-01-26 04:39:05' and `end` < '2025-01-26 07:39: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-01-26 07:39:19] Production.INFO: count ==89 [2025-01-26 07:39:19] Production.ERROR: pbx CDR StartTime 2025-01-26 04:39:05 - End Time 2025-01-26 07:39:05 [2025-01-26 07:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332855', 'tblTempUsageDetail_20' ) start [2025-01-26 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332855', 'tblTempUsageDetail_20' ) end [2025-01-26 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332855', 'tblTempVendorCDR_20' ) start [2025-01-26 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332855', 'tblTempVendorCDR_20' ) end [2025-01-26 07:39:19] Production.INFO: ProcessCDR(1,14332855,1,1,2) [2025-01-26 07:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332855', 'tblTempUsageDetail_20' ) start [2025-01-26 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332855', 'tblTempUsageDetail_20' ) end [2025-01-26 07:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:39:22] Production.INFO: ==19162== Releasing lock... [2025-01-26 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:39:22] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:40:05 [end_date_ymd] => 2025-01-26 07:40:05 [RateCDR] => 1 ) [2025-01-26 07:40: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-01-26 04:40:05' and `end` < '2025-01-26 07:40: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-01-26 07:40:17] Production.INFO: count ==97 [2025-01-26 07:40:17] Production.ERROR: pbx CDR StartTime 2025-01-26 04:40:05 - End Time 2025-01-26 07:40:05 [2025-01-26 07:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332860', 'tblTempUsageDetail_20' ) start [2025-01-26 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332860', 'tblTempUsageDetail_20' ) end [2025-01-26 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332860', 'tblTempVendorCDR_20' ) start [2025-01-26 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332860', 'tblTempVendorCDR_20' ) end [2025-01-26 07:40:17] Production.INFO: ProcessCDR(1,14332860,1,1,2) [2025-01-26 07:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332860', 'tblTempUsageDetail_20' ) start [2025-01-26 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332860', 'tblTempUsageDetail_20' ) end [2025-01-26 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:40:21] Production.INFO: ==19245== Releasing lock... [2025-01-26 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:40:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:41:05 [end_date_ymd] => 2025-01-26 07:41:05 [RateCDR] => 1 ) [2025-01-26 07:41: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-01-26 04:41:05' and `end` < '2025-01-26 07:41: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-01-26 07:41:18] Production.INFO: count ==97 [2025-01-26 07:41:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:41:05 - End Time 2025-01-26 07:41:05 [2025-01-26 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332866', 'tblTempUsageDetail_20' ) start [2025-01-26 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332866', 'tblTempUsageDetail_20' ) end [2025-01-26 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332866', 'tblTempVendorCDR_20' ) start [2025-01-26 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332866', 'tblTempVendorCDR_20' ) end [2025-01-26 07:41:18] Production.INFO: ProcessCDR(1,14332866,1,1,2) [2025-01-26 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332866', 'tblTempUsageDetail_20' ) start [2025-01-26 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332866', 'tblTempUsageDetail_20' ) end [2025-01-26 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:41:21] Production.INFO: ==19328== Releasing lock... [2025-01-26 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:41:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:42:06 [end_date_ymd] => 2025-01-26 07:42:06 [RateCDR] => 1 ) [2025-01-26 07:42: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-01-26 04:42:06' and `end` < '2025-01-26 07:42: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-01-26 07:42:19] Production.INFO: count ==97 [2025-01-26 07:42:19] Production.ERROR: pbx CDR StartTime 2025-01-26 04:42:06 - End Time 2025-01-26 07:42:06 [2025-01-26 07:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332871', 'tblTempUsageDetail_20' ) start [2025-01-26 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332871', 'tblTempUsageDetail_20' ) end [2025-01-26 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332871', 'tblTempVendorCDR_20' ) start [2025-01-26 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332871', 'tblTempVendorCDR_20' ) end [2025-01-26 07:42:19] Production.INFO: ProcessCDR(1,14332871,1,1,2) [2025-01-26 07:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332871', 'tblTempUsageDetail_20' ) start [2025-01-26 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332871', 'tblTempUsageDetail_20' ) end [2025-01-26 07:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:42:22] Production.INFO: ==19405== Releasing lock... [2025-01-26 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:42:22] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:43:05 [end_date_ymd] => 2025-01-26 07:43:05 [RateCDR] => 1 ) [2025-01-26 07:43: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-01-26 04:43:05' and `end` < '2025-01-26 07:43: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-01-26 07:43:17] Production.INFO: count ==97 [2025-01-26 07:43:17] Production.ERROR: pbx CDR StartTime 2025-01-26 04:43:05 - End Time 2025-01-26 07:43:05 [2025-01-26 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332876', 'tblTempUsageDetail_20' ) start [2025-01-26 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332876', 'tblTempUsageDetail_20' ) end [2025-01-26 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332876', 'tblTempVendorCDR_20' ) start [2025-01-26 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332876', 'tblTempVendorCDR_20' ) end [2025-01-26 07:43:17] Production.INFO: ProcessCDR(1,14332876,1,1,2) [2025-01-26 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332876', 'tblTempUsageDetail_20' ) start [2025-01-26 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332876', 'tblTempUsageDetail_20' ) end [2025-01-26 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:43:21] Production.INFO: ==19481== Releasing lock... [2025-01-26 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:43:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:44:05 [end_date_ymd] => 2025-01-26 07:44:05 [RateCDR] => 1 ) [2025-01-26 07:44: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-01-26 04:44:05' and `end` < '2025-01-26 07:44: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-01-26 07:44:18] Production.INFO: count ==97 [2025-01-26 07:44:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:44:05 - End Time 2025-01-26 07:44:05 [2025-01-26 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332881', 'tblTempUsageDetail_20' ) start [2025-01-26 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332881', 'tblTempUsageDetail_20' ) end [2025-01-26 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332881', 'tblTempVendorCDR_20' ) start [2025-01-26 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332881', 'tblTempVendorCDR_20' ) end [2025-01-26 07:44:18] Production.INFO: ProcessCDR(1,14332881,1,1,2) [2025-01-26 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332881', 'tblTempUsageDetail_20' ) start [2025-01-26 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332881', 'tblTempUsageDetail_20' ) end [2025-01-26 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:44:21] Production.INFO: ==19559== Releasing lock... [2025-01-26 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:44:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:45:05 [end_date_ymd] => 2025-01-26 07:45:05 [RateCDR] => 1 ) [2025-01-26 07:45: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-01-26 04:45:05' and `end` < '2025-01-26 07:45: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-01-26 07:45:18] Production.INFO: count ==97 [2025-01-26 07:45:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:45:05 - End Time 2025-01-26 07:45:05 [2025-01-26 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332886', 'tblTempUsageDetail_20' ) start [2025-01-26 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332886', 'tblTempUsageDetail_20' ) end [2025-01-26 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332886', 'tblTempVendorCDR_20' ) start [2025-01-26 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332886', 'tblTempVendorCDR_20' ) end [2025-01-26 07:45:18] Production.INFO: ProcessCDR(1,14332886,1,1,2) [2025-01-26 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332886', 'tblTempUsageDetail_20' ) start [2025-01-26 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332886', 'tblTempUsageDetail_20' ) end [2025-01-26 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:45:21] Production.INFO: ==19640== Releasing lock... [2025-01-26 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:45:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:46:05 [end_date_ymd] => 2025-01-26 07:46:05 [RateCDR] => 1 ) [2025-01-26 07:46: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-01-26 04:46:05' and `end` < '2025-01-26 07:46: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-01-26 07:46:18] Production.INFO: count ==97 [2025-01-26 07:46:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:46:05 - End Time 2025-01-26 07:46:05 [2025-01-26 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332891', 'tblTempUsageDetail_20' ) start [2025-01-26 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332891', 'tblTempUsageDetail_20' ) end [2025-01-26 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332891', 'tblTempVendorCDR_20' ) start [2025-01-26 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332891', 'tblTempVendorCDR_20' ) end [2025-01-26 07:46:18] Production.INFO: ProcessCDR(1,14332891,1,1,2) [2025-01-26 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332891', 'tblTempUsageDetail_20' ) start [2025-01-26 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332891', 'tblTempUsageDetail_20' ) end [2025-01-26 07:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:46:20] Production.INFO: ==19718== Releasing lock... [2025-01-26 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:46:20] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:47:05 [end_date_ymd] => 2025-01-26 07:47:05 [RateCDR] => 1 ) [2025-01-26 07:47: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-01-26 04:47:05' and `end` < '2025-01-26 07:47: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-01-26 07:47:18] Production.INFO: count ==97 [2025-01-26 07:47:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:47:05 - End Time 2025-01-26 07:47:05 [2025-01-26 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332896', 'tblTempUsageDetail_20' ) start [2025-01-26 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332896', 'tblTempUsageDetail_20' ) end [2025-01-26 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332896', 'tblTempVendorCDR_20' ) start [2025-01-26 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332896', 'tblTempVendorCDR_20' ) end [2025-01-26 07:47:18] Production.INFO: ProcessCDR(1,14332896,1,1,2) [2025-01-26 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332896', 'tblTempUsageDetail_20' ) start [2025-01-26 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332896', 'tblTempUsageDetail_20' ) end [2025-01-26 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:47:21] Production.INFO: ==19839== Releasing lock... [2025-01-26 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:47:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:48:05 [end_date_ymd] => 2025-01-26 07:48:05 [RateCDR] => 1 ) [2025-01-26 07:48: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-01-26 04:48:05' and `end` < '2025-01-26 07:48: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-01-26 07:48:18] Production.INFO: count ==97 [2025-01-26 07:48:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:48:05 - End Time 2025-01-26 07:48:05 [2025-01-26 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332901', 'tblTempUsageDetail_20' ) start [2025-01-26 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332901', 'tblTempUsageDetail_20' ) end [2025-01-26 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332901', 'tblTempVendorCDR_20' ) start [2025-01-26 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332901', 'tblTempVendorCDR_20' ) end [2025-01-26 07:48:18] Production.INFO: ProcessCDR(1,14332901,1,1,2) [2025-01-26 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332901', 'tblTempUsageDetail_20' ) start [2025-01-26 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332901', 'tblTempUsageDetail_20' ) end [2025-01-26 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:48:21] Production.INFO: ==19915== Releasing lock... [2025-01-26 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:48:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:49:05 [end_date_ymd] => 2025-01-26 07:49:05 [RateCDR] => 1 ) [2025-01-26 07:49: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-01-26 04:49:05' and `end` < '2025-01-26 07:49: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-01-26 07:49:18] Production.INFO: count ==97 [2025-01-26 07:49:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:49:05 - End Time 2025-01-26 07:49:05 [2025-01-26 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332906', 'tblTempUsageDetail_20' ) start [2025-01-26 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332906', 'tblTempUsageDetail_20' ) end [2025-01-26 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332906', 'tblTempVendorCDR_20' ) start [2025-01-26 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332906', 'tblTempVendorCDR_20' ) end [2025-01-26 07:49:18] Production.INFO: ProcessCDR(1,14332906,1,1,2) [2025-01-26 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332906', 'tblTempUsageDetail_20' ) start [2025-01-26 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332906', 'tblTempUsageDetail_20' ) end [2025-01-26 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:49:21] Production.INFO: ==19993== Releasing lock... [2025-01-26 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:49:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:50:06 [end_date_ymd] => 2025-01-26 07:50:06 [RateCDR] => 1 ) [2025-01-26 07:50: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-01-26 04:50:06' and `end` < '2025-01-26 07:50: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-01-26 07:50:18] Production.INFO: count ==101 [2025-01-26 07:50:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:50:06 - End Time 2025-01-26 07:50:06 [2025-01-26 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332912', 'tblTempUsageDetail_20' ) start [2025-01-26 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332912', 'tblTempUsageDetail_20' ) end [2025-01-26 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332912', 'tblTempVendorCDR_20' ) start [2025-01-26 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332912', 'tblTempVendorCDR_20' ) end [2025-01-26 07:50:18] Production.INFO: ProcessCDR(1,14332912,1,1,2) [2025-01-26 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332912', 'tblTempUsageDetail_20' ) start [2025-01-26 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332912', 'tblTempUsageDetail_20' ) end [2025-01-26 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:50:21] Production.INFO: ==20074== Releasing lock... [2025-01-26 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:50:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:51:05 [end_date_ymd] => 2025-01-26 07:51:05 [RateCDR] => 1 ) [2025-01-26 07:51: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-01-26 04:51:05' and `end` < '2025-01-26 07:51: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-01-26 07:51:18] Production.INFO: count ==97 [2025-01-26 07:51:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:51:05 - End Time 2025-01-26 07:51:05 [2025-01-26 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332917', 'tblTempUsageDetail_20' ) start [2025-01-26 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332917', 'tblTempUsageDetail_20' ) end [2025-01-26 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332917', 'tblTempVendorCDR_20' ) start [2025-01-26 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332917', 'tblTempVendorCDR_20' ) end [2025-01-26 07:51:18] Production.INFO: ProcessCDR(1,14332917,1,1,2) [2025-01-26 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332917', 'tblTempUsageDetail_20' ) start [2025-01-26 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332917', 'tblTempUsageDetail_20' ) end [2025-01-26 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:51:21] Production.INFO: ==20159== Releasing lock... [2025-01-26 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:51:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:52:05 [end_date_ymd] => 2025-01-26 07:52:05 [RateCDR] => 1 ) [2025-01-26 07:52: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-01-26 04:52:05' and `end` < '2025-01-26 07:52: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-01-26 07:52:18] Production.INFO: count ==97 [2025-01-26 07:52:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:52:05 - End Time 2025-01-26 07:52:05 [2025-01-26 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332922', 'tblTempUsageDetail_20' ) start [2025-01-26 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332922', 'tblTempUsageDetail_20' ) end [2025-01-26 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332922', 'tblTempVendorCDR_20' ) start [2025-01-26 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332922', 'tblTempVendorCDR_20' ) end [2025-01-26 07:52:18] Production.INFO: ProcessCDR(1,14332922,1,1,2) [2025-01-26 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332922', 'tblTempUsageDetail_20' ) start [2025-01-26 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332922', 'tblTempUsageDetail_20' ) end [2025-01-26 07:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:52:20] Production.INFO: ==20241== Releasing lock... [2025-01-26 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:52:20] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:53:05 [end_date_ymd] => 2025-01-26 07:53:05 [RateCDR] => 1 ) [2025-01-26 07:53: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-01-26 04:53:05' and `end` < '2025-01-26 07:53: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-01-26 07:53:18] Production.INFO: count ==97 [2025-01-26 07:53:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:53:05 - End Time 2025-01-26 07:53:05 [2025-01-26 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332927', 'tblTempUsageDetail_20' ) start [2025-01-26 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332927', 'tblTempUsageDetail_20' ) end [2025-01-26 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332927', 'tblTempVendorCDR_20' ) start [2025-01-26 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332927', 'tblTempVendorCDR_20' ) end [2025-01-26 07:53:18] Production.INFO: ProcessCDR(1,14332927,1,1,2) [2025-01-26 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332927', 'tblTempUsageDetail_20' ) start [2025-01-26 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332927', 'tblTempUsageDetail_20' ) end [2025-01-26 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:53:21] Production.INFO: ==20323== Releasing lock... [2025-01-26 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:53:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:54:05 [end_date_ymd] => 2025-01-26 07:54:05 [RateCDR] => 1 ) [2025-01-26 07:54: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-01-26 04:54:05' and `end` < '2025-01-26 07:54: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-01-26 07:54:18] Production.INFO: count ==97 [2025-01-26 07:54:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:54:05 - End Time 2025-01-26 07:54:05 [2025-01-26 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332932', 'tblTempUsageDetail_20' ) start [2025-01-26 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332932', 'tblTempUsageDetail_20' ) end [2025-01-26 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332932', 'tblTempVendorCDR_20' ) start [2025-01-26 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332932', 'tblTempVendorCDR_20' ) end [2025-01-26 07:54:18] Production.INFO: ProcessCDR(1,14332932,1,1,2) [2025-01-26 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332932', 'tblTempUsageDetail_20' ) start [2025-01-26 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332932', 'tblTempUsageDetail_20' ) end [2025-01-26 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:54:21] Production.INFO: ==20401== Releasing lock... [2025-01-26 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:54:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:55:05 [end_date_ymd] => 2025-01-26 07:55:05 [RateCDR] => 1 ) [2025-01-26 07:55: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-01-26 04:55:05' and `end` < '2025-01-26 07:55: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-01-26 07:55:17] Production.INFO: count ==97 [2025-01-26 07:55:17] Production.ERROR: pbx CDR StartTime 2025-01-26 04:55:05 - End Time 2025-01-26 07:55:05 [2025-01-26 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332933', 'tblTempUsageDetail_20' ) start [2025-01-26 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332933', 'tblTempUsageDetail_20' ) end [2025-01-26 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332933', 'tblTempVendorCDR_20' ) start [2025-01-26 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332933', 'tblTempVendorCDR_20' ) end [2025-01-26 07:55:17] Production.INFO: ProcessCDR(1,14332933,1,1,2) [2025-01-26 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332933', 'tblTempUsageDetail_20' ) start [2025-01-26 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332933', 'tblTempUsageDetail_20' ) end [2025-01-26 07:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:55:20] Production.INFO: ==20482== Releasing lock... [2025-01-26 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:55:20] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:56:05 [end_date_ymd] => 2025-01-26 07:56:05 [RateCDR] => 1 ) [2025-01-26 07:56: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-01-26 04:56:05' and `end` < '2025-01-26 07:56: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-01-26 07:56:18] Production.INFO: count ==97 [2025-01-26 07:56:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:56:05 - End Time 2025-01-26 07:56:05 [2025-01-26 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332942', 'tblTempUsageDetail_20' ) start [2025-01-26 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332942', 'tblTempUsageDetail_20' ) end [2025-01-26 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332942', 'tblTempVendorCDR_20' ) start [2025-01-26 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332942', 'tblTempVendorCDR_20' ) end [2025-01-26 07:56:18] Production.INFO: ProcessCDR(1,14332942,1,1,2) [2025-01-26 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332942', 'tblTempUsageDetail_20' ) start [2025-01-26 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332942', 'tblTempUsageDetail_20' ) end [2025-01-26 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:56:21] Production.INFO: ==20555== Releasing lock... [2025-01-26 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:56:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:57:04 [end_date_ymd] => 2025-01-26 07:57:04 [RateCDR] => 1 ) [2025-01-26 07:57: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-01-26 04:57:04' and `end` < '2025-01-26 07:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 07:57:18] Production.INFO: count ==97 [2025-01-26 07:57:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:57:04 - End Time 2025-01-26 07:57:04 [2025-01-26 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332945', 'tblTempUsageDetail_20' ) start [2025-01-26 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332945', 'tblTempUsageDetail_20' ) end [2025-01-26 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332945', 'tblTempVendorCDR_20' ) start [2025-01-26 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332945', 'tblTempVendorCDR_20' ) end [2025-01-26 07:57:18] Production.INFO: ProcessCDR(1,14332945,1,1,2) [2025-01-26 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332945', 'tblTempUsageDetail_20' ) start [2025-01-26 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332945', 'tblTempUsageDetail_20' ) end [2025-01-26 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:57:21] Production.INFO: ==20631== Releasing lock... [2025-01-26 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:57:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:58:05 [end_date_ymd] => 2025-01-26 07:58:05 [RateCDR] => 1 ) [2025-01-26 07:58: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-01-26 04:58:05' and `end` < '2025-01-26 07:58: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-01-26 07:58:17] Production.INFO: count ==97 [2025-01-26 07:58:17] Production.ERROR: pbx CDR StartTime 2025-01-26 04:58:05 - End Time 2025-01-26 07:58:05 [2025-01-26 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332952', 'tblTempUsageDetail_20' ) start [2025-01-26 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332952', 'tblTempUsageDetail_20' ) end [2025-01-26 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332952', 'tblTempVendorCDR_20' ) start [2025-01-26 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332952', 'tblTempVendorCDR_20' ) end [2025-01-26 07:58:17] Production.INFO: ProcessCDR(1,14332952,1,1,2) [2025-01-26 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332952', 'tblTempUsageDetail_20' ) start [2025-01-26 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332952', 'tblTempUsageDetail_20' ) end [2025-01-26 07:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:58:20] Production.INFO: ==20706== Releasing lock... [2025-01-26 07:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:58:20] Production.INFO: 28 MB #Memory Used# [2025-01-26 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 04:59:05 [end_date_ymd] => 2025-01-26 07:59:05 [RateCDR] => 1 ) [2025-01-26 07:59: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-01-26 04:59:05' and `end` < '2025-01-26 07:59: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-01-26 07:59:18] Production.INFO: count ==97 [2025-01-26 07:59:18] Production.ERROR: pbx CDR StartTime 2025-01-26 04:59:05 - End Time 2025-01-26 07:59:05 [2025-01-26 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332957', 'tblTempUsageDetail_20' ) start [2025-01-26 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332957', 'tblTempUsageDetail_20' ) end [2025-01-26 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332957', 'tblTempVendorCDR_20' ) start [2025-01-26 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332957', 'tblTempVendorCDR_20' ) end [2025-01-26 07:59:18] Production.INFO: ProcessCDR(1,14332957,1,1,2) [2025-01-26 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332957', 'tblTempUsageDetail_20' ) start [2025-01-26 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332957', 'tblTempUsageDetail_20' ) end [2025-01-26 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 07:59:21] Production.INFO: ==20781== Releasing lock... [2025-01-26 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 07:59:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:00:05 [end_date_ymd] => 2025-01-26 08:00:05 [RateCDR] => 1 ) [2025-01-26 08:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 05:00:05' and `end` < '2025-01-26 08:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 08:00:18] Production.INFO: count ==89 [2025-01-26 08:00:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:00:05 - End Time 2025-01-26 08:00:05 [2025-01-26 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332963', 'tblTempUsageDetail_20' ) start [2025-01-26 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332963', 'tblTempUsageDetail_20' ) end [2025-01-26 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332963', 'tblTempVendorCDR_20' ) start [2025-01-26 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332963', 'tblTempVendorCDR_20' ) end [2025-01-26 08:00:18] Production.INFO: ProcessCDR(1,14332963,1,1,2) [2025-01-26 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332963', 'tblTempUsageDetail_20' ) start [2025-01-26 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332963', 'tblTempUsageDetail_20' ) end [2025-01-26 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:00:21] Production.INFO: ==20861== Releasing lock... [2025-01-26 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:00:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:01:04 [end_date_ymd] => 2025-01-26 08:01:04 [RateCDR] => 1 ) [2025-01-26 08:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 05:01:04' and `end` < '2025-01-26 08:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 08:01:17] Production.INFO: count ==85 [2025-01-26 08:01:17] Production.ERROR: pbx CDR StartTime 2025-01-26 05:01:04 - End Time 2025-01-26 08:01:04 [2025-01-26 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332968', 'tblTempUsageDetail_20' ) start [2025-01-26 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332968', 'tblTempUsageDetail_20' ) end [2025-01-26 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332968', 'tblTempVendorCDR_20' ) start [2025-01-26 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332968', 'tblTempVendorCDR_20' ) end [2025-01-26 08:01:17] Production.INFO: ProcessCDR(1,14332968,1,1,2) [2025-01-26 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332968', 'tblTempUsageDetail_20' ) start [2025-01-26 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332968', 'tblTempUsageDetail_20' ) end [2025-01-26 08:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:01:20] Production.INFO: ==20953== Releasing lock... [2025-01-26 08:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:01:20] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:02:05 [end_date_ymd] => 2025-01-26 08:02:05 [RateCDR] => 1 ) [2025-01-26 08:02: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-01-26 05:02:05' and `end` < '2025-01-26 08:02: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-01-26 08:02:18] Production.INFO: count ==85 [2025-01-26 08:02:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:02:05 - End Time 2025-01-26 08:02:05 [2025-01-26 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332973', 'tblTempUsageDetail_20' ) start [2025-01-26 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332973', 'tblTempUsageDetail_20' ) end [2025-01-26 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332973', 'tblTempVendorCDR_20' ) start [2025-01-26 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332973', 'tblTempVendorCDR_20' ) end [2025-01-26 08:02:18] Production.INFO: ProcessCDR(1,14332973,1,1,2) [2025-01-26 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332973', 'tblTempUsageDetail_20' ) start [2025-01-26 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332973', 'tblTempUsageDetail_20' ) end [2025-01-26 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:02:21] Production.INFO: ==21031== Releasing lock... [2025-01-26 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:02:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:03:05 [end_date_ymd] => 2025-01-26 08:03:05 [RateCDR] => 1 ) [2025-01-26 08:03: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-01-26 05:03:05' and `end` < '2025-01-26 08:03: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-01-26 08:03:18] Production.INFO: count ==85 [2025-01-26 08:03:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:03:05 - End Time 2025-01-26 08:03:05 [2025-01-26 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332978', 'tblTempUsageDetail_20' ) start [2025-01-26 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332978', 'tblTempUsageDetail_20' ) end [2025-01-26 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332978', 'tblTempVendorCDR_20' ) start [2025-01-26 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332978', 'tblTempVendorCDR_20' ) end [2025-01-26 08:03:18] Production.INFO: ProcessCDR(1,14332978,1,1,2) [2025-01-26 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332978', 'tblTempUsageDetail_20' ) start [2025-01-26 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332978', 'tblTempUsageDetail_20' ) end [2025-01-26 08:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:03:20] Production.INFO: ==21146== Releasing lock... [2025-01-26 08:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:03:20] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:04:05 [end_date_ymd] => 2025-01-26 08:04:05 [RateCDR] => 1 ) [2025-01-26 08:04: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-01-26 05:04:05' and `end` < '2025-01-26 08:04: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-01-26 08:04:18] Production.INFO: count ==85 [2025-01-26 08:04:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:04:05 - End Time 2025-01-26 08:04:05 [2025-01-26 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332983', 'tblTempUsageDetail_20' ) start [2025-01-26 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332983', 'tblTempUsageDetail_20' ) end [2025-01-26 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332983', 'tblTempVendorCDR_20' ) start [2025-01-26 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332983', 'tblTempVendorCDR_20' ) end [2025-01-26 08:04:18] Production.INFO: ProcessCDR(1,14332983,1,1,2) [2025-01-26 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332983', 'tblTempUsageDetail_20' ) start [2025-01-26 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332983', 'tblTempUsageDetail_20' ) end [2025-01-26 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:04:21] Production.INFO: ==21228== Releasing lock... [2025-01-26 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:04:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:05:04 [end_date_ymd] => 2025-01-26 08:05:04 [RateCDR] => 1 ) [2025-01-26 08:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 05:05:04' and `end` < '2025-01-26 08:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 08:05:17] Production.INFO: count ==85 [2025-01-26 08:05:17] Production.ERROR: pbx CDR StartTime 2025-01-26 05:05:04 - End Time 2025-01-26 08:05:04 [2025-01-26 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332988', 'tblTempUsageDetail_20' ) start [2025-01-26 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332988', 'tblTempUsageDetail_20' ) end [2025-01-26 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332988', 'tblTempVendorCDR_20' ) start [2025-01-26 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332988', 'tblTempVendorCDR_20' ) end [2025-01-26 08:05:17] Production.INFO: ProcessCDR(1,14332988,1,1,2) [2025-01-26 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332988', 'tblTempUsageDetail_20' ) start [2025-01-26 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332988', 'tblTempUsageDetail_20' ) end [2025-01-26 08:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:05:20] Production.INFO: ==21307== Releasing lock... [2025-01-26 08:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:05:20] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:06:05 [end_date_ymd] => 2025-01-26 08:06:05 [RateCDR] => 1 ) [2025-01-26 08:06: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-01-26 05:06:05' and `end` < '2025-01-26 08:06: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-01-26 08:06:18] Production.INFO: count ==85 [2025-01-26 08:06:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:06:05 - End Time 2025-01-26 08:06:05 [2025-01-26 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332993', 'tblTempUsageDetail_20' ) start [2025-01-26 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332993', 'tblTempUsageDetail_20' ) end [2025-01-26 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332993', 'tblTempVendorCDR_20' ) start [2025-01-26 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332993', 'tblTempVendorCDR_20' ) end [2025-01-26 08:06:18] Production.INFO: ProcessCDR(1,14332993,1,1,2) [2025-01-26 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332993', 'tblTempUsageDetail_20' ) start [2025-01-26 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332993', 'tblTempUsageDetail_20' ) end [2025-01-26 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:06:21] Production.INFO: ==21382== Releasing lock... [2025-01-26 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:06:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:07:06 [end_date_ymd] => 2025-01-26 08:07:06 [RateCDR] => 1 ) [2025-01-26 08:07: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-01-26 05:07:06' and `end` < '2025-01-26 08:07: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-01-26 08:07:18] Production.INFO: count ==85 [2025-01-26 08:07:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:07:06 - End Time 2025-01-26 08:07:06 [2025-01-26 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332998', 'tblTempUsageDetail_20' ) start [2025-01-26 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14332998', 'tblTempUsageDetail_20' ) end [2025-01-26 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332998', 'tblTempVendorCDR_20' ) start [2025-01-26 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14332998', 'tblTempVendorCDR_20' ) end [2025-01-26 08:07:18] Production.INFO: ProcessCDR(1,14332998,1,1,2) [2025-01-26 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14332998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14332998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14332998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14332998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332998', 'tblTempUsageDetail_20' ) start [2025-01-26 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14332998', 'tblTempUsageDetail_20' ) end [2025-01-26 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:07:21] Production.INFO: ==21461== Releasing lock... [2025-01-26 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:07:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:08:05 [end_date_ymd] => 2025-01-26 08:08:05 [RateCDR] => 1 ) [2025-01-26 08:08: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-01-26 05:08:05' and `end` < '2025-01-26 08:08: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-01-26 08:08:18] Production.INFO: count ==85 [2025-01-26 08:08:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:08:05 - End Time 2025-01-26 08:08:05 [2025-01-26 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333003', 'tblTempUsageDetail_20' ) start [2025-01-26 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333003', 'tblTempUsageDetail_20' ) end [2025-01-26 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333003', 'tblTempVendorCDR_20' ) start [2025-01-26 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333003', 'tblTempVendorCDR_20' ) end [2025-01-26 08:08:18] Production.INFO: ProcessCDR(1,14333003,1,1,2) [2025-01-26 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333003', 'tblTempUsageDetail_20' ) start [2025-01-26 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333003', 'tblTempUsageDetail_20' ) end [2025-01-26 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:08:21] Production.INFO: ==21541== Releasing lock... [2025-01-26 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:08:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:09:05 [end_date_ymd] => 2025-01-26 08:09:05 [RateCDR] => 1 ) [2025-01-26 08:09: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-01-26 05:09:05' and `end` < '2025-01-26 08:09: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-01-26 08:09:18] Production.INFO: count ==85 [2025-01-26 08:09:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:09:05 - End Time 2025-01-26 08:09:05 [2025-01-26 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333008', 'tblTempUsageDetail_20' ) start [2025-01-26 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333008', 'tblTempUsageDetail_20' ) end [2025-01-26 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333008', 'tblTempVendorCDR_20' ) start [2025-01-26 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333008', 'tblTempVendorCDR_20' ) end [2025-01-26 08:09:18] Production.INFO: ProcessCDR(1,14333008,1,1,2) [2025-01-26 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333008', 'tblTempUsageDetail_20' ) start [2025-01-26 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333008', 'tblTempUsageDetail_20' ) end [2025-01-26 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:09:21] Production.INFO: ==21619== Releasing lock... [2025-01-26 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:09:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:10:06 [end_date_ymd] => 2025-01-26 08:10:06 [RateCDR] => 1 ) [2025-01-26 08:10: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-01-26 05:10:06' and `end` < '2025-01-26 08:10: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-01-26 08:10:18] Production.INFO: count ==83 [2025-01-26 08:10:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:10:06 - End Time 2025-01-26 08:10:06 [2025-01-26 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333014', 'tblTempUsageDetail_20' ) start [2025-01-26 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333014', 'tblTempUsageDetail_20' ) end [2025-01-26 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333014', 'tblTempVendorCDR_20' ) start [2025-01-26 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333014', 'tblTempVendorCDR_20' ) end [2025-01-26 08:10:18] Production.INFO: ProcessCDR(1,14333014,1,1,2) [2025-01-26 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333014', 'tblTempUsageDetail_20' ) start [2025-01-26 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333014', 'tblTempUsageDetail_20' ) end [2025-01-26 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:10:22] Production.INFO: ==21700== Releasing lock... [2025-01-26 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:10:22] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:11:05 [end_date_ymd] => 2025-01-26 08:11:05 [RateCDR] => 1 ) [2025-01-26 08:11: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-01-26 05:11:05' and `end` < '2025-01-26 08:11: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-01-26 08:11:18] Production.INFO: count ==83 [2025-01-26 08:11:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:11:05 - End Time 2025-01-26 08:11:05 [2025-01-26 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333019', 'tblTempUsageDetail_20' ) start [2025-01-26 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333019', 'tblTempUsageDetail_20' ) end [2025-01-26 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333019', 'tblTempVendorCDR_20' ) start [2025-01-26 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333019', 'tblTempVendorCDR_20' ) end [2025-01-26 08:11:18] Production.INFO: ProcessCDR(1,14333019,1,1,2) [2025-01-26 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333019', 'tblTempUsageDetail_20' ) start [2025-01-26 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333019', 'tblTempUsageDetail_20' ) end [2025-01-26 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:11:21] Production.INFO: ==21780== Releasing lock... [2025-01-26 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:11:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:12:04 [end_date_ymd] => 2025-01-26 08:12:04 [RateCDR] => 1 ) [2025-01-26 08:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 05:12:04' and `end` < '2025-01-26 08:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 08:12:17] Production.INFO: count ==83 [2025-01-26 08:12:17] Production.ERROR: pbx CDR StartTime 2025-01-26 05:12:04 - End Time 2025-01-26 08:12:04 [2025-01-26 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333024', 'tblTempUsageDetail_20' ) start [2025-01-26 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333024', 'tblTempUsageDetail_20' ) end [2025-01-26 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333024', 'tblTempVendorCDR_20' ) start [2025-01-26 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333024', 'tblTempVendorCDR_20' ) end [2025-01-26 08:12:17] Production.INFO: ProcessCDR(1,14333024,1,1,2) [2025-01-26 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333024', 'tblTempUsageDetail_20' ) start [2025-01-26 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333024', 'tblTempUsageDetail_20' ) end [2025-01-26 08:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:12:20] Production.INFO: ==21857== Releasing lock... [2025-01-26 08:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:12:20] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:13:05 [end_date_ymd] => 2025-01-26 08:13:05 [RateCDR] => 1 ) [2025-01-26 08:13: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-01-26 05:13:05' and `end` < '2025-01-26 08:13: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-01-26 08:13:18] Production.INFO: count ==83 [2025-01-26 08:13:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:13:05 - End Time 2025-01-26 08:13:05 [2025-01-26 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333029', 'tblTempUsageDetail_20' ) start [2025-01-26 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333029', 'tblTempUsageDetail_20' ) end [2025-01-26 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333029', 'tblTempVendorCDR_20' ) start [2025-01-26 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333029', 'tblTempVendorCDR_20' ) end [2025-01-26 08:13:18] Production.INFO: ProcessCDR(1,14333029,1,1,2) [2025-01-26 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333029', 'tblTempUsageDetail_20' ) start [2025-01-26 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333029', 'tblTempUsageDetail_20' ) end [2025-01-26 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:13:21] Production.INFO: ==21930== Releasing lock... [2025-01-26 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:13:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:14:05 [end_date_ymd] => 2025-01-26 08:14:05 [RateCDR] => 1 ) [2025-01-26 08:14: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-01-26 05:14:05' and `end` < '2025-01-26 08:14: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-01-26 08:14:18] Production.INFO: count ==83 [2025-01-26 08:14:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:14:05 - End Time 2025-01-26 08:14:05 [2025-01-26 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333034', 'tblTempUsageDetail_20' ) start [2025-01-26 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333034', 'tblTempUsageDetail_20' ) end [2025-01-26 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333034', 'tblTempVendorCDR_20' ) start [2025-01-26 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333034', 'tblTempVendorCDR_20' ) end [2025-01-26 08:14:18] Production.INFO: ProcessCDR(1,14333034,1,1,2) [2025-01-26 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333034', 'tblTempUsageDetail_20' ) start [2025-01-26 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333034', 'tblTempUsageDetail_20' ) end [2025-01-26 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:14:21] Production.INFO: ==22004== Releasing lock... [2025-01-26 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:14:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:15:05 [end_date_ymd] => 2025-01-26 08:15:05 [RateCDR] => 1 ) [2025-01-26 08:15: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-01-26 05:15:05' and `end` < '2025-01-26 08:15: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-01-26 08:15:18] Production.INFO: count ==83 [2025-01-26 08:15:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:15:05 - End Time 2025-01-26 08:15:05 [2025-01-26 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333039', 'tblTempUsageDetail_20' ) start [2025-01-26 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333039', 'tblTempUsageDetail_20' ) end [2025-01-26 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333039', 'tblTempVendorCDR_20' ) start [2025-01-26 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333039', 'tblTempVendorCDR_20' ) end [2025-01-26 08:15:18] Production.INFO: ProcessCDR(1,14333039,1,1,2) [2025-01-26 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333039', 'tblTempUsageDetail_20' ) start [2025-01-26 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333039', 'tblTempUsageDetail_20' ) end [2025-01-26 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:15:21] Production.INFO: ==22082== Releasing lock... [2025-01-26 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:15:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:16:05 [end_date_ymd] => 2025-01-26 08:16:05 [RateCDR] => 1 ) [2025-01-26 08:16: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-01-26 05:16:05' and `end` < '2025-01-26 08:16: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-01-26 08:16:18] Production.INFO: count ==83 [2025-01-26 08:16:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:16:05 - End Time 2025-01-26 08:16:05 [2025-01-26 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333044', 'tblTempUsageDetail_20' ) start [2025-01-26 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333044', 'tblTempUsageDetail_20' ) end [2025-01-26 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333044', 'tblTempVendorCDR_20' ) start [2025-01-26 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333044', 'tblTempVendorCDR_20' ) end [2025-01-26 08:16:18] Production.INFO: ProcessCDR(1,14333044,1,1,2) [2025-01-26 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333044', 'tblTempUsageDetail_20' ) start [2025-01-26 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333044', 'tblTempUsageDetail_20' ) end [2025-01-26 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:16:21] Production.INFO: ==22160== Releasing lock... [2025-01-26 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:16:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:17:05 [end_date_ymd] => 2025-01-26 08:17:05 [RateCDR] => 1 ) [2025-01-26 08:17: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-01-26 05:17:05' and `end` < '2025-01-26 08:17: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-01-26 08:17:17] Production.INFO: count ==83 [2025-01-26 08:17:17] Production.ERROR: pbx CDR StartTime 2025-01-26 05:17:05 - End Time 2025-01-26 08:17:05 [2025-01-26 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333049', 'tblTempUsageDetail_20' ) start [2025-01-26 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333049', 'tblTempUsageDetail_20' ) end [2025-01-26 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333049', 'tblTempVendorCDR_20' ) start [2025-01-26 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333049', 'tblTempVendorCDR_20' ) end [2025-01-26 08:17:17] Production.INFO: ProcessCDR(1,14333049,1,1,2) [2025-01-26 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333049', 'tblTempUsageDetail_20' ) start [2025-01-26 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333049', 'tblTempUsageDetail_20' ) end [2025-01-26 08:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:17:20] Production.INFO: ==22237== Releasing lock... [2025-01-26 08:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:17:20] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:18:06 [end_date_ymd] => 2025-01-26 08:18:06 [RateCDR] => 1 ) [2025-01-26 08:18: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-01-26 05:18:06' and `end` < '2025-01-26 08:18: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-01-26 08:18:19] Production.INFO: count ==83 [2025-01-26 08:18:19] Production.ERROR: pbx CDR StartTime 2025-01-26 05:18:06 - End Time 2025-01-26 08:18:06 [2025-01-26 08:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333054', 'tblTempUsageDetail_20' ) start [2025-01-26 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333054', 'tblTempUsageDetail_20' ) end [2025-01-26 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333054', 'tblTempVendorCDR_20' ) start [2025-01-26 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333054', 'tblTempVendorCDR_20' ) end [2025-01-26 08:18:19] Production.INFO: ProcessCDR(1,14333054,1,1,2) [2025-01-26 08:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333054', 'tblTempUsageDetail_20' ) start [2025-01-26 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333054', 'tblTempUsageDetail_20' ) end [2025-01-26 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:18:22] Production.INFO: ==22365== Releasing lock... [2025-01-26 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:18:22] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:19:05 [end_date_ymd] => 2025-01-26 08:19:05 [RateCDR] => 1 ) [2025-01-26 08:19: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-01-26 05:19:05' and `end` < '2025-01-26 08:19: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-01-26 08:19:17] Production.INFO: count ==83 [2025-01-26 08:19:17] Production.ERROR: pbx CDR StartTime 2025-01-26 05:19:05 - End Time 2025-01-26 08:19:05 [2025-01-26 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333059', 'tblTempUsageDetail_20' ) start [2025-01-26 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333059', 'tblTempUsageDetail_20' ) end [2025-01-26 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333059', 'tblTempVendorCDR_20' ) start [2025-01-26 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333059', 'tblTempVendorCDR_20' ) end [2025-01-26 08:19:17] Production.INFO: ProcessCDR(1,14333059,1,1,2) [2025-01-26 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333059', 'tblTempUsageDetail_20' ) start [2025-01-26 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333059', 'tblTempUsageDetail_20' ) end [2025-01-26 08:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:19:20] Production.INFO: ==22444== Releasing lock... [2025-01-26 08:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:19:20] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:20:06 [end_date_ymd] => 2025-01-26 08:20:06 [RateCDR] => 1 ) [2025-01-26 08:20: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-01-26 05:20:06' and `end` < '2025-01-26 08:20: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-01-26 08:20:20] Production.INFO: count ==83 [2025-01-26 08:20:20] Production.ERROR: pbx CDR StartTime 2025-01-26 05:20:06 - End Time 2025-01-26 08:20:06 [2025-01-26 08:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333065', 'tblTempUsageDetail_20' ) start [2025-01-26 08:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333065', 'tblTempUsageDetail_20' ) end [2025-01-26 08:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333065', 'tblTempVendorCDR_20' ) start [2025-01-26 08:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333065', 'tblTempVendorCDR_20' ) end [2025-01-26 08:20:20] Production.INFO: ProcessCDR(1,14333065,1,1,2) [2025-01-26 08:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333065', 'tblTempUsageDetail_20' ) start [2025-01-26 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333065', 'tblTempUsageDetail_20' ) end [2025-01-26 08:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:20:23] Production.INFO: ==22527== Releasing lock... [2025-01-26 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:20:23] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:21:05 [end_date_ymd] => 2025-01-26 08:21:05 [RateCDR] => 1 ) [2025-01-26 08:21: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-01-26 05:21:05' and `end` < '2025-01-26 08:21: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-01-26 08:21:17] Production.INFO: count ==83 [2025-01-26 08:21:17] Production.ERROR: pbx CDR StartTime 2025-01-26 05:21:05 - End Time 2025-01-26 08:21:05 [2025-01-26 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333070', 'tblTempUsageDetail_20' ) start [2025-01-26 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333070', 'tblTempUsageDetail_20' ) end [2025-01-26 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333070', 'tblTempVendorCDR_20' ) start [2025-01-26 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333070', 'tblTempVendorCDR_20' ) end [2025-01-26 08:21:17] Production.INFO: ProcessCDR(1,14333070,1,1,2) [2025-01-26 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333070', 'tblTempUsageDetail_20' ) start [2025-01-26 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333070', 'tblTempUsageDetail_20' ) end [2025-01-26 08:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:21:20] Production.INFO: ==22611== Releasing lock... [2025-01-26 08:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:21:20] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:22:05 [end_date_ymd] => 2025-01-26 08:22:05 [RateCDR] => 1 ) [2025-01-26 08:22: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-01-26 05:22:05' and `end` < '2025-01-26 08:22: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-01-26 08:22:18] Production.INFO: count ==83 [2025-01-26 08:22:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:22:05 - End Time 2025-01-26 08:22:05 [2025-01-26 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333075', 'tblTempUsageDetail_20' ) start [2025-01-26 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333075', 'tblTempUsageDetail_20' ) end [2025-01-26 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333075', 'tblTempVendorCDR_20' ) start [2025-01-26 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333075', 'tblTempVendorCDR_20' ) end [2025-01-26 08:22:18] Production.INFO: ProcessCDR(1,14333075,1,1,2) [2025-01-26 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333075', 'tblTempUsageDetail_20' ) start [2025-01-26 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333075', 'tblTempUsageDetail_20' ) end [2025-01-26 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:22:21] Production.INFO: ==22690== Releasing lock... [2025-01-26 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:22:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:23:04 [end_date_ymd] => 2025-01-26 08:23:04 [RateCDR] => 1 ) [2025-01-26 08:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 05:23:04' and `end` < '2025-01-26 08:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 08:23:17] Production.INFO: count ==83 [2025-01-26 08:23:17] Production.ERROR: pbx CDR StartTime 2025-01-26 05:23:04 - End Time 2025-01-26 08:23:04 [2025-01-26 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333080', 'tblTempUsageDetail_20' ) start [2025-01-26 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333080', 'tblTempUsageDetail_20' ) end [2025-01-26 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333080', 'tblTempVendorCDR_20' ) start [2025-01-26 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333080', 'tblTempVendorCDR_20' ) end [2025-01-26 08:23:17] Production.INFO: ProcessCDR(1,14333080,1,1,2) [2025-01-26 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333080', 'tblTempUsageDetail_20' ) start [2025-01-26 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333080', 'tblTempUsageDetail_20' ) end [2025-01-26 08:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:23:20] Production.INFO: ==22775== Releasing lock... [2025-01-26 08:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:23:20] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:24:05 [end_date_ymd] => 2025-01-26 08:24:05 [RateCDR] => 1 ) [2025-01-26 08:24: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-01-26 05:24:05' and `end` < '2025-01-26 08:24: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-01-26 08:24:18] Production.INFO: count ==83 [2025-01-26 08:24:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:24:05 - End Time 2025-01-26 08:24:05 [2025-01-26 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333085', 'tblTempUsageDetail_20' ) start [2025-01-26 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333085', 'tblTempUsageDetail_20' ) end [2025-01-26 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333085', 'tblTempVendorCDR_20' ) start [2025-01-26 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333085', 'tblTempVendorCDR_20' ) end [2025-01-26 08:24:18] Production.INFO: ProcessCDR(1,14333085,1,1,2) [2025-01-26 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333085', 'tblTempUsageDetail_20' ) start [2025-01-26 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333085', 'tblTempUsageDetail_20' ) end [2025-01-26 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:24:21] Production.INFO: ==22862== Releasing lock... [2025-01-26 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:24:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:25:05 [end_date_ymd] => 2025-01-26 08:25:05 [RateCDR] => 1 ) [2025-01-26 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 05:25:05' and `end` < '2025-01-26 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 08:25:17] Production.INFO: count ==83 [2025-01-26 08:25:17] Production.ERROR: pbx CDR StartTime 2025-01-26 05:25:05 - End Time 2025-01-26 08:25:05 [2025-01-26 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333090', 'tblTempUsageDetail_20' ) start [2025-01-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333090', 'tblTempUsageDetail_20' ) end [2025-01-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333090', 'tblTempVendorCDR_20' ) start [2025-01-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333090', 'tblTempVendorCDR_20' ) end [2025-01-26 08:25:17] Production.INFO: ProcessCDR(1,14333090,1,1,2) [2025-01-26 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333090', 'tblTempUsageDetail_20' ) start [2025-01-26 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333090', 'tblTempUsageDetail_20' ) end [2025-01-26 08:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:25:20] Production.INFO: ==22938== Releasing lock... [2025-01-26 08:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:25:20] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:26:05 [end_date_ymd] => 2025-01-26 08:26:05 [RateCDR] => 1 ) [2025-01-26 08:26: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-01-26 05:26:05' and `end` < '2025-01-26 08:26: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-01-26 08:26:17] Production.INFO: count ==83 [2025-01-26 08:26:17] Production.ERROR: pbx CDR StartTime 2025-01-26 05:26:05 - End Time 2025-01-26 08:26:05 [2025-01-26 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333095', 'tblTempUsageDetail_20' ) start [2025-01-26 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333095', 'tblTempUsageDetail_20' ) end [2025-01-26 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333095', 'tblTempVendorCDR_20' ) start [2025-01-26 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333095', 'tblTempVendorCDR_20' ) end [2025-01-26 08:26:17] Production.INFO: ProcessCDR(1,14333095,1,1,2) [2025-01-26 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333095', 'tblTempUsageDetail_20' ) start [2025-01-26 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333095', 'tblTempUsageDetail_20' ) end [2025-01-26 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:26:21] Production.INFO: ==23020== Releasing lock... [2025-01-26 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:26:21] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:27:05 [end_date_ymd] => 2025-01-26 08:27:05 [RateCDR] => 1 ) [2025-01-26 08:27: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-01-26 05:27:05' and `end` < '2025-01-26 08:27: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-01-26 08:27:18] Production.INFO: count ==86 [2025-01-26 08:27:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:27:05 - End Time 2025-01-26 08:27:05 [2025-01-26 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333100', 'tblTempUsageDetail_20' ) start [2025-01-26 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333100', 'tblTempUsageDetail_20' ) end [2025-01-26 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333100', 'tblTempVendorCDR_20' ) start [2025-01-26 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333100', 'tblTempVendorCDR_20' ) end [2025-01-26 08:27:18] Production.INFO: ProcessCDR(1,14333100,1,1,2) [2025-01-26 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333100', 'tblTempUsageDetail_20' ) start [2025-01-26 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333100', 'tblTempUsageDetail_20' ) end [2025-01-26 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:27:22] Production.INFO: ==23101== Releasing lock... [2025-01-26 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:27:22] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:28:05 [end_date_ymd] => 2025-01-26 08:28:05 [RateCDR] => 1 ) [2025-01-26 08:28: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-01-26 05:28:05' and `end` < '2025-01-26 08:28: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-01-26 08:28:17] Production.INFO: count ==92 [2025-01-26 08:28:17] Production.ERROR: pbx CDR StartTime 2025-01-26 05:28:05 - End Time 2025-01-26 08:28:05 [2025-01-26 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333105', 'tblTempUsageDetail_20' ) start [2025-01-26 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333105', 'tblTempUsageDetail_20' ) end [2025-01-26 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333105', 'tblTempVendorCDR_20' ) start [2025-01-26 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333105', 'tblTempVendorCDR_20' ) end [2025-01-26 08:28:17] Production.INFO: ProcessCDR(1,14333105,1,1,2) [2025-01-26 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333105', 'tblTempUsageDetail_20' ) start [2025-01-26 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333105', 'tblTempUsageDetail_20' ) end [2025-01-26 08:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:28:20] Production.INFO: ==23183== Releasing lock... [2025-01-26 08:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:28:20] Production.INFO: 28 MB #Memory Used# [2025-01-26 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:29:05 [end_date_ymd] => 2025-01-26 08:29:05 [RateCDR] => 1 ) [2025-01-26 08:29: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-01-26 05:29:05' and `end` < '2025-01-26 08:29: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-01-26 08:29:18] Production.INFO: count ==95 [2025-01-26 08:29:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:29:05 - End Time 2025-01-26 08:29:05 [2025-01-26 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333110', 'tblTempUsageDetail_20' ) start [2025-01-26 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333110', 'tblTempUsageDetail_20' ) end [2025-01-26 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333110', 'tblTempVendorCDR_20' ) start [2025-01-26 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333110', 'tblTempVendorCDR_20' ) end [2025-01-26 08:29:18] Production.INFO: ProcessCDR(1,14333110,1,1,2) [2025-01-26 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333110', 'tblTempUsageDetail_20' ) start [2025-01-26 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333110', 'tblTempUsageDetail_20' ) end [2025-01-26 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:29:21] Production.INFO: ==23266== Releasing lock... [2025-01-26 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:30:05 [end_date_ymd] => 2025-01-26 08:30:05 [RateCDR] => 1 ) [2025-01-26 08:30: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-01-26 05:30:05' and `end` < '2025-01-26 08:30: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-01-26 08:30:19] Production.INFO: count ==109 [2025-01-26 08:30:19] Production.ERROR: pbx CDR StartTime 2025-01-26 05:30:05 - End Time 2025-01-26 08:30:05 [2025-01-26 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333115', 'tblTempUsageDetail_20' ) start [2025-01-26 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333115', 'tblTempUsageDetail_20' ) end [2025-01-26 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333115', 'tblTempVendorCDR_20' ) start [2025-01-26 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333115', 'tblTempVendorCDR_20' ) end [2025-01-26 08:30:19] Production.INFO: ProcessCDR(1,14333115,1,1,2) [2025-01-26 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333115', 'tblTempUsageDetail_20' ) start [2025-01-26 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333115', 'tblTempUsageDetail_20' ) end [2025-01-26 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:30:22] Production.INFO: ==23353== Releasing lock... [2025-01-26 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:31:05 [end_date_ymd] => 2025-01-26 08:31:05 [RateCDR] => 1 ) [2025-01-26 08:31: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-01-26 05:31:05' and `end` < '2025-01-26 08:31: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-01-26 08:31:20] Production.INFO: count ==120 [2025-01-26 08:31:20] Production.ERROR: pbx CDR StartTime 2025-01-26 05:31:05 - End Time 2025-01-26 08:31:05 [2025-01-26 08:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333121', 'tblTempUsageDetail_20' ) start [2025-01-26 08:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333121', 'tblTempUsageDetail_20' ) end [2025-01-26 08:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333121', 'tblTempVendorCDR_20' ) start [2025-01-26 08:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333121', 'tblTempVendorCDR_20' ) end [2025-01-26 08:31:20] Production.INFO: ProcessCDR(1,14333121,1,1,2) [2025-01-26 08:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333121', 'tblTempUsageDetail_20' ) start [2025-01-26 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333121', 'tblTempUsageDetail_20' ) end [2025-01-26 08:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:31:23] Production.INFO: ==23433== Releasing lock... [2025-01-26 08:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:31:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:32:04 [end_date_ymd] => 2025-01-26 08:32:04 [RateCDR] => 1 ) [2025-01-26 08:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 05:32:04' and `end` < '2025-01-26 08:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 08:32:17] Production.INFO: count ==120 [2025-01-26 08:32:17] Production.ERROR: pbx CDR StartTime 2025-01-26 05:32:04 - End Time 2025-01-26 08:32:04 [2025-01-26 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333126', 'tblTempUsageDetail_20' ) start [2025-01-26 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333126', 'tblTempUsageDetail_20' ) end [2025-01-26 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333126', 'tblTempVendorCDR_20' ) start [2025-01-26 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333126', 'tblTempVendorCDR_20' ) end [2025-01-26 08:32:17] Production.INFO: ProcessCDR(1,14333126,1,1,2) [2025-01-26 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333126', 'tblTempUsageDetail_20' ) start [2025-01-26 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333126', 'tblTempUsageDetail_20' ) end [2025-01-26 08:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:32:20] Production.INFO: ==23516== Releasing lock... [2025-01-26 08:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:32:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:33:05 [end_date_ymd] => 2025-01-26 08:33:05 [RateCDR] => 1 ) [2025-01-26 08:33: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-01-26 05:33:05' and `end` < '2025-01-26 08:33: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-01-26 08:33:17] Production.INFO: count ==120 [2025-01-26 08:33:17] Production.ERROR: pbx CDR StartTime 2025-01-26 05:33:05 - End Time 2025-01-26 08:33:05 [2025-01-26 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333131', 'tblTempUsageDetail_20' ) start [2025-01-26 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333131', 'tblTempUsageDetail_20' ) end [2025-01-26 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333131', 'tblTempVendorCDR_20' ) start [2025-01-26 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333131', 'tblTempVendorCDR_20' ) end [2025-01-26 08:33:17] Production.INFO: ProcessCDR(1,14333131,1,1,2) [2025-01-26 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333131', 'tblTempUsageDetail_20' ) start [2025-01-26 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333131', 'tblTempUsageDetail_20' ) end [2025-01-26 08:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:33:20] Production.INFO: ==23594== Releasing lock... [2025-01-26 08:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:33:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:34:05 [end_date_ymd] => 2025-01-26 08:34:05 [RateCDR] => 1 ) [2025-01-26 08:34: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-01-26 05:34:05' and `end` < '2025-01-26 08:34: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-01-26 08:34:18] Production.INFO: count ==123 [2025-01-26 08:34:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:34:05 - End Time 2025-01-26 08:34:05 [2025-01-26 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333136', 'tblTempUsageDetail_20' ) start [2025-01-26 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333136', 'tblTempUsageDetail_20' ) end [2025-01-26 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333136', 'tblTempVendorCDR_20' ) start [2025-01-26 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333136', 'tblTempVendorCDR_20' ) end [2025-01-26 08:34:18] Production.INFO: ProcessCDR(1,14333136,1,1,2) [2025-01-26 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333136', 'tblTempUsageDetail_20' ) start [2025-01-26 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333136', 'tblTempUsageDetail_20' ) end [2025-01-26 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:34:21] Production.INFO: ==23717== Releasing lock... [2025-01-26 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:35:05 [end_date_ymd] => 2025-01-26 08:35:05 [RateCDR] => 1 ) [2025-01-26 08:35: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-01-26 05:35:05' and `end` < '2025-01-26 08:35: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-01-26 08:35:17] Production.INFO: count ==123 [2025-01-26 08:35:17] Production.ERROR: pbx CDR StartTime 2025-01-26 05:35:05 - End Time 2025-01-26 08:35:05 [2025-01-26 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333141', 'tblTempUsageDetail_20' ) start [2025-01-26 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333141', 'tblTempUsageDetail_20' ) end [2025-01-26 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333141', 'tblTempVendorCDR_20' ) start [2025-01-26 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333141', 'tblTempVendorCDR_20' ) end [2025-01-26 08:35:17] Production.INFO: ProcessCDR(1,14333141,1,1,2) [2025-01-26 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333141', 'tblTempUsageDetail_20' ) start [2025-01-26 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333141', 'tblTempUsageDetail_20' ) end [2025-01-26 08:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:35:20] Production.INFO: ==23795== Releasing lock... [2025-01-26 08:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:35:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:36:05 [end_date_ymd] => 2025-01-26 08:36:05 [RateCDR] => 1 ) [2025-01-26 08:36: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-01-26 05:36:05' and `end` < '2025-01-26 08:36: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-01-26 08:36:18] Production.INFO: count ==123 [2025-01-26 08:36:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:36:05 - End Time 2025-01-26 08:36:05 [2025-01-26 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333146', 'tblTempUsageDetail_20' ) start [2025-01-26 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333146', 'tblTempUsageDetail_20' ) end [2025-01-26 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333146', 'tblTempVendorCDR_20' ) start [2025-01-26 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333146', 'tblTempVendorCDR_20' ) end [2025-01-26 08:36:18] Production.INFO: ProcessCDR(1,14333146,1,1,2) [2025-01-26 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333146', 'tblTempUsageDetail_20' ) start [2025-01-26 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333146', 'tblTempUsageDetail_20' ) end [2025-01-26 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:36:21] Production.INFO: ==23877== Releasing lock... [2025-01-26 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:37:05 [end_date_ymd] => 2025-01-26 08:37:05 [RateCDR] => 1 ) [2025-01-26 08:37: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-01-26 05:37:05' and `end` < '2025-01-26 08:37: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-01-26 08:37:18] Production.INFO: count ==123 [2025-01-26 08:37:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:37:05 - End Time 2025-01-26 08:37:05 [2025-01-26 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333151', 'tblTempUsageDetail_20' ) start [2025-01-26 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333151', 'tblTempUsageDetail_20' ) end [2025-01-26 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333151', 'tblTempVendorCDR_20' ) start [2025-01-26 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333151', 'tblTempVendorCDR_20' ) end [2025-01-26 08:37:18] Production.INFO: ProcessCDR(1,14333151,1,1,2) [2025-01-26 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333151', 'tblTempUsageDetail_20' ) start [2025-01-26 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333151', 'tblTempUsageDetail_20' ) end [2025-01-26 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:37:21] Production.INFO: ==23960== Releasing lock... [2025-01-26 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:38:05 [end_date_ymd] => 2025-01-26 08:38:05 [RateCDR] => 1 ) [2025-01-26 08:38: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-01-26 05:38:05' and `end` < '2025-01-26 08:38: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-01-26 08:38:17] Production.INFO: count ==123 [2025-01-26 08:38:17] Production.ERROR: pbx CDR StartTime 2025-01-26 05:38:05 - End Time 2025-01-26 08:38:05 [2025-01-26 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333156', 'tblTempUsageDetail_20' ) start [2025-01-26 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333156', 'tblTempUsageDetail_20' ) end [2025-01-26 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333156', 'tblTempVendorCDR_20' ) start [2025-01-26 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333156', 'tblTempVendorCDR_20' ) end [2025-01-26 08:38:17] Production.INFO: ProcessCDR(1,14333156,1,1,2) [2025-01-26 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333156', 'tblTempUsageDetail_20' ) start [2025-01-26 08:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333156', 'tblTempUsageDetail_20' ) end [2025-01-26 08:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:38:20] Production.INFO: ==24043== Releasing lock... [2025-01-26 08:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:38:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:39:05 [end_date_ymd] => 2025-01-26 08:39:05 [RateCDR] => 1 ) [2025-01-26 08:39: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-01-26 05:39:05' and `end` < '2025-01-26 08:39: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-01-26 08:39:18] Production.INFO: count ==123 [2025-01-26 08:39:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:39:05 - End Time 2025-01-26 08:39:05 [2025-01-26 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333161', 'tblTempUsageDetail_20' ) start [2025-01-26 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333161', 'tblTempUsageDetail_20' ) end [2025-01-26 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333161', 'tblTempVendorCDR_20' ) start [2025-01-26 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333161', 'tblTempVendorCDR_20' ) end [2025-01-26 08:39:18] Production.INFO: ProcessCDR(1,14333161,1,1,2) [2025-01-26 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333161', 'tblTempUsageDetail_20' ) start [2025-01-26 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333161', 'tblTempUsageDetail_20' ) end [2025-01-26 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:39:21] Production.INFO: ==24125== Releasing lock... [2025-01-26 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:40:05 [end_date_ymd] => 2025-01-26 08:40:05 [RateCDR] => 1 ) [2025-01-26 08:40: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-01-26 05:40:05' and `end` < '2025-01-26 08:40: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-01-26 08:40:18] Production.INFO: count ==127 [2025-01-26 08:40:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:40:05 - End Time 2025-01-26 08:40:05 [2025-01-26 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333166', 'tblTempUsageDetail_20' ) start [2025-01-26 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333166', 'tblTempUsageDetail_20' ) end [2025-01-26 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333166', 'tblTempVendorCDR_20' ) start [2025-01-26 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333166', 'tblTempVendorCDR_20' ) end [2025-01-26 08:40:18] Production.INFO: ProcessCDR(1,14333166,1,1,2) [2025-01-26 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333166', 'tblTempUsageDetail_20' ) start [2025-01-26 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333166', 'tblTempUsageDetail_20' ) end [2025-01-26 08:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:40:21] Production.INFO: ==24206== Releasing lock... [2025-01-26 08:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:41:05 [end_date_ymd] => 2025-01-26 08:41:05 [RateCDR] => 1 ) [2025-01-26 08:41: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-01-26 05:41:05' and `end` < '2025-01-26 08:41: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-01-26 08:41:18] Production.INFO: count ==128 [2025-01-26 08:41:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:41:05 - End Time 2025-01-26 08:41:05 [2025-01-26 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333172', 'tblTempUsageDetail_20' ) start [2025-01-26 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333172', 'tblTempUsageDetail_20' ) end [2025-01-26 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333172', 'tblTempVendorCDR_20' ) start [2025-01-26 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333172', 'tblTempVendorCDR_20' ) end [2025-01-26 08:41:18] Production.INFO: ProcessCDR(1,14333172,1,1,2) [2025-01-26 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333172', 'tblTempUsageDetail_20' ) start [2025-01-26 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333172', 'tblTempUsageDetail_20' ) end [2025-01-26 08:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:41:21] Production.INFO: ==24295== Releasing lock... [2025-01-26 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:42:05 [end_date_ymd] => 2025-01-26 08:42:05 [RateCDR] => 1 ) [2025-01-26 08:42: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-01-26 05:42:05' and `end` < '2025-01-26 08:42: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-01-26 08:42:18] Production.INFO: count ==128 [2025-01-26 08:42:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:42:05 - End Time 2025-01-26 08:42:05 [2025-01-26 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333177', 'tblTempUsageDetail_20' ) start [2025-01-26 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333177', 'tblTempUsageDetail_20' ) end [2025-01-26 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333177', 'tblTempVendorCDR_20' ) start [2025-01-26 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333177', 'tblTempVendorCDR_20' ) end [2025-01-26 08:42:18] Production.INFO: ProcessCDR(1,14333177,1,1,2) [2025-01-26 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333177', 'tblTempUsageDetail_20' ) start [2025-01-26 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333177', 'tblTempUsageDetail_20' ) end [2025-01-26 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:42:21] Production.INFO: ==24381== Releasing lock... [2025-01-26 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:43:05 [end_date_ymd] => 2025-01-26 08:43:05 [RateCDR] => 1 ) [2025-01-26 08:43: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-01-26 05:43:05' and `end` < '2025-01-26 08:43: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-01-26 08:43:18] Production.INFO: count ==128 [2025-01-26 08:43:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:43:05 - End Time 2025-01-26 08:43:05 [2025-01-26 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333182', 'tblTempUsageDetail_20' ) start [2025-01-26 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333182', 'tblTempUsageDetail_20' ) end [2025-01-26 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333182', 'tblTempVendorCDR_20' ) start [2025-01-26 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333182', 'tblTempVendorCDR_20' ) end [2025-01-26 08:43:18] Production.INFO: ProcessCDR(1,14333182,1,1,2) [2025-01-26 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333182', 'tblTempUsageDetail_20' ) start [2025-01-26 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333182', 'tblTempUsageDetail_20' ) end [2025-01-26 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:43:21] Production.INFO: ==24467== Releasing lock... [2025-01-26 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:44:04 [end_date_ymd] => 2025-01-26 08:44:04 [RateCDR] => 1 ) [2025-01-26 08:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 05:44:04' and `end` < '2025-01-26 08:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 08:44:17] Production.INFO: count ==128 [2025-01-26 08:44:17] Production.ERROR: pbx CDR StartTime 2025-01-26 05:44:04 - End Time 2025-01-26 08:44:04 [2025-01-26 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333187', 'tblTempUsageDetail_20' ) start [2025-01-26 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333187', 'tblTempUsageDetail_20' ) end [2025-01-26 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333187', 'tblTempVendorCDR_20' ) start [2025-01-26 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333187', 'tblTempVendorCDR_20' ) end [2025-01-26 08:44:17] Production.INFO: ProcessCDR(1,14333187,1,1,2) [2025-01-26 08:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333187', 'tblTempUsageDetail_20' ) start [2025-01-26 08:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333187', 'tblTempUsageDetail_20' ) end [2025-01-26 08:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:44:20] Production.INFO: ==24551== Releasing lock... [2025-01-26 08:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:44:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:45:05 [end_date_ymd] => 2025-01-26 08:45:05 [RateCDR] => 1 ) [2025-01-26 08:45: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-01-26 05:45:05' and `end` < '2025-01-26 08:45: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-01-26 08:45:17] Production.INFO: count ==128 [2025-01-26 08:45:17] Production.ERROR: pbx CDR StartTime 2025-01-26 05:45:05 - End Time 2025-01-26 08:45:05 [2025-01-26 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333192', 'tblTempUsageDetail_20' ) start [2025-01-26 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333192', 'tblTempUsageDetail_20' ) end [2025-01-26 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333192', 'tblTempVendorCDR_20' ) start [2025-01-26 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333192', 'tblTempVendorCDR_20' ) end [2025-01-26 08:45:17] Production.INFO: ProcessCDR(1,14333192,1,1,2) [2025-01-26 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333192', 'tblTempUsageDetail_20' ) start [2025-01-26 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333192', 'tblTempUsageDetail_20' ) end [2025-01-26 08:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:45:21] Production.INFO: ==24646== Releasing lock... [2025-01-26 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:46:05 [end_date_ymd] => 2025-01-26 08:46:05 [RateCDR] => 1 ) [2025-01-26 08:46: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-01-26 05:46:05' and `end` < '2025-01-26 08:46: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-01-26 08:46:17] Production.INFO: count ==128 [2025-01-26 08:46:17] Production.ERROR: pbx CDR StartTime 2025-01-26 05:46:05 - End Time 2025-01-26 08:46:05 [2025-01-26 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333197', 'tblTempUsageDetail_20' ) start [2025-01-26 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333197', 'tblTempUsageDetail_20' ) end [2025-01-26 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333197', 'tblTempVendorCDR_20' ) start [2025-01-26 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333197', 'tblTempVendorCDR_20' ) end [2025-01-26 08:46:17] Production.INFO: ProcessCDR(1,14333197,1,1,2) [2025-01-26 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333197', 'tblTempUsageDetail_20' ) start [2025-01-26 08:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333197', 'tblTempUsageDetail_20' ) end [2025-01-26 08:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:46:20] Production.INFO: ==24726== Releasing lock... [2025-01-26 08:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:46:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:47:05 [end_date_ymd] => 2025-01-26 08:47:05 [RateCDR] => 1 ) [2025-01-26 08:47: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-01-26 05:47:05' and `end` < '2025-01-26 08:47: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-01-26 08:47:18] Production.INFO: count ==128 [2025-01-26 08:47:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:47:05 - End Time 2025-01-26 08:47:05 [2025-01-26 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333202', 'tblTempUsageDetail_20' ) start [2025-01-26 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333202', 'tblTempUsageDetail_20' ) end [2025-01-26 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333202', 'tblTempVendorCDR_20' ) start [2025-01-26 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333202', 'tblTempVendorCDR_20' ) end [2025-01-26 08:47:18] Production.INFO: ProcessCDR(1,14333202,1,1,2) [2025-01-26 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333202', 'tblTempUsageDetail_20' ) start [2025-01-26 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333202', 'tblTempUsageDetail_20' ) end [2025-01-26 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:47:21] Production.INFO: ==24813== Releasing lock... [2025-01-26 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:48:05 [end_date_ymd] => 2025-01-26 08:48:05 [RateCDR] => 1 ) [2025-01-26 08:48: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-01-26 05:48:05' and `end` < '2025-01-26 08:48: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-01-26 08:48:18] Production.INFO: count ==128 [2025-01-26 08:48:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:48:05 - End Time 2025-01-26 08:48:05 [2025-01-26 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333207', 'tblTempUsageDetail_20' ) start [2025-01-26 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333207', 'tblTempUsageDetail_20' ) end [2025-01-26 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333207', 'tblTempVendorCDR_20' ) start [2025-01-26 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333207', 'tblTempVendorCDR_20' ) end [2025-01-26 08:48:18] Production.INFO: ProcessCDR(1,14333207,1,1,2) [2025-01-26 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333207', 'tblTempUsageDetail_20' ) start [2025-01-26 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333207', 'tblTempUsageDetail_20' ) end [2025-01-26 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:48:22] Production.INFO: ==24903== Releasing lock... [2025-01-26 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:48:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:49:05 [end_date_ymd] => 2025-01-26 08:49:05 [RateCDR] => 1 ) [2025-01-26 08:49: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-01-26 05:49:05' and `end` < '2025-01-26 08:49: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-01-26 08:49:18] Production.INFO: count ==128 [2025-01-26 08:49:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:49:05 - End Time 2025-01-26 08:49:05 [2025-01-26 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333212', 'tblTempUsageDetail_20' ) start [2025-01-26 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333212', 'tblTempUsageDetail_20' ) end [2025-01-26 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333212', 'tblTempVendorCDR_20' ) start [2025-01-26 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333212', 'tblTempVendorCDR_20' ) end [2025-01-26 08:49:18] Production.INFO: ProcessCDR(1,14333212,1,1,2) [2025-01-26 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333212', 'tblTempUsageDetail_20' ) start [2025-01-26 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333212', 'tblTempUsageDetail_20' ) end [2025-01-26 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:49:21] Production.INFO: ==25025== Releasing lock... [2025-01-26 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:50:06 [end_date_ymd] => 2025-01-26 08:50:06 [RateCDR] => 1 ) [2025-01-26 08:50: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-01-26 05:50:06' and `end` < '2025-01-26 08:50: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-01-26 08:50:18] Production.INFO: count ==128 [2025-01-26 08:50:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:50:06 - End Time 2025-01-26 08:50:06 [2025-01-26 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333217', 'tblTempUsageDetail_20' ) start [2025-01-26 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333217', 'tblTempUsageDetail_20' ) end [2025-01-26 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333217', 'tblTempVendorCDR_20' ) start [2025-01-26 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333217', 'tblTempVendorCDR_20' ) end [2025-01-26 08:50:18] Production.INFO: ProcessCDR(1,14333217,1,1,2) [2025-01-26 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333217', 'tblTempUsageDetail_20' ) start [2025-01-26 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333217', 'tblTempUsageDetail_20' ) end [2025-01-26 08:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:50:21] Production.INFO: ==25112== Releasing lock... [2025-01-26 08:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:50:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:51:05 [end_date_ymd] => 2025-01-26 08:51:05 [RateCDR] => 1 ) [2025-01-26 08:51: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-01-26 05:51:05' and `end` < '2025-01-26 08:51: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-01-26 08:51:18] Production.INFO: count ==128 [2025-01-26 08:51:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:51:05 - End Time 2025-01-26 08:51:05 [2025-01-26 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333223', 'tblTempUsageDetail_20' ) start [2025-01-26 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333223', 'tblTempUsageDetail_20' ) end [2025-01-26 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333223', 'tblTempVendorCDR_20' ) start [2025-01-26 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333223', 'tblTempVendorCDR_20' ) end [2025-01-26 08:51:18] Production.INFO: ProcessCDR(1,14333223,1,1,2) [2025-01-26 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333223', 'tblTempUsageDetail_20' ) start [2025-01-26 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333223', 'tblTempUsageDetail_20' ) end [2025-01-26 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:51:21] Production.INFO: ==25198== Releasing lock... [2025-01-26 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:52:05 [end_date_ymd] => 2025-01-26 08:52:05 [RateCDR] => 1 ) [2025-01-26 08:52: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-01-26 05:52:05' and `end` < '2025-01-26 08:52: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-01-26 08:52:18] Production.INFO: count ==128 [2025-01-26 08:52:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:52:05 - End Time 2025-01-26 08:52:05 [2025-01-26 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333228', 'tblTempUsageDetail_20' ) start [2025-01-26 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333228', 'tblTempUsageDetail_20' ) end [2025-01-26 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333228', 'tblTempVendorCDR_20' ) start [2025-01-26 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333228', 'tblTempVendorCDR_20' ) end [2025-01-26 08:52:18] Production.INFO: ProcessCDR(1,14333228,1,1,2) [2025-01-26 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333228', 'tblTempUsageDetail_20' ) start [2025-01-26 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333228', 'tblTempUsageDetail_20' ) end [2025-01-26 08:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:52:21] Production.INFO: ==25290== Releasing lock... [2025-01-26 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:53:04 [end_date_ymd] => 2025-01-26 08:53:04 [RateCDR] => 1 ) [2025-01-26 08:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 05:53:04' and `end` < '2025-01-26 08:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 08:53:17] Production.INFO: count ==128 [2025-01-26 08:53:17] Production.ERROR: pbx CDR StartTime 2025-01-26 05:53:04 - End Time 2025-01-26 08:53:04 [2025-01-26 08:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333233', 'tblTempUsageDetail_20' ) start [2025-01-26 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333233', 'tblTempUsageDetail_20' ) end [2025-01-26 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333233', 'tblTempVendorCDR_20' ) start [2025-01-26 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333233', 'tblTempVendorCDR_20' ) end [2025-01-26 08:53:17] Production.INFO: ProcessCDR(1,14333233,1,1,2) [2025-01-26 08:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333233', 'tblTempUsageDetail_20' ) start [2025-01-26 08:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333233', 'tblTempUsageDetail_20' ) end [2025-01-26 08:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:53:20] Production.INFO: ==25373== Releasing lock... [2025-01-26 08:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:53:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:54:05 [end_date_ymd] => 2025-01-26 08:54:05 [RateCDR] => 1 ) [2025-01-26 08:54: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-01-26 05:54:05' and `end` < '2025-01-26 08:54: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-01-26 08:54:19] Production.INFO: count ==128 [2025-01-26 08:54:19] Production.ERROR: pbx CDR StartTime 2025-01-26 05:54:05 - End Time 2025-01-26 08:54:05 [2025-01-26 08:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333238', 'tblTempUsageDetail_20' ) start [2025-01-26 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333238', 'tblTempUsageDetail_20' ) end [2025-01-26 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333238', 'tblTempVendorCDR_20' ) start [2025-01-26 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333238', 'tblTempVendorCDR_20' ) end [2025-01-26 08:54:19] Production.INFO: ProcessCDR(1,14333238,1,1,2) [2025-01-26 08:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333238', 'tblTempUsageDetail_20' ) start [2025-01-26 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333238', 'tblTempUsageDetail_20' ) end [2025-01-26 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:54:22] Production.INFO: ==25459== Releasing lock... [2025-01-26 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:54:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:55:05 [end_date_ymd] => 2025-01-26 08:55:05 [RateCDR] => 1 ) [2025-01-26 08:55: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-01-26 05:55:05' and `end` < '2025-01-26 08:55: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-01-26 08:55:17] Production.INFO: count ==128 [2025-01-26 08:55:17] Production.ERROR: pbx CDR StartTime 2025-01-26 05:55:05 - End Time 2025-01-26 08:55:05 [2025-01-26 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333243', 'tblTempUsageDetail_20' ) start [2025-01-26 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333243', 'tblTempUsageDetail_20' ) end [2025-01-26 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333243', 'tblTempVendorCDR_20' ) start [2025-01-26 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333243', 'tblTempVendorCDR_20' ) end [2025-01-26 08:55:17] Production.INFO: ProcessCDR(1,14333243,1,1,2) [2025-01-26 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333243', 'tblTempUsageDetail_20' ) start [2025-01-26 08:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333243', 'tblTempUsageDetail_20' ) end [2025-01-26 08:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:55:20] Production.INFO: ==25544== Releasing lock... [2025-01-26 08:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:55:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:56:05 [end_date_ymd] => 2025-01-26 08:56:05 [RateCDR] => 1 ) [2025-01-26 08:56: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-01-26 05:56:05' and `end` < '2025-01-26 08:56: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-01-26 08:56:18] Production.INFO: count ==128 [2025-01-26 08:56:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:56:05 - End Time 2025-01-26 08:56:05 [2025-01-26 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333248', 'tblTempUsageDetail_20' ) start [2025-01-26 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333248', 'tblTempUsageDetail_20' ) end [2025-01-26 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333248', 'tblTempVendorCDR_20' ) start [2025-01-26 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333248', 'tblTempVendorCDR_20' ) end [2025-01-26 08:56:18] Production.INFO: ProcessCDR(1,14333248,1,1,2) [2025-01-26 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333248', 'tblTempUsageDetail_20' ) start [2025-01-26 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333248', 'tblTempUsageDetail_20' ) end [2025-01-26 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:56:21] Production.INFO: ==25630== Releasing lock... [2025-01-26 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-26 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:57:05 [end_date_ymd] => 2025-01-26 08:57:05 [RateCDR] => 1 ) [2025-01-26 08:57: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-01-26 05:57:05' and `end` < '2025-01-26 08:57: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-01-26 08:57:18] Production.INFO: count ==131 [2025-01-26 08:57:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:57:05 - End Time 2025-01-26 08:57:05 [2025-01-26 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333253', 'tblTempUsageDetail_20' ) start [2025-01-26 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333253', 'tblTempUsageDetail_20' ) end [2025-01-26 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333253', 'tblTempVendorCDR_20' ) start [2025-01-26 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333253', 'tblTempVendorCDR_20' ) end [2025-01-26 08:57:18] Production.INFO: ProcessCDR(1,14333253,1,1,2) [2025-01-26 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333253', 'tblTempUsageDetail_20' ) start [2025-01-26 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333253', 'tblTempUsageDetail_20' ) end [2025-01-26 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:57:21] Production.INFO: ==25717== Releasing lock... [2025-01-26 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:58:05 [end_date_ymd] => 2025-01-26 08:58:05 [RateCDR] => 1 ) [2025-01-26 08:58: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-01-26 05:58:05' and `end` < '2025-01-26 08:58: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-01-26 08:58:18] Production.INFO: count ==134 [2025-01-26 08:58:18] Production.ERROR: pbx CDR StartTime 2025-01-26 05:58:05 - End Time 2025-01-26 08:58:05 [2025-01-26 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333258', 'tblTempUsageDetail_20' ) start [2025-01-26 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333258', 'tblTempUsageDetail_20' ) end [2025-01-26 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333258', 'tblTempVendorCDR_20' ) start [2025-01-26 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333258', 'tblTempVendorCDR_20' ) end [2025-01-26 08:58:18] Production.INFO: ProcessCDR(1,14333258,1,1,2) [2025-01-26 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333258', 'tblTempUsageDetail_20' ) start [2025-01-26 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333258', 'tblTempUsageDetail_20' ) end [2025-01-26 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:58:21] Production.INFO: ==25804== Releasing lock... [2025-01-26 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 08:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 05:59:06 [end_date_ymd] => 2025-01-26 08:59:06 [RateCDR] => 1 ) [2025-01-26 08:59: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-01-26 05:59:06' and `end` < '2025-01-26 08:59: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-01-26 08:59:19] Production.INFO: count ==134 [2025-01-26 08:59:19] Production.ERROR: pbx CDR StartTime 2025-01-26 05:59:06 - End Time 2025-01-26 08:59:06 [2025-01-26 08:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333263', 'tblTempUsageDetail_20' ) start [2025-01-26 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333263', 'tblTempUsageDetail_20' ) end [2025-01-26 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333263', 'tblTempVendorCDR_20' ) start [2025-01-26 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333263', 'tblTempVendorCDR_20' ) end [2025-01-26 08:59:19] Production.INFO: ProcessCDR(1,14333263,1,1,2) [2025-01-26 08:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333263', 'tblTempUsageDetail_20' ) start [2025-01-26 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333263', 'tblTempUsageDetail_20' ) end [2025-01-26 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 08:59:22] Production.INFO: ==25890== Releasing lock... [2025-01-26 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 08:59:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:00:05 [end_date_ymd] => 2025-01-26 09:00:05 [RateCDR] => 1 ) [2025-01-26 09: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-01-26 06:00:05' and `end` < '2025-01-26 09: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-01-26 09:00:19] Production.INFO: count ==138 [2025-01-26 09:00:19] Production.ERROR: pbx CDR StartTime 2025-01-26 06:00:05 - End Time 2025-01-26 09:00:05 [2025-01-26 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333268', 'tblTempUsageDetail_20' ) start [2025-01-26 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333268', 'tblTempUsageDetail_20' ) end [2025-01-26 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333268', 'tblTempVendorCDR_20' ) start [2025-01-26 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333268', 'tblTempVendorCDR_20' ) end [2025-01-26 09:00:19] Production.INFO: ProcessCDR(1,14333268,1,1,2) [2025-01-26 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333268', 'tblTempUsageDetail_20' ) start [2025-01-26 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333268', 'tblTempUsageDetail_20' ) end [2025-01-26 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:00:22] Production.INFO: ==25983== Releasing lock... [2025-01-26 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:01:05 [end_date_ymd] => 2025-01-26 09:01:05 [RateCDR] => 1 ) [2025-01-26 09:01: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-01-26 06:01:05' and `end` < '2025-01-26 09:01: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-01-26 09:01:18] Production.INFO: count ==138 [2025-01-26 09:01:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:01:05 - End Time 2025-01-26 09:01:05 [2025-01-26 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333274', 'tblTempUsageDetail_20' ) start [2025-01-26 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333274', 'tblTempUsageDetail_20' ) end [2025-01-26 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333274', 'tblTempVendorCDR_20' ) start [2025-01-26 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333274', 'tblTempVendorCDR_20' ) end [2025-01-26 09:01:18] Production.INFO: ProcessCDR(1,14333274,1,1,2) [2025-01-26 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333274', 'tblTempUsageDetail_20' ) start [2025-01-26 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333274', 'tblTempUsageDetail_20' ) end [2025-01-26 09:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:01:21] Production.INFO: ==26080== Releasing lock... [2025-01-26 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:02:05 [end_date_ymd] => 2025-01-26 09:02:05 [RateCDR] => 1 ) [2025-01-26 09:02: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-01-26 06:02:05' and `end` < '2025-01-26 09:02: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-01-26 09:02:18] Production.INFO: count ==138 [2025-01-26 09:02:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:02:05 - End Time 2025-01-26 09:02:05 [2025-01-26 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333279', 'tblTempUsageDetail_20' ) start [2025-01-26 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333279', 'tblTempUsageDetail_20' ) end [2025-01-26 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333279', 'tblTempVendorCDR_20' ) start [2025-01-26 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333279', 'tblTempVendorCDR_20' ) end [2025-01-26 09:02:18] Production.INFO: ProcessCDR(1,14333279,1,1,2) [2025-01-26 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333279', 'tblTempUsageDetail_20' ) start [2025-01-26 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333279', 'tblTempUsageDetail_20' ) end [2025-01-26 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:02:21] Production.INFO: ==26173== Releasing lock... [2025-01-26 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:02:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:03:05 [end_date_ymd] => 2025-01-26 09:03:05 [RateCDR] => 1 ) [2025-01-26 09:03: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-01-26 06:03:05' and `end` < '2025-01-26 09:03: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-01-26 09:03:18] Production.INFO: count ==138 [2025-01-26 09:03:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:03:05 - End Time 2025-01-26 09:03:05 [2025-01-26 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333284', 'tblTempUsageDetail_20' ) start [2025-01-26 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333284', 'tblTempUsageDetail_20' ) end [2025-01-26 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333284', 'tblTempVendorCDR_20' ) start [2025-01-26 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333284', 'tblTempVendorCDR_20' ) end [2025-01-26 09:03:18] Production.INFO: ProcessCDR(1,14333284,1,1,2) [2025-01-26 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333284', 'tblTempUsageDetail_20' ) start [2025-01-26 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333284', 'tblTempUsageDetail_20' ) end [2025-01-26 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:03:21] Production.INFO: ==26261== Releasing lock... [2025-01-26 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:04:06 [end_date_ymd] => 2025-01-26 09:04:06 [RateCDR] => 1 ) [2025-01-26 09:04: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-01-26 06:04:06' and `end` < '2025-01-26 09:04: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-01-26 09:04:18] Production.INFO: count ==138 [2025-01-26 09:04:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:04:06 - End Time 2025-01-26 09:04:06 [2025-01-26 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333289', 'tblTempUsageDetail_20' ) start [2025-01-26 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333289', 'tblTempUsageDetail_20' ) end [2025-01-26 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333289', 'tblTempVendorCDR_20' ) start [2025-01-26 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333289', 'tblTempVendorCDR_20' ) end [2025-01-26 09:04:18] Production.INFO: ProcessCDR(1,14333289,1,1,2) [2025-01-26 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333289', 'tblTempUsageDetail_20' ) start [2025-01-26 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333289', 'tblTempUsageDetail_20' ) end [2025-01-26 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:04:22] Production.INFO: ==26350== Releasing lock... [2025-01-26 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:04:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:05:05 [end_date_ymd] => 2025-01-26 09:05:05 [RateCDR] => 1 ) [2025-01-26 09:05: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-01-26 06:05:05' and `end` < '2025-01-26 09:05: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-01-26 09:05:18] Production.INFO: count ==138 [2025-01-26 09:05:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:05:05 - End Time 2025-01-26 09:05:05 [2025-01-26 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333294', 'tblTempUsageDetail_20' ) start [2025-01-26 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333294', 'tblTempUsageDetail_20' ) end [2025-01-26 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333294', 'tblTempVendorCDR_20' ) start [2025-01-26 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333294', 'tblTempVendorCDR_20' ) end [2025-01-26 09:05:18] Production.INFO: ProcessCDR(1,14333294,1,1,2) [2025-01-26 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333294', 'tblTempUsageDetail_20' ) start [2025-01-26 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333294', 'tblTempUsageDetail_20' ) end [2025-01-26 09:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:05:21] Production.INFO: ==26468== Releasing lock... [2025-01-26 09:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:06:06 [end_date_ymd] => 2025-01-26 09:06:06 [RateCDR] => 1 ) [2025-01-26 09:06: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-01-26 06:06:06' and `end` < '2025-01-26 09:06: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-01-26 09:06:19] Production.INFO: count ==138 [2025-01-26 09:06:19] Production.ERROR: pbx CDR StartTime 2025-01-26 06:06:06 - End Time 2025-01-26 09:06:06 [2025-01-26 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333299', 'tblTempUsageDetail_20' ) start [2025-01-26 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333299', 'tblTempUsageDetail_20' ) end [2025-01-26 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333299', 'tblTempVendorCDR_20' ) start [2025-01-26 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333299', 'tblTempVendorCDR_20' ) end [2025-01-26 09:06:19] Production.INFO: ProcessCDR(1,14333299,1,1,2) [2025-01-26 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333299', 'tblTempUsageDetail_20' ) start [2025-01-26 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333299', 'tblTempUsageDetail_20' ) end [2025-01-26 09:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:06:22] Production.INFO: ==26555== Releasing lock... [2025-01-26 09:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:06:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:07:05 [end_date_ymd] => 2025-01-26 09:07:05 [RateCDR] => 1 ) [2025-01-26 09:07: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-01-26 06:07:05' and `end` < '2025-01-26 09:07: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-01-26 09:07:17] Production.INFO: count ==138 [2025-01-26 09:07:17] Production.ERROR: pbx CDR StartTime 2025-01-26 06:07:05 - End Time 2025-01-26 09:07:05 [2025-01-26 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333304', 'tblTempUsageDetail_20' ) start [2025-01-26 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333304', 'tblTempUsageDetail_20' ) end [2025-01-26 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333304', 'tblTempVendorCDR_20' ) start [2025-01-26 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333304', 'tblTempVendorCDR_20' ) end [2025-01-26 09:07:17] Production.INFO: ProcessCDR(1,14333304,1,1,2) [2025-01-26 09:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333304', 'tblTempUsageDetail_20' ) start [2025-01-26 09:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333304', 'tblTempUsageDetail_20' ) end [2025-01-26 09:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:07:20] Production.INFO: ==26639== Releasing lock... [2025-01-26 09:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:07:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:08:05 [end_date_ymd] => 2025-01-26 09:08:05 [RateCDR] => 1 ) [2025-01-26 09:08: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-01-26 06:08:05' and `end` < '2025-01-26 09:08: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-01-26 09:08:18] Production.INFO: count ==138 [2025-01-26 09:08:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:08:05 - End Time 2025-01-26 09:08:05 [2025-01-26 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333309', 'tblTempUsageDetail_20' ) start [2025-01-26 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333309', 'tblTempUsageDetail_20' ) end [2025-01-26 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333309', 'tblTempVendorCDR_20' ) start [2025-01-26 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333309', 'tblTempVendorCDR_20' ) end [2025-01-26 09:08:18] Production.INFO: ProcessCDR(1,14333309,1,1,2) [2025-01-26 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333309', 'tblTempUsageDetail_20' ) start [2025-01-26 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333309', 'tblTempUsageDetail_20' ) end [2025-01-26 09:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:08:21] Production.INFO: ==26727== Releasing lock... [2025-01-26 09:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:08:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:09:04 [end_date_ymd] => 2025-01-26 09:09:04 [RateCDR] => 1 ) [2025-01-26 09:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 06:09:04' and `end` < '2025-01-26 09:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 09:09:17] Production.INFO: count ==138 [2025-01-26 09:09:17] Production.ERROR: pbx CDR StartTime 2025-01-26 06:09:04 - End Time 2025-01-26 09:09:04 [2025-01-26 09:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333314', 'tblTempUsageDetail_20' ) start [2025-01-26 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333314', 'tblTempUsageDetail_20' ) end [2025-01-26 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333314', 'tblTempVendorCDR_20' ) start [2025-01-26 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333314', 'tblTempVendorCDR_20' ) end [2025-01-26 09:09:17] Production.INFO: ProcessCDR(1,14333314,1,1,2) [2025-01-26 09:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333314', 'tblTempUsageDetail_20' ) start [2025-01-26 09:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333314', 'tblTempUsageDetail_20' ) end [2025-01-26 09:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:09:20] Production.INFO: ==26814== Releasing lock... [2025-01-26 09:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:09:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:10:05 [end_date_ymd] => 2025-01-26 09:10:05 [RateCDR] => 1 ) [2025-01-26 09:10: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-01-26 06:10:05' and `end` < '2025-01-26 09:10: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-01-26 09:10:18] Production.INFO: count ==138 [2025-01-26 09:10:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:10:05 - End Time 2025-01-26 09:10:05 [2025-01-26 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333319', 'tblTempUsageDetail_20' ) start [2025-01-26 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333319', 'tblTempUsageDetail_20' ) end [2025-01-26 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333319', 'tblTempVendorCDR_20' ) start [2025-01-26 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333319', 'tblTempVendorCDR_20' ) end [2025-01-26 09:10:18] Production.INFO: ProcessCDR(1,14333319,1,1,2) [2025-01-26 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333319', 'tblTempUsageDetail_20' ) start [2025-01-26 09:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333319', 'tblTempUsageDetail_20' ) end [2025-01-26 09:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:10:21] Production.INFO: ==26897== Releasing lock... [2025-01-26 09:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:10:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:11:05 [end_date_ymd] => 2025-01-26 09:11:05 [RateCDR] => 1 ) [2025-01-26 09:11: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-01-26 06:11:05' and `end` < '2025-01-26 09:11: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-01-26 09:11:18] Production.INFO: count ==138 [2025-01-26 09:11:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:11:05 - End Time 2025-01-26 09:11:05 [2025-01-26 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333325', 'tblTempUsageDetail_20' ) start [2025-01-26 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333325', 'tblTempUsageDetail_20' ) end [2025-01-26 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333325', 'tblTempVendorCDR_20' ) start [2025-01-26 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333325', 'tblTempVendorCDR_20' ) end [2025-01-26 09:11:18] Production.INFO: ProcessCDR(1,14333325,1,1,2) [2025-01-26 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333325', 'tblTempUsageDetail_20' ) start [2025-01-26 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333325', 'tblTempUsageDetail_20' ) end [2025-01-26 09:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:11:21] Production.INFO: ==26988== Releasing lock... [2025-01-26 09:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:11:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:12:05 [end_date_ymd] => 2025-01-26 09:12:05 [RateCDR] => 1 ) [2025-01-26 09:12: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-01-26 06:12:05' and `end` < '2025-01-26 09:12: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-01-26 09:12:18] Production.INFO: count ==138 [2025-01-26 09:12:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:12:05 - End Time 2025-01-26 09:12:05 [2025-01-26 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333330', 'tblTempUsageDetail_20' ) start [2025-01-26 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333330', 'tblTempUsageDetail_20' ) end [2025-01-26 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333330', 'tblTempVendorCDR_20' ) start [2025-01-26 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333330', 'tblTempVendorCDR_20' ) end [2025-01-26 09:12:18] Production.INFO: ProcessCDR(1,14333330,1,1,2) [2025-01-26 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333330', 'tblTempUsageDetail_20' ) start [2025-01-26 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333330', 'tblTempUsageDetail_20' ) end [2025-01-26 09:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:12:21] Production.INFO: ==27076== Releasing lock... [2025-01-26 09:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:13:05 [end_date_ymd] => 2025-01-26 09:13:05 [RateCDR] => 1 ) [2025-01-26 09:13: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-01-26 06:13:05' and `end` < '2025-01-26 09:13: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-01-26 09:13:17] Production.INFO: count ==138 [2025-01-26 09:13:17] Production.ERROR: pbx CDR StartTime 2025-01-26 06:13:05 - End Time 2025-01-26 09:13:05 [2025-01-26 09:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333335', 'tblTempUsageDetail_20' ) start [2025-01-26 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333335', 'tblTempUsageDetail_20' ) end [2025-01-26 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333335', 'tblTempVendorCDR_20' ) start [2025-01-26 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333335', 'tblTempVendorCDR_20' ) end [2025-01-26 09:13:17] Production.INFO: ProcessCDR(1,14333335,1,1,2) [2025-01-26 09:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333335', 'tblTempUsageDetail_20' ) start [2025-01-26 09:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333335', 'tblTempUsageDetail_20' ) end [2025-01-26 09:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:13:20] Production.INFO: ==27162== Releasing lock... [2025-01-26 09:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:13:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:14:05 [end_date_ymd] => 2025-01-26 09:14:05 [RateCDR] => 1 ) [2025-01-26 09:14: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-01-26 06:14:05' and `end` < '2025-01-26 09:14: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-01-26 09:14:17] Production.INFO: count ==138 [2025-01-26 09:14:17] Production.ERROR: pbx CDR StartTime 2025-01-26 06:14:05 - End Time 2025-01-26 09:14:05 [2025-01-26 09:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333340', 'tblTempUsageDetail_20' ) start [2025-01-26 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333340', 'tblTempUsageDetail_20' ) end [2025-01-26 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333340', 'tblTempVendorCDR_20' ) start [2025-01-26 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333340', 'tblTempVendorCDR_20' ) end [2025-01-26 09:14:17] Production.INFO: ProcessCDR(1,14333340,1,1,2) [2025-01-26 09:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333340', 'tblTempUsageDetail_20' ) start [2025-01-26 09:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333340', 'tblTempUsageDetail_20' ) end [2025-01-26 09:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:14:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:14:20] Production.INFO: ==27243== Releasing lock... [2025-01-26 09:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:14:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:15:05 [end_date_ymd] => 2025-01-26 09:15:05 [RateCDR] => 1 ) [2025-01-26 09:15: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-01-26 06:15:05' and `end` < '2025-01-26 09:15: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-01-26 09:15:17] Production.INFO: count ==138 [2025-01-26 09:15:17] Production.ERROR: pbx CDR StartTime 2025-01-26 06:15:05 - End Time 2025-01-26 09:15:05 [2025-01-26 09:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333345', 'tblTempUsageDetail_20' ) start [2025-01-26 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333345', 'tblTempUsageDetail_20' ) end [2025-01-26 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333345', 'tblTempVendorCDR_20' ) start [2025-01-26 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333345', 'tblTempVendorCDR_20' ) end [2025-01-26 09:15:17] Production.INFO: ProcessCDR(1,14333345,1,1,2) [2025-01-26 09:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333345', 'tblTempUsageDetail_20' ) start [2025-01-26 09:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333345', 'tblTempUsageDetail_20' ) end [2025-01-26 09:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:15:20] Production.INFO: ==27329== Releasing lock... [2025-01-26 09:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:15:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:16:05 [end_date_ymd] => 2025-01-26 09:16:05 [RateCDR] => 1 ) [2025-01-26 09:16: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-01-26 06:16:05' and `end` < '2025-01-26 09:16: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-01-26 09:16:17] Production.INFO: count ==138 [2025-01-26 09:16:17] Production.ERROR: pbx CDR StartTime 2025-01-26 06:16:05 - End Time 2025-01-26 09:16:05 [2025-01-26 09:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333350', 'tblTempUsageDetail_20' ) start [2025-01-26 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333350', 'tblTempUsageDetail_20' ) end [2025-01-26 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333350', 'tblTempVendorCDR_20' ) start [2025-01-26 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333350', 'tblTempVendorCDR_20' ) end [2025-01-26 09:16:17] Production.INFO: ProcessCDR(1,14333350,1,1,2) [2025-01-26 09:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333350', 'tblTempUsageDetail_20' ) start [2025-01-26 09:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333350', 'tblTempUsageDetail_20' ) end [2025-01-26 09:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:16:20] Production.INFO: ==27409== Releasing lock... [2025-01-26 09:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:16:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:17:05 [end_date_ymd] => 2025-01-26 09:17:05 [RateCDR] => 1 ) [2025-01-26 09:17: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-01-26 06:17:05' and `end` < '2025-01-26 09:17: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-01-26 09:17:18] Production.INFO: count ==138 [2025-01-26 09:17:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:17:05 - End Time 2025-01-26 09:17:05 [2025-01-26 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333355', 'tblTempUsageDetail_20' ) start [2025-01-26 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333355', 'tblTempUsageDetail_20' ) end [2025-01-26 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333355', 'tblTempVendorCDR_20' ) start [2025-01-26 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333355', 'tblTempVendorCDR_20' ) end [2025-01-26 09:17:18] Production.INFO: ProcessCDR(1,14333355,1,1,2) [2025-01-26 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333355', 'tblTempUsageDetail_20' ) start [2025-01-26 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333355', 'tblTempUsageDetail_20' ) end [2025-01-26 09:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:17:21] Production.INFO: ==27494== Releasing lock... [2025-01-26 09:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:18:05 [end_date_ymd] => 2025-01-26 09:18:05 [RateCDR] => 1 ) [2025-01-26 09:18: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-01-26 06:18:05' and `end` < '2025-01-26 09:18: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-01-26 09:18:17] Production.INFO: count ==138 [2025-01-26 09:18:17] Production.ERROR: pbx CDR StartTime 2025-01-26 06:18:05 - End Time 2025-01-26 09:18:05 [2025-01-26 09:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333360', 'tblTempUsageDetail_20' ) start [2025-01-26 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333360', 'tblTempUsageDetail_20' ) end [2025-01-26 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333360', 'tblTempVendorCDR_20' ) start [2025-01-26 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333360', 'tblTempVendorCDR_20' ) end [2025-01-26 09:18:17] Production.INFO: ProcessCDR(1,14333360,1,1,2) [2025-01-26 09:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333360', 'tblTempUsageDetail_20' ) start [2025-01-26 09:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333360', 'tblTempUsageDetail_20' ) end [2025-01-26 09:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:18:20] Production.INFO: ==27575== Releasing lock... [2025-01-26 09:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:18:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:19:05 [end_date_ymd] => 2025-01-26 09:19:05 [RateCDR] => 1 ) [2025-01-26 09:19: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-01-26 06:19:05' and `end` < '2025-01-26 09:19: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-01-26 09:19:17] Production.INFO: count ==138 [2025-01-26 09:19:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:19:05 - End Time 2025-01-26 09:19:05 [2025-01-26 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333365', 'tblTempUsageDetail_20' ) start [2025-01-26 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333365', 'tblTempUsageDetail_20' ) end [2025-01-26 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333365', 'tblTempVendorCDR_20' ) start [2025-01-26 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333365', 'tblTempVendorCDR_20' ) end [2025-01-26 09:19:18] Production.INFO: ProcessCDR(1,14333365,1,1,2) [2025-01-26 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333365', 'tblTempUsageDetail_20' ) start [2025-01-26 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333365', 'tblTempUsageDetail_20' ) end [2025-01-26 09:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:19:21] Production.INFO: ==27657== Releasing lock... [2025-01-26 09:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:20:06 [end_date_ymd] => 2025-01-26 09:20:06 [RateCDR] => 1 ) [2025-01-26 09:20: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-01-26 06:20:06' and `end` < '2025-01-26 09:20: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-01-26 09:20:20] Production.INFO: count ==138 [2025-01-26 09:20:20] Production.ERROR: pbx CDR StartTime 2025-01-26 06:20:06 - End Time 2025-01-26 09:20:06 [2025-01-26 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333371', 'tblTempUsageDetail_20' ) start [2025-01-26 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333371', 'tblTempUsageDetail_20' ) end [2025-01-26 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333371', 'tblTempVendorCDR_20' ) start [2025-01-26 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333371', 'tblTempVendorCDR_20' ) end [2025-01-26 09:20:20] Production.INFO: ProcessCDR(1,14333371,1,1,2) [2025-01-26 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333371', 'tblTempUsageDetail_20' ) start [2025-01-26 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333371', 'tblTempUsageDetail_20' ) end [2025-01-26 09:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:20:23] Production.INFO: ==27779== Releasing lock... [2025-01-26 09:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:20:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:21:05 [end_date_ymd] => 2025-01-26 09:21:05 [RateCDR] => 1 ) [2025-01-26 09:21: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-01-26 06:21:05' and `end` < '2025-01-26 09:21: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-01-26 09:21:17] Production.INFO: count ==138 [2025-01-26 09:21:17] Production.ERROR: pbx CDR StartTime 2025-01-26 06:21:05 - End Time 2025-01-26 09:21:05 [2025-01-26 09:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333376', 'tblTempUsageDetail_20' ) start [2025-01-26 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333376', 'tblTempUsageDetail_20' ) end [2025-01-26 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333376', 'tblTempVendorCDR_20' ) start [2025-01-26 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333376', 'tblTempVendorCDR_20' ) end [2025-01-26 09:21:17] Production.INFO: ProcessCDR(1,14333376,1,1,2) [2025-01-26 09:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333376', 'tblTempUsageDetail_20' ) start [2025-01-26 09:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333376', 'tblTempUsageDetail_20' ) end [2025-01-26 09:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:21:20] Production.INFO: ==27860== Releasing lock... [2025-01-26 09:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:21:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:22:06 [end_date_ymd] => 2025-01-26 09:22:06 [RateCDR] => 1 ) [2025-01-26 09:22: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-01-26 06:22:06' and `end` < '2025-01-26 09:22: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-01-26 09:22:19] Production.INFO: count ==138 [2025-01-26 09:22:19] Production.ERROR: pbx CDR StartTime 2025-01-26 06:22:06 - End Time 2025-01-26 09:22:06 [2025-01-26 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333381', 'tblTempUsageDetail_20' ) start [2025-01-26 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333381', 'tblTempUsageDetail_20' ) end [2025-01-26 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333381', 'tblTempVendorCDR_20' ) start [2025-01-26 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333381', 'tblTempVendorCDR_20' ) end [2025-01-26 09:22:19] Production.INFO: ProcessCDR(1,14333381,1,1,2) [2025-01-26 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333381', 'tblTempUsageDetail_20' ) start [2025-01-26 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333381', 'tblTempUsageDetail_20' ) end [2025-01-26 09:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:22:22] Production.INFO: ==27947== Releasing lock... [2025-01-26 09:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:22:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:23:05 [end_date_ymd] => 2025-01-26 09:23:05 [RateCDR] => 1 ) [2025-01-26 09:23: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-01-26 06:23:05' and `end` < '2025-01-26 09:23: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-01-26 09:23:18] Production.INFO: count ==138 [2025-01-26 09:23:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:23:05 - End Time 2025-01-26 09:23:05 [2025-01-26 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333386', 'tblTempUsageDetail_20' ) start [2025-01-26 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333386', 'tblTempUsageDetail_20' ) end [2025-01-26 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333386', 'tblTempVendorCDR_20' ) start [2025-01-26 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333386', 'tblTempVendorCDR_20' ) end [2025-01-26 09:23:18] Production.INFO: ProcessCDR(1,14333386,1,1,2) [2025-01-26 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333386', 'tblTempUsageDetail_20' ) start [2025-01-26 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333386', 'tblTempUsageDetail_20' ) end [2025-01-26 09:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:23:21] Production.INFO: ==28026== Releasing lock... [2025-01-26 09:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:23:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:24:05 [end_date_ymd] => 2025-01-26 09:24:05 [RateCDR] => 1 ) [2025-01-26 09:24: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-01-26 06:24:05' and `end` < '2025-01-26 09:24: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-01-26 09:24:18] Production.INFO: count ==138 [2025-01-26 09:24:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:24:05 - End Time 2025-01-26 09:24:05 [2025-01-26 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333391', 'tblTempUsageDetail_20' ) start [2025-01-26 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333391', 'tblTempUsageDetail_20' ) end [2025-01-26 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333391', 'tblTempVendorCDR_20' ) start [2025-01-26 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333391', 'tblTempVendorCDR_20' ) end [2025-01-26 09:24:18] Production.INFO: ProcessCDR(1,14333391,1,1,2) [2025-01-26 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333391', 'tblTempUsageDetail_20' ) start [2025-01-26 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333391', 'tblTempUsageDetail_20' ) end [2025-01-26 09:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:24:21] Production.INFO: ==28108== Releasing lock... [2025-01-26 09:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:24:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:25:05 [end_date_ymd] => 2025-01-26 09:25:05 [RateCDR] => 1 ) [2025-01-26 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 06:25:05' and `end` < '2025-01-26 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 09:25:17] Production.INFO: count ==138 [2025-01-26 09:25:17] Production.ERROR: pbx CDR StartTime 2025-01-26 06:25:05 - End Time 2025-01-26 09:25:05 [2025-01-26 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333396', 'tblTempUsageDetail_20' ) start [2025-01-26 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333396', 'tblTempUsageDetail_20' ) end [2025-01-26 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333396', 'tblTempVendorCDR_20' ) start [2025-01-26 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333396', 'tblTempVendorCDR_20' ) end [2025-01-26 09:25:17] Production.INFO: ProcessCDR(1,14333396,1,1,2) [2025-01-26 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333396', 'tblTempUsageDetail_20' ) start [2025-01-26 09:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333396', 'tblTempUsageDetail_20' ) end [2025-01-26 09:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:25:20] Production.INFO: ==28185== Releasing lock... [2025-01-26 09:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:25:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:26:05 [end_date_ymd] => 2025-01-26 09:26:05 [RateCDR] => 1 ) [2025-01-26 09:26: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-01-26 06:26:05' and `end` < '2025-01-26 09:26: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-01-26 09:26:17] Production.INFO: count ==138 [2025-01-26 09:26:17] Production.ERROR: pbx CDR StartTime 2025-01-26 06:26:05 - End Time 2025-01-26 09:26:05 [2025-01-26 09:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333401', 'tblTempUsageDetail_20' ) start [2025-01-26 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333401', 'tblTempUsageDetail_20' ) end [2025-01-26 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333401', 'tblTempVendorCDR_20' ) start [2025-01-26 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333401', 'tblTempVendorCDR_20' ) end [2025-01-26 09:26:17] Production.INFO: ProcessCDR(1,14333401,1,1,2) [2025-01-26 09:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333401', 'tblTempUsageDetail_20' ) start [2025-01-26 09:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333401', 'tblTempUsageDetail_20' ) end [2025-01-26 09:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:26:20] Production.INFO: ==28262== Releasing lock... [2025-01-26 09:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:26:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:27:05 [end_date_ymd] => 2025-01-26 09:27:05 [RateCDR] => 1 ) [2025-01-26 09:27: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-01-26 06:27:05' and `end` < '2025-01-26 09:27: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-01-26 09:27:18] Production.INFO: count ==138 [2025-01-26 09:27:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:27:05 - End Time 2025-01-26 09:27:05 [2025-01-26 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333406', 'tblTempUsageDetail_20' ) start [2025-01-26 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333406', 'tblTempUsageDetail_20' ) end [2025-01-26 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333406', 'tblTempVendorCDR_20' ) start [2025-01-26 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333406', 'tblTempVendorCDR_20' ) end [2025-01-26 09:27:18] Production.INFO: ProcessCDR(1,14333406,1,1,2) [2025-01-26 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333406', 'tblTempUsageDetail_20' ) start [2025-01-26 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333406', 'tblTempUsageDetail_20' ) end [2025-01-26 09:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:27:21] Production.INFO: ==28337== Releasing lock... [2025-01-26 09:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:28:05 [end_date_ymd] => 2025-01-26 09:28:05 [RateCDR] => 1 ) [2025-01-26 09:28: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-01-26 06:28:05' and `end` < '2025-01-26 09:28: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-01-26 09:28:18] Production.INFO: count ==138 [2025-01-26 09:28:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:28:05 - End Time 2025-01-26 09:28:05 [2025-01-26 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333411', 'tblTempUsageDetail_20' ) start [2025-01-26 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333411', 'tblTempUsageDetail_20' ) end [2025-01-26 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333411', 'tblTempVendorCDR_20' ) start [2025-01-26 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333411', 'tblTempVendorCDR_20' ) end [2025-01-26 09:28:18] Production.INFO: ProcessCDR(1,14333411,1,1,2) [2025-01-26 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333411', 'tblTempUsageDetail_20' ) start [2025-01-26 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333411', 'tblTempUsageDetail_20' ) end [2025-01-26 09:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:28:21] Production.INFO: ==28413== Releasing lock... [2025-01-26 09:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:29:04 [end_date_ymd] => 2025-01-26 09:29:04 [RateCDR] => 1 ) [2025-01-26 09:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 06:29:04' and `end` < '2025-01-26 09:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 09:29:18] Production.INFO: count ==138 [2025-01-26 09:29:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:29:04 - End Time 2025-01-26 09:29:04 [2025-01-26 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333416', 'tblTempUsageDetail_20' ) start [2025-01-26 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333416', 'tblTempUsageDetail_20' ) end [2025-01-26 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333416', 'tblTempVendorCDR_20' ) start [2025-01-26 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333416', 'tblTempVendorCDR_20' ) end [2025-01-26 09:29:18] Production.INFO: ProcessCDR(1,14333416,1,1,2) [2025-01-26 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333416', 'tblTempUsageDetail_20' ) start [2025-01-26 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333416', 'tblTempUsageDetail_20' ) end [2025-01-26 09:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:29:21] Production.INFO: ==28486== Releasing lock... [2025-01-26 09:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:29:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:30:05 [end_date_ymd] => 2025-01-26 09:30:05 [RateCDR] => 1 ) [2025-01-26 09:30: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-01-26 06:30:05' and `end` < '2025-01-26 09:30: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-01-26 09:30:18] Production.INFO: count ==135 [2025-01-26 09:30:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:30:05 - End Time 2025-01-26 09:30:05 [2025-01-26 09:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333421', 'tblTempUsageDetail_20' ) start [2025-01-26 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333421', 'tblTempUsageDetail_20' ) end [2025-01-26 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333421', 'tblTempVendorCDR_20' ) start [2025-01-26 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333421', 'tblTempVendorCDR_20' ) end [2025-01-26 09:30:18] Production.INFO: ProcessCDR(1,14333421,1,1,2) [2025-01-26 09:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333421', 'tblTempUsageDetail_20' ) start [2025-01-26 09:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333421', 'tblTempUsageDetail_20' ) end [2025-01-26 09:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:30:21] Production.INFO: ==28568== Releasing lock... [2025-01-26 09:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:30:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:31:05 [end_date_ymd] => 2025-01-26 09:31:05 [RateCDR] => 1 ) [2025-01-26 09:31: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-01-26 06:31:05' and `end` < '2025-01-26 09:31: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-01-26 09:31:18] Production.INFO: count ==135 [2025-01-26 09:31:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:31:05 - End Time 2025-01-26 09:31:05 [2025-01-26 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333427', 'tblTempUsageDetail_20' ) start [2025-01-26 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333427', 'tblTempUsageDetail_20' ) end [2025-01-26 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333427', 'tblTempVendorCDR_20' ) start [2025-01-26 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333427', 'tblTempVendorCDR_20' ) end [2025-01-26 09:31:18] Production.INFO: ProcessCDR(1,14333427,1,1,2) [2025-01-26 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333427', 'tblTempUsageDetail_20' ) start [2025-01-26 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333427', 'tblTempUsageDetail_20' ) end [2025-01-26 09:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:31:21] Production.INFO: ==28649== Releasing lock... [2025-01-26 09:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:32:05 [end_date_ymd] => 2025-01-26 09:32:05 [RateCDR] => 1 ) [2025-01-26 09:32: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-01-26 06:32:05' and `end` < '2025-01-26 09:32: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-01-26 09:32:17] Production.INFO: count ==135 [2025-01-26 09:32:17] Production.ERROR: pbx CDR StartTime 2025-01-26 06:32:05 - End Time 2025-01-26 09:32:05 [2025-01-26 09:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333432', 'tblTempUsageDetail_20' ) start [2025-01-26 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333432', 'tblTempUsageDetail_20' ) end [2025-01-26 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333432', 'tblTempVendorCDR_20' ) start [2025-01-26 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333432', 'tblTempVendorCDR_20' ) end [2025-01-26 09:32:17] Production.INFO: ProcessCDR(1,14333432,1,1,2) [2025-01-26 09:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333432', 'tblTempUsageDetail_20' ) start [2025-01-26 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333432', 'tblTempUsageDetail_20' ) end [2025-01-26 09:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:32:21] Production.INFO: ==28723== Releasing lock... [2025-01-26 09:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:33:05 [end_date_ymd] => 2025-01-26 09:33:05 [RateCDR] => 1 ) [2025-01-26 09:33: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-01-26 06:33:05' and `end` < '2025-01-26 09:33: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-01-26 09:33:18] Production.INFO: count ==138 [2025-01-26 09:33:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:33:05 - End Time 2025-01-26 09:33:05 [2025-01-26 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333437', 'tblTempUsageDetail_20' ) start [2025-01-26 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333437', 'tblTempUsageDetail_20' ) end [2025-01-26 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333437', 'tblTempVendorCDR_20' ) start [2025-01-26 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333437', 'tblTempVendorCDR_20' ) end [2025-01-26 09:33:18] Production.INFO: ProcessCDR(1,14333437,1,1,2) [2025-01-26 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333437', 'tblTempUsageDetail_20' ) start [2025-01-26 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333437', 'tblTempUsageDetail_20' ) end [2025-01-26 09:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:33:21] Production.INFO: ==28799== Releasing lock... [2025-01-26 09:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:34:05 [end_date_ymd] => 2025-01-26 09:34:05 [RateCDR] => 1 ) [2025-01-26 09:34: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-01-26 06:34:05' and `end` < '2025-01-26 09:34: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-01-26 09:34:19] Production.INFO: count ==140 [2025-01-26 09:34:19] Production.ERROR: pbx CDR StartTime 2025-01-26 06:34:05 - End Time 2025-01-26 09:34:05 [2025-01-26 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333442', 'tblTempUsageDetail_20' ) start [2025-01-26 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333442', 'tblTempUsageDetail_20' ) end [2025-01-26 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333442', 'tblTempVendorCDR_20' ) start [2025-01-26 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333442', 'tblTempVendorCDR_20' ) end [2025-01-26 09:34:19] Production.INFO: ProcessCDR(1,14333442,1,1,2) [2025-01-26 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333442', 'tblTempUsageDetail_20' ) start [2025-01-26 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333442', 'tblTempUsageDetail_20' ) end [2025-01-26 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:34:24] Production.INFO: ==28874== Releasing lock... [2025-01-26 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:34:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:35:05 [end_date_ymd] => 2025-01-26 09:35:05 [RateCDR] => 1 ) [2025-01-26 09:35: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-01-26 06:35:05' and `end` < '2025-01-26 09:35: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-01-26 09:35:17] Production.INFO: count ==140 [2025-01-26 09:35:17] Production.ERROR: pbx CDR StartTime 2025-01-26 06:35:05 - End Time 2025-01-26 09:35:05 [2025-01-26 09:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333447', 'tblTempUsageDetail_20' ) start [2025-01-26 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333447', 'tblTempUsageDetail_20' ) end [2025-01-26 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333447', 'tblTempVendorCDR_20' ) start [2025-01-26 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333447', 'tblTempVendorCDR_20' ) end [2025-01-26 09:35:17] Production.INFO: ProcessCDR(1,14333447,1,1,2) [2025-01-26 09:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333447', 'tblTempUsageDetail_20' ) start [2025-01-26 09:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333447', 'tblTempUsageDetail_20' ) end [2025-01-26 09:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:35:20] Production.INFO: ==28990== Releasing lock... [2025-01-26 09:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:35:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:36:05 [end_date_ymd] => 2025-01-26 09:36:05 [RateCDR] => 1 ) [2025-01-26 09:36: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-01-26 06:36:05' and `end` < '2025-01-26 09:36: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-01-26 09:36:18] Production.INFO: count ==140 [2025-01-26 09:36:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:36:05 - End Time 2025-01-26 09:36:05 [2025-01-26 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333452', 'tblTempUsageDetail_20' ) start [2025-01-26 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333452', 'tblTempUsageDetail_20' ) end [2025-01-26 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333452', 'tblTempVendorCDR_20' ) start [2025-01-26 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333452', 'tblTempVendorCDR_20' ) end [2025-01-26 09:36:18] Production.INFO: ProcessCDR(1,14333452,1,1,2) [2025-01-26 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333452', 'tblTempUsageDetail_20' ) start [2025-01-26 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333452', 'tblTempUsageDetail_20' ) end [2025-01-26 09:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:36:21] Production.INFO: ==29065== Releasing lock... [2025-01-26 09:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:37:05 [end_date_ymd] => 2025-01-26 09:37:05 [RateCDR] => 1 ) [2025-01-26 09:37: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-01-26 06:37:05' and `end` < '2025-01-26 09:37: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-01-26 09:37:17] Production.INFO: count ==140 [2025-01-26 09:37:17] Production.ERROR: pbx CDR StartTime 2025-01-26 06:37:05 - End Time 2025-01-26 09:37:05 [2025-01-26 09:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333457', 'tblTempUsageDetail_20' ) start [2025-01-26 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333457', 'tblTempUsageDetail_20' ) end [2025-01-26 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333457', 'tblTempVendorCDR_20' ) start [2025-01-26 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333457', 'tblTempVendorCDR_20' ) end [2025-01-26 09:37:17] Production.INFO: ProcessCDR(1,14333457,1,1,2) [2025-01-26 09:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333457', 'tblTempUsageDetail_20' ) start [2025-01-26 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333457', 'tblTempUsageDetail_20' ) end [2025-01-26 09:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:37:21] Production.INFO: ==29141== Releasing lock... [2025-01-26 09:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:38:06 [end_date_ymd] => 2025-01-26 09:38:06 [RateCDR] => 1 ) [2025-01-26 09:38: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-01-26 06:38:06' and `end` < '2025-01-26 09:38: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-01-26 09:38:19] Production.INFO: count ==140 [2025-01-26 09:38:19] Production.ERROR: pbx CDR StartTime 2025-01-26 06:38:06 - End Time 2025-01-26 09:38:06 [2025-01-26 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333462', 'tblTempUsageDetail_20' ) start [2025-01-26 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333462', 'tblTempUsageDetail_20' ) end [2025-01-26 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333462', 'tblTempVendorCDR_20' ) start [2025-01-26 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333462', 'tblTempVendorCDR_20' ) end [2025-01-26 09:38:19] Production.INFO: ProcessCDR(1,14333462,1,1,2) [2025-01-26 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333462', 'tblTempUsageDetail_20' ) start [2025-01-26 09:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333462', 'tblTempUsageDetail_20' ) end [2025-01-26 09:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:38:22] Production.INFO: ==29220== Releasing lock... [2025-01-26 09:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:38:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:39:04 [end_date_ymd] => 2025-01-26 09:39:04 [RateCDR] => 1 ) [2025-01-26 09:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 06:39:04' and `end` < '2025-01-26 09:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 09:39:17] Production.INFO: count ==140 [2025-01-26 09:39:17] Production.ERROR: pbx CDR StartTime 2025-01-26 06:39:04 - End Time 2025-01-26 09:39:04 [2025-01-26 09:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333467', 'tblTempUsageDetail_20' ) start [2025-01-26 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333467', 'tblTempUsageDetail_20' ) end [2025-01-26 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333467', 'tblTempVendorCDR_20' ) start [2025-01-26 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333467', 'tblTempVendorCDR_20' ) end [2025-01-26 09:39:17] Production.INFO: ProcessCDR(1,14333467,1,1,2) [2025-01-26 09:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333467', 'tblTempUsageDetail_20' ) start [2025-01-26 09:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333467', 'tblTempUsageDetail_20' ) end [2025-01-26 09:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:39:20] Production.INFO: ==29292== Releasing lock... [2025-01-26 09:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:39:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-26 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:40:06 [end_date_ymd] => 2025-01-26 09:40:06 [RateCDR] => 1 ) [2025-01-26 09:40: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-01-26 06:40:06' and `end` < '2025-01-26 09:40: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-01-26 09:40:18] Production.INFO: count ==161 [2025-01-26 09:40:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:40:06 - End Time 2025-01-26 09:40:06 [2025-01-26 09:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333473', 'tblTempUsageDetail_20' ) start [2025-01-26 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333473', 'tblTempUsageDetail_20' ) end [2025-01-26 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333473', 'tblTempVendorCDR_20' ) start [2025-01-26 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333473', 'tblTempVendorCDR_20' ) end [2025-01-26 09:40:18] Production.INFO: ProcessCDR(1,14333473,1,1,2) [2025-01-26 09:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333473', 'tblTempUsageDetail_20' ) start [2025-01-26 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333473', 'tblTempUsageDetail_20' ) end [2025-01-26 09:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:40:23] Production.INFO: ==29373== Releasing lock... [2025-01-26 09:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:40:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:41:05 [end_date_ymd] => 2025-01-26 09:41:05 [RateCDR] => 1 ) [2025-01-26 09:41: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-01-26 06:41:05' and `end` < '2025-01-26 09:41: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-01-26 09:41:18] Production.INFO: count ==170 [2025-01-26 09:41:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:41:05 - End Time 2025-01-26 09:41:05 [2025-01-26 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333478', 'tblTempUsageDetail_20' ) start [2025-01-26 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333478', 'tblTempUsageDetail_20' ) end [2025-01-26 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333478', 'tblTempVendorCDR_20' ) start [2025-01-26 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333478', 'tblTempVendorCDR_20' ) end [2025-01-26 09:41:18] Production.INFO: ProcessCDR(1,14333478,1,1,2) [2025-01-26 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333478', 'tblTempUsageDetail_20' ) start [2025-01-26 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333478', 'tblTempUsageDetail_20' ) end [2025-01-26 09:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:41:21] Production.INFO: ==29456== Releasing lock... [2025-01-26 09:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:42:05 [end_date_ymd] => 2025-01-26 09:42:05 [RateCDR] => 1 ) [2025-01-26 09:42: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-01-26 06:42:05' and `end` < '2025-01-26 09:42: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-01-26 09:42:19] Production.INFO: count ==170 [2025-01-26 09:42:19] Production.ERROR: pbx CDR StartTime 2025-01-26 06:42:05 - End Time 2025-01-26 09:42:05 [2025-01-26 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333483', 'tblTempUsageDetail_20' ) start [2025-01-26 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333483', 'tblTempUsageDetail_20' ) end [2025-01-26 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333483', 'tblTempVendorCDR_20' ) start [2025-01-26 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333483', 'tblTempVendorCDR_20' ) end [2025-01-26 09:42:19] Production.INFO: ProcessCDR(1,14333483,1,1,2) [2025-01-26 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333483', 'tblTempUsageDetail_20' ) start [2025-01-26 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333483', 'tblTempUsageDetail_20' ) end [2025-01-26 09:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:42:22] Production.INFO: ==29528== Releasing lock... [2025-01-26 09:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:42:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:43:05 [end_date_ymd] => 2025-01-26 09:43:05 [RateCDR] => 1 ) [2025-01-26 09:43: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-01-26 06:43:05' and `end` < '2025-01-26 09:43: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-01-26 09:43:17] Production.INFO: count ==177 [2025-01-26 09:43:17] Production.ERROR: pbx CDR StartTime 2025-01-26 06:43:05 - End Time 2025-01-26 09:43:05 [2025-01-26 09:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333488', 'tblTempUsageDetail_20' ) start [2025-01-26 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333488', 'tblTempUsageDetail_20' ) end [2025-01-26 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333488', 'tblTempVendorCDR_20' ) start [2025-01-26 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333488', 'tblTempVendorCDR_20' ) end [2025-01-26 09:43:17] Production.INFO: ProcessCDR(1,14333488,1,1,2) [2025-01-26 09:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333488', 'tblTempUsageDetail_20' ) start [2025-01-26 09:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333488', 'tblTempUsageDetail_20' ) end [2025-01-26 09:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:43:21] Production.INFO: ==29603== Releasing lock... [2025-01-26 09:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:44:05 [end_date_ymd] => 2025-01-26 09:44:05 [RateCDR] => 1 ) [2025-01-26 09:44: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-01-26 06:44:05' and `end` < '2025-01-26 09:44: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-01-26 09:44:19] Production.INFO: count ==178 [2025-01-26 09:44:19] Production.ERROR: pbx CDR StartTime 2025-01-26 06:44:05 - End Time 2025-01-26 09:44:05 [2025-01-26 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333493', 'tblTempUsageDetail_20' ) start [2025-01-26 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333493', 'tblTempUsageDetail_20' ) end [2025-01-26 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333493', 'tblTempVendorCDR_20' ) start [2025-01-26 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333493', 'tblTempVendorCDR_20' ) end [2025-01-26 09:44:19] Production.INFO: ProcessCDR(1,14333493,1,1,2) [2025-01-26 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333493', 'tblTempUsageDetail_20' ) start [2025-01-26 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333493', 'tblTempUsageDetail_20' ) end [2025-01-26 09:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:44:22] Production.INFO: ==29677== Releasing lock... [2025-01-26 09:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:44:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:45:05 [end_date_ymd] => 2025-01-26 09:45:05 [RateCDR] => 1 ) [2025-01-26 09:45: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-01-26 06:45:05' and `end` < '2025-01-26 09:45: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-01-26 09:45:18] Production.INFO: count ==178 [2025-01-26 09:45:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:45:05 - End Time 2025-01-26 09:45:05 [2025-01-26 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333498', 'tblTempUsageDetail_20' ) start [2025-01-26 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333498', 'tblTempUsageDetail_20' ) end [2025-01-26 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333498', 'tblTempVendorCDR_20' ) start [2025-01-26 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333498', 'tblTempVendorCDR_20' ) end [2025-01-26 09:45:18] Production.INFO: ProcessCDR(1,14333498,1,1,2) [2025-01-26 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333498', 'tblTempUsageDetail_20' ) start [2025-01-26 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333498', 'tblTempUsageDetail_20' ) end [2025-01-26 09:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:45:21] Production.INFO: ==29754== Releasing lock... [2025-01-26 09:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:46:05 [end_date_ymd] => 2025-01-26 09:46:05 [RateCDR] => 1 ) [2025-01-26 09:46: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-01-26 06:46:05' and `end` < '2025-01-26 09:46: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-01-26 09:46:18] Production.INFO: count ==178 [2025-01-26 09:46:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:46:05 - End Time 2025-01-26 09:46:05 [2025-01-26 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333503', 'tblTempUsageDetail_20' ) start [2025-01-26 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333503', 'tblTempUsageDetail_20' ) end [2025-01-26 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333503', 'tblTempVendorCDR_20' ) start [2025-01-26 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333503', 'tblTempVendorCDR_20' ) end [2025-01-26 09:46:18] Production.INFO: ProcessCDR(1,14333503,1,1,2) [2025-01-26 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333503', 'tblTempUsageDetail_20' ) start [2025-01-26 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333503', 'tblTempUsageDetail_20' ) end [2025-01-26 09:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:46:21] Production.INFO: ==29829== Releasing lock... [2025-01-26 09:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 09:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:47:04 [end_date_ymd] => 2025-01-26 09:47:04 [RateCDR] => 1 ) [2025-01-26 09:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 06:47:04' and `end` < '2025-01-26 09:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 09:47:17] Production.INFO: count ==178 [2025-01-26 09:47:17] Production.ERROR: pbx CDR StartTime 2025-01-26 06:47:04 - End Time 2025-01-26 09:47:04 [2025-01-26 09:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333508', 'tblTempUsageDetail_20' ) start [2025-01-26 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333508', 'tblTempUsageDetail_20' ) end [2025-01-26 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333508', 'tblTempVendorCDR_20' ) start [2025-01-26 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333508', 'tblTempVendorCDR_20' ) end [2025-01-26 09:47:17] Production.INFO: ProcessCDR(1,14333508,1,1,2) [2025-01-26 09:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333508', 'tblTempUsageDetail_20' ) start [2025-01-26 09:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333508', 'tblTempUsageDetail_20' ) end [2025-01-26 09:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:47:20] Production.INFO: ==29902== Releasing lock... [2025-01-26 09:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:47:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:48:05 [end_date_ymd] => 2025-01-26 09:48:05 [RateCDR] => 1 ) [2025-01-26 09:48: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-01-26 06:48:05' and `end` < '2025-01-26 09:48: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-01-26 09:48:17] Production.INFO: count ==182 [2025-01-26 09:48:17] Production.ERROR: pbx CDR StartTime 2025-01-26 06:48:05 - End Time 2025-01-26 09:48:05 [2025-01-26 09:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333513', 'tblTempUsageDetail_20' ) start [2025-01-26 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333513', 'tblTempUsageDetail_20' ) end [2025-01-26 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333513', 'tblTempVendorCDR_20' ) start [2025-01-26 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333513', 'tblTempVendorCDR_20' ) end [2025-01-26 09:48:17] Production.INFO: ProcessCDR(1,14333513,1,1,2) [2025-01-26 09:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333513', 'tblTempUsageDetail_20' ) start [2025-01-26 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333513', 'tblTempUsageDetail_20' ) end [2025-01-26 09:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:48:22] Production.INFO: ==29976== Releasing lock... [2025-01-26 09:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:48:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:49:05 [end_date_ymd] => 2025-01-26 09:49:05 [RateCDR] => 1 ) [2025-01-26 09:49: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-01-26 06:49:05' and `end` < '2025-01-26 09:49: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-01-26 09:49:18] Production.INFO: count ==182 [2025-01-26 09:49:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:49:05 - End Time 2025-01-26 09:49:05 [2025-01-26 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333518', 'tblTempUsageDetail_20' ) start [2025-01-26 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333518', 'tblTempUsageDetail_20' ) end [2025-01-26 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333518', 'tblTempVendorCDR_20' ) start [2025-01-26 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333518', 'tblTempVendorCDR_20' ) end [2025-01-26 09:49:18] Production.INFO: ProcessCDR(1,14333518,1,1,2) [2025-01-26 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333518', 'tblTempUsageDetail_20' ) start [2025-01-26 09:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333518', 'tblTempUsageDetail_20' ) end [2025-01-26 09:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:49:21] Production.INFO: ==30052== Releasing lock... [2025-01-26 09:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:49:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-26 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:50:06 [end_date_ymd] => 2025-01-26 09:50:06 [RateCDR] => 1 ) [2025-01-26 09:50: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-01-26 06:50:06' and `end` < '2025-01-26 09:50: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-01-26 09:50:18] Production.INFO: count ==198 [2025-01-26 09:50:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:50:06 - End Time 2025-01-26 09:50:06 [2025-01-26 09:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333524', 'tblTempUsageDetail_20' ) start [2025-01-26 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333524', 'tblTempUsageDetail_20' ) end [2025-01-26 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333524', 'tblTempVendorCDR_20' ) start [2025-01-26 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333524', 'tblTempVendorCDR_20' ) end [2025-01-26 09:50:18] Production.INFO: ProcessCDR(1,14333524,1,1,2) [2025-01-26 09:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333524', 'tblTempUsageDetail_20' ) start [2025-01-26 09:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333524', 'tblTempUsageDetail_20' ) end [2025-01-26 09:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:50:21] Production.INFO: ==30126== Releasing lock... [2025-01-26 09:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:50:21] Production.INFO: 29 MB #Memory Used# [2025-01-26 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:51:05 [end_date_ymd] => 2025-01-26 09:51:05 [RateCDR] => 1 ) [2025-01-26 09:51: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-01-26 06:51:05' and `end` < '2025-01-26 09:51: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-01-26 09:51:17] Production.INFO: count ==207 [2025-01-26 09:51:17] Production.ERROR: pbx CDR StartTime 2025-01-26 06:51:05 - End Time 2025-01-26 09:51:05 [2025-01-26 09:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333529', 'tblTempUsageDetail_20' ) start [2025-01-26 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333529', 'tblTempUsageDetail_20' ) end [2025-01-26 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333529', 'tblTempVendorCDR_20' ) start [2025-01-26 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333529', 'tblTempVendorCDR_20' ) end [2025-01-26 09:51:17] Production.INFO: ProcessCDR(1,14333529,1,1,2) [2025-01-26 09:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333529', 'tblTempUsageDetail_20' ) start [2025-01-26 09:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333529', 'tblTempUsageDetail_20' ) end [2025-01-26 09:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:51:21] Production.INFO: ==30244== Releasing lock... [2025-01-26 09:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:51:21] Production.INFO: 29 MB #Memory Used# [2025-01-26 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:52:05 [end_date_ymd] => 2025-01-26 09:52:05 [RateCDR] => 1 ) [2025-01-26 09:52: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-01-26 06:52:05' and `end` < '2025-01-26 09:52: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-01-26 09:52:17] Production.INFO: count ==209 [2025-01-26 09:52:17] Production.ERROR: pbx CDR StartTime 2025-01-26 06:52:05 - End Time 2025-01-26 09:52:05 [2025-01-26 09:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333534', 'tblTempUsageDetail_20' ) start [2025-01-26 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333534', 'tblTempUsageDetail_20' ) end [2025-01-26 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333534', 'tblTempVendorCDR_20' ) start [2025-01-26 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333534', 'tblTempVendorCDR_20' ) end [2025-01-26 09:52:17] Production.INFO: ProcessCDR(1,14333534,1,1,2) [2025-01-26 09:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333534', 'tblTempUsageDetail_20' ) start [2025-01-26 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333534', 'tblTempUsageDetail_20' ) end [2025-01-26 09:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:52:21] Production.INFO: ==30322== Releasing lock... [2025-01-26 09:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:52:21] Production.INFO: 29 MB #Memory Used# [2025-01-26 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:53:05 [end_date_ymd] => 2025-01-26 09:53:05 [RateCDR] => 1 ) [2025-01-26 09:53: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-01-26 06:53:05' and `end` < '2025-01-26 09:53: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-01-26 09:53:19] Production.INFO: count ==209 [2025-01-26 09:53:19] Production.ERROR: pbx CDR StartTime 2025-01-26 06:53:05 - End Time 2025-01-26 09:53:05 [2025-01-26 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333539', 'tblTempUsageDetail_20' ) start [2025-01-26 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333539', 'tblTempUsageDetail_20' ) end [2025-01-26 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333539', 'tblTempVendorCDR_20' ) start [2025-01-26 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333539', 'tblTempVendorCDR_20' ) end [2025-01-26 09:53:19] Production.INFO: ProcessCDR(1,14333539,1,1,2) [2025-01-26 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333539', 'tblTempUsageDetail_20' ) start [2025-01-26 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333539', 'tblTempUsageDetail_20' ) end [2025-01-26 09:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:53:22] Production.INFO: ==30396== Releasing lock... [2025-01-26 09:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:53:22] Production.INFO: 29 MB #Memory Used# [2025-01-26 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:54:06 [end_date_ymd] => 2025-01-26 09:54:06 [RateCDR] => 1 ) [2025-01-26 09:54: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-01-26 06:54:06' and `end` < '2025-01-26 09:54: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-01-26 09:54:19] Production.INFO: count ==213 [2025-01-26 09:54:19] Production.ERROR: pbx CDR StartTime 2025-01-26 06:54:06 - End Time 2025-01-26 09:54:06 [2025-01-26 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333544', 'tblTempUsageDetail_20' ) start [2025-01-26 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333544', 'tblTempUsageDetail_20' ) end [2025-01-26 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333544', 'tblTempVendorCDR_20' ) start [2025-01-26 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333544', 'tblTempVendorCDR_20' ) end [2025-01-26 09:54:19] Production.INFO: ProcessCDR(1,14333544,1,1,2) [2025-01-26 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333544', 'tblTempUsageDetail_20' ) start [2025-01-26 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333544', 'tblTempUsageDetail_20' ) end [2025-01-26 09:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:54:22] Production.INFO: ==30480== Releasing lock... [2025-01-26 09:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:54:22] Production.INFO: 29 MB #Memory Used# [2025-01-26 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:55:05 [end_date_ymd] => 2025-01-26 09:55:05 [RateCDR] => 1 ) [2025-01-26 09:55: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-01-26 06:55:05' and `end` < '2025-01-26 09:55: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-01-26 09:55:17] Production.INFO: count ==219 [2025-01-26 09:55:17] Production.ERROR: pbx CDR StartTime 2025-01-26 06:55:05 - End Time 2025-01-26 09:55:05 [2025-01-26 09:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333549', 'tblTempUsageDetail_20' ) start [2025-01-26 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333549', 'tblTempUsageDetail_20' ) end [2025-01-26 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333549', 'tblTempVendorCDR_20' ) start [2025-01-26 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333549', 'tblTempVendorCDR_20' ) end [2025-01-26 09:55:17] Production.INFO: ProcessCDR(1,14333549,1,1,2) [2025-01-26 09:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333549', 'tblTempUsageDetail_20' ) start [2025-01-26 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333549', 'tblTempUsageDetail_20' ) end [2025-01-26 09:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:55:22] Production.INFO: ==30553== Releasing lock... [2025-01-26 09:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:55:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-26 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:56:06 [end_date_ymd] => 2025-01-26 09:56:06 [RateCDR] => 1 ) [2025-01-26 09:56: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-01-26 06:56:06' and `end` < '2025-01-26 09:56: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-01-26 09:56:19] Production.INFO: count ==221 [2025-01-26 09:56:19] Production.ERROR: pbx CDR StartTime 2025-01-26 06:56:06 - End Time 2025-01-26 09:56:06 [2025-01-26 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333554', 'tblTempUsageDetail_20' ) start [2025-01-26 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333554', 'tblTempUsageDetail_20' ) end [2025-01-26 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333554', 'tblTempVendorCDR_20' ) start [2025-01-26 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333554', 'tblTempVendorCDR_20' ) end [2025-01-26 09:56:19] Production.INFO: ProcessCDR(1,14333554,1,1,2) [2025-01-26 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333554', 'tblTempUsageDetail_20' ) start [2025-01-26 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333554', 'tblTempUsageDetail_20' ) end [2025-01-26 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:56:24] Production.INFO: ==30629== Releasing lock... [2025-01-26 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:56:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-26 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:57:05 [end_date_ymd] => 2025-01-26 09:57:05 [RateCDR] => 1 ) [2025-01-26 09:57: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-01-26 06:57:05' and `end` < '2025-01-26 09:57: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-01-26 09:57:18] Production.INFO: count ==223 [2025-01-26 09:57:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:57:05 - End Time 2025-01-26 09:57:05 [2025-01-26 09:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333559', 'tblTempUsageDetail_20' ) start [2025-01-26 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333559', 'tblTempUsageDetail_20' ) end [2025-01-26 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333559', 'tblTempVendorCDR_20' ) start [2025-01-26 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333559', 'tblTempVendorCDR_20' ) end [2025-01-26 09:57:18] Production.INFO: ProcessCDR(1,14333559,1,1,2) [2025-01-26 09:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333559', 'tblTempUsageDetail_20' ) start [2025-01-26 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333559', 'tblTempUsageDetail_20' ) end [2025-01-26 09:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:57:22] Production.INFO: ==30705== Releasing lock... [2025-01-26 09:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:57:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-26 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:58:05 [end_date_ymd] => 2025-01-26 09:58:05 [RateCDR] => 1 ) [2025-01-26 09:58: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-01-26 06:58:05' and `end` < '2025-01-26 09:58: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-01-26 09:58:18] Production.INFO: count ==223 [2025-01-26 09:58:18] Production.ERROR: pbx CDR StartTime 2025-01-26 06:58:05 - End Time 2025-01-26 09:58:05 [2025-01-26 09:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333564', 'tblTempUsageDetail_20' ) start [2025-01-26 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333564', 'tblTempUsageDetail_20' ) end [2025-01-26 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333564', 'tblTempVendorCDR_20' ) start [2025-01-26 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333564', 'tblTempVendorCDR_20' ) end [2025-01-26 09:58:18] Production.INFO: ProcessCDR(1,14333564,1,1,2) [2025-01-26 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333564', 'tblTempUsageDetail_20' ) start [2025-01-26 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333564', 'tblTempUsageDetail_20' ) end [2025-01-26 09:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:58:21] Production.INFO: ==30782== Releasing lock... [2025-01-26 09:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:58:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-26 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 06:59:04 [end_date_ymd] => 2025-01-26 09:59:04 [RateCDR] => 1 ) [2025-01-26 09:59: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-01-26 06:59:04' and `end` < '2025-01-26 09:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 09:59:17] Production.INFO: count ==223 [2025-01-26 09:59:17] Production.ERROR: pbx CDR StartTime 2025-01-26 06:59:04 - End Time 2025-01-26 09:59:04 [2025-01-26 09:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333569', 'tblTempUsageDetail_20' ) start [2025-01-26 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333569', 'tblTempUsageDetail_20' ) end [2025-01-26 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333569', 'tblTempVendorCDR_20' ) start [2025-01-26 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333569', 'tblTempVendorCDR_20' ) end [2025-01-26 09:59:17] Production.INFO: ProcessCDR(1,14333569,1,1,2) [2025-01-26 09:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 09:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 09:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333569', 'tblTempUsageDetail_20' ) start [2025-01-26 09:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333569', 'tblTempUsageDetail_20' ) end [2025-01-26 09:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 09:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 09:59:20] Production.INFO: ==30862== Releasing lock... [2025-01-26 09:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 09:59:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-26 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:00:06 [end_date_ymd] => 2025-01-26 10:00:06 [RateCDR] => 1 ) [2025-01-26 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-01-26 07:00:06' and `end` < '2025-01-26 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-01-26 10:00:19] Production.INFO: count ==244 [2025-01-26 10:00:19] Production.ERROR: pbx CDR StartTime 2025-01-26 07:00:06 - End Time 2025-01-26 10:00:06 [2025-01-26 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333575', 'tblTempUsageDetail_20' ) start [2025-01-26 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333575', 'tblTempUsageDetail_20' ) end [2025-01-26 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333575', 'tblTempVendorCDR_20' ) start [2025-01-26 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333575', 'tblTempVendorCDR_20' ) end [2025-01-26 10:00:19] Production.INFO: ProcessCDR(1,14333575,1,1,2) [2025-01-26 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333575', 'tblTempUsageDetail_20' ) start [2025-01-26 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333575', 'tblTempUsageDetail_20' ) end [2025-01-26 10:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:00:22] Production.INFO: ==30961== Releasing lock... [2025-01-26 10:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:00:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-26 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:01:05 [end_date_ymd] => 2025-01-26 10:01:05 [RateCDR] => 1 ) [2025-01-26 10:01: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-01-26 07:01:05' and `end` < '2025-01-26 10:01: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-01-26 10:01:18] Production.INFO: count ==250 [2025-01-26 10:01:19] Production.ERROR: pbx CDR StartTime 2025-01-26 07:01:05 - End Time 2025-01-26 10:01:05 [2025-01-26 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333580', 'tblTempUsageDetail_20' ) start [2025-01-26 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333580', 'tblTempUsageDetail_20' ) end [2025-01-26 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333580', 'tblTempVendorCDR_20' ) start [2025-01-26 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333580', 'tblTempVendorCDR_20' ) end [2025-01-26 10:01:19] Production.INFO: ProcessCDR(1,14333580,1,1,2) [2025-01-26 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333580', 'tblTempUsageDetail_20' ) start [2025-01-26 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333580', 'tblTempUsageDetail_20' ) end [2025-01-26 10:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:01:22] Production.INFO: ==31053== Releasing lock... [2025-01-26 10:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:01:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-26 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:02:05 [end_date_ymd] => 2025-01-26 10:02:05 [RateCDR] => 1 ) [2025-01-26 10:02: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-01-26 07:02:05' and `end` < '2025-01-26 10:02: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-01-26 10:02:18] Production.INFO: count ==250 [2025-01-26 10:02:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:02:05 - End Time 2025-01-26 10:02:05 [2025-01-26 10:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333585', 'tblTempUsageDetail_20' ) start [2025-01-26 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333585', 'tblTempUsageDetail_20' ) end [2025-01-26 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333585', 'tblTempVendorCDR_20' ) start [2025-01-26 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333585', 'tblTempVendorCDR_20' ) end [2025-01-26 10:02:18] Production.INFO: ProcessCDR(1,14333585,1,1,2) [2025-01-26 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333585', 'tblTempUsageDetail_20' ) start [2025-01-26 10:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333585', 'tblTempUsageDetail_20' ) end [2025-01-26 10:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:02:21] Production.INFO: ==31139== Releasing lock... [2025-01-26 10:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:02:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-26 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:03:05 [end_date_ymd] => 2025-01-26 10:03:05 [RateCDR] => 1 ) [2025-01-26 10:03: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-01-26 07:03:05' and `end` < '2025-01-26 10:03: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-01-26 10:03:18] Production.INFO: count ==250 [2025-01-26 10:03:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:03:05 - End Time 2025-01-26 10:03:05 [2025-01-26 10:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333590', 'tblTempUsageDetail_20' ) start [2025-01-26 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333590', 'tblTempUsageDetail_20' ) end [2025-01-26 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333590', 'tblTempVendorCDR_20' ) start [2025-01-26 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333590', 'tblTempVendorCDR_20' ) end [2025-01-26 10:03:18] Production.INFO: ProcessCDR(1,14333590,1,1,2) [2025-01-26 10:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333590', 'tblTempUsageDetail_20' ) start [2025-01-26 10:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333590', 'tblTempUsageDetail_20' ) end [2025-01-26 10:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:03:21] Production.INFO: ==31218== Releasing lock... [2025-01-26 10:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:03:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-26 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:04:06 [end_date_ymd] => 2025-01-26 10:04:06 [RateCDR] => 1 ) [2025-01-26 10:04: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-01-26 07:04:06' and `end` < '2025-01-26 10:04: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-01-26 10:04:18] Production.INFO: count ==254 [2025-01-26 10:04:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:04:06 - End Time 2025-01-26 10:04:06 [2025-01-26 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333594', 'tblTempUsageDetail_20' ) start [2025-01-26 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333594', 'tblTempUsageDetail_20' ) end [2025-01-26 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333594', 'tblTempVendorCDR_20' ) start [2025-01-26 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333594', 'tblTempVendorCDR_20' ) end [2025-01-26 10:04:18] Production.INFO: ProcessCDR(1,14333594,1,1,2) [2025-01-26 10:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333594', 'tblTempUsageDetail_20' ) start [2025-01-26 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333594', 'tblTempUsageDetail_20' ) end [2025-01-26 10:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:04:24] Production.INFO: ==31301== Releasing lock... [2025-01-26 10:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:04:24] Production.INFO: 29.75 MB #Memory Used# [2025-01-26 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:05:06 [end_date_ymd] => 2025-01-26 10:05:06 [RateCDR] => 1 ) [2025-01-26 10:05: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-01-26 07:05:06' and `end` < '2025-01-26 10:05: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-01-26 10:05:18] Production.INFO: count ==256 [2025-01-26 10:05:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:05:06 - End Time 2025-01-26 10:05:06 [2025-01-26 10:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333600', 'tblTempUsageDetail_20' ) start [2025-01-26 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333600', 'tblTempUsageDetail_20' ) end [2025-01-26 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333600', 'tblTempVendorCDR_20' ) start [2025-01-26 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333600', 'tblTempVendorCDR_20' ) end [2025-01-26 10:05:18] Production.INFO: ProcessCDR(1,14333600,1,1,2) [2025-01-26 10:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333600', 'tblTempUsageDetail_20' ) start [2025-01-26 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333600', 'tblTempUsageDetail_20' ) end [2025-01-26 10:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:05:23] Production.INFO: ==31386== Releasing lock... [2025-01-26 10:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:05:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-26 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:06:06 [end_date_ymd] => 2025-01-26 10:06:06 [RateCDR] => 1 ) [2025-01-26 10:06: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-01-26 07:06:06' and `end` < '2025-01-26 10:06: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-01-26 10:06:19] Production.INFO: count ==258 [2025-01-26 10:06:19] Production.ERROR: pbx CDR StartTime 2025-01-26 07:06:06 - End Time 2025-01-26 10:06:06 [2025-01-26 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333605', 'tblTempUsageDetail_20' ) start [2025-01-26 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333605', 'tblTempUsageDetail_20' ) end [2025-01-26 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333605', 'tblTempVendorCDR_20' ) start [2025-01-26 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333605', 'tblTempVendorCDR_20' ) end [2025-01-26 10:06:19] Production.INFO: ProcessCDR(1,14333605,1,1,2) [2025-01-26 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333605', 'tblTempUsageDetail_20' ) start [2025-01-26 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333605', 'tblTempUsageDetail_20' ) end [2025-01-26 10:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:06:24] Production.INFO: ==31506== Releasing lock... [2025-01-26 10:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:06:24] Production.INFO: 29.75 MB #Memory Used# [2025-01-26 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:07:05 [end_date_ymd] => 2025-01-26 10:07:05 [RateCDR] => 1 ) [2025-01-26 10:07: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-01-26 07:07:05' and `end` < '2025-01-26 10:07: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-01-26 10:07:19] Production.INFO: count ==262 [2025-01-26 10:07:19] Production.ERROR: pbx CDR StartTime 2025-01-26 07:07:05 - End Time 2025-01-26 10:07:05 [2025-01-26 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333610', 'tblTempUsageDetail_20' ) start [2025-01-26 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333610', 'tblTempUsageDetail_20' ) end [2025-01-26 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333610', 'tblTempVendorCDR_20' ) start [2025-01-26 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333610', 'tblTempVendorCDR_20' ) end [2025-01-26 10:07:19] Production.INFO: ProcessCDR(1,14333610,1,1,2) [2025-01-26 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333610', 'tblTempUsageDetail_20' ) start [2025-01-26 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333610', 'tblTempUsageDetail_20' ) end [2025-01-26 10:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:07:24] Production.INFO: ==31588== Releasing lock... [2025-01-26 10:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:07:24] Production.INFO: 30 MB #Memory Used# [2025-01-26 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:08:05 [end_date_ymd] => 2025-01-26 10:08:05 [RateCDR] => 1 ) [2025-01-26 10:08: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-01-26 07:08:05' and `end` < '2025-01-26 10:08: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-01-26 10:08:18] Production.INFO: count ==273 [2025-01-26 10:08:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:08:05 - End Time 2025-01-26 10:08:05 [2025-01-26 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333615', 'tblTempUsageDetail_20' ) start [2025-01-26 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333615', 'tblTempUsageDetail_20' ) end [2025-01-26 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333615', 'tblTempVendorCDR_20' ) start [2025-01-26 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333615', 'tblTempVendorCDR_20' ) end [2025-01-26 10:08:18] Production.INFO: ProcessCDR(1,14333615,1,1,2) [2025-01-26 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333615', 'tblTempUsageDetail_20' ) start [2025-01-26 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333615', 'tblTempUsageDetail_20' ) end [2025-01-26 10:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:08:23] Production.INFO: ==31672== Releasing lock... [2025-01-26 10:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:08:23] Production.INFO: 30 MB #Memory Used# [2025-01-26 10:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:09:04 [end_date_ymd] => 2025-01-26 10:09:04 [RateCDR] => 1 ) [2025-01-26 10:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 07:09:04' and `end` < '2025-01-26 10:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 10:09:17] Production.INFO: count ==277 [2025-01-26 10:09:17] Production.ERROR: pbx CDR StartTime 2025-01-26 07:09:04 - End Time 2025-01-26 10:09:04 [2025-01-26 10:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333619', 'tblTempUsageDetail_20' ) start [2025-01-26 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333619', 'tblTempUsageDetail_20' ) end [2025-01-26 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333619', 'tblTempVendorCDR_20' ) start [2025-01-26 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333619', 'tblTempVendorCDR_20' ) end [2025-01-26 10:09:17] Production.INFO: ProcessCDR(1,14333619,1,1,2) [2025-01-26 10:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333619', 'tblTempUsageDetail_20' ) start [2025-01-26 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333619', 'tblTempUsageDetail_20' ) end [2025-01-26 10:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:09:22] Production.INFO: ==31752== Releasing lock... [2025-01-26 10:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:09:22] Production.INFO: 30 MB #Memory Used# [2025-01-26 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:10:06 [end_date_ymd] => 2025-01-26 10:10:06 [RateCDR] => 1 ) [2025-01-26 10:10: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-01-26 07:10:06' and `end` < '2025-01-26 10:10: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-01-26 10:10:19] Production.INFO: count ==283 [2025-01-26 10:10:19] Production.ERROR: pbx CDR StartTime 2025-01-26 07:10:06 - End Time 2025-01-26 10:10:06 [2025-01-26 10:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333625', 'tblTempUsageDetail_20' ) start [2025-01-26 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333625', 'tblTempUsageDetail_20' ) end [2025-01-26 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333625', 'tblTempVendorCDR_20' ) start [2025-01-26 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333625', 'tblTempVendorCDR_20' ) end [2025-01-26 10:10:19] Production.INFO: ProcessCDR(1,14333625,1,1,2) [2025-01-26 10:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333625', 'tblTempUsageDetail_20' ) start [2025-01-26 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333625', 'tblTempUsageDetail_20' ) end [2025-01-26 10:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:10:24] Production.INFO: ==31840== Releasing lock... [2025-01-26 10:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:10:24] Production.INFO: 30.25 MB #Memory Used# [2025-01-26 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:11:05 [end_date_ymd] => 2025-01-26 10:11:05 [RateCDR] => 1 ) [2025-01-26 10:11: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-01-26 07:11:05' and `end` < '2025-01-26 10:11: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-01-26 10:11:18] Production.INFO: count ==297 [2025-01-26 10:11:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:11:05 - End Time 2025-01-26 10:11:05 [2025-01-26 10:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333631', 'tblTempUsageDetail_20' ) start [2025-01-26 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333631', 'tblTempUsageDetail_20' ) end [2025-01-26 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333631', 'tblTempVendorCDR_20' ) start [2025-01-26 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333631', 'tblTempVendorCDR_20' ) end [2025-01-26 10:11:18] Production.INFO: ProcessCDR(1,14333631,1,1,2) [2025-01-26 10:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333631', 'tblTempUsageDetail_20' ) start [2025-01-26 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333631', 'tblTempUsageDetail_20' ) end [2025-01-26 10:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:11:23] Production.INFO: ==31923== Releasing lock... [2025-01-26 10:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:11:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-26 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:12:06 [end_date_ymd] => 2025-01-26 10:12:06 [RateCDR] => 1 ) [2025-01-26 10:12: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-01-26 07:12:06' and `end` < '2025-01-26 10:12: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-01-26 10:12:18] Production.INFO: count ==301 [2025-01-26 10:12:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:12:06 - End Time 2025-01-26 10:12:06 [2025-01-26 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333636', 'tblTempUsageDetail_20' ) start [2025-01-26 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333636', 'tblTempUsageDetail_20' ) end [2025-01-26 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333636', 'tblTempVendorCDR_20' ) start [2025-01-26 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333636', 'tblTempVendorCDR_20' ) end [2025-01-26 10:12:18] Production.INFO: ProcessCDR(1,14333636,1,1,2) [2025-01-26 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333636', 'tblTempUsageDetail_20' ) start [2025-01-26 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333636', 'tblTempUsageDetail_20' ) end [2025-01-26 10:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:12:23] Production.INFO: ==32004== Releasing lock... [2025-01-26 10:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:12:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-26 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:13:05 [end_date_ymd] => 2025-01-26 10:13:05 [RateCDR] => 1 ) [2025-01-26 10:13: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-01-26 07:13:05' and `end` < '2025-01-26 10:13: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-01-26 10:13:18] Production.INFO: count ==303 [2025-01-26 10:13:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:13:05 - End Time 2025-01-26 10:13:05 [2025-01-26 10:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333641', 'tblTempUsageDetail_20' ) start [2025-01-26 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333641', 'tblTempUsageDetail_20' ) end [2025-01-26 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333641', 'tblTempVendorCDR_20' ) start [2025-01-26 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333641', 'tblTempVendorCDR_20' ) end [2025-01-26 10:13:18] Production.INFO: ProcessCDR(1,14333641,1,1,2) [2025-01-26 10:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333641', 'tblTempUsageDetail_20' ) start [2025-01-26 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333641', 'tblTempUsageDetail_20' ) end [2025-01-26 10:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:13:23] Production.INFO: ==32085== Releasing lock... [2025-01-26 10:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:13:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-26 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:14:06 [end_date_ymd] => 2025-01-26 10:14:06 [RateCDR] => 1 ) [2025-01-26 10:14: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-01-26 07:14:06' and `end` < '2025-01-26 10:14: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-01-26 10:14:20] Production.INFO: count ==305 [2025-01-26 10:14:20] Production.ERROR: pbx CDR StartTime 2025-01-26 07:14:06 - End Time 2025-01-26 10:14:06 [2025-01-26 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333646', 'tblTempUsageDetail_20' ) start [2025-01-26 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333646', 'tblTempUsageDetail_20' ) end [2025-01-26 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333646', 'tblTempVendorCDR_20' ) start [2025-01-26 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333646', 'tblTempVendorCDR_20' ) end [2025-01-26 10:14:20] Production.INFO: ProcessCDR(1,14333646,1,1,2) [2025-01-26 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333646', 'tblTempUsageDetail_20' ) start [2025-01-26 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333646', 'tblTempUsageDetail_20' ) end [2025-01-26 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:14:25] Production.INFO: ==32167== Releasing lock... [2025-01-26 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:14:25] Production.INFO: 30 MB #Memory Used# [2025-01-26 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:15:05 [end_date_ymd] => 2025-01-26 10:15:05 [RateCDR] => 1 ) [2025-01-26 10:15: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-01-26 07:15:05' and `end` < '2025-01-26 10:15: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-01-26 10:15:17] Production.INFO: count ==305 [2025-01-26 10:15:17] Production.ERROR: pbx CDR StartTime 2025-01-26 07:15:05 - End Time 2025-01-26 10:15:05 [2025-01-26 10:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333651', 'tblTempUsageDetail_20' ) start [2025-01-26 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333651', 'tblTempUsageDetail_20' ) end [2025-01-26 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333651', 'tblTempVendorCDR_20' ) start [2025-01-26 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333651', 'tblTempVendorCDR_20' ) end [2025-01-26 10:15:17] Production.INFO: ProcessCDR(1,14333651,1,1,2) [2025-01-26 10:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333651', 'tblTempUsageDetail_20' ) start [2025-01-26 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333651', 'tblTempUsageDetail_20' ) end [2025-01-26 10:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:15:21] Production.INFO: ==32253== Releasing lock... [2025-01-26 10:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:15:21] Production.INFO: 30 MB #Memory Used# [2025-01-26 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:16:06 [end_date_ymd] => 2025-01-26 10:16:06 [RateCDR] => 1 ) [2025-01-26 10:16: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-01-26 07:16:06' and `end` < '2025-01-26 10:16: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-01-26 10:16:20] Production.INFO: count ==305 [2025-01-26 10:16:20] Production.ERROR: pbx CDR StartTime 2025-01-26 07:16:06 - End Time 2025-01-26 10:16:06 [2025-01-26 10:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333656', 'tblTempUsageDetail_20' ) start [2025-01-26 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333656', 'tblTempUsageDetail_20' ) end [2025-01-26 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333656', 'tblTempVendorCDR_20' ) start [2025-01-26 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333656', 'tblTempVendorCDR_20' ) end [2025-01-26 10:16:20] Production.INFO: ProcessCDR(1,14333656,1,1,2) [2025-01-26 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333656', 'tblTempUsageDetail_20' ) start [2025-01-26 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333656', 'tblTempUsageDetail_20' ) end [2025-01-26 10:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:16:23] Production.INFO: ==32334== Releasing lock... [2025-01-26 10:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:16:23] Production.INFO: 30 MB #Memory Used# [2025-01-26 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:17:05 [end_date_ymd] => 2025-01-26 10:17:05 [RateCDR] => 1 ) [2025-01-26 10:17: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-01-26 07:17:05' and `end` < '2025-01-26 10:17: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-01-26 10:17:19] Production.INFO: count ==305 [2025-01-26 10:17:19] Production.ERROR: pbx CDR StartTime 2025-01-26 07:17:05 - End Time 2025-01-26 10:17:05 [2025-01-26 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333661', 'tblTempUsageDetail_20' ) start [2025-01-26 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333661', 'tblTempUsageDetail_20' ) end [2025-01-26 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333661', 'tblTempVendorCDR_20' ) start [2025-01-26 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333661', 'tblTempVendorCDR_20' ) end [2025-01-26 10:17:19] Production.INFO: ProcessCDR(1,14333661,1,1,2) [2025-01-26 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333661', 'tblTempUsageDetail_20' ) start [2025-01-26 10:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333661', 'tblTempUsageDetail_20' ) end [2025-01-26 10:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:17:22] Production.INFO: ==32415== Releasing lock... [2025-01-26 10:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:17:22] Production.INFO: 30 MB #Memory Used# [2025-01-26 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:18:05 [end_date_ymd] => 2025-01-26 10:18:05 [RateCDR] => 1 ) [2025-01-26 10:18: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-01-26 07:18:05' and `end` < '2025-01-26 10:18: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-01-26 10:18:18] Production.INFO: count ==305 [2025-01-26 10:18:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:18:05 - End Time 2025-01-26 10:18:05 [2025-01-26 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333666', 'tblTempUsageDetail_20' ) start [2025-01-26 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333666', 'tblTempUsageDetail_20' ) end [2025-01-26 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333666', 'tblTempVendorCDR_20' ) start [2025-01-26 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333666', 'tblTempVendorCDR_20' ) end [2025-01-26 10:18:18] Production.INFO: ProcessCDR(1,14333666,1,1,2) [2025-01-26 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333666', 'tblTempUsageDetail_20' ) start [2025-01-26 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333666', 'tblTempUsageDetail_20' ) end [2025-01-26 10:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:18:21] Production.INFO: ==32498== Releasing lock... [2025-01-26 10:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:18:21] Production.INFO: 30 MB #Memory Used# [2025-01-26 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:19:05 [end_date_ymd] => 2025-01-26 10:19:05 [RateCDR] => 1 ) [2025-01-26 10:19: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-01-26 07:19:05' and `end` < '2025-01-26 10:19: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-01-26 10:19:18] Production.INFO: count ==313 [2025-01-26 10:19:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:19:05 - End Time 2025-01-26 10:19:05 [2025-01-26 10:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333671', 'tblTempUsageDetail_20' ) start [2025-01-26 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333671', 'tblTempUsageDetail_20' ) end [2025-01-26 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333671', 'tblTempVendorCDR_20' ) start [2025-01-26 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333671', 'tblTempVendorCDR_20' ) end [2025-01-26 10:19:18] Production.INFO: ProcessCDR(1,14333671,1,1,2) [2025-01-26 10:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333671', 'tblTempUsageDetail_20' ) start [2025-01-26 10:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333671', 'tblTempUsageDetail_20' ) end [2025-01-26 10:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:19:22] Production.INFO: ==32586== Releasing lock... [2025-01-26 10:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:19:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-26 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:20:06 [end_date_ymd] => 2025-01-26 10:20:06 [RateCDR] => 1 ) [2025-01-26 10:20: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-01-26 07:20:06' and `end` < '2025-01-26 10:20: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-01-26 10:20:19] Production.INFO: count ==329 [2025-01-26 10:20:19] Production.ERROR: pbx CDR StartTime 2025-01-26 07:20:06 - End Time 2025-01-26 10:20:06 [2025-01-26 10:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333677', 'tblTempUsageDetail_20' ) start [2025-01-26 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333677', 'tblTempUsageDetail_20' ) end [2025-01-26 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333677', 'tblTempVendorCDR_20' ) start [2025-01-26 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333677', 'tblTempVendorCDR_20' ) end [2025-01-26 10:20:19] Production.INFO: ProcessCDR(1,14333677,1,1,2) [2025-01-26 10:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333677', 'tblTempUsageDetail_20' ) start [2025-01-26 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333677', 'tblTempUsageDetail_20' ) end [2025-01-26 10:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:20:23] Production.INFO: ==32675== Releasing lock... [2025-01-26 10:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:20:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-26 10:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:21:04 [end_date_ymd] => 2025-01-26 10:21:04 [RateCDR] => 1 ) [2025-01-26 10:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 07:21:04' and `end` < '2025-01-26 10:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 10:21:18] Production.INFO: count ==329 [2025-01-26 10:21:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:21:04 - End Time 2025-01-26 10:21:04 [2025-01-26 10:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333682', 'tblTempUsageDetail_20' ) start [2025-01-26 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333682', 'tblTempUsageDetail_20' ) end [2025-01-26 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333682', 'tblTempVendorCDR_20' ) start [2025-01-26 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333682', 'tblTempVendorCDR_20' ) end [2025-01-26 10:21:18] Production.INFO: ProcessCDR(1,14333682,1,1,2) [2025-01-26 10:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333682', 'tblTempUsageDetail_20' ) start [2025-01-26 10:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333682', 'tblTempUsageDetail_20' ) end [2025-01-26 10:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:21:21] Production.INFO: ==32762== Releasing lock... [2025-01-26 10:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:21:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-26 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:22:05 [end_date_ymd] => 2025-01-26 10:22:05 [RateCDR] => 1 ) [2025-01-26 10:22: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-01-26 07:22:05' and `end` < '2025-01-26 10:22: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-01-26 10:22:19] Production.INFO: count ==337 [2025-01-26 10:22:19] Production.ERROR: pbx CDR StartTime 2025-01-26 07:22:05 - End Time 2025-01-26 10:22:05 [2025-01-26 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333687', 'tblTempUsageDetail_20' ) start [2025-01-26 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333687', 'tblTempUsageDetail_20' ) end [2025-01-26 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333687', 'tblTempVendorCDR_20' ) start [2025-01-26 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333687', 'tblTempVendorCDR_20' ) end [2025-01-26 10:22:19] Production.INFO: ProcessCDR(1,14333687,1,1,2) [2025-01-26 10:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333687', 'tblTempUsageDetail_20' ) start [2025-01-26 10:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333687', 'tblTempUsageDetail_20' ) end [2025-01-26 10:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:22:22] Production.INFO: ==435== Releasing lock... [2025-01-26 10:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:22:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:23:05 [end_date_ymd] => 2025-01-26 10:23:05 [RateCDR] => 1 ) [2025-01-26 10:23: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-01-26 07:23:05' and `end` < '2025-01-26 10:23: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-01-26 10:23:19] Production.INFO: count ==339 [2025-01-26 10:23:19] Production.ERROR: pbx CDR StartTime 2025-01-26 07:23:05 - End Time 2025-01-26 10:23:05 [2025-01-26 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333692', 'tblTempUsageDetail_20' ) start [2025-01-26 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333692', 'tblTempUsageDetail_20' ) end [2025-01-26 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333692', 'tblTempVendorCDR_20' ) start [2025-01-26 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333692', 'tblTempVendorCDR_20' ) end [2025-01-26 10:23:19] Production.INFO: ProcessCDR(1,14333692,1,1,2) [2025-01-26 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333692', 'tblTempUsageDetail_20' ) start [2025-01-26 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333692', 'tblTempUsageDetail_20' ) end [2025-01-26 10:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:23:24] Production.INFO: ==524== Releasing lock... [2025-01-26 10:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:23:24] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:24:05 [end_date_ymd] => 2025-01-26 10:24:05 [RateCDR] => 1 ) [2025-01-26 10:24: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-01-26 07:24:05' and `end` < '2025-01-26 10:24: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-01-26 10:24:18] Production.INFO: count ==355 [2025-01-26 10:24:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:24:05 - End Time 2025-01-26 10:24:05 [2025-01-26 10:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333697', 'tblTempUsageDetail_20' ) start [2025-01-26 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333697', 'tblTempUsageDetail_20' ) end [2025-01-26 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333697', 'tblTempVendorCDR_20' ) start [2025-01-26 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333697', 'tblTempVendorCDR_20' ) end [2025-01-26 10:24:18] Production.INFO: ProcessCDR(1,14333697,1,1,2) [2025-01-26 10:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333697', 'tblTempUsageDetail_20' ) start [2025-01-26 10:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333697', 'tblTempUsageDetail_20' ) end [2025-01-26 10:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:24:21] Production.INFO: ==606== Releasing lock... [2025-01-26 10:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:24:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:25:05 [end_date_ymd] => 2025-01-26 10:25:05 [RateCDR] => 1 ) [2025-01-26 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 07:25:05' and `end` < '2025-01-26 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 10:25:18] Production.INFO: count ==355 [2025-01-26 10:25:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:25:05 - End Time 2025-01-26 10:25:05 [2025-01-26 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333702', 'tblTempUsageDetail_20' ) start [2025-01-26 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333702', 'tblTempUsageDetail_20' ) end [2025-01-26 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333702', 'tblTempVendorCDR_20' ) start [2025-01-26 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333702', 'tblTempVendorCDR_20' ) end [2025-01-26 10:25:18] Production.INFO: ProcessCDR(1,14333702,1,1,2) [2025-01-26 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333702', 'tblTempUsageDetail_20' ) start [2025-01-26 10:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333702', 'tblTempUsageDetail_20' ) end [2025-01-26 10:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:25:21] Production.INFO: ==717== Releasing lock... [2025-01-26 10:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:25:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:26:05 [end_date_ymd] => 2025-01-26 10:26:05 [RateCDR] => 1 ) [2025-01-26 10:26: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-01-26 07:26:05' and `end` < '2025-01-26 10:26: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-01-26 10:26:18] Production.INFO: count ==355 [2025-01-26 10:26:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:26:05 - End Time 2025-01-26 10:26:05 [2025-01-26 10:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333707', 'tblTempUsageDetail_20' ) start [2025-01-26 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333707', 'tblTempUsageDetail_20' ) end [2025-01-26 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333707', 'tblTempVendorCDR_20' ) start [2025-01-26 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333707', 'tblTempVendorCDR_20' ) end [2025-01-26 10:26:18] Production.INFO: ProcessCDR(1,14333707,1,1,2) [2025-01-26 10:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333707', 'tblTempUsageDetail_20' ) start [2025-01-26 10:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333707', 'tblTempUsageDetail_20' ) end [2025-01-26 10:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:26:21] Production.INFO: ==803== Releasing lock... [2025-01-26 10:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:26:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:27:05 [end_date_ymd] => 2025-01-26 10:27:05 [RateCDR] => 1 ) [2025-01-26 10:27: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-01-26 07:27:05' and `end` < '2025-01-26 10:27: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-01-26 10:27:19] Production.INFO: count ==355 [2025-01-26 10:27:19] Production.ERROR: pbx CDR StartTime 2025-01-26 07:27:05 - End Time 2025-01-26 10:27:05 [2025-01-26 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333712', 'tblTempUsageDetail_20' ) start [2025-01-26 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333712', 'tblTempUsageDetail_20' ) end [2025-01-26 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333712', 'tblTempVendorCDR_20' ) start [2025-01-26 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333712', 'tblTempVendorCDR_20' ) end [2025-01-26 10:27:19] Production.INFO: ProcessCDR(1,14333712,1,1,2) [2025-01-26 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333712', 'tblTempUsageDetail_20' ) start [2025-01-26 10:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333712', 'tblTempUsageDetail_20' ) end [2025-01-26 10:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:27:22] Production.INFO: ==888== Releasing lock... [2025-01-26 10:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:27:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 10:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:28:04 [end_date_ymd] => 2025-01-26 10:28:04 [RateCDR] => 1 ) [2025-01-26 10:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 07:28:04' and `end` < '2025-01-26 10:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 10:28:17] Production.INFO: count ==355 [2025-01-26 10:28:17] Production.ERROR: pbx CDR StartTime 2025-01-26 07:28:04 - End Time 2025-01-26 10:28:04 [2025-01-26 10:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333717', 'tblTempUsageDetail_20' ) start [2025-01-26 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333717', 'tblTempUsageDetail_20' ) end [2025-01-26 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333717', 'tblTempVendorCDR_20' ) start [2025-01-26 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333717', 'tblTempVendorCDR_20' ) end [2025-01-26 10:28:17] Production.INFO: ProcessCDR(1,14333717,1,1,2) [2025-01-26 10:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333717', 'tblTempUsageDetail_20' ) start [2025-01-26 10:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333717', 'tblTempUsageDetail_20' ) end [2025-01-26 10:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:28:20] Production.INFO: ==968== Releasing lock... [2025-01-26 10:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:28:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:29:05 [end_date_ymd] => 2025-01-26 10:29:05 [RateCDR] => 1 ) [2025-01-26 10:29: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-01-26 07:29:05' and `end` < '2025-01-26 10:29: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-01-26 10:29:18] Production.INFO: count ==356 [2025-01-26 10:29:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:29:05 - End Time 2025-01-26 10:29:05 [2025-01-26 10:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333722', 'tblTempUsageDetail_20' ) start [2025-01-26 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333722', 'tblTempUsageDetail_20' ) end [2025-01-26 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333722', 'tblTempVendorCDR_20' ) start [2025-01-26 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333722', 'tblTempVendorCDR_20' ) end [2025-01-26 10:29:18] Production.INFO: ProcessCDR(1,14333722,1,1,2) [2025-01-26 10:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333722', 'tblTempUsageDetail_20' ) start [2025-01-26 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333722', 'tblTempUsageDetail_20' ) end [2025-01-26 10:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:29:21] Production.INFO: ==1057== Releasing lock... [2025-01-26 10:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:29:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-26 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:30:06 [end_date_ymd] => 2025-01-26 10:30:06 [RateCDR] => 1 ) [2025-01-26 10:30: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-01-26 07:30:06' and `end` < '2025-01-26 10:30: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-01-26 10:30:19] Production.INFO: count ==379 [2025-01-26 10:30:19] Production.ERROR: pbx CDR StartTime 2025-01-26 07:30:06 - End Time 2025-01-26 10:30:06 [2025-01-26 10:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333728', 'tblTempUsageDetail_20' ) start [2025-01-26 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333728', 'tblTempUsageDetail_20' ) end [2025-01-26 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333728', 'tblTempVendorCDR_20' ) start [2025-01-26 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333728', 'tblTempVendorCDR_20' ) end [2025-01-26 10:30:19] Production.INFO: ProcessCDR(1,14333728,1,1,2) [2025-01-26 10:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333728', 'tblTempUsageDetail_20' ) start [2025-01-26 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333728', 'tblTempUsageDetail_20' ) end [2025-01-26 10:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:30:22] Production.INFO: ==1146== Releasing lock... [2025-01-26 10:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:30:22] Production.INFO: 31 MB #Memory Used# [2025-01-26 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:31:05 [end_date_ymd] => 2025-01-26 10:31:05 [RateCDR] => 1 ) [2025-01-26 10:31: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-01-26 07:31:05' and `end` < '2025-01-26 10:31: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-01-26 10:31:17] Production.INFO: count ==397 [2025-01-26 10:31:17] Production.ERROR: pbx CDR StartTime 2025-01-26 07:31:05 - End Time 2025-01-26 10:31:05 [2025-01-26 10:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333733', 'tblTempUsageDetail_20' ) start [2025-01-26 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333733', 'tblTempUsageDetail_20' ) end [2025-01-26 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333733', 'tblTempVendorCDR_20' ) start [2025-01-26 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333733', 'tblTempVendorCDR_20' ) end [2025-01-26 10:31:17] Production.INFO: ProcessCDR(1,14333733,1,1,2) [2025-01-26 10:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333733', 'tblTempUsageDetail_20' ) start [2025-01-26 10:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333733', 'tblTempUsageDetail_20' ) end [2025-01-26 10:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:31:20] Production.INFO: ==1236== Releasing lock... [2025-01-26 10:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:31:20] Production.INFO: 31 MB #Memory Used# [2025-01-26 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:32:06 [end_date_ymd] => 2025-01-26 10:32:06 [RateCDR] => 1 ) [2025-01-26 10:32: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-01-26 07:32:06' and `end` < '2025-01-26 10:32: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-01-26 10:32:18] Production.INFO: count ==422 [2025-01-26 10:32:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:32:06 - End Time 2025-01-26 10:32:06 [2025-01-26 10:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333738', 'tblTempUsageDetail_20' ) start [2025-01-26 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333738', 'tblTempUsageDetail_20' ) end [2025-01-26 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333738', 'tblTempVendorCDR_20' ) start [2025-01-26 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333738', 'tblTempVendorCDR_20' ) end [2025-01-26 10:32:18] Production.INFO: ProcessCDR(1,14333738,1,1,2) [2025-01-26 10:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333738', 'tblTempUsageDetail_20' ) start [2025-01-26 10:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333738', 'tblTempUsageDetail_20' ) end [2025-01-26 10:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:32:21] Production.INFO: ==1340== Releasing lock... [2025-01-26 10:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:32:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:33:05 [end_date_ymd] => 2025-01-26 10:33:05 [RateCDR] => 1 ) [2025-01-26 10:33: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-01-26 07:33:05' and `end` < '2025-01-26 10:33: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-01-26 10:33:18] Production.INFO: count ==422 [2025-01-26 10:33:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:33:05 - End Time 2025-01-26 10:33:05 [2025-01-26 10:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333743', 'tblTempUsageDetail_20' ) start [2025-01-26 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333743', 'tblTempUsageDetail_20' ) end [2025-01-26 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333743', 'tblTempVendorCDR_20' ) start [2025-01-26 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333743', 'tblTempVendorCDR_20' ) end [2025-01-26 10:33:18] Production.INFO: ProcessCDR(1,14333743,1,1,2) [2025-01-26 10:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333743', 'tblTempUsageDetail_20' ) start [2025-01-26 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333743', 'tblTempUsageDetail_20' ) end [2025-01-26 10:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:33:21] Production.INFO: ==1422== Releasing lock... [2025-01-26 10:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:33:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:34:05 [end_date_ymd] => 2025-01-26 10:34:05 [RateCDR] => 1 ) [2025-01-26 10:34: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-01-26 07:34:05' and `end` < '2025-01-26 10:34: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-01-26 10:34:19] Production.INFO: count ==428 [2025-01-26 10:34:19] Production.ERROR: pbx CDR StartTime 2025-01-26 07:34:05 - End Time 2025-01-26 10:34:05 [2025-01-26 10:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333748', 'tblTempUsageDetail_20' ) start [2025-01-26 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333748', 'tblTempUsageDetail_20' ) end [2025-01-26 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333748', 'tblTempVendorCDR_20' ) start [2025-01-26 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333748', 'tblTempVendorCDR_20' ) end [2025-01-26 10:34:19] Production.INFO: ProcessCDR(1,14333748,1,1,2) [2025-01-26 10:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333748', 'tblTempUsageDetail_20' ) start [2025-01-26 10:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333748', 'tblTempUsageDetail_20' ) end [2025-01-26 10:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:34:22] Production.INFO: ==1539== Releasing lock... [2025-01-26 10:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:34:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:35:05 [end_date_ymd] => 2025-01-26 10:35:05 [RateCDR] => 1 ) [2025-01-26 10:35: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-01-26 07:35:05' and `end` < '2025-01-26 10:35: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-01-26 10:35:17] Production.INFO: count ==429 [2025-01-26 10:35:17] Production.ERROR: pbx CDR StartTime 2025-01-26 07:35:05 - End Time 2025-01-26 10:35:05 [2025-01-26 10:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333753', 'tblTempUsageDetail_20' ) start [2025-01-26 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333753', 'tblTempUsageDetail_20' ) end [2025-01-26 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333753', 'tblTempVendorCDR_20' ) start [2025-01-26 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333753', 'tblTempVendorCDR_20' ) end [2025-01-26 10:35:17] Production.INFO: ProcessCDR(1,14333753,1,1,2) [2025-01-26 10:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333753', 'tblTempUsageDetail_20' ) start [2025-01-26 10:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333753', 'tblTempUsageDetail_20' ) end [2025-01-26 10:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:35:20] Production.INFO: ==1623== Releasing lock... [2025-01-26 10:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:35:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-26 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:36:05 [end_date_ymd] => 2025-01-26 10:36:05 [RateCDR] => 1 ) [2025-01-26 10:36: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-01-26 07:36:05' and `end` < '2025-01-26 10:36: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-01-26 10:36:18] Production.INFO: count ==437 [2025-01-26 10:36:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:36:05 - End Time 2025-01-26 10:36:05 [2025-01-26 10:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333758', 'tblTempUsageDetail_20' ) start [2025-01-26 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333758', 'tblTempUsageDetail_20' ) end [2025-01-26 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333758', 'tblTempVendorCDR_20' ) start [2025-01-26 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333758', 'tblTempVendorCDR_20' ) end [2025-01-26 10:36:18] Production.INFO: ProcessCDR(1,14333758,1,1,2) [2025-01-26 10:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333758', 'tblTempUsageDetail_20' ) start [2025-01-26 10:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333758', 'tblTempUsageDetail_20' ) end [2025-01-26 10:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:36:22] Production.INFO: ==1713== Releasing lock... [2025-01-26 10:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:36:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:37:05 [end_date_ymd] => 2025-01-26 10:37:05 [RateCDR] => 1 ) [2025-01-26 10:37: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-01-26 07:37:05' and `end` < '2025-01-26 10:37: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-01-26 10:37:18] Production.INFO: count ==437 [2025-01-26 10:37:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:37:05 - End Time 2025-01-26 10:37:05 [2025-01-26 10:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333763', 'tblTempUsageDetail_20' ) start [2025-01-26 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333763', 'tblTempUsageDetail_20' ) end [2025-01-26 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333763', 'tblTempVendorCDR_20' ) start [2025-01-26 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333763', 'tblTempVendorCDR_20' ) end [2025-01-26 10:37:18] Production.INFO: ProcessCDR(1,14333763,1,1,2) [2025-01-26 10:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333763', 'tblTempUsageDetail_20' ) start [2025-01-26 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333763', 'tblTempUsageDetail_20' ) end [2025-01-26 10:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:37:21] Production.INFO: ==1835== Releasing lock... [2025-01-26 10:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:37:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:38:05 [end_date_ymd] => 2025-01-26 10:38:05 [RateCDR] => 1 ) [2025-01-26 10:38: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-01-26 07:38:05' and `end` < '2025-01-26 10:38: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-01-26 10:38:18] Production.INFO: count ==442 [2025-01-26 10:38:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:38:05 - End Time 2025-01-26 10:38:05 [2025-01-26 10:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333768', 'tblTempUsageDetail_20' ) start [2025-01-26 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333768', 'tblTempUsageDetail_20' ) end [2025-01-26 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333768', 'tblTempVendorCDR_20' ) start [2025-01-26 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333768', 'tblTempVendorCDR_20' ) end [2025-01-26 10:38:18] Production.INFO: ProcessCDR(1,14333768,1,1,2) [2025-01-26 10:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333768', 'tblTempUsageDetail_20' ) start [2025-01-26 10:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333768', 'tblTempUsageDetail_20' ) end [2025-01-26 10:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:38:21] Production.INFO: ==1927== Releasing lock... [2025-01-26 10:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:38:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:39:05 [end_date_ymd] => 2025-01-26 10:39:05 [RateCDR] => 1 ) [2025-01-26 10:39: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-01-26 07:39:05' and `end` < '2025-01-26 10:39: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-01-26 10:39:19] Production.INFO: count ==442 [2025-01-26 10:39:19] Production.ERROR: pbx CDR StartTime 2025-01-26 07:39:05 - End Time 2025-01-26 10:39:05 [2025-01-26 10:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333773', 'tblTempUsageDetail_20' ) start [2025-01-26 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333773', 'tblTempUsageDetail_20' ) end [2025-01-26 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333773', 'tblTempVendorCDR_20' ) start [2025-01-26 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333773', 'tblTempVendorCDR_20' ) end [2025-01-26 10:39:19] Production.INFO: ProcessCDR(1,14333773,1,1,2) [2025-01-26 10:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333773', 'tblTempUsageDetail_20' ) start [2025-01-26 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333773', 'tblTempUsageDetail_20' ) end [2025-01-26 10:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:39:22] Production.INFO: ==2021== Releasing lock... [2025-01-26 10:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:39:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:40:05 [end_date_ymd] => 2025-01-26 10:40:05 [RateCDR] => 1 ) [2025-01-26 10:40: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-01-26 07:40:05' and `end` < '2025-01-26 10:40: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-01-26 10:40:18] Production.INFO: count ==442 [2025-01-26 10:40:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:40:05 - End Time 2025-01-26 10:40:05 [2025-01-26 10:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333779', 'tblTempUsageDetail_20' ) start [2025-01-26 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333779', 'tblTempUsageDetail_20' ) end [2025-01-26 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333779', 'tblTempVendorCDR_20' ) start [2025-01-26 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333779', 'tblTempVendorCDR_20' ) end [2025-01-26 10:40:18] Production.INFO: ProcessCDR(1,14333779,1,1,2) [2025-01-26 10:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333779', 'tblTempUsageDetail_20' ) start [2025-01-26 10:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333779', 'tblTempUsageDetail_20' ) end [2025-01-26 10:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:40:21] Production.INFO: ==2103== Releasing lock... [2025-01-26 10:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:40:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:41:05 [end_date_ymd] => 2025-01-26 10:41:05 [RateCDR] => 1 ) [2025-01-26 10:41: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-01-26 07:41:05' and `end` < '2025-01-26 10:41: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-01-26 10:41:18] Production.INFO: count ==476 [2025-01-26 10:41:19] Production.ERROR: pbx CDR StartTime 2025-01-26 07:41:05 - End Time 2025-01-26 10:41:05 [2025-01-26 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333784', 'tblTempUsageDetail_20' ) start [2025-01-26 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333784', 'tblTempUsageDetail_20' ) end [2025-01-26 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333784', 'tblTempVendorCDR_20' ) start [2025-01-26 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333784', 'tblTempVendorCDR_20' ) end [2025-01-26 10:41:19] Production.INFO: ProcessCDR(1,14333784,1,1,2) [2025-01-26 10:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333784', 'tblTempUsageDetail_20' ) start [2025-01-26 10:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333784', 'tblTempUsageDetail_20' ) end [2025-01-26 10:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:41:23] Production.INFO: ==2192== Releasing lock... [2025-01-26 10:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:41:23] Production.INFO: 32 MB #Memory Used# [2025-01-26 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:42:05 [end_date_ymd] => 2025-01-26 10:42:05 [RateCDR] => 1 ) [2025-01-26 10:42: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-01-26 07:42:05' and `end` < '2025-01-26 10:42: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-01-26 10:42:18] Production.INFO: count ==478 [2025-01-26 10:42:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:42:05 - End Time 2025-01-26 10:42:05 [2025-01-26 10:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333789', 'tblTempUsageDetail_20' ) start [2025-01-26 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333789', 'tblTempUsageDetail_20' ) end [2025-01-26 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333789', 'tblTempVendorCDR_20' ) start [2025-01-26 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333789', 'tblTempVendorCDR_20' ) end [2025-01-26 10:42:18] Production.INFO: ProcessCDR(1,14333789,1,1,2) [2025-01-26 10:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333789', 'tblTempUsageDetail_20' ) start [2025-01-26 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333789', 'tblTempUsageDetail_20' ) end [2025-01-26 10:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:42:22] Production.INFO: ==2276== Releasing lock... [2025-01-26 10:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:42:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:43:05 [end_date_ymd] => 2025-01-26 10:43:05 [RateCDR] => 1 ) [2025-01-26 10:43: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-01-26 07:43:05' and `end` < '2025-01-26 10:43: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-01-26 10:43:19] Production.INFO: count ==478 [2025-01-26 10:43:19] Production.ERROR: pbx CDR StartTime 2025-01-26 07:43:05 - End Time 2025-01-26 10:43:05 [2025-01-26 10:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333794', 'tblTempUsageDetail_20' ) start [2025-01-26 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333794', 'tblTempUsageDetail_20' ) end [2025-01-26 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333794', 'tblTempVendorCDR_20' ) start [2025-01-26 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333794', 'tblTempVendorCDR_20' ) end [2025-01-26 10:43:19] Production.INFO: ProcessCDR(1,14333794,1,1,2) [2025-01-26 10:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333794', 'tblTempUsageDetail_20' ) start [2025-01-26 10:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333794', 'tblTempUsageDetail_20' ) end [2025-01-26 10:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:43:22] Production.INFO: ==2361== Releasing lock... [2025-01-26 10:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:43:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-26 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:44:05 [end_date_ymd] => 2025-01-26 10:44:05 [RateCDR] => 1 ) [2025-01-26 10:44: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-01-26 07:44:05' and `end` < '2025-01-26 10:44: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-01-26 10:44:17] Production.INFO: count ==485 [2025-01-26 10:44:17] Production.ERROR: pbx CDR StartTime 2025-01-26 07:44:05 - End Time 2025-01-26 10:44:05 [2025-01-26 10:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333799', 'tblTempUsageDetail_20' ) start [2025-01-26 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333799', 'tblTempUsageDetail_20' ) end [2025-01-26 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333799', 'tblTempVendorCDR_20' ) start [2025-01-26 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333799', 'tblTempVendorCDR_20' ) end [2025-01-26 10:44:17] Production.INFO: ProcessCDR(1,14333799,1,1,2) [2025-01-26 10:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333799', 'tblTempUsageDetail_20' ) start [2025-01-26 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333799', 'tblTempUsageDetail_20' ) end [2025-01-26 10:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:44:21] Production.INFO: ==2445== Releasing lock... [2025-01-26 10:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:44:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:45:05 [end_date_ymd] => 2025-01-26 10:45:05 [RateCDR] => 1 ) [2025-01-26 10:45: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-01-26 07:45:05' and `end` < '2025-01-26 10:45: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-01-26 10:45:18] Production.INFO: count ==485 [2025-01-26 10:45:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:45:05 - End Time 2025-01-26 10:45:05 [2025-01-26 10:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333804', 'tblTempUsageDetail_20' ) start [2025-01-26 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333804', 'tblTempUsageDetail_20' ) end [2025-01-26 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333804', 'tblTempVendorCDR_20' ) start [2025-01-26 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333804', 'tblTempVendorCDR_20' ) end [2025-01-26 10:45:18] Production.INFO: ProcessCDR(1,14333804,1,1,2) [2025-01-26 10:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333804', 'tblTempUsageDetail_20' ) start [2025-01-26 10:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333804', 'tblTempUsageDetail_20' ) end [2025-01-26 10:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:45:21] Production.INFO: ==2529== Releasing lock... [2025-01-26 10:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:45:21] Production.INFO: 32 MB #Memory Used# [2025-01-26 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:46:05 [end_date_ymd] => 2025-01-26 10:46:05 [RateCDR] => 1 ) [2025-01-26 10:46: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-01-26 07:46:05' and `end` < '2025-01-26 10:46: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-01-26 10:46:19] Production.INFO: count ==486 [2025-01-26 10:46:19] Production.ERROR: pbx CDR StartTime 2025-01-26 07:46:05 - End Time 2025-01-26 10:46:05 [2025-01-26 10:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333809', 'tblTempUsageDetail_20' ) start [2025-01-26 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333809', 'tblTempUsageDetail_20' ) end [2025-01-26 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333809', 'tblTempVendorCDR_20' ) start [2025-01-26 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333809', 'tblTempVendorCDR_20' ) end [2025-01-26 10:46:19] Production.INFO: ProcessCDR(1,14333809,1,1,2) [2025-01-26 10:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333809', 'tblTempUsageDetail_20' ) start [2025-01-26 10:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333809', 'tblTempUsageDetail_20' ) end [2025-01-26 10:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:46:22] Production.INFO: ==2611== Releasing lock... [2025-01-26 10:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:46:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:47:05 [end_date_ymd] => 2025-01-26 10:47:05 [RateCDR] => 1 ) [2025-01-26 10:47: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-01-26 07:47:05' and `end` < '2025-01-26 10:47: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-01-26 10:47:17] Production.INFO: count ==488 [2025-01-26 10:47:17] Production.ERROR: pbx CDR StartTime 2025-01-26 07:47:05 - End Time 2025-01-26 10:47:05 [2025-01-26 10:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333814', 'tblTempUsageDetail_20' ) start [2025-01-26 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333814', 'tblTempUsageDetail_20' ) end [2025-01-26 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333814', 'tblTempVendorCDR_20' ) start [2025-01-26 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333814', 'tblTempVendorCDR_20' ) end [2025-01-26 10:47:17] Production.INFO: ProcessCDR(1,14333814,1,1,2) [2025-01-26 10:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333814', 'tblTempUsageDetail_20' ) start [2025-01-26 10:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333814', 'tblTempUsageDetail_20' ) end [2025-01-26 10:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:47:22] Production.INFO: ==2695== Releasing lock... [2025-01-26 10:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:47:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:48:06 [end_date_ymd] => 2025-01-26 10:48:06 [RateCDR] => 1 ) [2025-01-26 10:48: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-01-26 07:48:06' and `end` < '2025-01-26 10:48: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-01-26 10:48:18] Production.INFO: count ==488 [2025-01-26 10:48:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:48:06 - End Time 2025-01-26 10:48:06 [2025-01-26 10:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333819', 'tblTempUsageDetail_20' ) start [2025-01-26 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333819', 'tblTempUsageDetail_20' ) end [2025-01-26 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333819', 'tblTempVendorCDR_20' ) start [2025-01-26 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333819', 'tblTempVendorCDR_20' ) end [2025-01-26 10:48:18] Production.INFO: ProcessCDR(1,14333819,1,1,2) [2025-01-26 10:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333819', 'tblTempUsageDetail_20' ) start [2025-01-26 10:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333819', 'tblTempUsageDetail_20' ) end [2025-01-26 10:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:48:22] Production.INFO: ==2780== Releasing lock... [2025-01-26 10:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:48:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:49:05 [end_date_ymd] => 2025-01-26 10:49:05 [RateCDR] => 1 ) [2025-01-26 10:49: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-01-26 07:49:05' and `end` < '2025-01-26 10:49: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-01-26 10:49:18] Production.INFO: count ==492 [2025-01-26 10:49:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:49:05 - End Time 2025-01-26 10:49:05 [2025-01-26 10:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333824', 'tblTempUsageDetail_20' ) start [2025-01-26 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333824', 'tblTempUsageDetail_20' ) end [2025-01-26 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333824', 'tblTempVendorCDR_20' ) start [2025-01-26 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333824', 'tblTempVendorCDR_20' ) end [2025-01-26 10:49:18] Production.INFO: ProcessCDR(1,14333824,1,1,2) [2025-01-26 10:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333824', 'tblTempUsageDetail_20' ) start [2025-01-26 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333824', 'tblTempUsageDetail_20' ) end [2025-01-26 10:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:49:22] Production.INFO: ==2865== Releasing lock... [2025-01-26 10:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:49:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:50:06 [end_date_ymd] => 2025-01-26 10:50:06 [RateCDR] => 1 ) [2025-01-26 10:50: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-01-26 07:50:06' and `end` < '2025-01-26 10:50: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-01-26 10:50:18] Production.INFO: count ==506 [2025-01-26 10:50:19] Production.ERROR: pbx CDR StartTime 2025-01-26 07:50:06 - End Time 2025-01-26 10:50:06 [2025-01-26 10:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333829', 'tblTempUsageDetail_20' ) start [2025-01-26 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333829', 'tblTempUsageDetail_20' ) end [2025-01-26 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333829', 'tblTempVendorCDR_20' ) start [2025-01-26 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333829', 'tblTempVendorCDR_20' ) end [2025-01-26 10:50:19] Production.INFO: ProcessCDR(1,14333829,1,1,2) [2025-01-26 10:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333829', 'tblTempUsageDetail_20' ) start [2025-01-26 10:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333829', 'tblTempUsageDetail_20' ) end [2025-01-26 10:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:50:23] Production.INFO: ==2947== Releasing lock... [2025-01-26 10:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:50:23] Production.INFO: 32 MB #Memory Used# [2025-01-26 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:51:05 [end_date_ymd] => 2025-01-26 10:51:05 [RateCDR] => 1 ) [2025-01-26 10:51: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-01-26 07:51:05' and `end` < '2025-01-26 10:51: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-01-26 10:51:18] Production.INFO: count ==520 [2025-01-26 10:51:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:51:05 - End Time 2025-01-26 10:51:05 [2025-01-26 10:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333835', 'tblTempUsageDetail_20' ) start [2025-01-26 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333835', 'tblTempUsageDetail_20' ) end [2025-01-26 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333835', 'tblTempVendorCDR_20' ) start [2025-01-26 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333835', 'tblTempVendorCDR_20' ) end [2025-01-26 10:51:18] Production.INFO: ProcessCDR(1,14333835,1,1,2) [2025-01-26 10:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333835', 'tblTempUsageDetail_20' ) start [2025-01-26 10:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333835', 'tblTempUsageDetail_20' ) end [2025-01-26 10:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:51:21] Production.INFO: ==3027== Releasing lock... [2025-01-26 10:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:51:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-26 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:52:05 [end_date_ymd] => 2025-01-26 10:52:05 [RateCDR] => 1 ) [2025-01-26 10:52: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-01-26 07:52:05' and `end` < '2025-01-26 10:52: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-01-26 10:52:19] Production.INFO: count ==528 [2025-01-26 10:52:19] Production.ERROR: pbx CDR StartTime 2025-01-26 07:52:05 - End Time 2025-01-26 10:52:05 [2025-01-26 10:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333840', 'tblTempUsageDetail_20' ) start [2025-01-26 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333840', 'tblTempUsageDetail_20' ) end [2025-01-26 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333840', 'tblTempVendorCDR_20' ) start [2025-01-26 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333840', 'tblTempVendorCDR_20' ) end [2025-01-26 10:52:19] Production.INFO: ProcessCDR(1,14333840,1,1,2) [2025-01-26 10:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333840', 'tblTempUsageDetail_20' ) start [2025-01-26 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333840', 'tblTempUsageDetail_20' ) end [2025-01-26 10:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:52:22] Production.INFO: ==3113== Releasing lock... [2025-01-26 10:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:52:22] Production.INFO: 32 MB #Memory Used# [2025-01-26 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:53:05 [end_date_ymd] => 2025-01-26 10:53:05 [RateCDR] => 1 ) [2025-01-26 10:53: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-01-26 07:53:05' and `end` < '2025-01-26 10:53: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-01-26 10:53:18] Production.INFO: count ==530 [2025-01-26 10:53:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:53:05 - End Time 2025-01-26 10:53:05 [2025-01-26 10:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333845', 'tblTempUsageDetail_20' ) start [2025-01-26 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333845', 'tblTempUsageDetail_20' ) end [2025-01-26 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333845', 'tblTempVendorCDR_20' ) start [2025-01-26 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333845', 'tblTempVendorCDR_20' ) end [2025-01-26 10:53:18] Production.INFO: ProcessCDR(1,14333845,1,1,2) [2025-01-26 10:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333845', 'tblTempUsageDetail_20' ) start [2025-01-26 10:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333845', 'tblTempUsageDetail_20' ) end [2025-01-26 10:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:53:22] Production.INFO: ==3233== Releasing lock... [2025-01-26 10:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:53:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:54:05 [end_date_ymd] => 2025-01-26 10:54:05 [RateCDR] => 1 ) [2025-01-26 10:54: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-01-26 07:54:05' and `end` < '2025-01-26 10:54: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-01-26 10:54:18] Production.INFO: count ==531 [2025-01-26 10:54:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:54:05 - End Time 2025-01-26 10:54:05 [2025-01-26 10:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333850', 'tblTempUsageDetail_20' ) start [2025-01-26 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333850', 'tblTempUsageDetail_20' ) end [2025-01-26 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333850', 'tblTempVendorCDR_20' ) start [2025-01-26 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333850', 'tblTempVendorCDR_20' ) end [2025-01-26 10:54:18] Production.INFO: ProcessCDR(1,14333850,1,1,2) [2025-01-26 10:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333850', 'tblTempUsageDetail_20' ) start [2025-01-26 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333850', 'tblTempUsageDetail_20' ) end [2025-01-26 10:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:54:21] Production.INFO: ==3311== Releasing lock... [2025-01-26 10:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:54:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:55:05 [end_date_ymd] => 2025-01-26 10:55:05 [RateCDR] => 1 ) [2025-01-26 10:55: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-01-26 07:55:05' and `end` < '2025-01-26 10:55: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-01-26 10:55:18] Production.INFO: count ==531 [2025-01-26 10:55:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:55:05 - End Time 2025-01-26 10:55:05 [2025-01-26 10:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333855', 'tblTempUsageDetail_20' ) start [2025-01-26 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333855', 'tblTempUsageDetail_20' ) end [2025-01-26 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333855', 'tblTempVendorCDR_20' ) start [2025-01-26 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333855', 'tblTempVendorCDR_20' ) end [2025-01-26 10:55:18] Production.INFO: ProcessCDR(1,14333855,1,1,2) [2025-01-26 10:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333855', 'tblTempUsageDetail_20' ) start [2025-01-26 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333855', 'tblTempUsageDetail_20' ) end [2025-01-26 10:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:55:21] Production.INFO: ==3388== Releasing lock... [2025-01-26 10:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:55:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:56:05 [end_date_ymd] => 2025-01-26 10:56:05 [RateCDR] => 1 ) [2025-01-26 10:56: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-01-26 07:56:05' and `end` < '2025-01-26 10:56: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-01-26 10:56:18] Production.INFO: count ==531 [2025-01-26 10:56:18] Production.ERROR: pbx CDR StartTime 2025-01-26 07:56:05 - End Time 2025-01-26 10:56:05 [2025-01-26 10:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333860', 'tblTempUsageDetail_20' ) start [2025-01-26 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333860', 'tblTempUsageDetail_20' ) end [2025-01-26 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333860', 'tblTempVendorCDR_20' ) start [2025-01-26 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333860', 'tblTempVendorCDR_20' ) end [2025-01-26 10:56:18] Production.INFO: ProcessCDR(1,14333860,1,1,2) [2025-01-26 10:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333860', 'tblTempUsageDetail_20' ) start [2025-01-26 10:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333860', 'tblTempUsageDetail_20' ) end [2025-01-26 10:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:56:21] Production.INFO: ==3472== Releasing lock... [2025-01-26 10:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:56:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:57:05 [end_date_ymd] => 2025-01-26 10:57:05 [RateCDR] => 1 ) [2025-01-26 10:57: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-01-26 07:57:05' and `end` < '2025-01-26 10:57: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-01-26 10:57:19] Production.INFO: count ==531 [2025-01-26 10:57:20] Production.ERROR: pbx CDR StartTime 2025-01-26 07:57:05 - End Time 2025-01-26 10:57:05 [2025-01-26 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333865', 'tblTempUsageDetail_20' ) start [2025-01-26 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333865', 'tblTempUsageDetail_20' ) end [2025-01-26 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333865', 'tblTempVendorCDR_20' ) start [2025-01-26 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333865', 'tblTempVendorCDR_20' ) end [2025-01-26 10:57:20] Production.INFO: ProcessCDR(1,14333865,1,1,2) [2025-01-26 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333865', 'tblTempUsageDetail_20' ) start [2025-01-26 10:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333865', 'tblTempUsageDetail_20' ) end [2025-01-26 10:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:57:23] Production.INFO: ==3556== Releasing lock... [2025-01-26 10:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:57:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:58:05 [end_date_ymd] => 2025-01-26 10:58:05 [RateCDR] => 1 ) [2025-01-26 10:58: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-01-26 07:58:05' and `end` < '2025-01-26 10:58: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-01-26 10:58:17] Production.INFO: count ==531 [2025-01-26 10:58:17] Production.ERROR: pbx CDR StartTime 2025-01-26 07:58:05 - End Time 2025-01-26 10:58:05 [2025-01-26 10:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333870', 'tblTempUsageDetail_20' ) start [2025-01-26 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333870', 'tblTempUsageDetail_20' ) end [2025-01-26 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333870', 'tblTempVendorCDR_20' ) start [2025-01-26 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333870', 'tblTempVendorCDR_20' ) end [2025-01-26 10:58:17] Production.INFO: ProcessCDR(1,14333870,1,1,2) [2025-01-26 10:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333870', 'tblTempUsageDetail_20' ) start [2025-01-26 10:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333870', 'tblTempUsageDetail_20' ) end [2025-01-26 10:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:58:20] Production.INFO: ==3634== Releasing lock... [2025-01-26 10:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:58:20] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 07:59:05 [end_date_ymd] => 2025-01-26 10:59:05 [RateCDR] => 1 ) [2025-01-26 10:59: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-01-26 07:59:05' and `end` < '2025-01-26 10:59: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-01-26 10:59:19] Production.INFO: count ==531 [2025-01-26 10:59:19] Production.ERROR: pbx CDR StartTime 2025-01-26 07:59:05 - End Time 2025-01-26 10:59:05 [2025-01-26 10:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333875', 'tblTempUsageDetail_20' ) start [2025-01-26 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333875', 'tblTempUsageDetail_20' ) end [2025-01-26 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333875', 'tblTempVendorCDR_20' ) start [2025-01-26 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333875', 'tblTempVendorCDR_20' ) end [2025-01-26 10:59:19] Production.INFO: ProcessCDR(1,14333875,1,1,2) [2025-01-26 10:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 10:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 10:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333875', 'tblTempUsageDetail_20' ) start [2025-01-26 10:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333875', 'tblTempUsageDetail_20' ) end [2025-01-26 10:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 10:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 10:59:22] Production.INFO: ==3719== Releasing lock... [2025-01-26 10:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 10:59:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:00:06 [end_date_ymd] => 2025-01-26 11:00:06 [RateCDR] => 1 ) [2025-01-26 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-01-26 08:00:06' and `end` < '2025-01-26 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-01-26 11:00:19] Production.INFO: count ==535 [2025-01-26 11:00:19] Production.ERROR: pbx CDR StartTime 2025-01-26 08:00:06 - End Time 2025-01-26 11:00:06 [2025-01-26 11:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333880', 'tblTempUsageDetail_20' ) start [2025-01-26 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333880', 'tblTempUsageDetail_20' ) end [2025-01-26 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333880', 'tblTempVendorCDR_20' ) start [2025-01-26 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333880', 'tblTempVendorCDR_20' ) end [2025-01-26 11:00:19] Production.INFO: ProcessCDR(1,14333880,1,1,2) [2025-01-26 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333880', 'tblTempUsageDetail_20' ) start [2025-01-26 11:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333880', 'tblTempUsageDetail_20' ) end [2025-01-26 11:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:00:22] Production.INFO: ==3800== Releasing lock... [2025-01-26 11:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:00:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:01:05 [end_date_ymd] => 2025-01-26 11:01:05 [RateCDR] => 1 ) [2025-01-26 11:01: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-01-26 08:01:05' and `end` < '2025-01-26 11:01: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-01-26 11:01:17] Production.INFO: count ==545 [2025-01-26 11:01:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:01:05 - End Time 2025-01-26 11:01:05 [2025-01-26 11:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333886', 'tblTempUsageDetail_20' ) start [2025-01-26 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333886', 'tblTempUsageDetail_20' ) end [2025-01-26 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333886', 'tblTempVendorCDR_20' ) start [2025-01-26 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333886', 'tblTempVendorCDR_20' ) end [2025-01-26 11:01:18] Production.INFO: ProcessCDR(1,14333886,1,1,2) [2025-01-26 11:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333886', 'tblTempUsageDetail_20' ) start [2025-01-26 11:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333886', 'tblTempUsageDetail_20' ) end [2025-01-26 11:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:01:21] Production.INFO: ==3966== Releasing lock... [2025-01-26 11:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:01:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:02:05 [end_date_ymd] => 2025-01-26 11:02:05 [RateCDR] => 1 ) [2025-01-26 11:02: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-01-26 08:02:05' and `end` < '2025-01-26 11:02: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-01-26 11:02:18] Production.INFO: count ==549 [2025-01-26 11:02:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:02:05 - End Time 2025-01-26 11:02:05 [2025-01-26 11:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333891', 'tblTempUsageDetail_20' ) start [2025-01-26 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333891', 'tblTempUsageDetail_20' ) end [2025-01-26 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333891', 'tblTempVendorCDR_20' ) start [2025-01-26 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333891', 'tblTempVendorCDR_20' ) end [2025-01-26 11:02:18] Production.INFO: ProcessCDR(1,14333891,1,1,2) [2025-01-26 11:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333891', 'tblTempUsageDetail_20' ) start [2025-01-26 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333891', 'tblTempUsageDetail_20' ) end [2025-01-26 11:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:02:22] Production.INFO: ==4046== Releasing lock... [2025-01-26 11:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:02:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-26 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:03:05 [end_date_ymd] => 2025-01-26 11:03:05 [RateCDR] => 1 ) [2025-01-26 11:03: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-01-26 08:03:05' and `end` < '2025-01-26 11:03: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-01-26 11:03:17] Production.INFO: count ==549 [2025-01-26 11:03:17] Production.ERROR: pbx CDR StartTime 2025-01-26 08:03:05 - End Time 2025-01-26 11:03:05 [2025-01-26 11:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333896', 'tblTempUsageDetail_20' ) start [2025-01-26 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333896', 'tblTempUsageDetail_20' ) end [2025-01-26 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333896', 'tblTempVendorCDR_20' ) start [2025-01-26 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333896', 'tblTempVendorCDR_20' ) end [2025-01-26 11:03:17] Production.INFO: ProcessCDR(1,14333896,1,1,2) [2025-01-26 11:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333896', 'tblTempUsageDetail_20' ) start [2025-01-26 11:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333896', 'tblTempUsageDetail_20' ) end [2025-01-26 11:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:03:21] Production.INFO: ==4125== Releasing lock... [2025-01-26 11:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:03:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-26 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:04:06 [end_date_ymd] => 2025-01-26 11:04:06 [RateCDR] => 1 ) [2025-01-26 11:04: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-01-26 08:04:06' and `end` < '2025-01-26 11:04: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-01-26 11:04:19] Production.INFO: count ==551 [2025-01-26 11:04:19] Production.ERROR: pbx CDR StartTime 2025-01-26 08:04:06 - End Time 2025-01-26 11:04:06 [2025-01-26 11:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333901', 'tblTempUsageDetail_20' ) start [2025-01-26 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333901', 'tblTempUsageDetail_20' ) end [2025-01-26 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333901', 'tblTempVendorCDR_20' ) start [2025-01-26 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333901', 'tblTempVendorCDR_20' ) end [2025-01-26 11:04:19] Production.INFO: ProcessCDR(1,14333901,1,1,2) [2025-01-26 11:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333901', 'tblTempUsageDetail_20' ) start [2025-01-26 11:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333901', 'tblTempUsageDetail_20' ) end [2025-01-26 11:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:04:22] Production.INFO: ==4204== Releasing lock... [2025-01-26 11:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:04:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-26 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:05:05 [end_date_ymd] => 2025-01-26 11:05:05 [RateCDR] => 1 ) [2025-01-26 11:05: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-01-26 08:05:05' and `end` < '2025-01-26 11:05: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-01-26 11:05:18] Production.INFO: count ==555 [2025-01-26 11:05:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:05:05 - End Time 2025-01-26 11:05:05 [2025-01-26 11:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333906', 'tblTempUsageDetail_20' ) start [2025-01-26 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333906', 'tblTempUsageDetail_20' ) end [2025-01-26 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333906', 'tblTempVendorCDR_20' ) start [2025-01-26 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333906', 'tblTempVendorCDR_20' ) end [2025-01-26 11:05:18] Production.INFO: ProcessCDR(1,14333906,1,1,2) [2025-01-26 11:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333906', 'tblTempUsageDetail_20' ) start [2025-01-26 11:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333906', 'tblTempUsageDetail_20' ) end [2025-01-26 11:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:05:21] Production.INFO: ==4361== Releasing lock... [2025-01-26 11:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:05:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-26 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:06:05 [end_date_ymd] => 2025-01-26 11:06:05 [RateCDR] => 1 ) [2025-01-26 11:06: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-01-26 08:06:05' and `end` < '2025-01-26 11:06: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-01-26 11:06:18] Production.INFO: count ==557 [2025-01-26 11:06:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:06:05 - End Time 2025-01-26 11:06:05 [2025-01-26 11:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333911', 'tblTempUsageDetail_20' ) start [2025-01-26 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333911', 'tblTempUsageDetail_20' ) end [2025-01-26 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333911', 'tblTempVendorCDR_20' ) start [2025-01-26 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333911', 'tblTempVendorCDR_20' ) end [2025-01-26 11:06:18] Production.INFO: ProcessCDR(1,14333911,1,1,2) [2025-01-26 11:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333911', 'tblTempUsageDetail_20' ) start [2025-01-26 11:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333911', 'tblTempUsageDetail_20' ) end [2025-01-26 11:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:06:23] Production.INFO: ==4440== Releasing lock... [2025-01-26 11:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:06:23] Production.INFO: 33 MB #Memory Used# [2025-01-26 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:07:05 [end_date_ymd] => 2025-01-26 11:07:05 [RateCDR] => 1 ) [2025-01-26 11:07: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-01-26 08:07:05' and `end` < '2025-01-26 11:07: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-01-26 11:07:18] Production.INFO: count ==561 [2025-01-26 11:07:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:07:05 - End Time 2025-01-26 11:07:05 [2025-01-26 11:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333916', 'tblTempUsageDetail_20' ) start [2025-01-26 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333916', 'tblTempUsageDetail_20' ) end [2025-01-26 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333916', 'tblTempVendorCDR_20' ) start [2025-01-26 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333916', 'tblTempVendorCDR_20' ) end [2025-01-26 11:07:18] Production.INFO: ProcessCDR(1,14333916,1,1,2) [2025-01-26 11:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333916', 'tblTempUsageDetail_20' ) start [2025-01-26 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333916', 'tblTempUsageDetail_20' ) end [2025-01-26 11:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:07:23] Production.INFO: ==4516== Releasing lock... [2025-01-26 11:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:07:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-26 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:08:06 [end_date_ymd] => 2025-01-26 11:08:06 [RateCDR] => 1 ) [2025-01-26 11:08: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-01-26 08:08:06' and `end` < '2025-01-26 11:08: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-01-26 11:08:18] Production.INFO: count ==561 [2025-01-26 11:08:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:08:06 - End Time 2025-01-26 11:08:06 [2025-01-26 11:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333921', 'tblTempUsageDetail_20' ) start [2025-01-26 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333921', 'tblTempUsageDetail_20' ) end [2025-01-26 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333921', 'tblTempVendorCDR_20' ) start [2025-01-26 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333921', 'tblTempVendorCDR_20' ) end [2025-01-26 11:08:18] Production.INFO: ProcessCDR(1,14333921,1,1,2) [2025-01-26 11:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333921', 'tblTempUsageDetail_20' ) start [2025-01-26 11:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333921', 'tblTempUsageDetail_20' ) end [2025-01-26 11:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:08:22] Production.INFO: ==4720== Releasing lock... [2025-01-26 11:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:08:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-26 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:09:05 [end_date_ymd] => 2025-01-26 11:09:05 [RateCDR] => 1 ) [2025-01-26 11:09: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-01-26 08:09:05' and `end` < '2025-01-26 11:09: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-01-26 11:09:17] Production.INFO: count ==562 [2025-01-26 11:09:17] Production.ERROR: pbx CDR StartTime 2025-01-26 08:09:05 - End Time 2025-01-26 11:09:05 [2025-01-26 11:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333926', 'tblTempUsageDetail_20' ) start [2025-01-26 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333926', 'tblTempUsageDetail_20' ) end [2025-01-26 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333926', 'tblTempVendorCDR_20' ) start [2025-01-26 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333926', 'tblTempVendorCDR_20' ) end [2025-01-26 11:09:17] Production.INFO: ProcessCDR(1,14333926,1,1,2) [2025-01-26 11:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333926', 'tblTempUsageDetail_20' ) start [2025-01-26 11:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333926', 'tblTempUsageDetail_20' ) end [2025-01-26 11:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:09:21] Production.INFO: ==4797== Releasing lock... [2025-01-26 11:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:09:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-26 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:10:06 [end_date_ymd] => 2025-01-26 11:10:06 [RateCDR] => 1 ) [2025-01-26 11:10: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-01-26 08:10:06' and `end` < '2025-01-26 11:10: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-01-26 11:10:19] Production.INFO: count ==570 [2025-01-26 11:10:19] Production.ERROR: pbx CDR StartTime 2025-01-26 08:10:06 - End Time 2025-01-26 11:10:06 [2025-01-26 11:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333932', 'tblTempUsageDetail_20' ) start [2025-01-26 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333932', 'tblTempUsageDetail_20' ) end [2025-01-26 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333932', 'tblTempVendorCDR_20' ) start [2025-01-26 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333932', 'tblTempVendorCDR_20' ) end [2025-01-26 11:10:19] Production.INFO: ProcessCDR(1,14333932,1,1,2) [2025-01-26 11:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333932', 'tblTempUsageDetail_20' ) start [2025-01-26 11:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333932', 'tblTempUsageDetail_20' ) end [2025-01-26 11:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:10:22] Production.INFO: ==4880== Releasing lock... [2025-01-26 11:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:10:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-26 11:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:11:04 [end_date_ymd] => 2025-01-26 11:11:04 [RateCDR] => 1 ) [2025-01-26 11:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 08:11:04' and `end` < '2025-01-26 11:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 11:11:17] Production.INFO: count ==584 [2025-01-26 11:11:17] Production.ERROR: pbx CDR StartTime 2025-01-26 08:11:04 - End Time 2025-01-26 11:11:04 [2025-01-26 11:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333937', 'tblTempUsageDetail_20' ) start [2025-01-26 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333937', 'tblTempUsageDetail_20' ) end [2025-01-26 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333937', 'tblTempVendorCDR_20' ) start [2025-01-26 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333937', 'tblTempVendorCDR_20' ) end [2025-01-26 11:11:17] Production.INFO: ProcessCDR(1,14333937,1,1,2) [2025-01-26 11:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333937', 'tblTempUsageDetail_20' ) start [2025-01-26 11:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333937', 'tblTempUsageDetail_20' ) end [2025-01-26 11:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:11:21] Production.INFO: ==4958== Releasing lock... [2025-01-26 11:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:11:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-26 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:12:05 [end_date_ymd] => 2025-01-26 11:12:05 [RateCDR] => 1 ) [2025-01-26 11:12: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-01-26 08:12:05' and `end` < '2025-01-26 11:12: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-01-26 11:12:19] Production.INFO: count ==592 [2025-01-26 11:12:19] Production.ERROR: pbx CDR StartTime 2025-01-26 08:12:05 - End Time 2025-01-26 11:12:05 [2025-01-26 11:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333942', 'tblTempUsageDetail_20' ) start [2025-01-26 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333942', 'tblTempUsageDetail_20' ) end [2025-01-26 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333942', 'tblTempVendorCDR_20' ) start [2025-01-26 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333942', 'tblTempVendorCDR_20' ) end [2025-01-26 11:12:19] Production.INFO: ProcessCDR(1,14333942,1,1,2) [2025-01-26 11:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333942', 'tblTempUsageDetail_20' ) start [2025-01-26 11:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333942', 'tblTempUsageDetail_20' ) end [2025-01-26 11:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:12:22] Production.INFO: ==5117== Releasing lock... [2025-01-26 11:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:12:22] Production.INFO: 33 MB #Memory Used# [2025-01-26 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:13:05 [end_date_ymd] => 2025-01-26 11:13:05 [RateCDR] => 1 ) [2025-01-26 11:13: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-01-26 08:13:05' and `end` < '2025-01-26 11:13: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-01-26 11:13:18] Production.INFO: count ==594 [2025-01-26 11:13:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:13:05 - End Time 2025-01-26 11:13:05 [2025-01-26 11:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333947', 'tblTempUsageDetail_20' ) start [2025-01-26 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333947', 'tblTempUsageDetail_20' ) end [2025-01-26 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333947', 'tblTempVendorCDR_20' ) start [2025-01-26 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333947', 'tblTempVendorCDR_20' ) end [2025-01-26 11:13:18] Production.INFO: ProcessCDR(1,14333947,1,1,2) [2025-01-26 11:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333947', 'tblTempUsageDetail_20' ) start [2025-01-26 11:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333947', 'tblTempUsageDetail_20' ) end [2025-01-26 11:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:13:23] Production.INFO: ==5194== Releasing lock... [2025-01-26 11:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:13:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-26 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:14:05 [end_date_ymd] => 2025-01-26 11:14:05 [RateCDR] => 1 ) [2025-01-26 11:14: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-01-26 08:14:05' and `end` < '2025-01-26 11:14: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-01-26 11:14:18] Production.INFO: count ==601 [2025-01-26 11:14:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:14:05 - End Time 2025-01-26 11:14:05 [2025-01-26 11:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333952', 'tblTempUsageDetail_20' ) start [2025-01-26 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333952', 'tblTempUsageDetail_20' ) end [2025-01-26 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333952', 'tblTempVendorCDR_20' ) start [2025-01-26 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333952', 'tblTempVendorCDR_20' ) end [2025-01-26 11:14:18] Production.INFO: ProcessCDR(1,14333952,1,1,2) [2025-01-26 11:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333952', 'tblTempUsageDetail_20' ) start [2025-01-26 11:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333952', 'tblTempUsageDetail_20' ) end [2025-01-26 11:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:14:21] Production.INFO: ==5272== Releasing lock... [2025-01-26 11:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:14:21] Production.INFO: 33 MB #Memory Used# [2025-01-26 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:15:05 [end_date_ymd] => 2025-01-26 11:15:05 [RateCDR] => 1 ) [2025-01-26 11:15: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-01-26 08:15:05' and `end` < '2025-01-26 11:15: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-01-26 11:15:19] Production.INFO: count ==603 [2025-01-26 11:15:19] Production.ERROR: pbx CDR StartTime 2025-01-26 08:15:05 - End Time 2025-01-26 11:15:05 [2025-01-26 11:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333957', 'tblTempUsageDetail_20' ) start [2025-01-26 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333957', 'tblTempUsageDetail_20' ) end [2025-01-26 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333957', 'tblTempVendorCDR_20' ) start [2025-01-26 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333957', 'tblTempVendorCDR_20' ) end [2025-01-26 11:15:19] Production.INFO: ProcessCDR(1,14333957,1,1,2) [2025-01-26 11:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333957', 'tblTempUsageDetail_20' ) start [2025-01-26 11:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333957', 'tblTempUsageDetail_20' ) end [2025-01-26 11:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:15:23] Production.INFO: ==5426== Releasing lock... [2025-01-26 11:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:15:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-26 11:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:16:04 [end_date_ymd] => 2025-01-26 11:16:04 [RateCDR] => 1 ) [2025-01-26 11:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 08:16:04' and `end` < '2025-01-26 11:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 11:16:19] Production.INFO: count ==604 [2025-01-26 11:16:19] Production.ERROR: pbx CDR StartTime 2025-01-26 08:16:04 - End Time 2025-01-26 11:16:04 [2025-01-26 11:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333962', 'tblTempUsageDetail_20' ) start [2025-01-26 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333962', 'tblTempUsageDetail_20' ) end [2025-01-26 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333962', 'tblTempVendorCDR_20' ) start [2025-01-26 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333962', 'tblTempVendorCDR_20' ) end [2025-01-26 11:16:19] Production.INFO: ProcessCDR(1,14333962,1,1,2) [2025-01-26 11:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333962', 'tblTempUsageDetail_20' ) start [2025-01-26 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333962', 'tblTempUsageDetail_20' ) end [2025-01-26 11:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:16:22] Production.INFO: ==5500== Releasing lock... [2025-01-26 11:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:16:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-26 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:17:05 [end_date_ymd] => 2025-01-26 11:17:05 [RateCDR] => 1 ) [2025-01-26 11:17: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-01-26 08:17:05' and `end` < '2025-01-26 11:17: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-01-26 11:17:18] Production.INFO: count ==604 [2025-01-26 11:17:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:17:05 - End Time 2025-01-26 11:17:05 [2025-01-26 11:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333967', 'tblTempUsageDetail_20' ) start [2025-01-26 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333967', 'tblTempUsageDetail_20' ) end [2025-01-26 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333967', 'tblTempVendorCDR_20' ) start [2025-01-26 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333967', 'tblTempVendorCDR_20' ) end [2025-01-26 11:17:18] Production.INFO: ProcessCDR(1,14333967,1,1,2) [2025-01-26 11:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333967', 'tblTempUsageDetail_20' ) start [2025-01-26 11:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333967', 'tblTempUsageDetail_20' ) end [2025-01-26 11:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:17:21] Production.INFO: ==5588== Releasing lock... [2025-01-26 11:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:17:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-26 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:18:05 [end_date_ymd] => 2025-01-26 11:18:05 [RateCDR] => 1 ) [2025-01-26 11:18: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-01-26 08:18:05' and `end` < '2025-01-26 11:18: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-01-26 11:18:19] Production.INFO: count ==604 [2025-01-26 11:18:19] Production.ERROR: pbx CDR StartTime 2025-01-26 08:18:05 - End Time 2025-01-26 11:18:05 [2025-01-26 11:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333972', 'tblTempUsageDetail_20' ) start [2025-01-26 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333972', 'tblTempUsageDetail_20' ) end [2025-01-26 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333972', 'tblTempVendorCDR_20' ) start [2025-01-26 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333972', 'tblTempVendorCDR_20' ) end [2025-01-26 11:18:19] Production.INFO: ProcessCDR(1,14333972,1,1,2) [2025-01-26 11:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333972', 'tblTempUsageDetail_20' ) start [2025-01-26 11:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333972', 'tblTempUsageDetail_20' ) end [2025-01-26 11:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:18:22] Production.INFO: ==5665== Releasing lock... [2025-01-26 11:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:18:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-26 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:19:05 [end_date_ymd] => 2025-01-26 11:19:05 [RateCDR] => 1 ) [2025-01-26 11:19: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-01-26 08:19:05' and `end` < '2025-01-26 11:19: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-01-26 11:19:19] Production.INFO: count ==604 [2025-01-26 11:19:19] Production.ERROR: pbx CDR StartTime 2025-01-26 08:19:05 - End Time 2025-01-26 11:19:05 [2025-01-26 11:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333977', 'tblTempUsageDetail_20' ) start [2025-01-26 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333977', 'tblTempUsageDetail_20' ) end [2025-01-26 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333977', 'tblTempVendorCDR_20' ) start [2025-01-26 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333977', 'tblTempVendorCDR_20' ) end [2025-01-26 11:19:19] Production.INFO: ProcessCDR(1,14333977,1,1,2) [2025-01-26 11:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333977', 'tblTempUsageDetail_20' ) start [2025-01-26 11:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333977', 'tblTempUsageDetail_20' ) end [2025-01-26 11:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:19:22] Production.INFO: ==5740== Releasing lock... [2025-01-26 11:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:19:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-26 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:20:06 [end_date_ymd] => 2025-01-26 11:20:06 [RateCDR] => 1 ) [2025-01-26 11:20: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-01-26 08:20:06' and `end` < '2025-01-26 11:20: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-01-26 11:20:18] Production.INFO: count ==619 [2025-01-26 11:20:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:20:06 - End Time 2025-01-26 11:20:06 [2025-01-26 11:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333982', 'tblTempUsageDetail_20' ) start [2025-01-26 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333982', 'tblTempUsageDetail_20' ) end [2025-01-26 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333982', 'tblTempVendorCDR_20' ) start [2025-01-26 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333982', 'tblTempVendorCDR_20' ) end [2025-01-26 11:20:18] Production.INFO: ProcessCDR(1,14333982,1,1,2) [2025-01-26 11:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333982', 'tblTempUsageDetail_20' ) start [2025-01-26 11:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333982', 'tblTempUsageDetail_20' ) end [2025-01-26 11:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:20:21] Production.INFO: ==5815== Releasing lock... [2025-01-26 11:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:20:21] Production.INFO: 33 MB #Memory Used# [2025-01-26 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:21:05 [end_date_ymd] => 2025-01-26 11:21:05 [RateCDR] => 1 ) [2025-01-26 11:21: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-01-26 08:21:05' and `end` < '2025-01-26 11:21: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-01-26 11:21:17] Production.INFO: count ==655 [2025-01-26 11:21:17] Production.ERROR: pbx CDR StartTime 2025-01-26 08:21:05 - End Time 2025-01-26 11:21:05 [2025-01-26 11:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333988', 'tblTempUsageDetail_20' ) start [2025-01-26 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333988', 'tblTempUsageDetail_20' ) end [2025-01-26 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333988', 'tblTempVendorCDR_20' ) start [2025-01-26 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333988', 'tblTempVendorCDR_20' ) end [2025-01-26 11:21:18] Production.INFO: ProcessCDR(1,14333988,1,1,2) [2025-01-26 11:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333988', 'tblTempUsageDetail_20' ) start [2025-01-26 11:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333988', 'tblTempUsageDetail_20' ) end [2025-01-26 11:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:21:22] Production.INFO: ==5892== Releasing lock... [2025-01-26 11:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:21:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-26 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:22:05 [end_date_ymd] => 2025-01-26 11:22:05 [RateCDR] => 1 ) [2025-01-26 11:22: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-01-26 08:22:05' and `end` < '2025-01-26 11:22: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-01-26 11:22:19] Production.INFO: count ==661 [2025-01-26 11:22:19] Production.ERROR: pbx CDR StartTime 2025-01-26 08:22:05 - End Time 2025-01-26 11:22:05 [2025-01-26 11:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333993', 'tblTempUsageDetail_20' ) start [2025-01-26 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333993', 'tblTempUsageDetail_20' ) end [2025-01-26 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333993', 'tblTempVendorCDR_20' ) start [2025-01-26 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333993', 'tblTempVendorCDR_20' ) end [2025-01-26 11:22:19] Production.INFO: ProcessCDR(1,14333993,1,1,2) [2025-01-26 11:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333993', 'tblTempUsageDetail_20' ) start [2025-01-26 11:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333993', 'tblTempUsageDetail_20' ) end [2025-01-26 11:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:22:23] Production.INFO: ==5967== Releasing lock... [2025-01-26 11:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:22:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-26 11:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:23:04 [end_date_ymd] => 2025-01-26 11:23:04 [RateCDR] => 1 ) [2025-01-26 11:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 08:23:04' and `end` < '2025-01-26 11:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 11:23:17] Production.INFO: count ==667 [2025-01-26 11:23:17] Production.ERROR: pbx CDR StartTime 2025-01-26 08:23:04 - End Time 2025-01-26 11:23:04 [2025-01-26 11:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333998', 'tblTempUsageDetail_20' ) start [2025-01-26 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14333998', 'tblTempUsageDetail_20' ) end [2025-01-26 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333998', 'tblTempVendorCDR_20' ) start [2025-01-26 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14333998', 'tblTempVendorCDR_20' ) end [2025-01-26 11:23:17] Production.INFO: ProcessCDR(1,14333998,1,1,2) [2025-01-26 11:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14333998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14333998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14333998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14333998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333998', 'tblTempUsageDetail_20' ) start [2025-01-26 11:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14333998', 'tblTempUsageDetail_20' ) end [2025-01-26 11:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:23:20] Production.INFO: ==6088== Releasing lock... [2025-01-26 11:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:23:20] Production.INFO: 33.75 MB #Memory Used# [2025-01-26 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:24:06 [end_date_ymd] => 2025-01-26 11:24:06 [RateCDR] => 1 ) [2025-01-26 11:24: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-01-26 08:24:06' and `end` < '2025-01-26 11:24: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-01-26 11:24:18] Production.INFO: count ==671 [2025-01-26 11:24:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:24:06 - End Time 2025-01-26 11:24:06 [2025-01-26 11:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334003', 'tblTempUsageDetail_20' ) start [2025-01-26 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334003', 'tblTempUsageDetail_20' ) end [2025-01-26 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334003', 'tblTempVendorCDR_20' ) start [2025-01-26 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334003', 'tblTempVendorCDR_20' ) end [2025-01-26 11:24:19] Production.INFO: ProcessCDR(1,14334003,1,1,2) [2025-01-26 11:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334003', 'tblTempUsageDetail_20' ) start [2025-01-26 11:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334003', 'tblTempUsageDetail_20' ) end [2025-01-26 11:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:24:23] Production.INFO: ==6161== Releasing lock... [2025-01-26 11:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:24:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-26 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:25:05 [end_date_ymd] => 2025-01-26 11:25:05 [RateCDR] => 1 ) [2025-01-26 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 08:25:05' and `end` < '2025-01-26 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 11:25:18] Production.INFO: count ==672 [2025-01-26 11:25:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:25:05 - End Time 2025-01-26 11:25:05 [2025-01-26 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334008', 'tblTempUsageDetail_20' ) start [2025-01-26 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334008', 'tblTempUsageDetail_20' ) end [2025-01-26 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334008', 'tblTempVendorCDR_20' ) start [2025-01-26 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334008', 'tblTempVendorCDR_20' ) end [2025-01-26 11:25:18] Production.INFO: ProcessCDR(1,14334008,1,1,2) [2025-01-26 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334008', 'tblTempUsageDetail_20' ) start [2025-01-26 11:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334008', 'tblTempUsageDetail_20' ) end [2025-01-26 11:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:25:21] Production.INFO: ==6236== Releasing lock... [2025-01-26 11:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:25:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-26 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:26:05 [end_date_ymd] => 2025-01-26 11:26:05 [RateCDR] => 1 ) [2025-01-26 11:26: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-01-26 08:26:05' and `end` < '2025-01-26 11:26: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-01-26 11:26:18] Production.INFO: count ==679 [2025-01-26 11:26:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:26:05 - End Time 2025-01-26 11:26:05 [2025-01-26 11:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334013', 'tblTempUsageDetail_20' ) start [2025-01-26 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334013', 'tblTempUsageDetail_20' ) end [2025-01-26 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334013', 'tblTempVendorCDR_20' ) start [2025-01-26 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334013', 'tblTempVendorCDR_20' ) end [2025-01-26 11:26:18] Production.INFO: ProcessCDR(1,14334013,1,1,2) [2025-01-26 11:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334013', 'tblTempUsageDetail_20' ) start [2025-01-26 11:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334013', 'tblTempUsageDetail_20' ) end [2025-01-26 11:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:26:23] Production.INFO: ==6307== Releasing lock... [2025-01-26 11:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:26:23] Production.INFO: 34 MB #Memory Used# [2025-01-26 11:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:27:04 [end_date_ymd] => 2025-01-26 11:27:04 [RateCDR] => 1 ) [2025-01-26 11:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 08:27:04' and `end` < '2025-01-26 11:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 11:27:18] Production.INFO: count ==684 [2025-01-26 11:27:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:27:04 - End Time 2025-01-26 11:27:04 [2025-01-26 11:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334018', 'tblTempUsageDetail_20' ) start [2025-01-26 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334018', 'tblTempUsageDetail_20' ) end [2025-01-26 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334018', 'tblTempVendorCDR_20' ) start [2025-01-26 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334018', 'tblTempVendorCDR_20' ) end [2025-01-26 11:27:18] Production.INFO: ProcessCDR(1,14334018,1,1,2) [2025-01-26 11:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334018', 'tblTempUsageDetail_20' ) start [2025-01-26 11:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334018', 'tblTempUsageDetail_20' ) end [2025-01-26 11:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:27:23] Production.INFO: ==6384== Releasing lock... [2025-01-26 11:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:27:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-26 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:28:05 [end_date_ymd] => 2025-01-26 11:28:05 [RateCDR] => 1 ) [2025-01-26 11:28: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-01-26 08:28:05' and `end` < '2025-01-26 11:28: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-01-26 11:28:19] Production.INFO: count ==686 [2025-01-26 11:28:19] Production.ERROR: pbx CDR StartTime 2025-01-26 08:28:05 - End Time 2025-01-26 11:28:05 [2025-01-26 11:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334023', 'tblTempUsageDetail_20' ) start [2025-01-26 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334023', 'tblTempUsageDetail_20' ) end [2025-01-26 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334023', 'tblTempVendorCDR_20' ) start [2025-01-26 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334023', 'tblTempVendorCDR_20' ) end [2025-01-26 11:28:19] Production.INFO: ProcessCDR(1,14334023,1,1,2) [2025-01-26 11:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334023', 'tblTempUsageDetail_20' ) start [2025-01-26 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334023', 'tblTempUsageDetail_20' ) end [2025-01-26 11:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:28:23] Production.INFO: ==6473== Releasing lock... [2025-01-26 11:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:28:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-26 11:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:29:04 [end_date_ymd] => 2025-01-26 11:29:04 [RateCDR] => 1 ) [2025-01-26 11:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 08:29:04' and `end` < '2025-01-26 11:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 11:29:17] Production.INFO: count ==689 [2025-01-26 11:29:17] Production.ERROR: pbx CDR StartTime 2025-01-26 08:29:04 - End Time 2025-01-26 11:29:04 [2025-01-26 11:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334025', 'tblTempUsageDetail_20' ) start [2025-01-26 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334025', 'tblTempUsageDetail_20' ) end [2025-01-26 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334025', 'tblTempVendorCDR_20' ) start [2025-01-26 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334025', 'tblTempVendorCDR_20' ) end [2025-01-26 11:29:17] Production.INFO: ProcessCDR(1,14334025,1,1,2) [2025-01-26 11:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334025', 'tblTempUsageDetail_20' ) start [2025-01-26 11:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334025', 'tblTempUsageDetail_20' ) end [2025-01-26 11:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:29:21] Production.INFO: ==6565== Releasing lock... [2025-01-26 11:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:29:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-26 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:30:06 [end_date_ymd] => 2025-01-26 11:30:06 [RateCDR] => 1 ) [2025-01-26 11:30: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-01-26 08:30:06' and `end` < '2025-01-26 11:30: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-01-26 11:30:18] Production.INFO: count ==687 [2025-01-26 11:30:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:30:06 - End Time 2025-01-26 11:30:06 [2025-01-26 11:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334033', 'tblTempUsageDetail_20' ) start [2025-01-26 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334033', 'tblTempUsageDetail_20' ) end [2025-01-26 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334033', 'tblTempVendorCDR_20' ) start [2025-01-26 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334033', 'tblTempVendorCDR_20' ) end [2025-01-26 11:30:18] Production.INFO: ProcessCDR(1,14334033,1,1,2) [2025-01-26 11:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334033', 'tblTempUsageDetail_20' ) start [2025-01-26 11:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334033', 'tblTempUsageDetail_20' ) end [2025-01-26 11:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:30:23] Production.INFO: ==6663== Releasing lock... [2025-01-26 11:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:30:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-26 11:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:31:06 [end_date_ymd] => 2025-01-26 11:31:06 [RateCDR] => 1 ) [2025-01-26 11:31: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-01-26 08:31:06' and `end` < '2025-01-26 11:31: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-01-26 11:31:19] Production.INFO: count ==721 [2025-01-26 11:31:19] Production.ERROR: pbx CDR StartTime 2025-01-26 08:31:06 - End Time 2025-01-26 11:31:06 [2025-01-26 11:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334039', 'tblTempUsageDetail_20' ) start [2025-01-26 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334039', 'tblTempUsageDetail_20' ) end [2025-01-26 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334039', 'tblTempVendorCDR_20' ) start [2025-01-26 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334039', 'tblTempVendorCDR_20' ) end [2025-01-26 11:31:19] Production.INFO: ProcessCDR(1,14334039,1,1,2) [2025-01-26 11:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334039', 'tblTempUsageDetail_20' ) start [2025-01-26 11:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334039', 'tblTempUsageDetail_20' ) end [2025-01-26 11:31:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:31:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:31:24] Production.INFO: ==6762== Releasing lock... [2025-01-26 11:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:31:24] Production.INFO: 34 MB #Memory Used# [2025-01-26 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:32:05 [end_date_ymd] => 2025-01-26 11:32:05 [RateCDR] => 1 ) [2025-01-26 11:32: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-01-26 08:32:05' and `end` < '2025-01-26 11:32: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-01-26 11:32:19] Production.INFO: count ==723 [2025-01-26 11:32:19] Production.ERROR: pbx CDR StartTime 2025-01-26 08:32:05 - End Time 2025-01-26 11:32:05 [2025-01-26 11:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334044', 'tblTempUsageDetail_20' ) start [2025-01-26 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334044', 'tblTempUsageDetail_20' ) end [2025-01-26 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334044', 'tblTempVendorCDR_20' ) start [2025-01-26 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334044', 'tblTempVendorCDR_20' ) end [2025-01-26 11:32:19] Production.INFO: ProcessCDR(1,14334044,1,1,2) [2025-01-26 11:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334044', 'tblTempUsageDetail_20' ) start [2025-01-26 11:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334044', 'tblTempUsageDetail_20' ) end [2025-01-26 11:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:32:23] Production.INFO: ==6858== Releasing lock... [2025-01-26 11:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:32:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-26 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:33:05 [end_date_ymd] => 2025-01-26 11:33:05 [RateCDR] => 1 ) [2025-01-26 11:33: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-01-26 08:33:05' and `end` < '2025-01-26 11:33: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-01-26 11:33:19] Production.INFO: count ==727 [2025-01-26 11:33:19] Production.ERROR: pbx CDR StartTime 2025-01-26 08:33:05 - End Time 2025-01-26 11:33:05 [2025-01-26 11:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334049', 'tblTempUsageDetail_20' ) start [2025-01-26 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334049', 'tblTempUsageDetail_20' ) end [2025-01-26 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334049', 'tblTempVendorCDR_20' ) start [2025-01-26 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334049', 'tblTempVendorCDR_20' ) end [2025-01-26 11:33:19] Production.INFO: ProcessCDR(1,14334049,1,1,2) [2025-01-26 11:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334049', 'tblTempUsageDetail_20' ) start [2025-01-26 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334049', 'tblTempUsageDetail_20' ) end [2025-01-26 11:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:33:24] Production.INFO: ==6978== Releasing lock... [2025-01-26 11:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:33:24] Production.INFO: 34 MB #Memory Used# [2025-01-26 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:34:05 [end_date_ymd] => 2025-01-26 11:34:05 [RateCDR] => 1 ) [2025-01-26 11:34: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-01-26 08:34:05' and `end` < '2025-01-26 11:34: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-01-26 11:34:17] Production.INFO: count ==728 [2025-01-26 11:34:17] Production.ERROR: pbx CDR StartTime 2025-01-26 08:34:05 - End Time 2025-01-26 11:34:05 [2025-01-26 11:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334054', 'tblTempUsageDetail_20' ) start [2025-01-26 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334054', 'tblTempUsageDetail_20' ) end [2025-01-26 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334054', 'tblTempVendorCDR_20' ) start [2025-01-26 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334054', 'tblTempVendorCDR_20' ) end [2025-01-26 11:34:17] Production.INFO: ProcessCDR(1,14334054,1,1,2) [2025-01-26 11:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334054', 'tblTempUsageDetail_20' ) start [2025-01-26 11:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334054', 'tblTempUsageDetail_20' ) end [2025-01-26 11:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:34:22] Production.INFO: ==7093== Releasing lock... [2025-01-26 11:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:34:22] Production.INFO: 34 MB #Memory Used# [2025-01-26 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:35:05 [end_date_ymd] => 2025-01-26 11:35:05 [RateCDR] => 1 ) [2025-01-26 11:35: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-01-26 08:35:05' and `end` < '2025-01-26 11:35: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-01-26 11:35:18] Production.INFO: count ==732 [2025-01-26 11:35:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:35:05 - End Time 2025-01-26 11:35:05 [2025-01-26 11:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334059', 'tblTempUsageDetail_20' ) start [2025-01-26 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334059', 'tblTempUsageDetail_20' ) end [2025-01-26 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334059', 'tblTempVendorCDR_20' ) start [2025-01-26 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334059', 'tblTempVendorCDR_20' ) end [2025-01-26 11:35:18] Production.INFO: ProcessCDR(1,14334059,1,1,2) [2025-01-26 11:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334059', 'tblTempUsageDetail_20' ) start [2025-01-26 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334059', 'tblTempUsageDetail_20' ) end [2025-01-26 11:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:35:22] Production.INFO: ==7207== Releasing lock... [2025-01-26 11:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:35:22] Production.INFO: 34 MB #Memory Used# [2025-01-26 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:36:05 [end_date_ymd] => 2025-01-26 11:36:05 [RateCDR] => 1 ) [2025-01-26 11:36: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-01-26 08:36:05' and `end` < '2025-01-26 11:36: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-01-26 11:36:17] Production.INFO: count ==743 [2025-01-26 11:36:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:36:05 - End Time 2025-01-26 11:36:05 [2025-01-26 11:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334064', 'tblTempUsageDetail_20' ) start [2025-01-26 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334064', 'tblTempUsageDetail_20' ) end [2025-01-26 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334064', 'tblTempVendorCDR_20' ) start [2025-01-26 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334064', 'tblTempVendorCDR_20' ) end [2025-01-26 11:36:18] Production.INFO: ProcessCDR(1,14334064,1,1,2) [2025-01-26 11:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334064', 'tblTempUsageDetail_20' ) start [2025-01-26 11:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334064', 'tblTempUsageDetail_20' ) end [2025-01-26 11:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:36:22] Production.INFO: ==7327== Releasing lock... [2025-01-26 11:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:36:22] Production.INFO: 34 MB #Memory Used# [2025-01-26 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:37:05 [end_date_ymd] => 2025-01-26 11:37:05 [RateCDR] => 1 ) [2025-01-26 11:37: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-01-26 08:37:05' and `end` < '2025-01-26 11:37: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-01-26 11:37:18] Production.INFO: count ==754 [2025-01-26 11:37:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:37:05 - End Time 2025-01-26 11:37:05 [2025-01-26 11:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334069', 'tblTempUsageDetail_20' ) start [2025-01-26 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334069', 'tblTempUsageDetail_20' ) end [2025-01-26 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334069', 'tblTempVendorCDR_20' ) start [2025-01-26 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334069', 'tblTempVendorCDR_20' ) end [2025-01-26 11:37:18] Production.INFO: ProcessCDR(1,14334069,1,1,2) [2025-01-26 11:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334069', 'tblTempUsageDetail_20' ) start [2025-01-26 11:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334069', 'tblTempUsageDetail_20' ) end [2025-01-26 11:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:37:23] Production.INFO: ==7443== Releasing lock... [2025-01-26 11:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:37:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-26 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:38:05 [end_date_ymd] => 2025-01-26 11:38:05 [RateCDR] => 1 ) [2025-01-26 11:38: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-01-26 08:38:05' and `end` < '2025-01-26 11:38: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-01-26 11:38:18] Production.INFO: count ==758 [2025-01-26 11:38:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:38:05 - End Time 2025-01-26 11:38:05 [2025-01-26 11:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334074', 'tblTempUsageDetail_20' ) start [2025-01-26 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334074', 'tblTempUsageDetail_20' ) end [2025-01-26 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334074', 'tblTempVendorCDR_20' ) start [2025-01-26 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334074', 'tblTempVendorCDR_20' ) end [2025-01-26 11:38:18] Production.INFO: ProcessCDR(1,14334074,1,1,2) [2025-01-26 11:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334074', 'tblTempUsageDetail_20' ) start [2025-01-26 11:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334074', 'tblTempUsageDetail_20' ) end [2025-01-26 11:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:38:23] Production.INFO: ==7574== Releasing lock... [2025-01-26 11:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:38:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-26 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:39:05 [end_date_ymd] => 2025-01-26 11:39:05 [RateCDR] => 1 ) [2025-01-26 11:39: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-01-26 08:39:05' and `end` < '2025-01-26 11:39: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-01-26 11:39:18] Production.INFO: count ==760 [2025-01-26 11:39:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:39:05 - End Time 2025-01-26 11:39:05 [2025-01-26 11:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334079', 'tblTempUsageDetail_20' ) start [2025-01-26 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334079', 'tblTempUsageDetail_20' ) end [2025-01-26 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334079', 'tblTempVendorCDR_20' ) start [2025-01-26 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334079', 'tblTempVendorCDR_20' ) end [2025-01-26 11:39:18] Production.INFO: ProcessCDR(1,14334079,1,1,2) [2025-01-26 11:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334079', 'tblTempUsageDetail_20' ) start [2025-01-26 11:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334079', 'tblTempUsageDetail_20' ) end [2025-01-26 11:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:39:22] Production.INFO: ==7732== Releasing lock... [2025-01-26 11:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:39:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-26 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:40:06 [end_date_ymd] => 2025-01-26 11:40:06 [RateCDR] => 1 ) [2025-01-26 11:40: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-01-26 08:40:06' and `end` < '2025-01-26 11:40: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-01-26 11:40:19] Production.INFO: count ==770 [2025-01-26 11:40:19] Production.ERROR: pbx CDR StartTime 2025-01-26 08:40:06 - End Time 2025-01-26 11:40:06 [2025-01-26 11:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334085', 'tblTempUsageDetail_20' ) start [2025-01-26 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334085', 'tblTempUsageDetail_20' ) end [2025-01-26 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334085', 'tblTempVendorCDR_20' ) start [2025-01-26 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334085', 'tblTempVendorCDR_20' ) end [2025-01-26 11:40:19] Production.INFO: ProcessCDR(1,14334085,1,1,2) [2025-01-26 11:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334085', 'tblTempUsageDetail_20' ) start [2025-01-26 11:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334085', 'tblTempUsageDetail_20' ) end [2025-01-26 11:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:40:24] Production.INFO: ==7853== Releasing lock... [2025-01-26 11:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:40:24] Production.INFO: 34.25 MB #Memory Used# [2025-01-26 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:41:05 [end_date_ymd] => 2025-01-26 11:41:05 [RateCDR] => 1 ) [2025-01-26 11:41: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-01-26 08:41:05' and `end` < '2025-01-26 11:41: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-01-26 11:41:17] Production.INFO: count ==814 [2025-01-26 11:41:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:41:05 - End Time 2025-01-26 11:41:05 [2025-01-26 11:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334090', 'tblTempUsageDetail_20' ) start [2025-01-26 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334090', 'tblTempUsageDetail_20' ) end [2025-01-26 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334090', 'tblTempVendorCDR_20' ) start [2025-01-26 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334090', 'tblTempVendorCDR_20' ) end [2025-01-26 11:41:18] Production.INFO: ProcessCDR(1,14334090,1,1,2) [2025-01-26 11:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334090', 'tblTempUsageDetail_20' ) start [2025-01-26 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334090', 'tblTempUsageDetail_20' ) end [2025-01-26 11:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:41:22] Production.INFO: ==7972== Releasing lock... [2025-01-26 11:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:41:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-26 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:42:05 [end_date_ymd] => 2025-01-26 11:42:05 [RateCDR] => 1 ) [2025-01-26 11:42: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-01-26 08:42:05' and `end` < '2025-01-26 11:42: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-01-26 11:42:18] Production.INFO: count ==819 [2025-01-26 11:42:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:42:05 - End Time 2025-01-26 11:42:05 [2025-01-26 11:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334095', 'tblTempUsageDetail_20' ) start [2025-01-26 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334095', 'tblTempUsageDetail_20' ) end [2025-01-26 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334095', 'tblTempVendorCDR_20' ) start [2025-01-26 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334095', 'tblTempVendorCDR_20' ) end [2025-01-26 11:42:18] Production.INFO: ProcessCDR(1,14334095,1,1,2) [2025-01-26 11:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334095', 'tblTempUsageDetail_20' ) start [2025-01-26 11:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334095', 'tblTempUsageDetail_20' ) end [2025-01-26 11:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:42:23] Production.INFO: ==8091== Releasing lock... [2025-01-26 11:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:42:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-26 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:43:05 [end_date_ymd] => 2025-01-26 11:43:05 [RateCDR] => 1 ) [2025-01-26 11:43: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-01-26 08:43:05' and `end` < '2025-01-26 11:43: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-01-26 11:43:18] Production.INFO: count ==828 [2025-01-26 11:43:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:43:05 - End Time 2025-01-26 11:43:05 [2025-01-26 11:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334100', 'tblTempUsageDetail_20' ) start [2025-01-26 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334100', 'tblTempUsageDetail_20' ) end [2025-01-26 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334100', 'tblTempVendorCDR_20' ) start [2025-01-26 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334100', 'tblTempVendorCDR_20' ) end [2025-01-26 11:43:18] Production.INFO: ProcessCDR(1,14334100,1,1,2) [2025-01-26 11:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334100', 'tblTempUsageDetail_20' ) start [2025-01-26 11:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334100', 'tblTempUsageDetail_20' ) end [2025-01-26 11:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:43:23] Production.INFO: ==8211== Releasing lock... [2025-01-26 11:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:43:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-26 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:44:05 [end_date_ymd] => 2025-01-26 11:44:05 [RateCDR] => 1 ) [2025-01-26 11:44: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-01-26 08:44:05' and `end` < '2025-01-26 11:44: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-01-26 11:44:18] Production.INFO: count ==830 [2025-01-26 11:44:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:44:05 - End Time 2025-01-26 11:44:05 [2025-01-26 11:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334105', 'tblTempUsageDetail_20' ) start [2025-01-26 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334105', 'tblTempUsageDetail_20' ) end [2025-01-26 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334105', 'tblTempVendorCDR_20' ) start [2025-01-26 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334105', 'tblTempVendorCDR_20' ) end [2025-01-26 11:44:18] Production.INFO: ProcessCDR(1,14334105,1,1,2) [2025-01-26 11:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334105', 'tblTempUsageDetail_20' ) start [2025-01-26 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334105', 'tblTempUsageDetail_20' ) end [2025-01-26 11:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:44:23] Production.INFO: ==8333== Releasing lock... [2025-01-26 11:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:44:23] Production.INFO: 35 MB #Memory Used# [2025-01-26 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:45:05 [end_date_ymd] => 2025-01-26 11:45:05 [RateCDR] => 1 ) [2025-01-26 11:45: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-01-26 08:45:05' and `end` < '2025-01-26 11:45: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-01-26 11:45:17] Production.INFO: count ==832 [2025-01-26 11:45:17] Production.ERROR: pbx CDR StartTime 2025-01-26 08:45:05 - End Time 2025-01-26 11:45:05 [2025-01-26 11:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334110', 'tblTempUsageDetail_20' ) start [2025-01-26 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334110', 'tblTempUsageDetail_20' ) end [2025-01-26 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334110', 'tblTempVendorCDR_20' ) start [2025-01-26 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334110', 'tblTempVendorCDR_20' ) end [2025-01-26 11:45:18] Production.INFO: ProcessCDR(1,14334110,1,1,2) [2025-01-26 11:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334110', 'tblTempUsageDetail_20' ) start [2025-01-26 11:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334110', 'tblTempUsageDetail_20' ) end [2025-01-26 11:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:45:22] Production.INFO: ==8445== Releasing lock... [2025-01-26 11:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:45:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-26 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:46:05 [end_date_ymd] => 2025-01-26 11:46:05 [RateCDR] => 1 ) [2025-01-26 11:46: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-01-26 08:46:05' and `end` < '2025-01-26 11:46: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-01-26 11:46:19] Production.INFO: count ==832 [2025-01-26 11:46:19] Production.ERROR: pbx CDR StartTime 2025-01-26 08:46:05 - End Time 2025-01-26 11:46:05 [2025-01-26 11:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334115', 'tblTempUsageDetail_20' ) start [2025-01-26 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334115', 'tblTempUsageDetail_20' ) end [2025-01-26 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334115', 'tblTempVendorCDR_20' ) start [2025-01-26 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334115', 'tblTempVendorCDR_20' ) end [2025-01-26 11:46:19] Production.INFO: ProcessCDR(1,14334115,1,1,2) [2025-01-26 11:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334115', 'tblTempUsageDetail_20' ) start [2025-01-26 11:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334115', 'tblTempUsageDetail_20' ) end [2025-01-26 11:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:46:22] Production.INFO: ==8566== Releasing lock... [2025-01-26 11:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:46:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-26 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:47:05 [end_date_ymd] => 2025-01-26 11:47:05 [RateCDR] => 1 ) [2025-01-26 11:47: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-01-26 08:47:05' and `end` < '2025-01-26 11:47: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-01-26 11:47:17] Production.INFO: count ==835 [2025-01-26 11:47:17] Production.ERROR: pbx CDR StartTime 2025-01-26 08:47:05 - End Time 2025-01-26 11:47:05 [2025-01-26 11:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334120', 'tblTempUsageDetail_20' ) start [2025-01-26 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334120', 'tblTempUsageDetail_20' ) end [2025-01-26 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334120', 'tblTempVendorCDR_20' ) start [2025-01-26 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334120', 'tblTempVendorCDR_20' ) end [2025-01-26 11:47:18] Production.INFO: ProcessCDR(1,14334120,1,1,2) [2025-01-26 11:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334120', 'tblTempUsageDetail_20' ) start [2025-01-26 11:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334120', 'tblTempUsageDetail_20' ) end [2025-01-26 11:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:47:21] Production.INFO: ==8684== Releasing lock... [2025-01-26 11:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:47:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-26 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:48:05 [end_date_ymd] => 2025-01-26 11:48:05 [RateCDR] => 1 ) [2025-01-26 11:48: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-01-26 08:48:05' and `end` < '2025-01-26 11:48: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-01-26 11:48:18] Production.INFO: count ==835 [2025-01-26 11:48:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:48:05 - End Time 2025-01-26 11:48:05 [2025-01-26 11:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334125', 'tblTempUsageDetail_20' ) start [2025-01-26 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334125', 'tblTempUsageDetail_20' ) end [2025-01-26 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334125', 'tblTempVendorCDR_20' ) start [2025-01-26 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334125', 'tblTempVendorCDR_20' ) end [2025-01-26 11:48:18] Production.INFO: ProcessCDR(1,14334125,1,1,2) [2025-01-26 11:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334125', 'tblTempUsageDetail_20' ) start [2025-01-26 11:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334125', 'tblTempUsageDetail_20' ) end [2025-01-26 11:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:48:21] Production.INFO: ==8806== Releasing lock... [2025-01-26 11:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:48:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-26 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:49:05 [end_date_ymd] => 2025-01-26 11:49:05 [RateCDR] => 1 ) [2025-01-26 11:49: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-01-26 08:49:05' and `end` < '2025-01-26 11:49: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-01-26 11:49:18] Production.INFO: count ==847 [2025-01-26 11:49:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:49:05 - End Time 2025-01-26 11:49:05 [2025-01-26 11:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334130', 'tblTempUsageDetail_20' ) start [2025-01-26 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334130', 'tblTempUsageDetail_20' ) end [2025-01-26 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334130', 'tblTempVendorCDR_20' ) start [2025-01-26 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334130', 'tblTempVendorCDR_20' ) end [2025-01-26 11:49:18] Production.INFO: ProcessCDR(1,14334130,1,1,2) [2025-01-26 11:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334130', 'tblTempUsageDetail_20' ) start [2025-01-26 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334130', 'tblTempUsageDetail_20' ) end [2025-01-26 11:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:49:23] Production.INFO: ==8930== Releasing lock... [2025-01-26 11:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:49:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-26 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:50:06 [end_date_ymd] => 2025-01-26 11:50:06 [RateCDR] => 1 ) [2025-01-26 11:50: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-01-26 08:50:06' and `end` < '2025-01-26 11:50: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-01-26 11:50:18] Production.INFO: count ==865 [2025-01-26 11:50:19] Production.ERROR: pbx CDR StartTime 2025-01-26 08:50:06 - End Time 2025-01-26 11:50:06 [2025-01-26 11:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334136', 'tblTempUsageDetail_20' ) start [2025-01-26 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334136', 'tblTempUsageDetail_20' ) end [2025-01-26 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334136', 'tblTempVendorCDR_20' ) start [2025-01-26 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334136', 'tblTempVendorCDR_20' ) end [2025-01-26 11:50:19] Production.INFO: ProcessCDR(1,14334136,1,1,2) [2025-01-26 11:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334136', 'tblTempUsageDetail_20' ) start [2025-01-26 11:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334136', 'tblTempUsageDetail_20' ) end [2025-01-26 11:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:50:22] Production.INFO: ==9056== Releasing lock... [2025-01-26 11:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:50:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-26 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:51:05 [end_date_ymd] => 2025-01-26 11:51:05 [RateCDR] => 1 ) [2025-01-26 11:51: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-01-26 08:51:05' and `end` < '2025-01-26 11:51: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-01-26 11:51:18] Production.INFO: count ==918 [2025-01-26 11:51:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:51:05 - End Time 2025-01-26 11:51:05 [2025-01-26 11:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334141', 'tblTempUsageDetail_20' ) start [2025-01-26 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334141', 'tblTempUsageDetail_20' ) end [2025-01-26 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334141', 'tblTempVendorCDR_20' ) start [2025-01-26 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334141', 'tblTempVendorCDR_20' ) end [2025-01-26 11:51:18] Production.INFO: ProcessCDR(1,14334141,1,1,2) [2025-01-26 11:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334141', 'tblTempUsageDetail_20' ) start [2025-01-26 11:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334141', 'tblTempUsageDetail_20' ) end [2025-01-26 11:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:51:23] Production.INFO: ==9164== Releasing lock... [2025-01-26 11:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:51:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-26 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:52:05 [end_date_ymd] => 2025-01-26 11:52:05 [RateCDR] => 1 ) [2025-01-26 11:52: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-01-26 08:52:05' and `end` < '2025-01-26 11:52: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-01-26 11:52:17] Production.INFO: count ==928 [2025-01-26 11:52:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:52:05 - End Time 2025-01-26 11:52:05 [2025-01-26 11:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334146', 'tblTempUsageDetail_20' ) start [2025-01-26 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334146', 'tblTempUsageDetail_20' ) end [2025-01-26 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334146', 'tblTempVendorCDR_20' ) start [2025-01-26 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334146', 'tblTempVendorCDR_20' ) end [2025-01-26 11:52:18] Production.INFO: ProcessCDR(1,14334146,1,1,2) [2025-01-26 11:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334146', 'tblTempUsageDetail_20' ) start [2025-01-26 11:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334146', 'tblTempUsageDetail_20' ) end [2025-01-26 11:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:52:22] Production.INFO: ==9259== Releasing lock... [2025-01-26 11:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:52:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-26 11:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:53:06 [end_date_ymd] => 2025-01-26 11:53:06 [RateCDR] => 1 ) [2025-01-26 11:53: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-01-26 08:53:06' and `end` < '2025-01-26 11:53: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-01-26 11:53:18] Production.INFO: count ==930 [2025-01-26 11:53:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:53:06 - End Time 2025-01-26 11:53:06 [2025-01-26 11:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334151', 'tblTempUsageDetail_20' ) start [2025-01-26 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334151', 'tblTempUsageDetail_20' ) end [2025-01-26 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334151', 'tblTempVendorCDR_20' ) start [2025-01-26 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334151', 'tblTempVendorCDR_20' ) end [2025-01-26 11:53:18] Production.INFO: ProcessCDR(1,14334151,1,1,2) [2025-01-26 11:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334151', 'tblTempUsageDetail_20' ) start [2025-01-26 11:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334151', 'tblTempUsageDetail_20' ) end [2025-01-26 11:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:53:23] Production.INFO: ==9352== Releasing lock... [2025-01-26 11:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:53:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-26 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:54:05 [end_date_ymd] => 2025-01-26 11:54:05 [RateCDR] => 1 ) [2025-01-26 11:54: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-01-26 08:54:05' and `end` < '2025-01-26 11:54: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-01-26 11:54:18] Production.INFO: count ==933 [2025-01-26 11:54:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:54:05 - End Time 2025-01-26 11:54:05 [2025-01-26 11:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334156', 'tblTempUsageDetail_20' ) start [2025-01-26 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334156', 'tblTempUsageDetail_20' ) end [2025-01-26 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334156', 'tblTempVendorCDR_20' ) start [2025-01-26 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334156', 'tblTempVendorCDR_20' ) end [2025-01-26 11:54:18] Production.INFO: ProcessCDR(1,14334156,1,1,2) [2025-01-26 11:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334156', 'tblTempUsageDetail_20' ) start [2025-01-26 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334156', 'tblTempUsageDetail_20' ) end [2025-01-26 11:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:54:23] Production.INFO: ==9485== Releasing lock... [2025-01-26 11:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:54:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-26 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:55:05 [end_date_ymd] => 2025-01-26 11:55:05 [RateCDR] => 1 ) [2025-01-26 11:55: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-01-26 08:55:05' and `end` < '2025-01-26 11:55: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-01-26 11:55:17] Production.INFO: count ==937 [2025-01-26 11:55:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:55:05 - End Time 2025-01-26 11:55:05 [2025-01-26 11:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334161', 'tblTempUsageDetail_20' ) start [2025-01-26 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334161', 'tblTempUsageDetail_20' ) end [2025-01-26 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334161', 'tblTempVendorCDR_20' ) start [2025-01-26 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334161', 'tblTempVendorCDR_20' ) end [2025-01-26 11:55:18] Production.INFO: ProcessCDR(1,14334161,1,1,2) [2025-01-26 11:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334161', 'tblTempUsageDetail_20' ) start [2025-01-26 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334161', 'tblTempUsageDetail_20' ) end [2025-01-26 11:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:55:22] Production.INFO: ==9573== Releasing lock... [2025-01-26 11:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:55:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-26 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:56:05 [end_date_ymd] => 2025-01-26 11:56:05 [RateCDR] => 1 ) [2025-01-26 11:56: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-01-26 08:56:05' and `end` < '2025-01-26 11:56: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-01-26 11:56:17] Production.INFO: count ==939 [2025-01-26 11:56:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:56:05 - End Time 2025-01-26 11:56:05 [2025-01-26 11:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334166', 'tblTempUsageDetail_20' ) start [2025-01-26 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334166', 'tblTempUsageDetail_20' ) end [2025-01-26 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334166', 'tblTempVendorCDR_20' ) start [2025-01-26 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334166', 'tblTempVendorCDR_20' ) end [2025-01-26 11:56:18] Production.INFO: ProcessCDR(1,14334166,1,1,2) [2025-01-26 11:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334166', 'tblTempUsageDetail_20' ) start [2025-01-26 11:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334166', 'tblTempUsageDetail_20' ) end [2025-01-26 11:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:56:22] Production.INFO: ==9665== Releasing lock... [2025-01-26 11:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:56:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-26 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:57:05 [end_date_ymd] => 2025-01-26 11:57:05 [RateCDR] => 1 ) [2025-01-26 11:57: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-01-26 08:57:05' and `end` < '2025-01-26 11:57: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-01-26 11:57:19] Production.INFO: count ==940 [2025-01-26 11:57:19] Production.ERROR: pbx CDR StartTime 2025-01-26 08:57:05 - End Time 2025-01-26 11:57:05 [2025-01-26 11:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334168', 'tblTempUsageDetail_20' ) start [2025-01-26 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334168', 'tblTempUsageDetail_20' ) end [2025-01-26 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334168', 'tblTempVendorCDR_20' ) start [2025-01-26 11:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334168', 'tblTempVendorCDR_20' ) end [2025-01-26 11:57:19] Production.INFO: ProcessCDR(1,14334168,1,1,2) [2025-01-26 11:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334168', 'tblTempUsageDetail_20' ) start [2025-01-26 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334168', 'tblTempUsageDetail_20' ) end [2025-01-26 11:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:57:23] Production.INFO: ==9768== Releasing lock... [2025-01-26 11:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:57:23] Production.INFO: 36 MB #Memory Used# [2025-01-26 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:58:06 [end_date_ymd] => 2025-01-26 11:58:06 [RateCDR] => 1 ) [2025-01-26 11:58: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-01-26 08:58:06' and `end` < '2025-01-26 11:58: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-01-26 11:58:18] Production.INFO: count ==943 [2025-01-26 11:58:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:58:06 - End Time 2025-01-26 11:58:06 [2025-01-26 11:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334176', 'tblTempUsageDetail_20' ) start [2025-01-26 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334176', 'tblTempUsageDetail_20' ) end [2025-01-26 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334176', 'tblTempVendorCDR_20' ) start [2025-01-26 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334176', 'tblTempVendorCDR_20' ) end [2025-01-26 11:58:18] Production.INFO: ProcessCDR(1,14334176,1,1,2) [2025-01-26 11:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334176', 'tblTempUsageDetail_20' ) start [2025-01-26 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334176', 'tblTempUsageDetail_20' ) end [2025-01-26 11:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:58:23] Production.INFO: ==9856== Releasing lock... [2025-01-26 11:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:58:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-26 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 08:59:05 [end_date_ymd] => 2025-01-26 11:59:05 [RateCDR] => 1 ) [2025-01-26 11:59: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-01-26 08:59:05' and `end` < '2025-01-26 11:59: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-01-26 11:59:18] Production.INFO: count ==951 [2025-01-26 11:59:18] Production.ERROR: pbx CDR StartTime 2025-01-26 08:59:05 - End Time 2025-01-26 11:59:05 [2025-01-26 11:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334181', 'tblTempUsageDetail_20' ) start [2025-01-26 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334181', 'tblTempUsageDetail_20' ) end [2025-01-26 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334181', 'tblTempVendorCDR_20' ) start [2025-01-26 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334181', 'tblTempVendorCDR_20' ) end [2025-01-26 11:59:18] Production.INFO: ProcessCDR(1,14334181,1,1,2) [2025-01-26 11:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 11:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 11:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334181', 'tblTempUsageDetail_20' ) start [2025-01-26 11:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334181', 'tblTempUsageDetail_20' ) end [2025-01-26 11:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 11:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 11:59:22] Production.INFO: ==9948== Releasing lock... [2025-01-26 11:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 11:59:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-26 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:00:05 [end_date_ymd] => 2025-01-26 12:00:05 [RateCDR] => 1 ) [2025-01-26 12: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-01-26 09:00:05' and `end` < '2025-01-26 12: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-01-26 12:00:18] Production.INFO: count ==962 [2025-01-26 12:00:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:00:05 - End Time 2025-01-26 12:00:05 [2025-01-26 12:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334186', 'tblTempUsageDetail_20' ) start [2025-01-26 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334186', 'tblTempUsageDetail_20' ) end [2025-01-26 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334186', 'tblTempVendorCDR_20' ) start [2025-01-26 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334186', 'tblTempVendorCDR_20' ) end [2025-01-26 12:00:18] Production.INFO: ProcessCDR(1,14334186,1,1,2) [2025-01-26 12:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334186', 'tblTempUsageDetail_20' ) start [2025-01-26 12:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334186', 'tblTempUsageDetail_20' ) end [2025-01-26 12:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:00:23] Production.INFO: ==10045== Releasing lock... [2025-01-26 12:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:00:23] Production.INFO: 36 MB #Memory Used# [2025-01-26 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:01:05 [end_date_ymd] => 2025-01-26 12:01:05 [RateCDR] => 1 ) [2025-01-26 12:01: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-01-26 09:01:05' and `end` < '2025-01-26 12:01: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-01-26 12:01:17] Production.INFO: count ==993 [2025-01-26 12:01:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:01:05 - End Time 2025-01-26 12:01:05 [2025-01-26 12:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334192', 'tblTempUsageDetail_20' ) start [2025-01-26 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334192', 'tblTempUsageDetail_20' ) end [2025-01-26 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334192', 'tblTempVendorCDR_20' ) start [2025-01-26 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334192', 'tblTempVendorCDR_20' ) end [2025-01-26 12:01:18] Production.INFO: ProcessCDR(1,14334192,1,1,2) [2025-01-26 12:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334192', 'tblTempUsageDetail_20' ) start [2025-01-26 12:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334192', 'tblTempUsageDetail_20' ) end [2025-01-26 12:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:01:22] Production.INFO: ==10152== Releasing lock... [2025-01-26 12:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:01:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-26 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:02:05 [end_date_ymd] => 2025-01-26 12:02:05 [RateCDR] => 1 ) [2025-01-26 12:02: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-01-26 09:02:05' and `end` < '2025-01-26 12:02: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-01-26 12:02:19] Production.INFO: count ==997 [2025-01-26 12:02:19] Production.ERROR: pbx CDR StartTime 2025-01-26 09:02:05 - End Time 2025-01-26 12:02:05 [2025-01-26 12:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334197', 'tblTempUsageDetail_20' ) start [2025-01-26 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334197', 'tblTempUsageDetail_20' ) end [2025-01-26 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334197', 'tblTempVendorCDR_20' ) start [2025-01-26 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334197', 'tblTempVendorCDR_20' ) end [2025-01-26 12:02:19] Production.INFO: ProcessCDR(1,14334197,1,1,2) [2025-01-26 12:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334197', 'tblTempUsageDetail_20' ) start [2025-01-26 12:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334197', 'tblTempUsageDetail_20' ) end [2025-01-26 12:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:02:24] Production.INFO: ==10245== Releasing lock... [2025-01-26 12:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:02:24] Production.INFO: 35.75 MB #Memory Used# [2025-01-26 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:03:05 [end_date_ymd] => 2025-01-26 12:03:05 [RateCDR] => 1 ) [2025-01-26 12:03: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-01-26 09:03:05' and `end` < '2025-01-26 12:03: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-01-26 12:03:18] Production.INFO: count ==999 [2025-01-26 12:03:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:03:05 - End Time 2025-01-26 12:03:05 [2025-01-26 12:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334202', 'tblTempUsageDetail_20' ) start [2025-01-26 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334202', 'tblTempUsageDetail_20' ) end [2025-01-26 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334202', 'tblTempVendorCDR_20' ) start [2025-01-26 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334202', 'tblTempVendorCDR_20' ) end [2025-01-26 12:03:18] Production.INFO: ProcessCDR(1,14334202,1,1,2) [2025-01-26 12:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334202', 'tblTempUsageDetail_20' ) start [2025-01-26 12:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334202', 'tblTempUsageDetail_20' ) end [2025-01-26 12:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:03:23] Production.INFO: ==10345== Releasing lock... [2025-01-26 12:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:03:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-26 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:04:05 [end_date_ymd] => 2025-01-26 12:04:05 [RateCDR] => 1 ) [2025-01-26 12:04: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-01-26 09:04:05' and `end` < '2025-01-26 12:04: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-01-26 12:04:18] Production.INFO: count ==1002 [2025-01-26 12:04:19] Production.ERROR: pbx CDR StartTime 2025-01-26 09:04:05 - End Time 2025-01-26 12:04:05 [2025-01-26 12:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334207', 'tblTempUsageDetail_20' ) start [2025-01-26 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334207', 'tblTempUsageDetail_20' ) end [2025-01-26 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334207', 'tblTempVendorCDR_20' ) start [2025-01-26 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334207', 'tblTempVendorCDR_20' ) end [2025-01-26 12:04:19] Production.INFO: ProcessCDR(1,14334207,1,1,2) [2025-01-26 12:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334207', 'tblTempUsageDetail_20' ) start [2025-01-26 12:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334207', 'tblTempUsageDetail_20' ) end [2025-01-26 12:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:04:22] Production.INFO: ==10438== Releasing lock... [2025-01-26 12:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:04:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-26 12:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:05:04 [end_date_ymd] => 2025-01-26 12:05:04 [RateCDR] => 1 ) [2025-01-26 12:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 09:05:04' and `end` < '2025-01-26 12:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 12:05:18] Production.INFO: count ==1004 [2025-01-26 12:05:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:05:04 - End Time 2025-01-26 12:05:04 [2025-01-26 12:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334212', 'tblTempUsageDetail_20' ) start [2025-01-26 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334212', 'tblTempUsageDetail_20' ) end [2025-01-26 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334212', 'tblTempVendorCDR_20' ) start [2025-01-26 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334212', 'tblTempVendorCDR_20' ) end [2025-01-26 12:05:18] Production.INFO: ProcessCDR(1,14334212,1,1,2) [2025-01-26 12:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334212', 'tblTempUsageDetail_20' ) start [2025-01-26 12:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334212', 'tblTempUsageDetail_20' ) end [2025-01-26 12:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:05:23] Production.INFO: ==10518== Releasing lock... [2025-01-26 12:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:05:23] Production.INFO: 36 MB #Memory Used# [2025-01-26 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:06:05 [end_date_ymd] => 2025-01-26 12:06:05 [RateCDR] => 1 ) [2025-01-26 12:06: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-01-26 09:06:05' and `end` < '2025-01-26 12:06: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-01-26 12:06:18] Production.INFO: count ==1004 [2025-01-26 12:06:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:06:05 - End Time 2025-01-26 12:06:05 [2025-01-26 12:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334217', 'tblTempUsageDetail_20' ) start [2025-01-26 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334217', 'tblTempUsageDetail_20' ) end [2025-01-26 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334217', 'tblTempVendorCDR_20' ) start [2025-01-26 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334217', 'tblTempVendorCDR_20' ) end [2025-01-26 12:06:18] Production.INFO: ProcessCDR(1,14334217,1,1,2) [2025-01-26 12:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334217', 'tblTempUsageDetail_20' ) start [2025-01-26 12:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334217', 'tblTempUsageDetail_20' ) end [2025-01-26 12:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:06:21] Production.INFO: ==10593== Releasing lock... [2025-01-26 12:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:06:21] Production.INFO: 36 MB #Memory Used# [2025-01-26 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:07:05 [end_date_ymd] => 2025-01-26 12:07:05 [RateCDR] => 1 ) [2025-01-26 12:07: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-01-26 09:07:05' and `end` < '2025-01-26 12:07: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-01-26 12:07:19] Production.INFO: count ==1006 [2025-01-26 12:07:19] Production.ERROR: pbx CDR StartTime 2025-01-26 09:07:05 - End Time 2025-01-26 12:07:05 [2025-01-26 12:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334222', 'tblTempUsageDetail_20' ) start [2025-01-26 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334222', 'tblTempUsageDetail_20' ) end [2025-01-26 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334222', 'tblTempVendorCDR_20' ) start [2025-01-26 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334222', 'tblTempVendorCDR_20' ) end [2025-01-26 12:07:19] Production.INFO: ProcessCDR(1,14334222,1,1,2) [2025-01-26 12:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334222', 'tblTempUsageDetail_20' ) start [2025-01-26 12:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334222', 'tblTempUsageDetail_20' ) end [2025-01-26 12:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:07:24] Production.INFO: ==10670== Releasing lock... [2025-01-26 12:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:07:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-26 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:08:06 [end_date_ymd] => 2025-01-26 12:08:06 [RateCDR] => 1 ) [2025-01-26 12:08: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-01-26 09:08:06' and `end` < '2025-01-26 12:08: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-01-26 12:08:18] Production.INFO: count ==1010 [2025-01-26 12:08:19] Production.ERROR: pbx CDR StartTime 2025-01-26 09:08:06 - End Time 2025-01-26 12:08:06 [2025-01-26 12:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334227', 'tblTempUsageDetail_20' ) start [2025-01-26 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334227', 'tblTempUsageDetail_20' ) end [2025-01-26 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334227', 'tblTempVendorCDR_20' ) start [2025-01-26 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334227', 'tblTempVendorCDR_20' ) end [2025-01-26 12:08:19] Production.INFO: ProcessCDR(1,14334227,1,1,2) [2025-01-26 12:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334227', 'tblTempUsageDetail_20' ) start [2025-01-26 12:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334227', 'tblTempUsageDetail_20' ) end [2025-01-26 12:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:08:22] Production.INFO: ==10749== Releasing lock... [2025-01-26 12:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:08:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-26 12:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:09:04 [end_date_ymd] => 2025-01-26 12:09:04 [RateCDR] => 1 ) [2025-01-26 12:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 09:09:04' and `end` < '2025-01-26 12:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 12:09:17] Production.INFO: count ==1025 [2025-01-26 12:09:17] Production.ERROR: pbx CDR StartTime 2025-01-26 09:09:04 - End Time 2025-01-26 12:09:04 [2025-01-26 12:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334232', 'tblTempUsageDetail_20' ) start [2025-01-26 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334232', 'tblTempUsageDetail_20' ) end [2025-01-26 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334232', 'tblTempVendorCDR_20' ) start [2025-01-26 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334232', 'tblTempVendorCDR_20' ) end [2025-01-26 12:09:17] Production.INFO: ProcessCDR(1,14334232,1,1,2) [2025-01-26 12:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334232', 'tblTempUsageDetail_20' ) start [2025-01-26 12:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334232', 'tblTempUsageDetail_20' ) end [2025-01-26 12:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:09:21] Production.INFO: ==10825== Releasing lock... [2025-01-26 12:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:09:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-26 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:10:06 [end_date_ymd] => 2025-01-26 12:10:06 [RateCDR] => 1 ) [2025-01-26 12:10: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-01-26 09:10:06' and `end` < '2025-01-26 12:10: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-01-26 12:10:18] Production.INFO: count ==1042 [2025-01-26 12:10:19] Production.ERROR: pbx CDR StartTime 2025-01-26 09:10:06 - End Time 2025-01-26 12:10:06 [2025-01-26 12:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334237', 'tblTempUsageDetail_20' ) start [2025-01-26 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334237', 'tblTempUsageDetail_20' ) end [2025-01-26 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334237', 'tblTempVendorCDR_20' ) start [2025-01-26 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334237', 'tblTempVendorCDR_20' ) end [2025-01-26 12:10:19] Production.INFO: ProcessCDR(1,14334237,1,1,2) [2025-01-26 12:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334237', 'tblTempUsageDetail_20' ) start [2025-01-26 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334237', 'tblTempUsageDetail_20' ) end [2025-01-26 12:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:10:24] Production.INFO: ==10943== Releasing lock... [2025-01-26 12:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:10:24] Production.INFO: 36.5 MB #Memory Used# [2025-01-26 12:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:11:04 [end_date_ymd] => 2025-01-26 12:11:04 [RateCDR] => 1 ) [2025-01-26 12:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 09:11:04' and `end` < '2025-01-26 12:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 12:11:17] Production.INFO: count ==1074 [2025-01-26 12:11:17] Production.ERROR: pbx CDR StartTime 2025-01-26 09:11:04 - End Time 2025-01-26 12:11:04 [2025-01-26 12:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334243', 'tblTempUsageDetail_20' ) start [2025-01-26 12:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334243', 'tblTempUsageDetail_20' ) end [2025-01-26 12:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334243', 'tblTempVendorCDR_20' ) start [2025-01-26 12:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334243', 'tblTempVendorCDR_20' ) end [2025-01-26 12:11:17] Production.INFO: ProcessCDR(1,14334243,1,1,2) [2025-01-26 12:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334243', 'tblTempUsageDetail_20' ) start [2025-01-26 12:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334243', 'tblTempUsageDetail_20' ) end [2025-01-26 12:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:11:22] Production.INFO: ==11020== Releasing lock... [2025-01-26 12:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:11:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-26 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:12:05 [end_date_ymd] => 2025-01-26 12:12:05 [RateCDR] => 1 ) [2025-01-26 12:12: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-01-26 09:12:05' and `end` < '2025-01-26 12:12: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-01-26 12:12:18] Production.INFO: count ==1079 [2025-01-26 12:12:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:12:05 - End Time 2025-01-26 12:12:05 [2025-01-26 12:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334248', 'tblTempUsageDetail_20' ) start [2025-01-26 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334248', 'tblTempUsageDetail_20' ) end [2025-01-26 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334248', 'tblTempVendorCDR_20' ) start [2025-01-26 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334248', 'tblTempVendorCDR_20' ) end [2025-01-26 12:12:18] Production.INFO: ProcessCDR(1,14334248,1,1,2) [2025-01-26 12:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334248', 'tblTempUsageDetail_20' ) start [2025-01-26 12:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334248', 'tblTempUsageDetail_20' ) end [2025-01-26 12:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:12:22] Production.INFO: ==11098== Releasing lock... [2025-01-26 12:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:12:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-26 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:13:05 [end_date_ymd] => 2025-01-26 12:13:05 [RateCDR] => 1 ) [2025-01-26 12:13: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-01-26 09:13:05' and `end` < '2025-01-26 12:13: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-01-26 12:13:18] Production.INFO: count ==1079 [2025-01-26 12:13:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:13:05 - End Time 2025-01-26 12:13:05 [2025-01-26 12:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334253', 'tblTempUsageDetail_20' ) start [2025-01-26 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334253', 'tblTempUsageDetail_20' ) end [2025-01-26 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334253', 'tblTempVendorCDR_20' ) start [2025-01-26 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334253', 'tblTempVendorCDR_20' ) end [2025-01-26 12:13:18] Production.INFO: ProcessCDR(1,14334253,1,1,2) [2025-01-26 12:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334253', 'tblTempUsageDetail_20' ) start [2025-01-26 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334253', 'tblTempUsageDetail_20' ) end [2025-01-26 12:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:13:21] Production.INFO: ==11177== Releasing lock... [2025-01-26 12:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:13:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-26 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:14:05 [end_date_ymd] => 2025-01-26 12:14:05 [RateCDR] => 1 ) [2025-01-26 12:14: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-01-26 09:14:05' and `end` < '2025-01-26 12:14: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-01-26 12:14:18] Production.INFO: count ==1082 [2025-01-26 12:14:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:14:05 - End Time 2025-01-26 12:14:05 [2025-01-26 12:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334258', 'tblTempUsageDetail_20' ) start [2025-01-26 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334258', 'tblTempUsageDetail_20' ) end [2025-01-26 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334258', 'tblTempVendorCDR_20' ) start [2025-01-26 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334258', 'tblTempVendorCDR_20' ) end [2025-01-26 12:14:18] Production.INFO: ProcessCDR(1,14334258,1,1,2) [2025-01-26 12:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334258', 'tblTempUsageDetail_20' ) start [2025-01-26 12:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334258', 'tblTempUsageDetail_20' ) end [2025-01-26 12:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:14:23] Production.INFO: ==11259== Releasing lock... [2025-01-26 12:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:14:23] Production.INFO: 37 MB #Memory Used# [2025-01-26 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:15:06 [end_date_ymd] => 2025-01-26 12:15:06 [RateCDR] => 1 ) [2025-01-26 12:15: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-01-26 09:15:06' and `end` < '2025-01-26 12:15: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-01-26 12:15:18] Production.INFO: count ==1089 [2025-01-26 12:15:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:15:06 - End Time 2025-01-26 12:15:06 [2025-01-26 12:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334263', 'tblTempUsageDetail_20' ) start [2025-01-26 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334263', 'tblTempUsageDetail_20' ) end [2025-01-26 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334263', 'tblTempVendorCDR_20' ) start [2025-01-26 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334263', 'tblTempVendorCDR_20' ) end [2025-01-26 12:15:18] Production.INFO: ProcessCDR(1,14334263,1,1,2) [2025-01-26 12:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334263', 'tblTempUsageDetail_20' ) start [2025-01-26 12:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334263', 'tblTempUsageDetail_20' ) end [2025-01-26 12:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:15:23] Production.INFO: ==11337== Releasing lock... [2025-01-26 12:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:15:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-26 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:16:05 [end_date_ymd] => 2025-01-26 12:16:05 [RateCDR] => 1 ) [2025-01-26 12:16: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-01-26 09:16:05' and `end` < '2025-01-26 12:16: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-01-26 12:16:18] Production.INFO: count ==1096 [2025-01-26 12:16:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:16:05 - End Time 2025-01-26 12:16:05 [2025-01-26 12:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334268', 'tblTempUsageDetail_20' ) start [2025-01-26 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334268', 'tblTempUsageDetail_20' ) end [2025-01-26 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334268', 'tblTempVendorCDR_20' ) start [2025-01-26 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334268', 'tblTempVendorCDR_20' ) end [2025-01-26 12:16:18] Production.INFO: ProcessCDR(1,14334268,1,1,2) [2025-01-26 12:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334268', 'tblTempUsageDetail_20' ) start [2025-01-26 12:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334268', 'tblTempUsageDetail_20' ) end [2025-01-26 12:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:16:23] Production.INFO: ==11419== Releasing lock... [2025-01-26 12:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:16:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-26 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:17:05 [end_date_ymd] => 2025-01-26 12:17:05 [RateCDR] => 1 ) [2025-01-26 12:17: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-01-26 09:17:05' and `end` < '2025-01-26 12:17: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-01-26 12:17:18] Production.INFO: count ==1110 [2025-01-26 12:17:19] Production.ERROR: pbx CDR StartTime 2025-01-26 09:17:05 - End Time 2025-01-26 12:17:05 [2025-01-26 12:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334273', 'tblTempUsageDetail_20' ) start [2025-01-26 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334273', 'tblTempUsageDetail_20' ) end [2025-01-26 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334273', 'tblTempVendorCDR_20' ) start [2025-01-26 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334273', 'tblTempVendorCDR_20' ) end [2025-01-26 12:17:19] Production.INFO: ProcessCDR(1,14334273,1,1,2) [2025-01-26 12:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334273', 'tblTempUsageDetail_20' ) start [2025-01-26 12:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334273', 'tblTempUsageDetail_20' ) end [2025-01-26 12:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:17:23] Production.INFO: ==11497== Releasing lock... [2025-01-26 12:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:17:23] Production.INFO: 37 MB #Memory Used# [2025-01-26 12:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:18:04 [end_date_ymd] => 2025-01-26 12:18:04 [RateCDR] => 1 ) [2025-01-26 12:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 09:18:04' and `end` < '2025-01-26 12:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 12:18:18] Production.INFO: count ==1114 [2025-01-26 12:18:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:18:04 - End Time 2025-01-26 12:18:04 [2025-01-26 12:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334278', 'tblTempUsageDetail_20' ) start [2025-01-26 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334278', 'tblTempUsageDetail_20' ) end [2025-01-26 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334278', 'tblTempVendorCDR_20' ) start [2025-01-26 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334278', 'tblTempVendorCDR_20' ) end [2025-01-26 12:18:18] Production.INFO: ProcessCDR(1,14334278,1,1,2) [2025-01-26 12:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334278', 'tblTempUsageDetail_20' ) start [2025-01-26 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334278', 'tblTempUsageDetail_20' ) end [2025-01-26 12:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:18:22] Production.INFO: ==11593== Releasing lock... [2025-01-26 12:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:18:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-26 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:19:05 [end_date_ymd] => 2025-01-26 12:19:05 [RateCDR] => 1 ) [2025-01-26 12:19: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-01-26 09:19:05' and `end` < '2025-01-26 12:19: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-01-26 12:19:17] Production.INFO: count ==1117 [2025-01-26 12:19:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:19:05 - End Time 2025-01-26 12:19:05 [2025-01-26 12:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334283', 'tblTempUsageDetail_20' ) start [2025-01-26 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334283', 'tblTempUsageDetail_20' ) end [2025-01-26 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334283', 'tblTempVendorCDR_20' ) start [2025-01-26 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334283', 'tblTempVendorCDR_20' ) end [2025-01-26 12:19:18] Production.INFO: ProcessCDR(1,14334283,1,1,2) [2025-01-26 12:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334283', 'tblTempUsageDetail_20' ) start [2025-01-26 12:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334283', 'tblTempUsageDetail_20' ) end [2025-01-26 12:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:19:22] Production.INFO: ==11672== Releasing lock... [2025-01-26 12:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:19:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-26 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:20:06 [end_date_ymd] => 2025-01-26 12:20:06 [RateCDR] => 1 ) [2025-01-26 12:20: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-01-26 09:20:06' and `end` < '2025-01-26 12:20: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-01-26 12:20:18] Production.INFO: count ==1140 [2025-01-26 12:20:19] Production.ERROR: pbx CDR StartTime 2025-01-26 09:20:06 - End Time 2025-01-26 12:20:06 [2025-01-26 12:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334289', 'tblTempUsageDetail_20' ) start [2025-01-26 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334289', 'tblTempUsageDetail_20' ) end [2025-01-26 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334289', 'tblTempVendorCDR_20' ) start [2025-01-26 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334289', 'tblTempVendorCDR_20' ) end [2025-01-26 12:20:19] Production.INFO: ProcessCDR(1,14334289,1,1,2) [2025-01-26 12:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334289', 'tblTempUsageDetail_20' ) start [2025-01-26 12:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334289', 'tblTempUsageDetail_20' ) end [2025-01-26 12:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:20:24] Production.INFO: ==11755== Releasing lock... [2025-01-26 12:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:20:24] Production.INFO: 36.75 MB #Memory Used# [2025-01-26 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:21:05 [end_date_ymd] => 2025-01-26 12:21:05 [RateCDR] => 1 ) [2025-01-26 12:21: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-01-26 09:21:05' and `end` < '2025-01-26 12:21: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-01-26 12:21:18] Production.INFO: count ==1196 [2025-01-26 12:21:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:21:05 - End Time 2025-01-26 12:21:05 [2025-01-26 12:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334294', 'tblTempUsageDetail_20' ) start [2025-01-26 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334294', 'tblTempUsageDetail_20' ) end [2025-01-26 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334294', 'tblTempVendorCDR_20' ) start [2025-01-26 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334294', 'tblTempVendorCDR_20' ) end [2025-01-26 12:21:18] Production.INFO: ProcessCDR(1,14334294,1,1,2) [2025-01-26 12:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334294', 'tblTempUsageDetail_20' ) start [2025-01-26 12:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334294', 'tblTempUsageDetail_20' ) end [2025-01-26 12:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:21:22] Production.INFO: ==11839== Releasing lock... [2025-01-26 12:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:21:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-26 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:22:05 [end_date_ymd] => 2025-01-26 12:22:05 [RateCDR] => 1 ) [2025-01-26 12:22: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-01-26 09:22:05' and `end` < '2025-01-26 12:22: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-01-26 12:22:17] Production.INFO: count ==1204 [2025-01-26 12:22:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:22:05 - End Time 2025-01-26 12:22:05 [2025-01-26 12:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334299', 'tblTempUsageDetail_20' ) start [2025-01-26 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334299', 'tblTempUsageDetail_20' ) end [2025-01-26 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334299', 'tblTempVendorCDR_20' ) start [2025-01-26 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334299', 'tblTempVendorCDR_20' ) end [2025-01-26 12:22:18] Production.INFO: ProcessCDR(1,14334299,1,1,2) [2025-01-26 12:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334299', 'tblTempUsageDetail_20' ) start [2025-01-26 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334299', 'tblTempUsageDetail_20' ) end [2025-01-26 12:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:22:22] Production.INFO: ==11919== Releasing lock... [2025-01-26 12:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:22:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-26 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:23:05 [end_date_ymd] => 2025-01-26 12:23:05 [RateCDR] => 1 ) [2025-01-26 12:23: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-01-26 09:23:05' and `end` < '2025-01-26 12:23: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-01-26 12:23:17] Production.INFO: count ==1210 [2025-01-26 12:23:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:23:05 - End Time 2025-01-26 12:23:05 [2025-01-26 12:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334304', 'tblTempUsageDetail_20' ) start [2025-01-26 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334304', 'tblTempUsageDetail_20' ) end [2025-01-26 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334304', 'tblTempVendorCDR_20' ) start [2025-01-26 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334304', 'tblTempVendorCDR_20' ) end [2025-01-26 12:23:18] Production.INFO: ProcessCDR(1,14334304,1,1,2) [2025-01-26 12:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334304', 'tblTempUsageDetail_20' ) start [2025-01-26 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334304', 'tblTempUsageDetail_20' ) end [2025-01-26 12:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:23:22] Production.INFO: ==12000== Releasing lock... [2025-01-26 12:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:23:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-26 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:24:06 [end_date_ymd] => 2025-01-26 12:24:06 [RateCDR] => 1 ) [2025-01-26 12:24: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-01-26 09:24:06' and `end` < '2025-01-26 12:24: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-01-26 12:24:18] Production.INFO: count ==1217 [2025-01-26 12:24:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:24:06 - End Time 2025-01-26 12:24:06 [2025-01-26 12:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334309', 'tblTempUsageDetail_20' ) start [2025-01-26 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334309', 'tblTempUsageDetail_20' ) end [2025-01-26 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334309', 'tblTempVendorCDR_20' ) start [2025-01-26 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334309', 'tblTempVendorCDR_20' ) end [2025-01-26 12:24:18] Production.INFO: ProcessCDR(1,14334309,1,1,2) [2025-01-26 12:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334309', 'tblTempUsageDetail_20' ) start [2025-01-26 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334309', 'tblTempUsageDetail_20' ) end [2025-01-26 12:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:24:23] Production.INFO: ==12078== Releasing lock... [2025-01-26 12:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:24:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-26 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:25:05 [end_date_ymd] => 2025-01-26 12:25:05 [RateCDR] => 1 ) [2025-01-26 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 09:25:05' and `end` < '2025-01-26 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 12:25:17] Production.INFO: count ==1220 [2025-01-26 12:25:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:25:05 - End Time 2025-01-26 12:25:05 [2025-01-26 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334314', 'tblTempUsageDetail_20' ) start [2025-01-26 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334314', 'tblTempUsageDetail_20' ) end [2025-01-26 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334314', 'tblTempVendorCDR_20' ) start [2025-01-26 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334314', 'tblTempVendorCDR_20' ) end [2025-01-26 12:25:18] Production.INFO: ProcessCDR(1,14334314,1,1,2) [2025-01-26 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334314', 'tblTempUsageDetail_20' ) start [2025-01-26 12:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334314', 'tblTempUsageDetail_20' ) end [2025-01-26 12:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:25:22] Production.INFO: ==12199== Releasing lock... [2025-01-26 12:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:25:22] Production.INFO: 38 MB #Memory Used# [2025-01-26 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:26:05 [end_date_ymd] => 2025-01-26 12:26:05 [RateCDR] => 1 ) [2025-01-26 12:26: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-01-26 09:26:05' and `end` < '2025-01-26 12:26: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-01-26 12:26:18] Production.INFO: count ==1222 [2025-01-26 12:26:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:26:05 - End Time 2025-01-26 12:26:05 [2025-01-26 12:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334319', 'tblTempUsageDetail_20' ) start [2025-01-26 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334319', 'tblTempUsageDetail_20' ) end [2025-01-26 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334319', 'tblTempVendorCDR_20' ) start [2025-01-26 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334319', 'tblTempVendorCDR_20' ) end [2025-01-26 12:26:18] Production.INFO: ProcessCDR(1,14334319,1,1,2) [2025-01-26 12:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334319', 'tblTempUsageDetail_20' ) start [2025-01-26 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334319', 'tblTempUsageDetail_20' ) end [2025-01-26 12:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:26:23] Production.INFO: ==12279== Releasing lock... [2025-01-26 12:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:26:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-26 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:27:05 [end_date_ymd] => 2025-01-26 12:27:05 [RateCDR] => 1 ) [2025-01-26 12:27: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-01-26 09:27:05' and `end` < '2025-01-26 12:27: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-01-26 12:27:17] Production.INFO: count ==1224 [2025-01-26 12:27:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:27:05 - End Time 2025-01-26 12:27:05 [2025-01-26 12:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334324', 'tblTempUsageDetail_20' ) start [2025-01-26 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334324', 'tblTempUsageDetail_20' ) end [2025-01-26 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334324', 'tblTempVendorCDR_20' ) start [2025-01-26 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334324', 'tblTempVendorCDR_20' ) end [2025-01-26 12:27:18] Production.INFO: ProcessCDR(1,14334324,1,1,2) [2025-01-26 12:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334324', 'tblTempUsageDetail_20' ) start [2025-01-26 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334324', 'tblTempUsageDetail_20' ) end [2025-01-26 12:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:27:22] Production.INFO: ==12355== Releasing lock... [2025-01-26 12:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:27:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-26 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:28:05 [end_date_ymd] => 2025-01-26 12:28:05 [RateCDR] => 1 ) [2025-01-26 12:28: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-01-26 09:28:05' and `end` < '2025-01-26 12:28: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-01-26 12:28:18] Production.INFO: count ==1228 [2025-01-26 12:28:19] Production.ERROR: pbx CDR StartTime 2025-01-26 09:28:05 - End Time 2025-01-26 12:28:05 [2025-01-26 12:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334329', 'tblTempUsageDetail_20' ) start [2025-01-26 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334329', 'tblTempUsageDetail_20' ) end [2025-01-26 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334329', 'tblTempVendorCDR_20' ) start [2025-01-26 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334329', 'tblTempVendorCDR_20' ) end [2025-01-26 12:28:19] Production.INFO: ProcessCDR(1,14334329,1,1,2) [2025-01-26 12:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334329', 'tblTempUsageDetail_20' ) start [2025-01-26 12:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334329', 'tblTempUsageDetail_20' ) end [2025-01-26 12:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:28:22] Production.INFO: ==12441== Releasing lock... [2025-01-26 12:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:28:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-26 12:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:29:04 [end_date_ymd] => 2025-01-26 12:29:04 [RateCDR] => 1 ) [2025-01-26 12:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 09:29:04' and `end` < '2025-01-26 12:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 12:29:18] Production.INFO: count ==1228 [2025-01-26 12:29:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:29:04 - End Time 2025-01-26 12:29:04 [2025-01-26 12:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334334', 'tblTempUsageDetail_20' ) start [2025-01-26 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334334', 'tblTempUsageDetail_20' ) end [2025-01-26 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334334', 'tblTempVendorCDR_20' ) start [2025-01-26 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334334', 'tblTempVendorCDR_20' ) end [2025-01-26 12:29:18] Production.INFO: ProcessCDR(1,14334334,1,1,2) [2025-01-26 12:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334334', 'tblTempUsageDetail_20' ) start [2025-01-26 12:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334334', 'tblTempUsageDetail_20' ) end [2025-01-26 12:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:29:21] Production.INFO: ==12523== Releasing lock... [2025-01-26 12:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:29:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-26 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:30:06 [end_date_ymd] => 2025-01-26 12:30:06 [RateCDR] => 1 ) [2025-01-26 12:30: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-01-26 09:30:06' and `end` < '2025-01-26 12:30: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-01-26 12:30:18] Production.INFO: count ==1243 [2025-01-26 12:30:19] Production.ERROR: pbx CDR StartTime 2025-01-26 09:30:06 - End Time 2025-01-26 12:30:06 [2025-01-26 12:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334340', 'tblTempUsageDetail_20' ) start [2025-01-26 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334340', 'tblTempUsageDetail_20' ) end [2025-01-26 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334340', 'tblTempVendorCDR_20' ) start [2025-01-26 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334340', 'tblTempVendorCDR_20' ) end [2025-01-26 12:30:19] Production.INFO: ProcessCDR(1,14334340,1,1,2) [2025-01-26 12:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334340', 'tblTempUsageDetail_20' ) start [2025-01-26 12:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334340', 'tblTempUsageDetail_20' ) end [2025-01-26 12:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:30:23] Production.INFO: ==12603== Releasing lock... [2025-01-26 12:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:30:23] Production.INFO: 38 MB #Memory Used# [2025-01-26 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:31:05 [end_date_ymd] => 2025-01-26 12:31:05 [RateCDR] => 1 ) [2025-01-26 12:31: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-01-26 09:31:05' and `end` < '2025-01-26 12:31: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-01-26 12:31:17] Production.INFO: count ==1271 [2025-01-26 12:31:17] Production.ERROR: pbx CDR StartTime 2025-01-26 09:31:05 - End Time 2025-01-26 12:31:05 [2025-01-26 12:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334345', 'tblTempUsageDetail_20' ) start [2025-01-26 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334345', 'tblTempUsageDetail_20' ) end [2025-01-26 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334345', 'tblTempVendorCDR_20' ) start [2025-01-26 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334345', 'tblTempVendorCDR_20' ) end [2025-01-26 12:31:18] Production.INFO: ProcessCDR(1,14334345,1,1,2) [2025-01-26 12:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334345', 'tblTempUsageDetail_20' ) start [2025-01-26 12:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334345', 'tblTempUsageDetail_20' ) end [2025-01-26 12:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:31:21] Production.INFO: ==12682== Releasing lock... [2025-01-26 12:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:31:21] Production.INFO: 38 MB #Memory Used# [2025-01-26 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:32:05 [end_date_ymd] => 2025-01-26 12:32:05 [RateCDR] => 1 ) [2025-01-26 12:32: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-01-26 09:32:05' and `end` < '2025-01-26 12:32: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-01-26 12:32:19] Production.INFO: count ==1270 [2025-01-26 12:32:20] Production.ERROR: pbx CDR StartTime 2025-01-26 09:32:05 - End Time 2025-01-26 12:32:05 [2025-01-26 12:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334350', 'tblTempUsageDetail_20' ) start [2025-01-26 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334350', 'tblTempUsageDetail_20' ) end [2025-01-26 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334350', 'tblTempVendorCDR_20' ) start [2025-01-26 12:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334350', 'tblTempVendorCDR_20' ) end [2025-01-26 12:32:20] Production.INFO: ProcessCDR(1,14334350,1,1,2) [2025-01-26 12:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334350', 'tblTempUsageDetail_20' ) start [2025-01-26 12:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334350', 'tblTempUsageDetail_20' ) end [2025-01-26 12:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:32:24] Production.INFO: ==12762== Releasing lock... [2025-01-26 12:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:32:24] Production.INFO: 38 MB #Memory Used# [2025-01-26 12:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:33:04 [end_date_ymd] => 2025-01-26 12:33:04 [RateCDR] => 1 ) [2025-01-26 12:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 09:33:04' and `end` < '2025-01-26 12:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 12:33:17] Production.INFO: count ==1273 [2025-01-26 12:33:17] Production.ERROR: pbx CDR StartTime 2025-01-26 09:33:04 - End Time 2025-01-26 12:33:04 [2025-01-26 12:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334355', 'tblTempUsageDetail_20' ) start [2025-01-26 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334355', 'tblTempUsageDetail_20' ) end [2025-01-26 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334355', 'tblTempVendorCDR_20' ) start [2025-01-26 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334355', 'tblTempVendorCDR_20' ) end [2025-01-26 12:33:17] Production.INFO: ProcessCDR(1,14334355,1,1,2) [2025-01-26 12:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334355', 'tblTempUsageDetail_20' ) start [2025-01-26 12:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334355', 'tblTempUsageDetail_20' ) end [2025-01-26 12:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:33:21] Production.INFO: ==12842== Releasing lock... [2025-01-26 12:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:33:21] Production.INFO: 38 MB #Memory Used# [2025-01-26 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:34:05 [end_date_ymd] => 2025-01-26 12:34:05 [RateCDR] => 1 ) [2025-01-26 12:34: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-01-26 09:34:05' and `end` < '2025-01-26 12:34: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-01-26 12:34:18] Production.INFO: count ==1276 [2025-01-26 12:34:19] Production.ERROR: pbx CDR StartTime 2025-01-26 09:34:05 - End Time 2025-01-26 12:34:05 [2025-01-26 12:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334360', 'tblTempUsageDetail_20' ) start [2025-01-26 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334360', 'tblTempUsageDetail_20' ) end [2025-01-26 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334360', 'tblTempVendorCDR_20' ) start [2025-01-26 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334360', 'tblTempVendorCDR_20' ) end [2025-01-26 12:34:19] Production.INFO: ProcessCDR(1,14334360,1,1,2) [2025-01-26 12:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334360', 'tblTempUsageDetail_20' ) start [2025-01-26 12:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334360', 'tblTempUsageDetail_20' ) end [2025-01-26 12:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:34:23] Production.INFO: ==12926== Releasing lock... [2025-01-26 12:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:34:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-26 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:35:05 [end_date_ymd] => 2025-01-26 12:35:05 [RateCDR] => 1 ) [2025-01-26 12:35: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-01-26 09:35:05' and `end` < '2025-01-26 12:35: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-01-26 12:35:18] Production.INFO: count ==1278 [2025-01-26 12:35:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:35:05 - End Time 2025-01-26 12:35:05 [2025-01-26 12:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334365', 'tblTempUsageDetail_20' ) start [2025-01-26 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334365', 'tblTempUsageDetail_20' ) end [2025-01-26 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334365', 'tblTempVendorCDR_20' ) start [2025-01-26 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334365', 'tblTempVendorCDR_20' ) end [2025-01-26 12:35:18] Production.INFO: ProcessCDR(1,14334365,1,1,2) [2025-01-26 12:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334365', 'tblTempUsageDetail_20' ) start [2025-01-26 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334365', 'tblTempUsageDetail_20' ) end [2025-01-26 12:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:35:23] Production.INFO: ==13011== Releasing lock... [2025-01-26 12:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:35:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-26 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:36:05 [end_date_ymd] => 2025-01-26 12:36:05 [RateCDR] => 1 ) [2025-01-26 12:36: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-01-26 09:36:05' and `end` < '2025-01-26 12:36: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-01-26 12:36:17] Production.INFO: count ==1279 [2025-01-26 12:36:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:36:05 - End Time 2025-01-26 12:36:05 [2025-01-26 12:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334370', 'tblTempUsageDetail_20' ) start [2025-01-26 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334370', 'tblTempUsageDetail_20' ) end [2025-01-26 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334370', 'tblTempVendorCDR_20' ) start [2025-01-26 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334370', 'tblTempVendorCDR_20' ) end [2025-01-26 12:36:18] Production.INFO: ProcessCDR(1,14334370,1,1,2) [2025-01-26 12:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334370', 'tblTempUsageDetail_20' ) start [2025-01-26 12:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334370', 'tblTempUsageDetail_20' ) end [2025-01-26 12:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:36:22] Production.INFO: ==13093== Releasing lock... [2025-01-26 12:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:36:22] Production.INFO: 38 MB #Memory Used# [2025-01-26 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:37:05 [end_date_ymd] => 2025-01-26 12:37:05 [RateCDR] => 1 ) [2025-01-26 12:37: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-01-26 09:37:05' and `end` < '2025-01-26 12:37: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-01-26 12:37:18] Production.INFO: count ==1287 [2025-01-26 12:37:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:37:05 - End Time 2025-01-26 12:37:05 [2025-01-26 12:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334375', 'tblTempUsageDetail_20' ) start [2025-01-26 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334375', 'tblTempUsageDetail_20' ) end [2025-01-26 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334375', 'tblTempVendorCDR_20' ) start [2025-01-26 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334375', 'tblTempVendorCDR_20' ) end [2025-01-26 12:37:18] Production.INFO: ProcessCDR(1,14334375,1,1,2) [2025-01-26 12:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334375', 'tblTempUsageDetail_20' ) start [2025-01-26 12:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334375', 'tblTempUsageDetail_20' ) end [2025-01-26 12:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:37:23] Production.INFO: ==13174== Releasing lock... [2025-01-26 12:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:37:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-26 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:38:05 [end_date_ymd] => 2025-01-26 12:38:05 [RateCDR] => 1 ) [2025-01-26 12:38: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-01-26 09:38:05' and `end` < '2025-01-26 12:38: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-01-26 12:38:19] Production.INFO: count ==1291 [2025-01-26 12:38:19] Production.ERROR: pbx CDR StartTime 2025-01-26 09:38:05 - End Time 2025-01-26 12:38:05 [2025-01-26 12:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334380', 'tblTempUsageDetail_20' ) start [2025-01-26 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334380', 'tblTempUsageDetail_20' ) end [2025-01-26 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334380', 'tblTempVendorCDR_20' ) start [2025-01-26 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334380', 'tblTempVendorCDR_20' ) end [2025-01-26 12:38:19] Production.INFO: ProcessCDR(1,14334380,1,1,2) [2025-01-26 12:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334380', 'tblTempUsageDetail_20' ) start [2025-01-26 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334380', 'tblTempUsageDetail_20' ) end [2025-01-26 12:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:38:23] Production.INFO: ==13253== Releasing lock... [2025-01-26 12:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:38:23] Production.INFO: 38 MB #Memory Used# [2025-01-26 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:39:05 [end_date_ymd] => 2025-01-26 12:39:05 [RateCDR] => 1 ) [2025-01-26 12:39: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-01-26 09:39:05' and `end` < '2025-01-26 12:39: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-01-26 12:39:19] Production.INFO: count ==1295 [2025-01-26 12:39:19] Production.ERROR: pbx CDR StartTime 2025-01-26 09:39:05 - End Time 2025-01-26 12:39:05 [2025-01-26 12:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334385', 'tblTempUsageDetail_20' ) start [2025-01-26 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334385', 'tblTempUsageDetail_20' ) end [2025-01-26 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334385', 'tblTempVendorCDR_20' ) start [2025-01-26 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334385', 'tblTempVendorCDR_20' ) end [2025-01-26 12:39:19] Production.INFO: ProcessCDR(1,14334385,1,1,2) [2025-01-26 12:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334385', 'tblTempUsageDetail_20' ) start [2025-01-26 12:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334385', 'tblTempUsageDetail_20' ) end [2025-01-26 12:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:39:24] Production.INFO: ==13340== Releasing lock... [2025-01-26 12:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:39:24] Production.INFO: 38 MB #Memory Used# [2025-01-26 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:40:05 [end_date_ymd] => 2025-01-26 12:40:05 [RateCDR] => 1 ) [2025-01-26 12:40: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-01-26 09:40:05' and `end` < '2025-01-26 12:40: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-01-26 12:40:18] Production.INFO: count ==1289 [2025-01-26 12:40:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:40:05 - End Time 2025-01-26 12:40:05 [2025-01-26 12:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334391', 'tblTempUsageDetail_20' ) start [2025-01-26 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334391', 'tblTempUsageDetail_20' ) end [2025-01-26 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334391', 'tblTempVendorCDR_20' ) start [2025-01-26 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334391', 'tblTempVendorCDR_20' ) end [2025-01-26 12:40:18] Production.INFO: ProcessCDR(1,14334391,1,1,2) [2025-01-26 12:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334391', 'tblTempUsageDetail_20' ) start [2025-01-26 12:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334391', 'tblTempUsageDetail_20' ) end [2025-01-26 12:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:40:23] Production.INFO: ==13417== Releasing lock... [2025-01-26 12:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:40:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-26 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:41:05 [end_date_ymd] => 2025-01-26 12:41:05 [RateCDR] => 1 ) [2025-01-26 12:41: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-01-26 09:41:05' and `end` < '2025-01-26 12:41: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-01-26 12:41:18] Production.INFO: count ==1335 [2025-01-26 12:41:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:41:05 - End Time 2025-01-26 12:41:05 [2025-01-26 12:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334396', 'tblTempUsageDetail_20' ) start [2025-01-26 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334396', 'tblTempUsageDetail_20' ) end [2025-01-26 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334396', 'tblTempVendorCDR_20' ) start [2025-01-26 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334396', 'tblTempVendorCDR_20' ) end [2025-01-26 12:41:18] Production.INFO: ProcessCDR(1,14334396,1,1,2) [2025-01-26 12:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334396', 'tblTempUsageDetail_20' ) start [2025-01-26 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334396', 'tblTempUsageDetail_20' ) end [2025-01-26 12:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:41:23] Production.INFO: ==13636== Releasing lock... [2025-01-26 12:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:41:23] Production.INFO: 38 MB #Memory Used# [2025-01-26 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:42:05 [end_date_ymd] => 2025-01-26 12:42:05 [RateCDR] => 1 ) [2025-01-26 12:42: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-01-26 09:42:05' and `end` < '2025-01-26 12:42: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-01-26 12:42:18] Production.INFO: count ==1339 [2025-01-26 12:42:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:42:05 - End Time 2025-01-26 12:42:05 [2025-01-26 12:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334401', 'tblTempUsageDetail_20' ) start [2025-01-26 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334401', 'tblTempUsageDetail_20' ) end [2025-01-26 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334401', 'tblTempVendorCDR_20' ) start [2025-01-26 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334401', 'tblTempVendorCDR_20' ) end [2025-01-26 12:42:18] Production.INFO: ProcessCDR(1,14334401,1,1,2) [2025-01-26 12:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334401', 'tblTempUsageDetail_20' ) start [2025-01-26 12:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334401', 'tblTempUsageDetail_20' ) end [2025-01-26 12:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:42:23] Production.INFO: ==14022== Releasing lock... [2025-01-26 12:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:42:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-26 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:43:05 [end_date_ymd] => 2025-01-26 12:43:05 [RateCDR] => 1 ) [2025-01-26 12:43: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-01-26 09:43:05' and `end` < '2025-01-26 12:43: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-01-26 12:43:20] Production.INFO: count ==1335 [2025-01-26 12:43:20] Production.ERROR: pbx CDR StartTime 2025-01-26 09:43:05 - End Time 2025-01-26 12:43:05 [2025-01-26 12:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334406', 'tblTempUsageDetail_20' ) start [2025-01-26 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334406', 'tblTempUsageDetail_20' ) end [2025-01-26 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334406', 'tblTempVendorCDR_20' ) start [2025-01-26 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334406', 'tblTempVendorCDR_20' ) end [2025-01-26 12:43:20] Production.INFO: ProcessCDR(1,14334406,1,1,2) [2025-01-26 12:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334406', 'tblTempUsageDetail_20' ) start [2025-01-26 12:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334406', 'tblTempUsageDetail_20' ) end [2025-01-26 12:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:43:23] Production.INFO: ==14172== Releasing lock... [2025-01-26 12:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:43:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-26 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:44:06 [end_date_ymd] => 2025-01-26 12:44:06 [RateCDR] => 1 ) [2025-01-26 12:44: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-01-26 09:44:06' and `end` < '2025-01-26 12:44: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-01-26 12:44:18] Production.INFO: count ==1336 [2025-01-26 12:44:19] Production.ERROR: pbx CDR StartTime 2025-01-26 09:44:06 - End Time 2025-01-26 12:44:06 [2025-01-26 12:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334411', 'tblTempUsageDetail_20' ) start [2025-01-26 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334411', 'tblTempUsageDetail_20' ) end [2025-01-26 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334411', 'tblTempVendorCDR_20' ) start [2025-01-26 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334411', 'tblTempVendorCDR_20' ) end [2025-01-26 12:44:19] Production.INFO: ProcessCDR(1,14334411,1,1,2) [2025-01-26 12:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334411', 'tblTempUsageDetail_20' ) start [2025-01-26 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334411', 'tblTempUsageDetail_20' ) end [2025-01-26 12:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:44:23] Production.INFO: ==14248== Releasing lock... [2025-01-26 12:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:44:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-26 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:45:05 [end_date_ymd] => 2025-01-26 12:45:05 [RateCDR] => 1 ) [2025-01-26 12:45: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-01-26 09:45:05' and `end` < '2025-01-26 12:45: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-01-26 12:45:18] Production.INFO: count ==1338 [2025-01-26 12:45:19] Production.ERROR: pbx CDR StartTime 2025-01-26 09:45:05 - End Time 2025-01-26 12:45:05 [2025-01-26 12:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334416', 'tblTempUsageDetail_20' ) start [2025-01-26 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334416', 'tblTempUsageDetail_20' ) end [2025-01-26 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334416', 'tblTempVendorCDR_20' ) start [2025-01-26 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334416', 'tblTempVendorCDR_20' ) end [2025-01-26 12:45:19] Production.INFO: ProcessCDR(1,14334416,1,1,2) [2025-01-26 12:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334416', 'tblTempUsageDetail_20' ) start [2025-01-26 12:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334416', 'tblTempUsageDetail_20' ) end [2025-01-26 12:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:45:23] Production.INFO: ==14329== Releasing lock... [2025-01-26 12:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:45:23] Production.INFO: 38 MB #Memory Used# [2025-01-26 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:46:06 [end_date_ymd] => 2025-01-26 12:46:06 [RateCDR] => 1 ) [2025-01-26 12:46: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-01-26 09:46:06' and `end` < '2025-01-26 12:46: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-01-26 12:46:19] Production.INFO: count ==1342 [2025-01-26 12:46:19] Production.ERROR: pbx CDR StartTime 2025-01-26 09:46:06 - End Time 2025-01-26 12:46:06 [2025-01-26 12:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334421', 'tblTempUsageDetail_20' ) start [2025-01-26 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334421', 'tblTempUsageDetail_20' ) end [2025-01-26 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334421', 'tblTempVendorCDR_20' ) start [2025-01-26 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334421', 'tblTempVendorCDR_20' ) end [2025-01-26 12:46:19] Production.INFO: ProcessCDR(1,14334421,1,1,2) [2025-01-26 12:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334421', 'tblTempUsageDetail_20' ) start [2025-01-26 12:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334421', 'tblTempUsageDetail_20' ) end [2025-01-26 12:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:46:24] Production.INFO: ==14409== Releasing lock... [2025-01-26 12:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:46:24] Production.INFO: 38.5 MB #Memory Used# [2025-01-26 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:47:05 [end_date_ymd] => 2025-01-26 12:47:05 [RateCDR] => 1 ) [2025-01-26 12:47: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-01-26 09:47:05' and `end` < '2025-01-26 12:47: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-01-26 12:47:18] Production.INFO: count ==1342 [2025-01-26 12:47:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:47:05 - End Time 2025-01-26 12:47:05 [2025-01-26 12:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334426', 'tblTempUsageDetail_20' ) start [2025-01-26 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334426', 'tblTempUsageDetail_20' ) end [2025-01-26 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334426', 'tblTempVendorCDR_20' ) start [2025-01-26 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334426', 'tblTempVendorCDR_20' ) end [2025-01-26 12:47:18] Production.INFO: ProcessCDR(1,14334426,1,1,2) [2025-01-26 12:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334426', 'tblTempUsageDetail_20' ) start [2025-01-26 12:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334426', 'tblTempUsageDetail_20' ) end [2025-01-26 12:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:47:21] Production.INFO: ==14485== Releasing lock... [2025-01-26 12:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:47:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-26 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:48:05 [end_date_ymd] => 2025-01-26 12:48:05 [RateCDR] => 1 ) [2025-01-26 12:48: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-01-26 09:48:05' and `end` < '2025-01-26 12:48: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-01-26 12:48:17] Production.INFO: count ==1340 [2025-01-26 12:48:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:48:05 - End Time 2025-01-26 12:48:05 [2025-01-26 12:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334431', 'tblTempUsageDetail_20' ) start [2025-01-26 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334431', 'tblTempUsageDetail_20' ) end [2025-01-26 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334431', 'tblTempVendorCDR_20' ) start [2025-01-26 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334431', 'tblTempVendorCDR_20' ) end [2025-01-26 12:48:18] Production.INFO: ProcessCDR(1,14334431,1,1,2) [2025-01-26 12:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334431', 'tblTempUsageDetail_20' ) start [2025-01-26 12:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334431', 'tblTempUsageDetail_20' ) end [2025-01-26 12:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:48:21] Production.INFO: ==14566== Releasing lock... [2025-01-26 12:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:48:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-26 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:49:04 [end_date_ymd] => 2025-01-26 12:49:04 [RateCDR] => 1 ) [2025-01-26 12:49: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-01-26 09:49:04' and `end` < '2025-01-26 12:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 12:49:17] Production.INFO: count ==1340 [2025-01-26 12:49:17] Production.ERROR: pbx CDR StartTime 2025-01-26 09:49:04 - End Time 2025-01-26 12:49:04 [2025-01-26 12:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334436', 'tblTempUsageDetail_20' ) start [2025-01-26 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334436', 'tblTempUsageDetail_20' ) end [2025-01-26 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334436', 'tblTempVendorCDR_20' ) start [2025-01-26 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334436', 'tblTempVendorCDR_20' ) end [2025-01-26 12:49:18] Production.INFO: ProcessCDR(1,14334436,1,1,2) [2025-01-26 12:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334436', 'tblTempUsageDetail_20' ) start [2025-01-26 12:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334436', 'tblTempUsageDetail_20' ) end [2025-01-26 12:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:49:20] Production.INFO: ==14649== Releasing lock... [2025-01-26 12:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:49:20] Production.INFO: 38.25 MB #Memory Used# [2025-01-26 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:50:05 [end_date_ymd] => 2025-01-26 12:50:05 [RateCDR] => 1 ) [2025-01-26 12:50: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-01-26 09:50:05' and `end` < '2025-01-26 12:50: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-01-26 12:50:18] Production.INFO: count ==1345 [2025-01-26 12:50:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:50:05 - End Time 2025-01-26 12:50:05 [2025-01-26 12:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334440', 'tblTempUsageDetail_20' ) start [2025-01-26 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334440', 'tblTempUsageDetail_20' ) end [2025-01-26 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334440', 'tblTempVendorCDR_20' ) start [2025-01-26 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334440', 'tblTempVendorCDR_20' ) end [2025-01-26 12:50:19] Production.INFO: ProcessCDR(1,14334440,1,1,2) [2025-01-26 12:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334440', 'tblTempUsageDetail_20' ) start [2025-01-26 12:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334440', 'tblTempUsageDetail_20' ) end [2025-01-26 12:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:50:23] Production.INFO: ==14728== Releasing lock... [2025-01-26 12:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:50:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-26 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:51:05 [end_date_ymd] => 2025-01-26 12:51:05 [RateCDR] => 1 ) [2025-01-26 12:51: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-01-26 09:51:05' and `end` < '2025-01-26 12:51: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-01-26 12:51:17] Production.INFO: count ==1380 [2025-01-26 12:51:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:51:05 - End Time 2025-01-26 12:51:05 [2025-01-26 12:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334447', 'tblTempUsageDetail_20' ) start [2025-01-26 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334447', 'tblTempUsageDetail_20' ) end [2025-01-26 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334447', 'tblTempVendorCDR_20' ) start [2025-01-26 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334447', 'tblTempVendorCDR_20' ) end [2025-01-26 12:51:18] Production.INFO: ProcessCDR(1,14334447,1,1,2) [2025-01-26 12:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334447', 'tblTempUsageDetail_20' ) start [2025-01-26 12:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334447', 'tblTempUsageDetail_20' ) end [2025-01-26 12:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:51:21] Production.INFO: ==14805== Releasing lock... [2025-01-26 12:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:51:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-26 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:52:05 [end_date_ymd] => 2025-01-26 12:52:05 [RateCDR] => 1 ) [2025-01-26 12:52: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-01-26 09:52:05' and `end` < '2025-01-26 12:52: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-01-26 12:52:18] Production.INFO: count ==1380 [2025-01-26 12:52:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:52:05 - End Time 2025-01-26 12:52:05 [2025-01-26 12:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334452', 'tblTempUsageDetail_20' ) start [2025-01-26 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334452', 'tblTempUsageDetail_20' ) end [2025-01-26 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334452', 'tblTempVendorCDR_20' ) start [2025-01-26 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334452', 'tblTempVendorCDR_20' ) end [2025-01-26 12:52:18] Production.INFO: ProcessCDR(1,14334452,1,1,2) [2025-01-26 12:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334452', 'tblTempUsageDetail_20' ) start [2025-01-26 12:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334452', 'tblTempUsageDetail_20' ) end [2025-01-26 12:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:52:21] Production.INFO: ==14881== Releasing lock... [2025-01-26 12:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:52:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-26 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:53:05 [end_date_ymd] => 2025-01-26 12:53:05 [RateCDR] => 1 ) [2025-01-26 12:53: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-01-26 09:53:05' and `end` < '2025-01-26 12:53: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-01-26 12:53:19] Production.INFO: count ==1381 [2025-01-26 12:53:19] Production.ERROR: pbx CDR StartTime 2025-01-26 09:53:05 - End Time 2025-01-26 12:53:05 [2025-01-26 12:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334457', 'tblTempUsageDetail_20' ) start [2025-01-26 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334457', 'tblTempUsageDetail_20' ) end [2025-01-26 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334457', 'tblTempVendorCDR_20' ) start [2025-01-26 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334457', 'tblTempVendorCDR_20' ) end [2025-01-26 12:53:19] Production.INFO: ProcessCDR(1,14334457,1,1,2) [2025-01-26 12:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334457', 'tblTempUsageDetail_20' ) start [2025-01-26 12:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334457', 'tblTempUsageDetail_20' ) end [2025-01-26 12:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:53:23] Production.INFO: ==14961== Releasing lock... [2025-01-26 12:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:53:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-26 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:54:05 [end_date_ymd] => 2025-01-26 12:54:05 [RateCDR] => 1 ) [2025-01-26 12:54: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-01-26 09:54:05' and `end` < '2025-01-26 12:54: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-01-26 12:54:18] Production.INFO: count ==1377 [2025-01-26 12:54:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:54:05 - End Time 2025-01-26 12:54:05 [2025-01-26 12:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334462', 'tblTempUsageDetail_20' ) start [2025-01-26 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334462', 'tblTempUsageDetail_20' ) end [2025-01-26 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334462', 'tblTempVendorCDR_20' ) start [2025-01-26 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334462', 'tblTempVendorCDR_20' ) end [2025-01-26 12:54:18] Production.INFO: ProcessCDR(1,14334462,1,1,2) [2025-01-26 12:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334462', 'tblTempUsageDetail_20' ) start [2025-01-26 12:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334462', 'tblTempUsageDetail_20' ) end [2025-01-26 12:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:54:21] Production.INFO: ==15054== Releasing lock... [2025-01-26 12:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:54:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-26 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:55:05 [end_date_ymd] => 2025-01-26 12:55:05 [RateCDR] => 1 ) [2025-01-26 12:55: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-01-26 09:55:05' and `end` < '2025-01-26 12:55: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-01-26 12:55:18] Production.INFO: count ==1373 [2025-01-26 12:55:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:55:05 - End Time 2025-01-26 12:55:05 [2025-01-26 12:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334467', 'tblTempUsageDetail_20' ) start [2025-01-26 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334467', 'tblTempUsageDetail_20' ) end [2025-01-26 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334467', 'tblTempVendorCDR_20' ) start [2025-01-26 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334467', 'tblTempVendorCDR_20' ) end [2025-01-26 12:55:18] Production.INFO: ProcessCDR(1,14334467,1,1,2) [2025-01-26 12:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334467', 'tblTempUsageDetail_20' ) start [2025-01-26 12:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334467', 'tblTempUsageDetail_20' ) end [2025-01-26 12:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:55:22] Production.INFO: ==15136== Releasing lock... [2025-01-26 12:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:55:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-26 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:56:05 [end_date_ymd] => 2025-01-26 12:56:05 [RateCDR] => 1 ) [2025-01-26 12:56: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-01-26 09:56:05' and `end` < '2025-01-26 12:56: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-01-26 12:56:18] Production.INFO: count ==1372 [2025-01-26 12:56:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:56:05 - End Time 2025-01-26 12:56:05 [2025-01-26 12:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334472', 'tblTempUsageDetail_20' ) start [2025-01-26 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334472', 'tblTempUsageDetail_20' ) end [2025-01-26 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334472', 'tblTempVendorCDR_20' ) start [2025-01-26 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334472', 'tblTempVendorCDR_20' ) end [2025-01-26 12:56:18] Production.INFO: ProcessCDR(1,14334472,1,1,2) [2025-01-26 12:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334472', 'tblTempUsageDetail_20' ) start [2025-01-26 12:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334472', 'tblTempUsageDetail_20' ) end [2025-01-26 12:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:56:21] Production.INFO: ==15254== Releasing lock... [2025-01-26 12:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:56:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-26 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:57:05 [end_date_ymd] => 2025-01-26 12:57:05 [RateCDR] => 1 ) [2025-01-26 12:57: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-01-26 09:57:05' and `end` < '2025-01-26 12:57: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-01-26 12:57:18] Production.INFO: count ==1373 [2025-01-26 12:57:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:57:05 - End Time 2025-01-26 12:57:05 [2025-01-26 12:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334477', 'tblTempUsageDetail_20' ) start [2025-01-26 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334477', 'tblTempUsageDetail_20' ) end [2025-01-26 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334477', 'tblTempVendorCDR_20' ) start [2025-01-26 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334477', 'tblTempVendorCDR_20' ) end [2025-01-26 12:57:18] Production.INFO: ProcessCDR(1,14334477,1,1,2) [2025-01-26 12:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334477', 'tblTempUsageDetail_20' ) start [2025-01-26 12:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334477', 'tblTempUsageDetail_20' ) end [2025-01-26 12:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:57:22] Production.INFO: ==15332== Releasing lock... [2025-01-26 12:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:57:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-26 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:58:05 [end_date_ymd] => 2025-01-26 12:58:05 [RateCDR] => 1 ) [2025-01-26 12:58: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-01-26 09:58:05' and `end` < '2025-01-26 12:58: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-01-26 12:58:17] Production.INFO: count ==1375 [2025-01-26 12:58:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:58:05 - End Time 2025-01-26 12:58:05 [2025-01-26 12:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334482', 'tblTempUsageDetail_20' ) start [2025-01-26 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334482', 'tblTempUsageDetail_20' ) end [2025-01-26 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334482', 'tblTempVendorCDR_20' ) start [2025-01-26 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334482', 'tblTempVendorCDR_20' ) end [2025-01-26 12:58:18] Production.INFO: ProcessCDR(1,14334482,1,1,2) [2025-01-26 12:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334482', 'tblTempUsageDetail_20' ) start [2025-01-26 12:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334482', 'tblTempUsageDetail_20' ) end [2025-01-26 12:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:58:22] Production.INFO: ==15409== Releasing lock... [2025-01-26 12:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:58:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-26 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 09:59:05 [end_date_ymd] => 2025-01-26 12:59:05 [RateCDR] => 1 ) [2025-01-26 12:59: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-01-26 09:59:05' and `end` < '2025-01-26 12:59: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-01-26 12:59:18] Production.INFO: count ==1376 [2025-01-26 12:59:18] Production.ERROR: pbx CDR StartTime 2025-01-26 09:59:05 - End Time 2025-01-26 12:59:05 [2025-01-26 12:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334487', 'tblTempUsageDetail_20' ) start [2025-01-26 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334487', 'tblTempUsageDetail_20' ) end [2025-01-26 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334487', 'tblTempVendorCDR_20' ) start [2025-01-26 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334487', 'tblTempVendorCDR_20' ) end [2025-01-26 12:59:18] Production.INFO: ProcessCDR(1,14334487,1,1,2) [2025-01-26 12:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 12:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 12:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334487', 'tblTempUsageDetail_20' ) start [2025-01-26 12:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334487', 'tblTempUsageDetail_20' ) end [2025-01-26 12:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 12:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 12:59:21] Production.INFO: ==15488== Releasing lock... [2025-01-26 12:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 12:59:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-26 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:00:06 [end_date_ymd] => 2025-01-26 13:00:06 [RateCDR] => 1 ) [2025-01-26 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-01-26 10:00:06' and `end` < '2025-01-26 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-01-26 13:00:19] Production.INFO: count ==1373 [2025-01-26 13:00:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:00:06 - End Time 2025-01-26 13:00:06 [2025-01-26 13:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334493', 'tblTempUsageDetail_20' ) start [2025-01-26 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334493', 'tblTempUsageDetail_20' ) end [2025-01-26 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334493', 'tblTempVendorCDR_20' ) start [2025-01-26 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334493', 'tblTempVendorCDR_20' ) end [2025-01-26 13:00:19] Production.INFO: ProcessCDR(1,14334493,1,1,2) [2025-01-26 13:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334493', 'tblTempUsageDetail_20' ) start [2025-01-26 13:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334493', 'tblTempUsageDetail_20' ) end [2025-01-26 13:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:00:24] Production.INFO: ==15567== Releasing lock... [2025-01-26 13:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:00:24] Production.INFO: 38.75 MB #Memory Used# [2025-01-26 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:01:05 [end_date_ymd] => 2025-01-26 13:01:05 [RateCDR] => 1 ) [2025-01-26 13:01: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-01-26 10:01:05' and `end` < '2025-01-26 13:01: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-01-26 13:01:18] Production.INFO: count ==1387 [2025-01-26 13:01:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:01:05 - End Time 2025-01-26 13:01:05 [2025-01-26 13:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334497', 'tblTempUsageDetail_20' ) start [2025-01-26 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334497', 'tblTempUsageDetail_20' ) end [2025-01-26 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334497', 'tblTempVendorCDR_20' ) start [2025-01-26 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334497', 'tblTempVendorCDR_20' ) end [2025-01-26 13:01:19] Production.INFO: ProcessCDR(1,14334497,1,1,2) [2025-01-26 13:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334497', 'tblTempUsageDetail_20' ) start [2025-01-26 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334497', 'tblTempUsageDetail_20' ) end [2025-01-26 13:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:01:23] Production.INFO: ==15657== Releasing lock... [2025-01-26 13:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:01:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-26 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:02:05 [end_date_ymd] => 2025-01-26 13:02:05 [RateCDR] => 1 ) [2025-01-26 13:02: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-01-26 10:02:05' and `end` < '2025-01-26 13:02: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-01-26 13:02:18] Production.INFO: count ==1386 [2025-01-26 13:02:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:02:05 - End Time 2025-01-26 13:02:05 [2025-01-26 13:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334503', 'tblTempUsageDetail_20' ) start [2025-01-26 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334503', 'tblTempUsageDetail_20' ) end [2025-01-26 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334503', 'tblTempVendorCDR_20' ) start [2025-01-26 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334503', 'tblTempVendorCDR_20' ) end [2025-01-26 13:02:19] Production.INFO: ProcessCDR(1,14334503,1,1,2) [2025-01-26 13:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334503', 'tblTempUsageDetail_20' ) start [2025-01-26 13:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334503', 'tblTempUsageDetail_20' ) end [2025-01-26 13:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:02:22] Production.INFO: ==15734== Releasing lock... [2025-01-26 13:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:02:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-26 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:03:06 [end_date_ymd] => 2025-01-26 13:03:06 [RateCDR] => 1 ) [2025-01-26 13:03: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-01-26 10:03:06' and `end` < '2025-01-26 13:03: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-01-26 13:03:19] Production.INFO: count ==1393 [2025-01-26 13:03:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:03:06 - End Time 2025-01-26 13:03:06 [2025-01-26 13:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334508', 'tblTempUsageDetail_20' ) start [2025-01-26 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334508', 'tblTempUsageDetail_20' ) end [2025-01-26 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334508', 'tblTempVendorCDR_20' ) start [2025-01-26 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334508', 'tblTempVendorCDR_20' ) end [2025-01-26 13:03:19] Production.INFO: ProcessCDR(1,14334508,1,1,2) [2025-01-26 13:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334508', 'tblTempUsageDetail_20' ) start [2025-01-26 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334508', 'tblTempUsageDetail_20' ) end [2025-01-26 13:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:03:23] Production.INFO: ==15816== Releasing lock... [2025-01-26 13:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:03:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-26 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:04:05 [end_date_ymd] => 2025-01-26 13:04:05 [RateCDR] => 1 ) [2025-01-26 13:04: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-01-26 10:04:05' and `end` < '2025-01-26 13:04: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-01-26 13:04:18] Production.INFO: count ==1394 [2025-01-26 13:04:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:04:05 - End Time 2025-01-26 13:04:05 [2025-01-26 13:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334509', 'tblTempUsageDetail_20' ) start [2025-01-26 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334509', 'tblTempUsageDetail_20' ) end [2025-01-26 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334509', 'tblTempVendorCDR_20' ) start [2025-01-26 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334509', 'tblTempVendorCDR_20' ) end [2025-01-26 13:04:18] Production.INFO: ProcessCDR(1,14334509,1,1,2) [2025-01-26 13:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334509', 'tblTempUsageDetail_20' ) start [2025-01-26 13:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334509', 'tblTempUsageDetail_20' ) end [2025-01-26 13:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:04:23] Production.INFO: ==15891== Releasing lock... [2025-01-26 13:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:04:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-26 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:05:06 [end_date_ymd] => 2025-01-26 13:05:06 [RateCDR] => 1 ) [2025-01-26 13:05: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-01-26 10:05:06' and `end` < '2025-01-26 13:05: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-01-26 13:05:18] Production.INFO: count ==1398 [2025-01-26 13:05:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:05:06 - End Time 2025-01-26 13:05:06 [2025-01-26 13:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334518', 'tblTempUsageDetail_20' ) start [2025-01-26 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334518', 'tblTempUsageDetail_20' ) end [2025-01-26 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334518', 'tblTempVendorCDR_20' ) start [2025-01-26 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334518', 'tblTempVendorCDR_20' ) end [2025-01-26 13:05:19] Production.INFO: ProcessCDR(1,14334518,1,1,2) [2025-01-26 13:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334518', 'tblTempUsageDetail_20' ) start [2025-01-26 13:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334518', 'tblTempUsageDetail_20' ) end [2025-01-26 13:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:05:24] Production.INFO: ==15970== Releasing lock... [2025-01-26 13:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:05:24] Production.INFO: 38.5 MB #Memory Used# [2025-01-26 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:06:05 [end_date_ymd] => 2025-01-26 13:06:05 [RateCDR] => 1 ) [2025-01-26 13:06: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-01-26 10:06:05' and `end` < '2025-01-26 13:06: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-01-26 13:06:18] Production.INFO: count ==1402 [2025-01-26 13:06:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:06:05 - End Time 2025-01-26 13:06:05 [2025-01-26 13:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334523', 'tblTempUsageDetail_20' ) start [2025-01-26 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334523', 'tblTempUsageDetail_20' ) end [2025-01-26 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334523', 'tblTempVendorCDR_20' ) start [2025-01-26 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334523', 'tblTempVendorCDR_20' ) end [2025-01-26 13:06:19] Production.INFO: ProcessCDR(1,14334523,1,1,2) [2025-01-26 13:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334523', 'tblTempUsageDetail_20' ) start [2025-01-26 13:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334523', 'tblTempUsageDetail_20' ) end [2025-01-26 13:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:06:24] Production.INFO: ==16044== Releasing lock... [2025-01-26 13:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:06:24] Production.INFO: 38.75 MB #Memory Used# [2025-01-26 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:07:06 [end_date_ymd] => 2025-01-26 13:07:06 [RateCDR] => 1 ) [2025-01-26 13:07: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-01-26 10:07:06' and `end` < '2025-01-26 13:07: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-01-26 13:07:18] Production.INFO: count ==1405 [2025-01-26 13:07:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:07:06 - End Time 2025-01-26 13:07:06 [2025-01-26 13:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334528', 'tblTempUsageDetail_20' ) start [2025-01-26 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334528', 'tblTempUsageDetail_20' ) end [2025-01-26 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334528', 'tblTempVendorCDR_20' ) start [2025-01-26 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334528', 'tblTempVendorCDR_20' ) end [2025-01-26 13:07:19] Production.INFO: ProcessCDR(1,14334528,1,1,2) [2025-01-26 13:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334528', 'tblTempUsageDetail_20' ) start [2025-01-26 13:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334528', 'tblTempUsageDetail_20' ) end [2025-01-26 13:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:07:24] Production.INFO: ==16121== Releasing lock... [2025-01-26 13:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:07:24] Production.INFO: 39 MB #Memory Used# [2025-01-26 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:08:05 [end_date_ymd] => 2025-01-26 13:08:05 [RateCDR] => 1 ) [2025-01-26 13:08: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-01-26 10:08:05' and `end` < '2025-01-26 13:08: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-01-26 13:08:19] Production.INFO: count ==1398 [2025-01-26 13:08:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:08:05 - End Time 2025-01-26 13:08:05 [2025-01-26 13:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334533', 'tblTempUsageDetail_20' ) start [2025-01-26 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334533', 'tblTempUsageDetail_20' ) end [2025-01-26 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334533', 'tblTempVendorCDR_20' ) start [2025-01-26 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334533', 'tblTempVendorCDR_20' ) end [2025-01-26 13:08:19] Production.INFO: ProcessCDR(1,14334533,1,1,2) [2025-01-26 13:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334533', 'tblTempUsageDetail_20' ) start [2025-01-26 13:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334533', 'tblTempUsageDetail_20' ) end [2025-01-26 13:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:08:24] Production.INFO: ==16201== Releasing lock... [2025-01-26 13:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:08:24] Production.INFO: 39 MB #Memory Used# [2025-01-26 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:09:05 [end_date_ymd] => 2025-01-26 13:09:05 [RateCDR] => 1 ) [2025-01-26 13:09: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-01-26 10:09:05' and `end` < '2025-01-26 13:09: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-01-26 13:09:18] Production.INFO: count ==1412 [2025-01-26 13:09:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:09:05 - End Time 2025-01-26 13:09:05 [2025-01-26 13:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334538', 'tblTempUsageDetail_20' ) start [2025-01-26 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334538', 'tblTempUsageDetail_20' ) end [2025-01-26 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334538', 'tblTempVendorCDR_20' ) start [2025-01-26 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334538', 'tblTempVendorCDR_20' ) end [2025-01-26 13:09:18] Production.INFO: ProcessCDR(1,14334538,1,1,2) [2025-01-26 13:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334538', 'tblTempUsageDetail_20' ) start [2025-01-26 13:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334538', 'tblTempUsageDetail_20' ) end [2025-01-26 13:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:09:23] Production.INFO: ==16275== Releasing lock... [2025-01-26 13:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:09:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-26 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:10:06 [end_date_ymd] => 2025-01-26 13:10:06 [RateCDR] => 1 ) [2025-01-26 13:10: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-01-26 10:10:06' and `end` < '2025-01-26 13:10: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-01-26 13:10:19] Production.INFO: count ==1416 [2025-01-26 13:10:20] Production.ERROR: pbx CDR StartTime 2025-01-26 10:10:06 - End Time 2025-01-26 13:10:06 [2025-01-26 13:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334544', 'tblTempUsageDetail_20' ) start [2025-01-26 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334544', 'tblTempUsageDetail_20' ) end [2025-01-26 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334544', 'tblTempVendorCDR_20' ) start [2025-01-26 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334544', 'tblTempVendorCDR_20' ) end [2025-01-26 13:10:20] Production.INFO: ProcessCDR(1,14334544,1,1,2) [2025-01-26 13:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334544', 'tblTempUsageDetail_20' ) start [2025-01-26 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334544', 'tblTempUsageDetail_20' ) end [2025-01-26 13:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:10:25] Production.INFO: ==16350== Releasing lock... [2025-01-26 13:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:10:25] Production.INFO: 38.75 MB #Memory Used# [2025-01-26 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:11:05 [end_date_ymd] => 2025-01-26 13:11:05 [RateCDR] => 1 ) [2025-01-26 13:11: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-01-26 10:11:05' and `end` < '2025-01-26 13:11: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-01-26 13:11:18] Production.INFO: count ==1430 [2025-01-26 13:11:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:11:05 - End Time 2025-01-26 13:11:05 [2025-01-26 13:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334549', 'tblTempUsageDetail_20' ) start [2025-01-26 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334549', 'tblTempUsageDetail_20' ) end [2025-01-26 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334549', 'tblTempVendorCDR_20' ) start [2025-01-26 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334549', 'tblTempVendorCDR_20' ) end [2025-01-26 13:11:18] Production.INFO: ProcessCDR(1,14334549,1,1,2) [2025-01-26 13:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334549', 'tblTempUsageDetail_20' ) start [2025-01-26 13:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334549', 'tblTempUsageDetail_20' ) end [2025-01-26 13:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:11:24] Production.INFO: ==16432== Releasing lock... [2025-01-26 13:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:11:24] Production.INFO: 39 MB #Memory Used# [2025-01-26 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:12:05 [end_date_ymd] => 2025-01-26 13:12:05 [RateCDR] => 1 ) [2025-01-26 13:12: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-01-26 10:12:05' and `end` < '2025-01-26 13:12: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-01-26 13:12:18] Production.INFO: count ==1429 [2025-01-26 13:12:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:12:05 - End Time 2025-01-26 13:12:05 [2025-01-26 13:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334554', 'tblTempUsageDetail_20' ) start [2025-01-26 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334554', 'tblTempUsageDetail_20' ) end [2025-01-26 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334554', 'tblTempVendorCDR_20' ) start [2025-01-26 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334554', 'tblTempVendorCDR_20' ) end [2025-01-26 13:12:19] Production.INFO: ProcessCDR(1,14334554,1,1,2) [2025-01-26 13:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334554', 'tblTempUsageDetail_20' ) start [2025-01-26 13:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334554', 'tblTempUsageDetail_20' ) end [2025-01-26 13:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:12:24] Production.INFO: ==16543== Releasing lock... [2025-01-26 13:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:12:24] Production.INFO: 39 MB #Memory Used# [2025-01-26 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:13:05 [end_date_ymd] => 2025-01-26 13:13:05 [RateCDR] => 1 ) [2025-01-26 13:13: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-01-26 10:13:05' and `end` < '2025-01-26 13:13: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-01-26 13:13:18] Production.INFO: count ==1427 [2025-01-26 13:13:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:13:05 - End Time 2025-01-26 13:13:05 [2025-01-26 13:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334559', 'tblTempUsageDetail_20' ) start [2025-01-26 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334559', 'tblTempUsageDetail_20' ) end [2025-01-26 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334559', 'tblTempVendorCDR_20' ) start [2025-01-26 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334559', 'tblTempVendorCDR_20' ) end [2025-01-26 13:13:19] Production.INFO: ProcessCDR(1,14334559,1,1,2) [2025-01-26 13:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334559', 'tblTempUsageDetail_20' ) start [2025-01-26 13:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334559', 'tblTempUsageDetail_20' ) end [2025-01-26 13:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:13:22] Production.INFO: ==16619== Releasing lock... [2025-01-26 13:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:13:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-26 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:14:05 [end_date_ymd] => 2025-01-26 13:14:05 [RateCDR] => 1 ) [2025-01-26 13:14: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-01-26 10:14:05' and `end` < '2025-01-26 13:14: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-01-26 13:14:18] Production.INFO: count ==1427 [2025-01-26 13:14:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:14:05 - End Time 2025-01-26 13:14:05 [2025-01-26 13:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334564', 'tblTempUsageDetail_20' ) start [2025-01-26 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334564', 'tblTempUsageDetail_20' ) end [2025-01-26 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334564', 'tblTempVendorCDR_20' ) start [2025-01-26 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334564', 'tblTempVendorCDR_20' ) end [2025-01-26 13:14:19] Production.INFO: ProcessCDR(1,14334564,1,1,2) [2025-01-26 13:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334564', 'tblTempUsageDetail_20' ) start [2025-01-26 13:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334564', 'tblTempUsageDetail_20' ) end [2025-01-26 13:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:14:22] Production.INFO: ==16696== Releasing lock... [2025-01-26 13:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:14:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-26 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:15:05 [end_date_ymd] => 2025-01-26 13:15:05 [RateCDR] => 1 ) [2025-01-26 13:15: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-01-26 10:15:05' and `end` < '2025-01-26 13:15: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-01-26 13:15:19] Production.INFO: count ==1427 [2025-01-26 13:15:20] Production.ERROR: pbx CDR StartTime 2025-01-26 10:15:05 - End Time 2025-01-26 13:15:05 [2025-01-26 13:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334569', 'tblTempUsageDetail_20' ) start [2025-01-26 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334569', 'tblTempUsageDetail_20' ) end [2025-01-26 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334569', 'tblTempVendorCDR_20' ) start [2025-01-26 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334569', 'tblTempVendorCDR_20' ) end [2025-01-26 13:15:20] Production.INFO: ProcessCDR(1,14334569,1,1,2) [2025-01-26 13:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334569', 'tblTempUsageDetail_20' ) start [2025-01-26 13:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334569', 'tblTempUsageDetail_20' ) end [2025-01-26 13:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:15:23] Production.INFO: ==16769== Releasing lock... [2025-01-26 13:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:15:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-26 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:16:05 [end_date_ymd] => 2025-01-26 13:16:05 [RateCDR] => 1 ) [2025-01-26 13:16: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-01-26 10:16:05' and `end` < '2025-01-26 13:16: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-01-26 13:16:18] Production.INFO: count ==1428 [2025-01-26 13:16:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:16:05 - End Time 2025-01-26 13:16:05 [2025-01-26 13:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334574', 'tblTempUsageDetail_20' ) start [2025-01-26 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334574', 'tblTempUsageDetail_20' ) end [2025-01-26 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334574', 'tblTempVendorCDR_20' ) start [2025-01-26 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334574', 'tblTempVendorCDR_20' ) end [2025-01-26 13:16:18] Production.INFO: ProcessCDR(1,14334574,1,1,2) [2025-01-26 13:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334574', 'tblTempUsageDetail_20' ) start [2025-01-26 13:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334574', 'tblTempUsageDetail_20' ) end [2025-01-26 13:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:16:22] Production.INFO: ==16845== Releasing lock... [2025-01-26 13:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:16:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-26 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:17:05 [end_date_ymd] => 2025-01-26 13:17:05 [RateCDR] => 1 ) [2025-01-26 13:17: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-01-26 10:17:05' and `end` < '2025-01-26 13:17: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-01-26 13:17:19] Production.INFO: count ==1433 [2025-01-26 13:17:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:17:05 - End Time 2025-01-26 13:17:05 [2025-01-26 13:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334579', 'tblTempUsageDetail_20' ) start [2025-01-26 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334579', 'tblTempUsageDetail_20' ) end [2025-01-26 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334579', 'tblTempVendorCDR_20' ) start [2025-01-26 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334579', 'tblTempVendorCDR_20' ) end [2025-01-26 13:17:19] Production.INFO: ProcessCDR(1,14334579,1,1,2) [2025-01-26 13:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334579', 'tblTempUsageDetail_20' ) start [2025-01-26 13:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334579', 'tblTempUsageDetail_20' ) end [2025-01-26 13:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:17:23] Production.INFO: ==16917== Releasing lock... [2025-01-26 13:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:17:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-26 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:18:05 [end_date_ymd] => 2025-01-26 13:18:05 [RateCDR] => 1 ) [2025-01-26 13:18: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-01-26 10:18:05' and `end` < '2025-01-26 13:18: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-01-26 13:18:18] Production.INFO: count ==1436 [2025-01-26 13:18:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:18:05 - End Time 2025-01-26 13:18:05 [2025-01-26 13:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334584', 'tblTempUsageDetail_20' ) start [2025-01-26 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334584', 'tblTempUsageDetail_20' ) end [2025-01-26 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334584', 'tblTempVendorCDR_20' ) start [2025-01-26 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334584', 'tblTempVendorCDR_20' ) end [2025-01-26 13:18:18] Production.INFO: ProcessCDR(1,14334584,1,1,2) [2025-01-26 13:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334584', 'tblTempUsageDetail_20' ) start [2025-01-26 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334584', 'tblTempUsageDetail_20' ) end [2025-01-26 13:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:18:22] Production.INFO: ==16991== Releasing lock... [2025-01-26 13:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:18:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-26 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:19:05 [end_date_ymd] => 2025-01-26 13:19:05 [RateCDR] => 1 ) [2025-01-26 13:19: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-01-26 10:19:05' and `end` < '2025-01-26 13:19: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-01-26 13:19:18] Production.INFO: count ==1428 [2025-01-26 13:19:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:19:05 - End Time 2025-01-26 13:19:05 [2025-01-26 13:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334589', 'tblTempUsageDetail_20' ) start [2025-01-26 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334589', 'tblTempUsageDetail_20' ) end [2025-01-26 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334589', 'tblTempVendorCDR_20' ) start [2025-01-26 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334589', 'tblTempVendorCDR_20' ) end [2025-01-26 13:19:19] Production.INFO: ProcessCDR(1,14334589,1,1,2) [2025-01-26 13:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334589', 'tblTempUsageDetail_20' ) start [2025-01-26 13:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334589', 'tblTempUsageDetail_20' ) end [2025-01-26 13:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:19:22] Production.INFO: ==17066== Releasing lock... [2025-01-26 13:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:19:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-26 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:20:05 [end_date_ymd] => 2025-01-26 13:20:05 [RateCDR] => 1 ) [2025-01-26 13:20: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-01-26 10:20:05' and `end` < '2025-01-26 13:20: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-01-26 13:20:17] Production.INFO: count ==1433 [2025-01-26 13:20:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:20:05 - End Time 2025-01-26 13:20:05 [2025-01-26 13:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334594', 'tblTempUsageDetail_20' ) start [2025-01-26 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334594', 'tblTempUsageDetail_20' ) end [2025-01-26 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334594', 'tblTempVendorCDR_20' ) start [2025-01-26 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334594', 'tblTempVendorCDR_20' ) end [2025-01-26 13:20:18] Production.INFO: ProcessCDR(1,14334594,1,1,2) [2025-01-26 13:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334594', 'tblTempUsageDetail_20' ) start [2025-01-26 13:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334594', 'tblTempUsageDetail_20' ) end [2025-01-26 13:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:20:21] Production.INFO: ==17139== Releasing lock... [2025-01-26 13:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:20:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-26 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:21:05 [end_date_ymd] => 2025-01-26 13:21:05 [RateCDR] => 1 ) [2025-01-26 13:21: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-01-26 10:21:05' and `end` < '2025-01-26 13:21: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-01-26 13:21:18] Production.INFO: count ==1475 [2025-01-26 13:21:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:21:05 - End Time 2025-01-26 13:21:05 [2025-01-26 13:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334600', 'tblTempUsageDetail_20' ) start [2025-01-26 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334600', 'tblTempUsageDetail_20' ) end [2025-01-26 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334600', 'tblTempVendorCDR_20' ) start [2025-01-26 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334600', 'tblTempVendorCDR_20' ) end [2025-01-26 13:21:18] Production.INFO: ProcessCDR(1,14334600,1,1,2) [2025-01-26 13:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334600', 'tblTempUsageDetail_20' ) start [2025-01-26 13:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334600', 'tblTempUsageDetail_20' ) end [2025-01-26 13:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:21:21] Production.INFO: ==17213== Releasing lock... [2025-01-26 13:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:21:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-26 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:22:05 [end_date_ymd] => 2025-01-26 13:22:05 [RateCDR] => 1 ) [2025-01-26 13:22: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-01-26 10:22:05' and `end` < '2025-01-26 13:22: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-01-26 13:22:18] Production.INFO: count ==1478 [2025-01-26 13:22:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:22:05 - End Time 2025-01-26 13:22:05 [2025-01-26 13:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334605', 'tblTempUsageDetail_20' ) start [2025-01-26 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334605', 'tblTempUsageDetail_20' ) end [2025-01-26 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334605', 'tblTempVendorCDR_20' ) start [2025-01-26 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334605', 'tblTempVendorCDR_20' ) end [2025-01-26 13:22:18] Production.INFO: ProcessCDR(1,14334605,1,1,2) [2025-01-26 13:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334605', 'tblTempUsageDetail_20' ) start [2025-01-26 13:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334605', 'tblTempUsageDetail_20' ) end [2025-01-26 13:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:22:23] Production.INFO: ==17290== Releasing lock... [2025-01-26 13:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:22:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-26 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:23:05 [end_date_ymd] => 2025-01-26 13:23:05 [RateCDR] => 1 ) [2025-01-26 13:23: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-01-26 10:23:05' and `end` < '2025-01-26 13:23: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-01-26 13:23:18] Production.INFO: count ==1471 [2025-01-26 13:23:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:23:05 - End Time 2025-01-26 13:23:05 [2025-01-26 13:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334610', 'tblTempUsageDetail_20' ) start [2025-01-26 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334610', 'tblTempUsageDetail_20' ) end [2025-01-26 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334610', 'tblTempVendorCDR_20' ) start [2025-01-26 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334610', 'tblTempVendorCDR_20' ) end [2025-01-26 13:23:18] Production.INFO: ProcessCDR(1,14334610,1,1,2) [2025-01-26 13:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334610', 'tblTempUsageDetail_20' ) start [2025-01-26 13:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334610', 'tblTempUsageDetail_20' ) end [2025-01-26 13:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:23:23] Production.INFO: ==17365== Releasing lock... [2025-01-26 13:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:23:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-26 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:24:05 [end_date_ymd] => 2025-01-26 13:24:05 [RateCDR] => 1 ) [2025-01-26 13:24: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-01-26 10:24:05' and `end` < '2025-01-26 13:24: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-01-26 13:24:18] Production.INFO: count ==1465 [2025-01-26 13:24:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:24:05 - End Time 2025-01-26 13:24:05 [2025-01-26 13:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334615', 'tblTempUsageDetail_20' ) start [2025-01-26 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334615', 'tblTempUsageDetail_20' ) end [2025-01-26 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334615', 'tblTempVendorCDR_20' ) start [2025-01-26 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334615', 'tblTempVendorCDR_20' ) end [2025-01-26 13:24:18] Production.INFO: ProcessCDR(1,14334615,1,1,2) [2025-01-26 13:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334615', 'tblTempUsageDetail_20' ) start [2025-01-26 13:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334615', 'tblTempUsageDetail_20' ) end [2025-01-26 13:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:24:21] Production.INFO: ==17437== Releasing lock... [2025-01-26 13:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:24:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-26 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:25:05 [end_date_ymd] => 2025-01-26 13:25:05 [RateCDR] => 1 ) [2025-01-26 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 10:25:05' and `end` < '2025-01-26 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 13:25:18] Production.INFO: count ==1466 [2025-01-26 13:25:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:25:05 - End Time 2025-01-26 13:25:05 [2025-01-26 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334620', 'tblTempUsageDetail_20' ) start [2025-01-26 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334620', 'tblTempUsageDetail_20' ) end [2025-01-26 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334620', 'tblTempVendorCDR_20' ) start [2025-01-26 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334620', 'tblTempVendorCDR_20' ) end [2025-01-26 13:25:18] Production.INFO: ProcessCDR(1,14334620,1,1,2) [2025-01-26 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334620', 'tblTempUsageDetail_20' ) start [2025-01-26 13:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334620', 'tblTempUsageDetail_20' ) end [2025-01-26 13:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:25:21] Production.INFO: ==17510== Releasing lock... [2025-01-26 13:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:25:21] Production.INFO: 39 MB #Memory Used# [2025-01-26 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:26:05 [end_date_ymd] => 2025-01-26 13:26:05 [RateCDR] => 1 ) [2025-01-26 13:26: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-01-26 10:26:05' and `end` < '2025-01-26 13:26: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-01-26 13:26:18] Production.INFO: count ==1467 [2025-01-26 13:26:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:26:05 - End Time 2025-01-26 13:26:05 [2025-01-26 13:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334625', 'tblTempUsageDetail_20' ) start [2025-01-26 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334625', 'tblTempUsageDetail_20' ) end [2025-01-26 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334625', 'tblTempVendorCDR_20' ) start [2025-01-26 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334625', 'tblTempVendorCDR_20' ) end [2025-01-26 13:26:18] Production.INFO: ProcessCDR(1,14334625,1,1,2) [2025-01-26 13:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334625', 'tblTempUsageDetail_20' ) start [2025-01-26 13:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334625', 'tblTempUsageDetail_20' ) end [2025-01-26 13:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:26:22] Production.INFO: ==17585== Releasing lock... [2025-01-26 13:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:26:22] Production.INFO: 39 MB #Memory Used# [2025-01-26 13:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:27:04 [end_date_ymd] => 2025-01-26 13:27:04 [RateCDR] => 1 ) [2025-01-26 13:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 10:27:04' and `end` < '2025-01-26 13:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 13:27:18] Production.INFO: count ==1472 [2025-01-26 13:27:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:27:04 - End Time 2025-01-26 13:27:04 [2025-01-26 13:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334629', 'tblTempUsageDetail_20' ) start [2025-01-26 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334629', 'tblTempUsageDetail_20' ) end [2025-01-26 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334629', 'tblTempVendorCDR_20' ) start [2025-01-26 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334629', 'tblTempVendorCDR_20' ) end [2025-01-26 13:27:18] Production.INFO: ProcessCDR(1,14334629,1,1,2) [2025-01-26 13:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334629', 'tblTempUsageDetail_20' ) start [2025-01-26 13:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334629', 'tblTempUsageDetail_20' ) end [2025-01-26 13:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:27:23] Production.INFO: ==17695== Releasing lock... [2025-01-26 13:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:27:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-26 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:28:05 [end_date_ymd] => 2025-01-26 13:28:05 [RateCDR] => 1 ) [2025-01-26 13:28: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-01-26 10:28:05' and `end` < '2025-01-26 13:28: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-01-26 13:28:17] Production.INFO: count ==1472 [2025-01-26 13:28:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:28:05 - End Time 2025-01-26 13:28:05 [2025-01-26 13:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334635', 'tblTempUsageDetail_20' ) start [2025-01-26 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334635', 'tblTempUsageDetail_20' ) end [2025-01-26 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334635', 'tblTempVendorCDR_20' ) start [2025-01-26 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334635', 'tblTempVendorCDR_20' ) end [2025-01-26 13:28:18] Production.INFO: ProcessCDR(1,14334635,1,1,2) [2025-01-26 13:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334635', 'tblTempUsageDetail_20' ) start [2025-01-26 13:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334635', 'tblTempUsageDetail_20' ) end [2025-01-26 13:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:28:21] Production.INFO: ==17770== Releasing lock... [2025-01-26 13:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:28:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-26 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:29:05 [end_date_ymd] => 2025-01-26 13:29:05 [RateCDR] => 1 ) [2025-01-26 13:29: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-01-26 10:29:05' and `end` < '2025-01-26 13:29: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-01-26 13:29:18] Production.INFO: count ==1471 [2025-01-26 13:29:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:29:05 - End Time 2025-01-26 13:29:05 [2025-01-26 13:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334640', 'tblTempUsageDetail_20' ) start [2025-01-26 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334640', 'tblTempUsageDetail_20' ) end [2025-01-26 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334640', 'tblTempVendorCDR_20' ) start [2025-01-26 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334640', 'tblTempVendorCDR_20' ) end [2025-01-26 13:29:18] Production.INFO: ProcessCDR(1,14334640,1,1,2) [2025-01-26 13:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334640', 'tblTempUsageDetail_20' ) start [2025-01-26 13:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334640', 'tblTempUsageDetail_20' ) end [2025-01-26 13:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:29:21] Production.INFO: ==17842== Releasing lock... [2025-01-26 13:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:29:21] Production.INFO: 39 MB #Memory Used# [2025-01-26 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:30:06 [end_date_ymd] => 2025-01-26 13:30:06 [RateCDR] => 1 ) [2025-01-26 13:30: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-01-26 10:30:06' and `end` < '2025-01-26 13:30: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-01-26 13:30:18] Production.INFO: count ==1466 [2025-01-26 13:30:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:30:06 - End Time 2025-01-26 13:30:06 [2025-01-26 13:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334646', 'tblTempUsageDetail_20' ) start [2025-01-26 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334646', 'tblTempUsageDetail_20' ) end [2025-01-26 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334646', 'tblTempVendorCDR_20' ) start [2025-01-26 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334646', 'tblTempVendorCDR_20' ) end [2025-01-26 13:30:19] Production.INFO: ProcessCDR(1,14334646,1,1,2) [2025-01-26 13:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334646', 'tblTempUsageDetail_20' ) start [2025-01-26 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334646', 'tblTempUsageDetail_20' ) end [2025-01-26 13:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:30:23] Production.INFO: ==17918== Releasing lock... [2025-01-26 13:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:30:23] Production.INFO: 39 MB #Memory Used# [2025-01-26 13:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:31:06 [end_date_ymd] => 2025-01-26 13:31:06 [RateCDR] => 1 ) [2025-01-26 13:31: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-01-26 10:31:06' and `end` < '2025-01-26 13:31: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-01-26 13:31:18] Production.INFO: count ==1489 [2025-01-26 13:31:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:31:06 - End Time 2025-01-26 13:31:06 [2025-01-26 13:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334651', 'tblTempUsageDetail_20' ) start [2025-01-26 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334651', 'tblTempUsageDetail_20' ) end [2025-01-26 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334651', 'tblTempVendorCDR_20' ) start [2025-01-26 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334651', 'tblTempVendorCDR_20' ) end [2025-01-26 13:31:19] Production.INFO: ProcessCDR(1,14334651,1,1,2) [2025-01-26 13:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334651', 'tblTempUsageDetail_20' ) start [2025-01-26 13:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334651', 'tblTempUsageDetail_20' ) end [2025-01-26 13:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:31:23] Production.INFO: ==17992== Releasing lock... [2025-01-26 13:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:31:23] Production.INFO: 39 MB #Memory Used# [2025-01-26 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:32:05 [end_date_ymd] => 2025-01-26 13:32:05 [RateCDR] => 1 ) [2025-01-26 13:32: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-01-26 10:32:05' and `end` < '2025-01-26 13:32: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-01-26 13:32:17] Production.INFO: count ==1486 [2025-01-26 13:32:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:32:05 - End Time 2025-01-26 13:32:05 [2025-01-26 13:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334656', 'tblTempUsageDetail_20' ) start [2025-01-26 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334656', 'tblTempUsageDetail_20' ) end [2025-01-26 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334656', 'tblTempVendorCDR_20' ) start [2025-01-26 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334656', 'tblTempVendorCDR_20' ) end [2025-01-26 13:32:18] Production.INFO: ProcessCDR(1,14334656,1,1,2) [2025-01-26 13:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334656', 'tblTempUsageDetail_20' ) start [2025-01-26 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334656', 'tblTempUsageDetail_20' ) end [2025-01-26 13:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:32:22] Production.INFO: ==18065== Releasing lock... [2025-01-26 13:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:32:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-26 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:33:06 [end_date_ymd] => 2025-01-26 13:33:06 [RateCDR] => 1 ) [2025-01-26 13:33: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-01-26 10:33:06' and `end` < '2025-01-26 13:33: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-01-26 13:33:20] Production.INFO: count ==1510 [2025-01-26 13:33:20] Production.ERROR: pbx CDR StartTime 2025-01-26 10:33:06 - End Time 2025-01-26 13:33:06 [2025-01-26 13:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334661', 'tblTempUsageDetail_20' ) start [2025-01-26 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334661', 'tblTempUsageDetail_20' ) end [2025-01-26 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334661', 'tblTempVendorCDR_20' ) start [2025-01-26 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334661', 'tblTempVendorCDR_20' ) end [2025-01-26 13:33:20] Production.INFO: ProcessCDR(1,14334661,1,1,2) [2025-01-26 13:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334661', 'tblTempUsageDetail_20' ) start [2025-01-26 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334661', 'tblTempUsageDetail_20' ) end [2025-01-26 13:33:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:33:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:33:25] Production.INFO: ==18147== Releasing lock... [2025-01-26 13:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:33:25] Production.INFO: 39.25 MB #Memory Used# [2025-01-26 13:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:34:04 [end_date_ymd] => 2025-01-26 13:34:04 [RateCDR] => 1 ) [2025-01-26 13:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 10:34:04' and `end` < '2025-01-26 13:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 13:34:17] Production.INFO: count ==1511 [2025-01-26 13:34:17] Production.ERROR: pbx CDR StartTime 2025-01-26 10:34:04 - End Time 2025-01-26 13:34:04 [2025-01-26 13:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334666', 'tblTempUsageDetail_20' ) start [2025-01-26 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334666', 'tblTempUsageDetail_20' ) end [2025-01-26 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334666', 'tblTempVendorCDR_20' ) start [2025-01-26 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334666', 'tblTempVendorCDR_20' ) end [2025-01-26 13:34:17] Production.INFO: ProcessCDR(1,14334666,1,1,2) [2025-01-26 13:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334666', 'tblTempUsageDetail_20' ) start [2025-01-26 13:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334666', 'tblTempUsageDetail_20' ) end [2025-01-26 13:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:34:22] Production.INFO: ==18220== Releasing lock... [2025-01-26 13:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:34:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-26 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:35:05 [end_date_ymd] => 2025-01-26 13:35:05 [RateCDR] => 1 ) [2025-01-26 13:35: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-01-26 10:35:05' and `end` < '2025-01-26 13:35: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-01-26 13:35:18] Production.INFO: count ==1515 [2025-01-26 13:35:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:35:05 - End Time 2025-01-26 13:35:05 [2025-01-26 13:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334671', 'tblTempUsageDetail_20' ) start [2025-01-26 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334671', 'tblTempUsageDetail_20' ) end [2025-01-26 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334671', 'tblTempVendorCDR_20' ) start [2025-01-26 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334671', 'tblTempVendorCDR_20' ) end [2025-01-26 13:35:18] Production.INFO: ProcessCDR(1,14334671,1,1,2) [2025-01-26 13:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334671', 'tblTempUsageDetail_20' ) start [2025-01-26 13:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334671', 'tblTempUsageDetail_20' ) end [2025-01-26 13:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:35:22] Production.INFO: ==18295== Releasing lock... [2025-01-26 13:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:35:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-26 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:36:05 [end_date_ymd] => 2025-01-26 13:36:05 [RateCDR] => 1 ) [2025-01-26 13:36: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-01-26 10:36:05' and `end` < '2025-01-26 13:36: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-01-26 13:36:19] Production.INFO: count ==1521 [2025-01-26 13:36:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:36:05 - End Time 2025-01-26 13:36:05 [2025-01-26 13:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334676', 'tblTempUsageDetail_20' ) start [2025-01-26 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334676', 'tblTempUsageDetail_20' ) end [2025-01-26 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334676', 'tblTempVendorCDR_20' ) start [2025-01-26 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334676', 'tblTempVendorCDR_20' ) end [2025-01-26 13:36:19] Production.INFO: ProcessCDR(1,14334676,1,1,2) [2025-01-26 13:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334676', 'tblTempUsageDetail_20' ) start [2025-01-26 13:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334676', 'tblTempUsageDetail_20' ) end [2025-01-26 13:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:36:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:36:25] Production.INFO: ==18366== Releasing lock... [2025-01-26 13:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:36:25] Production.INFO: 39.5 MB #Memory Used# [2025-01-26 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:37:05 [end_date_ymd] => 2025-01-26 13:37:05 [RateCDR] => 1 ) [2025-01-26 13:37: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-01-26 10:37:05' and `end` < '2025-01-26 13:37: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-01-26 13:37:18] Production.INFO: count ==1528 [2025-01-26 13:37:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:37:05 - End Time 2025-01-26 13:37:05 [2025-01-26 13:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334681', 'tblTempUsageDetail_20' ) start [2025-01-26 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334681', 'tblTempUsageDetail_20' ) end [2025-01-26 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334681', 'tblTempVendorCDR_20' ) start [2025-01-26 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334681', 'tblTempVendorCDR_20' ) end [2025-01-26 13:37:18] Production.INFO: ProcessCDR(1,14334681,1,1,2) [2025-01-26 13:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334681', 'tblTempUsageDetail_20' ) start [2025-01-26 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334681', 'tblTempUsageDetail_20' ) end [2025-01-26 13:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:37:23] Production.INFO: ==18446== Releasing lock... [2025-01-26 13:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:37:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-26 13:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:38:04 [end_date_ymd] => 2025-01-26 13:38:04 [RateCDR] => 1 ) [2025-01-26 13:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 10:38:04' and `end` < '2025-01-26 13:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 13:38:17] Production.INFO: count ==1535 [2025-01-26 13:38:17] Production.ERROR: pbx CDR StartTime 2025-01-26 10:38:04 - End Time 2025-01-26 13:38:04 [2025-01-26 13:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334686', 'tblTempUsageDetail_20' ) start [2025-01-26 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334686', 'tblTempUsageDetail_20' ) end [2025-01-26 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334686', 'tblTempVendorCDR_20' ) start [2025-01-26 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334686', 'tblTempVendorCDR_20' ) end [2025-01-26 13:38:18] Production.INFO: ProcessCDR(1,14334686,1,1,2) [2025-01-26 13:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334686', 'tblTempUsageDetail_20' ) start [2025-01-26 13:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334686', 'tblTempUsageDetail_20' ) end [2025-01-26 13:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:38:21] Production.INFO: ==18518== Releasing lock... [2025-01-26 13:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:38:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-26 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:39:05 [end_date_ymd] => 2025-01-26 13:39:05 [RateCDR] => 1 ) [2025-01-26 13:39: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-01-26 10:39:05' and `end` < '2025-01-26 13:39: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-01-26 13:39:18] Production.INFO: count ==1532 [2025-01-26 13:39:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:39:05 - End Time 2025-01-26 13:39:05 [2025-01-26 13:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334691', 'tblTempUsageDetail_20' ) start [2025-01-26 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334691', 'tblTempUsageDetail_20' ) end [2025-01-26 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334691', 'tblTempVendorCDR_20' ) start [2025-01-26 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334691', 'tblTempVendorCDR_20' ) end [2025-01-26 13:39:18] Production.INFO: ProcessCDR(1,14334691,1,1,2) [2025-01-26 13:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334691', 'tblTempUsageDetail_20' ) start [2025-01-26 13:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334691', 'tblTempUsageDetail_20' ) end [2025-01-26 13:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:39:24] Production.INFO: ==18592== Releasing lock... [2025-01-26 13:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:39:24] Production.INFO: 39.5 MB #Memory Used# [2025-01-26 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:40:06 [end_date_ymd] => 2025-01-26 13:40:06 [RateCDR] => 1 ) [2025-01-26 13:40: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-01-26 10:40:06' and `end` < '2025-01-26 13:40: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-01-26 13:40:19] Production.INFO: count ==1535 [2025-01-26 13:40:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:40:06 - End Time 2025-01-26 13:40:06 [2025-01-26 13:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334696', 'tblTempUsageDetail_20' ) start [2025-01-26 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334696', 'tblTempUsageDetail_20' ) end [2025-01-26 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334696', 'tblTempVendorCDR_20' ) start [2025-01-26 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334696', 'tblTempVendorCDR_20' ) end [2025-01-26 13:40:19] Production.INFO: ProcessCDR(1,14334696,1,1,2) [2025-01-26 13:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334696', 'tblTempUsageDetail_20' ) start [2025-01-26 13:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334696', 'tblTempUsageDetail_20' ) end [2025-01-26 13:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:40:24] Production.INFO: ==18666== Releasing lock... [2025-01-26 13:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:40:24] Production.INFO: 39.5 MB #Memory Used# [2025-01-26 13:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:41:06 [end_date_ymd] => 2025-01-26 13:41:06 [RateCDR] => 1 ) [2025-01-26 13:41: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-01-26 10:41:06' and `end` < '2025-01-26 13:41: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-01-26 13:41:18] Production.INFO: count ==1581 [2025-01-26 13:41:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:41:06 - End Time 2025-01-26 13:41:06 [2025-01-26 13:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334702', 'tblTempUsageDetail_20' ) start [2025-01-26 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334702', 'tblTempUsageDetail_20' ) end [2025-01-26 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334702', 'tblTempVendorCDR_20' ) start [2025-01-26 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334702', 'tblTempVendorCDR_20' ) end [2025-01-26 13:41:19] Production.INFO: ProcessCDR(1,14334702,1,1,2) [2025-01-26 13:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334702', 'tblTempUsageDetail_20' ) start [2025-01-26 13:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334702', 'tblTempUsageDetail_20' ) end [2025-01-26 13:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:41:22] Production.INFO: ==18742== Releasing lock... [2025-01-26 13:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:41:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-26 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:42:05 [end_date_ymd] => 2025-01-26 13:42:05 [RateCDR] => 1 ) [2025-01-26 13:42: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-01-26 10:42:05' and `end` < '2025-01-26 13:42: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-01-26 13:42:18] Production.INFO: count ==1587 [2025-01-26 13:42:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:42:05 - End Time 2025-01-26 13:42:05 [2025-01-26 13:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334707', 'tblTempUsageDetail_20' ) start [2025-01-26 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334707', 'tblTempUsageDetail_20' ) end [2025-01-26 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334707', 'tblTempVendorCDR_20' ) start [2025-01-26 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334707', 'tblTempVendorCDR_20' ) end [2025-01-26 13:42:19] Production.INFO: ProcessCDR(1,14334707,1,1,2) [2025-01-26 13:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334707', 'tblTempUsageDetail_20' ) start [2025-01-26 13:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334707', 'tblTempUsageDetail_20' ) end [2025-01-26 13:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:42:24] Production.INFO: ==18856== Releasing lock... [2025-01-26 13:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:42:24] Production.INFO: 40 MB #Memory Used# [2025-01-26 13:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:43:04 [end_date_ymd] => 2025-01-26 13:43:04 [RateCDR] => 1 ) [2025-01-26 13:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 10:43:04' and `end` < '2025-01-26 13:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 13:43:19] Production.INFO: count ==1588 [2025-01-26 13:43:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:43:04 - End Time 2025-01-26 13:43:04 [2025-01-26 13:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334711', 'tblTempUsageDetail_20' ) start [2025-01-26 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334711', 'tblTempUsageDetail_20' ) end [2025-01-26 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334711', 'tblTempVendorCDR_20' ) start [2025-01-26 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334711', 'tblTempVendorCDR_20' ) end [2025-01-26 13:43:19] Production.INFO: ProcessCDR(1,14334711,1,1,2) [2025-01-26 13:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334711', 'tblTempUsageDetail_20' ) start [2025-01-26 13:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334711', 'tblTempUsageDetail_20' ) end [2025-01-26 13:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:43:23] Production.INFO: ==18926== Releasing lock... [2025-01-26 13:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:43:23] Production.INFO: 40 MB #Memory Used# [2025-01-26 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:44:05 [end_date_ymd] => 2025-01-26 13:44:05 [RateCDR] => 1 ) [2025-01-26 13:44: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-01-26 10:44:05' and `end` < '2025-01-26 13:44: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-01-26 13:44:19] Production.INFO: count ==1582 [2025-01-26 13:44:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:44:05 - End Time 2025-01-26 13:44:05 [2025-01-26 13:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334717', 'tblTempUsageDetail_20' ) start [2025-01-26 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334717', 'tblTempUsageDetail_20' ) end [2025-01-26 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334717', 'tblTempVendorCDR_20' ) start [2025-01-26 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334717', 'tblTempVendorCDR_20' ) end [2025-01-26 13:44:20] Production.INFO: ProcessCDR(1,14334717,1,1,2) [2025-01-26 13:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334717', 'tblTempUsageDetail_20' ) start [2025-01-26 13:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334717', 'tblTempUsageDetail_20' ) end [2025-01-26 13:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:44:24] Production.INFO: ==19000== Releasing lock... [2025-01-26 13:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:44:24] Production.INFO: 39.75 MB #Memory Used# [2025-01-26 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:45:05 [end_date_ymd] => 2025-01-26 13:45:05 [RateCDR] => 1 ) [2025-01-26 13:45: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-01-26 10:45:05' and `end` < '2025-01-26 13:45: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-01-26 13:45:18] Production.INFO: count ==1584 [2025-01-26 13:45:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:45:05 - End Time 2025-01-26 13:45:05 [2025-01-26 13:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334722', 'tblTempUsageDetail_20' ) start [2025-01-26 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334722', 'tblTempUsageDetail_20' ) end [2025-01-26 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334722', 'tblTempVendorCDR_20' ) start [2025-01-26 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334722', 'tblTempVendorCDR_20' ) end [2025-01-26 13:45:18] Production.INFO: ProcessCDR(1,14334722,1,1,2) [2025-01-26 13:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334722', 'tblTempUsageDetail_20' ) start [2025-01-26 13:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334722', 'tblTempUsageDetail_20' ) end [2025-01-26 13:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:45:23] Production.INFO: ==19071== Releasing lock... [2025-01-26 13:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:45:23] Production.INFO: 40 MB #Memory Used# [2025-01-26 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:46:05 [end_date_ymd] => 2025-01-26 13:46:05 [RateCDR] => 1 ) [2025-01-26 13:46: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-01-26 10:46:05' and `end` < '2025-01-26 13:46: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-01-26 13:46:18] Production.INFO: count ==1592 [2025-01-26 13:46:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:46:05 - End Time 2025-01-26 13:46:05 [2025-01-26 13:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334727', 'tblTempUsageDetail_20' ) start [2025-01-26 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334727', 'tblTempUsageDetail_20' ) end [2025-01-26 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334727', 'tblTempVendorCDR_20' ) start [2025-01-26 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334727', 'tblTempVendorCDR_20' ) end [2025-01-26 13:46:19] Production.INFO: ProcessCDR(1,14334727,1,1,2) [2025-01-26 13:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334727', 'tblTempUsageDetail_20' ) start [2025-01-26 13:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334727', 'tblTempUsageDetail_20' ) end [2025-01-26 13:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:46:22] Production.INFO: ==19154== Releasing lock... [2025-01-26 13:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:46:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-26 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:47:05 [end_date_ymd] => 2025-01-26 13:47:05 [RateCDR] => 1 ) [2025-01-26 13:47: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-01-26 10:47:05' and `end` < '2025-01-26 13:47: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-01-26 13:47:18] Production.INFO: count ==1596 [2025-01-26 13:47:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:47:05 - End Time 2025-01-26 13:47:05 [2025-01-26 13:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334732', 'tblTempUsageDetail_20' ) start [2025-01-26 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334732', 'tblTempUsageDetail_20' ) end [2025-01-26 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334732', 'tblTempVendorCDR_20' ) start [2025-01-26 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334732', 'tblTempVendorCDR_20' ) end [2025-01-26 13:47:18] Production.INFO: ProcessCDR(1,14334732,1,1,2) [2025-01-26 13:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334732', 'tblTempUsageDetail_20' ) start [2025-01-26 13:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334732', 'tblTempUsageDetail_20' ) end [2025-01-26 13:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:47:23] Production.INFO: ==19226== Releasing lock... [2025-01-26 13:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:47:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-26 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:48:05 [end_date_ymd] => 2025-01-26 13:48:05 [RateCDR] => 1 ) [2025-01-26 13:48: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-01-26 10:48:05' and `end` < '2025-01-26 13:48: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-01-26 13:48:18] Production.INFO: count ==1594 [2025-01-26 13:48:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:48:05 - End Time 2025-01-26 13:48:05 [2025-01-26 13:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334737', 'tblTempUsageDetail_20' ) start [2025-01-26 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334737', 'tblTempUsageDetail_20' ) end [2025-01-26 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334737', 'tblTempVendorCDR_20' ) start [2025-01-26 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334737', 'tblTempVendorCDR_20' ) end [2025-01-26 13:48:18] Production.INFO: ProcessCDR(1,14334737,1,1,2) [2025-01-26 13:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334737', 'tblTempUsageDetail_20' ) start [2025-01-26 13:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334737', 'tblTempUsageDetail_20' ) end [2025-01-26 13:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:48:22] Production.INFO: ==19299== Releasing lock... [2025-01-26 13:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:48:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-26 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:49:05 [end_date_ymd] => 2025-01-26 13:49:05 [RateCDR] => 1 ) [2025-01-26 13:49: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-01-26 10:49:05' and `end` < '2025-01-26 13:49: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-01-26 13:49:17] Production.INFO: count ==1592 [2025-01-26 13:49:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:49:05 - End Time 2025-01-26 13:49:05 [2025-01-26 13:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334742', 'tblTempUsageDetail_20' ) start [2025-01-26 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334742', 'tblTempUsageDetail_20' ) end [2025-01-26 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334742', 'tblTempVendorCDR_20' ) start [2025-01-26 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334742', 'tblTempVendorCDR_20' ) end [2025-01-26 13:49:18] Production.INFO: ProcessCDR(1,14334742,1,1,2) [2025-01-26 13:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334742', 'tblTempUsageDetail_20' ) start [2025-01-26 13:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334742', 'tblTempUsageDetail_20' ) end [2025-01-26 13:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:49:21] Production.INFO: ==19373== Releasing lock... [2025-01-26 13:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:49:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-26 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:50:06 [end_date_ymd] => 2025-01-26 13:50:06 [RateCDR] => 1 ) [2025-01-26 13:50: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-01-26 10:50:06' and `end` < '2025-01-26 13:50: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-01-26 13:50:19] Production.INFO: count ==1591 [2025-01-26 13:50:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:50:06 - End Time 2025-01-26 13:50:06 [2025-01-26 13:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334748', 'tblTempUsageDetail_20' ) start [2025-01-26 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334748', 'tblTempUsageDetail_20' ) end [2025-01-26 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334748', 'tblTempVendorCDR_20' ) start [2025-01-26 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334748', 'tblTempVendorCDR_20' ) end [2025-01-26 13:50:19] Production.INFO: ProcessCDR(1,14334748,1,1,2) [2025-01-26 13:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334748', 'tblTempUsageDetail_20' ) start [2025-01-26 13:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334748', 'tblTempUsageDetail_20' ) end [2025-01-26 13:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:50:22] Production.INFO: ==19445== Releasing lock... [2025-01-26 13:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:50:22] Production.INFO: 40 MB #Memory Used# [2025-01-26 13:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:51:04 [end_date_ymd] => 2025-01-26 13:51:04 [RateCDR] => 1 ) [2025-01-26 13:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 10:51:04' and `end` < '2025-01-26 13:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 13:51:17] Production.INFO: count ==1626 [2025-01-26 13:51:17] Production.ERROR: pbx CDR StartTime 2025-01-26 10:51:04 - End Time 2025-01-26 13:51:04 [2025-01-26 13:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334753', 'tblTempUsageDetail_20' ) start [2025-01-26 13:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334753', 'tblTempUsageDetail_20' ) end [2025-01-26 13:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334753', 'tblTempVendorCDR_20' ) start [2025-01-26 13:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334753', 'tblTempVendorCDR_20' ) end [2025-01-26 13:51:17] Production.INFO: ProcessCDR(1,14334753,1,1,2) [2025-01-26 13:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334753', 'tblTempUsageDetail_20' ) start [2025-01-26 13:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334753', 'tblTempUsageDetail_20' ) end [2025-01-26 13:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:51:22] Production.INFO: ==19522== Releasing lock... [2025-01-26 13:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:51:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:52:05 [end_date_ymd] => 2025-01-26 13:52:05 [RateCDR] => 1 ) [2025-01-26 13:52: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-01-26 10:52:05' and `end` < '2025-01-26 13:52: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-01-26 13:52:18] Production.INFO: count ==1618 [2025-01-26 13:52:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:52:05 - End Time 2025-01-26 13:52:05 [2025-01-26 13:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334758', 'tblTempUsageDetail_20' ) start [2025-01-26 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334758', 'tblTempUsageDetail_20' ) end [2025-01-26 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334758', 'tblTempVendorCDR_20' ) start [2025-01-26 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334758', 'tblTempVendorCDR_20' ) end [2025-01-26 13:52:19] Production.INFO: ProcessCDR(1,14334758,1,1,2) [2025-01-26 13:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334758', 'tblTempUsageDetail_20' ) start [2025-01-26 13:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334758', 'tblTempUsageDetail_20' ) end [2025-01-26 13:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:52:22] Production.INFO: ==19599== Releasing lock... [2025-01-26 13:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:52:22] Production.INFO: 40 MB #Memory Used# [2025-01-26 13:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:53:04 [end_date_ymd] => 2025-01-26 13:53:04 [RateCDR] => 1 ) [2025-01-26 13:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 10:53:04' and `end` < '2025-01-26 13:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 13:53:17] Production.INFO: count ==1618 [2025-01-26 13:53:17] Production.ERROR: pbx CDR StartTime 2025-01-26 10:53:04 - End Time 2025-01-26 13:53:04 [2025-01-26 13:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334763', 'tblTempUsageDetail_20' ) start [2025-01-26 13:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334763', 'tblTempUsageDetail_20' ) end [2025-01-26 13:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334763', 'tblTempVendorCDR_20' ) start [2025-01-26 13:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334763', 'tblTempVendorCDR_20' ) end [2025-01-26 13:53:17] Production.INFO: ProcessCDR(1,14334763,1,1,2) [2025-01-26 13:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334763', 'tblTempUsageDetail_20' ) start [2025-01-26 13:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334763', 'tblTempUsageDetail_20' ) end [2025-01-26 13:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:53:22] Production.INFO: ==19678== Releasing lock... [2025-01-26 13:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:53:22] Production.INFO: 40 MB #Memory Used# [2025-01-26 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:54:05 [end_date_ymd] => 2025-01-26 13:54:05 [RateCDR] => 1 ) [2025-01-26 13:54: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-01-26 10:54:05' and `end` < '2025-01-26 13:54: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-01-26 13:54:19] Production.INFO: count ==1617 [2025-01-26 13:54:20] Production.ERROR: pbx CDR StartTime 2025-01-26 10:54:05 - End Time 2025-01-26 13:54:05 [2025-01-26 13:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334768', 'tblTempUsageDetail_20' ) start [2025-01-26 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334768', 'tblTempUsageDetail_20' ) end [2025-01-26 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334768', 'tblTempVendorCDR_20' ) start [2025-01-26 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334768', 'tblTempVendorCDR_20' ) end [2025-01-26 13:54:20] Production.INFO: ProcessCDR(1,14334768,1,1,2) [2025-01-26 13:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334768', 'tblTempUsageDetail_20' ) start [2025-01-26 13:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334768', 'tblTempUsageDetail_20' ) end [2025-01-26 13:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:54:23] Production.INFO: ==19751== Releasing lock... [2025-01-26 13:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:54:23] Production.INFO: 40 MB #Memory Used# [2025-01-26 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:55:05 [end_date_ymd] => 2025-01-26 13:55:05 [RateCDR] => 1 ) [2025-01-26 13:55: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-01-26 10:55:05' and `end` < '2025-01-26 13:55: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-01-26 13:55:23] Production.INFO: count ==1623 [2025-01-26 13:55:23] Production.ERROR: pbx CDR StartTime 2025-01-26 10:55:05 - End Time 2025-01-26 13:55:05 [2025-01-26 13:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334773', 'tblTempUsageDetail_20' ) start [2025-01-26 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334773', 'tblTempUsageDetail_20' ) end [2025-01-26 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334773', 'tblTempVendorCDR_20' ) start [2025-01-26 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334773', 'tblTempVendorCDR_20' ) end [2025-01-26 13:55:23] Production.INFO: ProcessCDR(1,14334773,1,1,2) [2025-01-26 13:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334773', 'tblTempUsageDetail_20' ) start [2025-01-26 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334773', 'tblTempUsageDetail_20' ) end [2025-01-26 13:55:28] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:55:28] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:55:28] Production.INFO: ==19823== Releasing lock... [2025-01-26 13:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:55:28] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:56:05 [end_date_ymd] => 2025-01-26 13:56:05 [RateCDR] => 1 ) [2025-01-26 13:56: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-01-26 10:56:05' and `end` < '2025-01-26 13:56: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-01-26 13:56:19] Production.INFO: count ==1627 [2025-01-26 13:56:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:56:05 - End Time 2025-01-26 13:56:05 [2025-01-26 13:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334778', 'tblTempUsageDetail_20' ) start [2025-01-26 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334778', 'tblTempUsageDetail_20' ) end [2025-01-26 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334778', 'tblTempVendorCDR_20' ) start [2025-01-26 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334778', 'tblTempVendorCDR_20' ) end [2025-01-26 13:56:19] Production.INFO: ProcessCDR(1,14334778,1,1,2) [2025-01-26 13:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334778', 'tblTempUsageDetail_20' ) start [2025-01-26 13:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334778', 'tblTempUsageDetail_20' ) end [2025-01-26 13:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:56:22] Production.INFO: ==19896== Releasing lock... [2025-01-26 13:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:56:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 13:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:57:06 [end_date_ymd] => 2025-01-26 13:57:06 [RateCDR] => 1 ) [2025-01-26 13:57: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-01-26 10:57:06' and `end` < '2025-01-26 13:57: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-01-26 13:57:18] Production.INFO: count ==1627 [2025-01-26 13:57:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:57:06 - End Time 2025-01-26 13:57:06 [2025-01-26 13:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334783', 'tblTempUsageDetail_20' ) start [2025-01-26 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334783', 'tblTempUsageDetail_20' ) end [2025-01-26 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334783', 'tblTempVendorCDR_20' ) start [2025-01-26 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334783', 'tblTempVendorCDR_20' ) end [2025-01-26 13:57:19] Production.INFO: ProcessCDR(1,14334783,1,1,2) [2025-01-26 13:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334783', 'tblTempUsageDetail_20' ) start [2025-01-26 13:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334783', 'tblTempUsageDetail_20' ) end [2025-01-26 13:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:57:22] Production.INFO: ==19968== Releasing lock... [2025-01-26 13:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:57:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:58:05 [end_date_ymd] => 2025-01-26 13:58:05 [RateCDR] => 1 ) [2025-01-26 13:58: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-01-26 10:58:05' and `end` < '2025-01-26 13:58: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-01-26 13:58:19] Production.INFO: count ==1629 [2025-01-26 13:58:19] Production.ERROR: pbx CDR StartTime 2025-01-26 10:58:05 - End Time 2025-01-26 13:58:05 [2025-01-26 13:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334788', 'tblTempUsageDetail_20' ) start [2025-01-26 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334788', 'tblTempUsageDetail_20' ) end [2025-01-26 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334788', 'tblTempVendorCDR_20' ) start [2025-01-26 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334788', 'tblTempVendorCDR_20' ) end [2025-01-26 13:58:19] Production.INFO: ProcessCDR(1,14334788,1,1,2) [2025-01-26 13:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334788', 'tblTempUsageDetail_20' ) start [2025-01-26 13:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334788', 'tblTempUsageDetail_20' ) end [2025-01-26 13:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:58:24] Production.INFO: ==20079== Releasing lock... [2025-01-26 13:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:58:24] Production.INFO: 40 MB #Memory Used# [2025-01-26 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 10:59:05 [end_date_ymd] => 2025-01-26 13:59:05 [RateCDR] => 1 ) [2025-01-26 13:59: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-01-26 10:59:05' and `end` < '2025-01-26 13:59: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-01-26 13:59:18] Production.INFO: count ==1629 [2025-01-26 13:59:18] Production.ERROR: pbx CDR StartTime 2025-01-26 10:59:05 - End Time 2025-01-26 13:59:05 [2025-01-26 13:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334793', 'tblTempUsageDetail_20' ) start [2025-01-26 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334793', 'tblTempUsageDetail_20' ) end [2025-01-26 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334793', 'tblTempVendorCDR_20' ) start [2025-01-26 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334793', 'tblTempVendorCDR_20' ) end [2025-01-26 13:59:18] Production.INFO: ProcessCDR(1,14334793,1,1,2) [2025-01-26 13:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 13:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 13:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334793', 'tblTempUsageDetail_20' ) start [2025-01-26 13:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334793', 'tblTempUsageDetail_20' ) end [2025-01-26 13:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 13:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 13:59:21] Production.INFO: ==20153== Releasing lock... [2025-01-26 13:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 13:59:21] Production.INFO: 40 MB #Memory Used# [2025-01-26 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:00:06 [end_date_ymd] => 2025-01-26 14:00:06 [RateCDR] => 1 ) [2025-01-26 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-01-26 11:00:06' and `end` < '2025-01-26 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-01-26 14:00:19] Production.INFO: count ==1641 [2025-01-26 14:00:19] Production.ERROR: pbx CDR StartTime 2025-01-26 11:00:06 - End Time 2025-01-26 14:00:06 [2025-01-26 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334799', 'tblTempUsageDetail_20' ) start [2025-01-26 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334799', 'tblTempUsageDetail_20' ) end [2025-01-26 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334799', 'tblTempVendorCDR_20' ) start [2025-01-26 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334799', 'tblTempVendorCDR_20' ) end [2025-01-26 14:00:19] Production.INFO: ProcessCDR(1,14334799,1,1,2) [2025-01-26 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334799', 'tblTempUsageDetail_20' ) start [2025-01-26 14:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334799', 'tblTempUsageDetail_20' ) end [2025-01-26 14:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:00:22] Production.INFO: ==20231== Releasing lock... [2025-01-26 14:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:00:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:01:05 [end_date_ymd] => 2025-01-26 14:01:05 [RateCDR] => 1 ) [2025-01-26 14:01: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-01-26 11:01:05' and `end` < '2025-01-26 14:01: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-01-26 14:01:19] Production.INFO: count ==1665 [2025-01-26 14:01:19] Production.ERROR: pbx CDR StartTime 2025-01-26 11:01:05 - End Time 2025-01-26 14:01:05 [2025-01-26 14:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334804', 'tblTempUsageDetail_20' ) start [2025-01-26 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334804', 'tblTempUsageDetail_20' ) end [2025-01-26 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334804', 'tblTempVendorCDR_20' ) start [2025-01-26 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334804', 'tblTempVendorCDR_20' ) end [2025-01-26 14:01:19] Production.INFO: ProcessCDR(1,14334804,1,1,2) [2025-01-26 14:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334804', 'tblTempUsageDetail_20' ) start [2025-01-26 14:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334804', 'tblTempUsageDetail_20' ) end [2025-01-26 14:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:01:23] Production.INFO: ==20318== Releasing lock... [2025-01-26 14:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:01:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:02:05 [end_date_ymd] => 2025-01-26 14:02:05 [RateCDR] => 1 ) [2025-01-26 14:02: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-01-26 11:02:05' and `end` < '2025-01-26 14:02: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-01-26 14:02:17] Production.INFO: count ==1670 [2025-01-26 14:02:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:02:05 - End Time 2025-01-26 14:02:05 [2025-01-26 14:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334809', 'tblTempUsageDetail_20' ) start [2025-01-26 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334809', 'tblTempUsageDetail_20' ) end [2025-01-26 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334809', 'tblTempVendorCDR_20' ) start [2025-01-26 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334809', 'tblTempVendorCDR_20' ) end [2025-01-26 14:02:18] Production.INFO: ProcessCDR(1,14334809,1,1,2) [2025-01-26 14:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334809', 'tblTempUsageDetail_20' ) start [2025-01-26 14:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334809', 'tblTempUsageDetail_20' ) end [2025-01-26 14:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:02:21] Production.INFO: ==20390== Releasing lock... [2025-01-26 14:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:02:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:03:05 [end_date_ymd] => 2025-01-26 14:03:05 [RateCDR] => 1 ) [2025-01-26 14:03: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-01-26 11:03:05' and `end` < '2025-01-26 14:03: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-01-26 14:03:18] Production.INFO: count ==1671 [2025-01-26 14:03:19] Production.ERROR: pbx CDR StartTime 2025-01-26 11:03:05 - End Time 2025-01-26 14:03:05 [2025-01-26 14:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334814', 'tblTempUsageDetail_20' ) start [2025-01-26 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334814', 'tblTempUsageDetail_20' ) end [2025-01-26 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334814', 'tblTempVendorCDR_20' ) start [2025-01-26 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334814', 'tblTempVendorCDR_20' ) end [2025-01-26 14:03:19] Production.INFO: ProcessCDR(1,14334814,1,1,2) [2025-01-26 14:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334814', 'tblTempUsageDetail_20' ) start [2025-01-26 14:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334814', 'tblTempUsageDetail_20' ) end [2025-01-26 14:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:03:22] Production.INFO: ==20463== Releasing lock... [2025-01-26 14:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:03:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:04:05 [end_date_ymd] => 2025-01-26 14:04:05 [RateCDR] => 1 ) [2025-01-26 14:04: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-01-26 11:04:05' and `end` < '2025-01-26 14:04: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-01-26 14:04:18] Production.INFO: count ==1668 [2025-01-26 14:04:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:04:05 - End Time 2025-01-26 14:04:05 [2025-01-26 14:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334819', 'tblTempUsageDetail_20' ) start [2025-01-26 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334819', 'tblTempUsageDetail_20' ) end [2025-01-26 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334819', 'tblTempVendorCDR_20' ) start [2025-01-26 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334819', 'tblTempVendorCDR_20' ) end [2025-01-26 14:04:18] Production.INFO: ProcessCDR(1,14334819,1,1,2) [2025-01-26 14:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334819', 'tblTempUsageDetail_20' ) start [2025-01-26 14:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334819', 'tblTempUsageDetail_20' ) end [2025-01-26 14:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:04:22] Production.INFO: ==20536== Releasing lock... [2025-01-26 14:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:04:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:05:05 [end_date_ymd] => 2025-01-26 14:05:05 [RateCDR] => 1 ) [2025-01-26 14:05: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-01-26 11:05:05' and `end` < '2025-01-26 14:05: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-01-26 14:05:17] Production.INFO: count ==1667 [2025-01-26 14:05:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:05:05 - End Time 2025-01-26 14:05:05 [2025-01-26 14:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334824', 'tblTempUsageDetail_20' ) start [2025-01-26 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334824', 'tblTempUsageDetail_20' ) end [2025-01-26 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334824', 'tblTempVendorCDR_20' ) start [2025-01-26 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334824', 'tblTempVendorCDR_20' ) end [2025-01-26 14:05:18] Production.INFO: ProcessCDR(1,14334824,1,1,2) [2025-01-26 14:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334824', 'tblTempUsageDetail_20' ) start [2025-01-26 14:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334824', 'tblTempUsageDetail_20' ) end [2025-01-26 14:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:05:21] Production.INFO: ==20611== Releasing lock... [2025-01-26 14:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:05:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:06:06 [end_date_ymd] => 2025-01-26 14:06:06 [RateCDR] => 1 ) [2025-01-26 14:06: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-01-26 11:06:06' and `end` < '2025-01-26 14:06: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-01-26 14:06:19] Production.INFO: count ==1666 [2025-01-26 14:06:19] Production.ERROR: pbx CDR StartTime 2025-01-26 11:06:06 - End Time 2025-01-26 14:06:06 [2025-01-26 14:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334829', 'tblTempUsageDetail_20' ) start [2025-01-26 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334829', 'tblTempUsageDetail_20' ) end [2025-01-26 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334829', 'tblTempVendorCDR_20' ) start [2025-01-26 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334829', 'tblTempVendorCDR_20' ) end [2025-01-26 14:06:19] Production.INFO: ProcessCDR(1,14334829,1,1,2) [2025-01-26 14:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334829', 'tblTempUsageDetail_20' ) start [2025-01-26 14:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334829', 'tblTempUsageDetail_20' ) end [2025-01-26 14:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:06:23] Production.INFO: ==20691== Releasing lock... [2025-01-26 14:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:06:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 14:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:07:06 [end_date_ymd] => 2025-01-26 14:07:06 [RateCDR] => 1 ) [2025-01-26 14:07: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-01-26 11:07:06' and `end` < '2025-01-26 14:07: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-01-26 14:07:19] Production.INFO: count ==1666 [2025-01-26 14:07:19] Production.ERROR: pbx CDR StartTime 2025-01-26 11:07:06 - End Time 2025-01-26 14:07:06 [2025-01-26 14:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334834', 'tblTempUsageDetail_20' ) start [2025-01-26 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334834', 'tblTempUsageDetail_20' ) end [2025-01-26 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334834', 'tblTempVendorCDR_20' ) start [2025-01-26 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334834', 'tblTempVendorCDR_20' ) end [2025-01-26 14:07:19] Production.INFO: ProcessCDR(1,14334834,1,1,2) [2025-01-26 14:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334834', 'tblTempUsageDetail_20' ) start [2025-01-26 14:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334834', 'tblTempUsageDetail_20' ) end [2025-01-26 14:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:07:22] Production.INFO: ==20765== Releasing lock... [2025-01-26 14:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:07:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:08:05 [end_date_ymd] => 2025-01-26 14:08:05 [RateCDR] => 1 ) [2025-01-26 14:08: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-01-26 11:08:05' and `end` < '2025-01-26 14:08: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-01-26 14:08:18] Production.INFO: count ==1666 [2025-01-26 14:08:19] Production.ERROR: pbx CDR StartTime 2025-01-26 11:08:05 - End Time 2025-01-26 14:08:05 [2025-01-26 14:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334839', 'tblTempUsageDetail_20' ) start [2025-01-26 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334839', 'tblTempUsageDetail_20' ) end [2025-01-26 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334839', 'tblTempVendorCDR_20' ) start [2025-01-26 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334839', 'tblTempVendorCDR_20' ) end [2025-01-26 14:08:19] Production.INFO: ProcessCDR(1,14334839,1,1,2) [2025-01-26 14:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334839', 'tblTempUsageDetail_20' ) start [2025-01-26 14:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334839', 'tblTempUsageDetail_20' ) end [2025-01-26 14:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:08:22] Production.INFO: ==20838== Releasing lock... [2025-01-26 14:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:08:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:09:05 [end_date_ymd] => 2025-01-26 14:09:05 [RateCDR] => 1 ) [2025-01-26 14:09: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-01-26 11:09:05' and `end` < '2025-01-26 14:09: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-01-26 14:09:18] Production.INFO: count ==1664 [2025-01-26 14:09:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:09:05 - End Time 2025-01-26 14:09:05 [2025-01-26 14:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334844', 'tblTempUsageDetail_20' ) start [2025-01-26 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334844', 'tblTempUsageDetail_20' ) end [2025-01-26 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334844', 'tblTempVendorCDR_20' ) start [2025-01-26 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334844', 'tblTempVendorCDR_20' ) end [2025-01-26 14:09:18] Production.INFO: ProcessCDR(1,14334844,1,1,2) [2025-01-26 14:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334844', 'tblTempUsageDetail_20' ) start [2025-01-26 14:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334844', 'tblTempUsageDetail_20' ) end [2025-01-26 14:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:09:21] Production.INFO: ==20910== Releasing lock... [2025-01-26 14:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:09:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:10:06 [end_date_ymd] => 2025-01-26 14:10:06 [RateCDR] => 1 ) [2025-01-26 14:10: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-01-26 11:10:06' and `end` < '2025-01-26 14:10: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-01-26 14:10:19] Production.INFO: count ==1671 [2025-01-26 14:10:19] Production.ERROR: pbx CDR StartTime 2025-01-26 11:10:06 - End Time 2025-01-26 14:10:06 [2025-01-26 14:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334850', 'tblTempUsageDetail_20' ) start [2025-01-26 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334850', 'tblTempUsageDetail_20' ) end [2025-01-26 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334850', 'tblTempVendorCDR_20' ) start [2025-01-26 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334850', 'tblTempVendorCDR_20' ) end [2025-01-26 14:10:19] Production.INFO: ProcessCDR(1,14334850,1,1,2) [2025-01-26 14:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334850', 'tblTempUsageDetail_20' ) start [2025-01-26 14:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334850', 'tblTempUsageDetail_20' ) end [2025-01-26 14:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:10:24] Production.INFO: ==20985== Releasing lock... [2025-01-26 14:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:10:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:11:05 [end_date_ymd] => 2025-01-26 14:11:05 [RateCDR] => 1 ) [2025-01-26 14:11: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-01-26 11:11:05' and `end` < '2025-01-26 14:11: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-01-26 14:11:17] Production.INFO: count ==1717 [2025-01-26 14:11:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:11:05 - End Time 2025-01-26 14:11:05 [2025-01-26 14:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334855', 'tblTempUsageDetail_20' ) start [2025-01-26 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334855', 'tblTempUsageDetail_20' ) end [2025-01-26 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334855', 'tblTempVendorCDR_20' ) start [2025-01-26 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334855', 'tblTempVendorCDR_20' ) end [2025-01-26 14:11:18] Production.INFO: ProcessCDR(1,14334855,1,1,2) [2025-01-26 14:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334855', 'tblTempUsageDetail_20' ) start [2025-01-26 14:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334855', 'tblTempUsageDetail_20' ) end [2025-01-26 14:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:11:21] Production.INFO: ==21059== Releasing lock... [2025-01-26 14:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:11:21] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:12:05 [end_date_ymd] => 2025-01-26 14:12:05 [RateCDR] => 1 ) [2025-01-26 14:12: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-01-26 11:12:05' and `end` < '2025-01-26 14:12: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-01-26 14:12:18] Production.INFO: count ==1720 [2025-01-26 14:12:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:12:05 - End Time 2025-01-26 14:12:05 [2025-01-26 14:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334860', 'tblTempUsageDetail_20' ) start [2025-01-26 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334860', 'tblTempUsageDetail_20' ) end [2025-01-26 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334860', 'tblTempVendorCDR_20' ) start [2025-01-26 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334860', 'tblTempVendorCDR_20' ) end [2025-01-26 14:12:18] Production.INFO: ProcessCDR(1,14334860,1,1,2) [2025-01-26 14:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334860', 'tblTempUsageDetail_20' ) start [2025-01-26 14:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334860', 'tblTempUsageDetail_20' ) end [2025-01-26 14:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:12:23] Production.INFO: ==21138== Releasing lock... [2025-01-26 14:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:12:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:13:05 [end_date_ymd] => 2025-01-26 14:13:05 [RateCDR] => 1 ) [2025-01-26 14:13: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-01-26 11:13:05' and `end` < '2025-01-26 14:13: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-01-26 14:13:19] Production.INFO: count ==1719 [2025-01-26 14:13:19] Production.ERROR: pbx CDR StartTime 2025-01-26 11:13:05 - End Time 2025-01-26 14:13:05 [2025-01-26 14:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334865', 'tblTempUsageDetail_20' ) start [2025-01-26 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334865', 'tblTempUsageDetail_20' ) end [2025-01-26 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334865', 'tblTempVendorCDR_20' ) start [2025-01-26 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334865', 'tblTempVendorCDR_20' ) end [2025-01-26 14:13:19] Production.INFO: ProcessCDR(1,14334865,1,1,2) [2025-01-26 14:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334865', 'tblTempUsageDetail_20' ) start [2025-01-26 14:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334865', 'tblTempUsageDetail_20' ) end [2025-01-26 14:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:13:22] Production.INFO: ==21250== Releasing lock... [2025-01-26 14:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:13:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:14:05 [end_date_ymd] => 2025-01-26 14:14:05 [RateCDR] => 1 ) [2025-01-26 14:14: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-01-26 11:14:05' and `end` < '2025-01-26 14:14: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-01-26 14:14:17] Production.INFO: count ==1711 [2025-01-26 14:14:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:14:05 - End Time 2025-01-26 14:14:05 [2025-01-26 14:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334870', 'tblTempUsageDetail_20' ) start [2025-01-26 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334870', 'tblTempUsageDetail_20' ) end [2025-01-26 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334870', 'tblTempVendorCDR_20' ) start [2025-01-26 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334870', 'tblTempVendorCDR_20' ) end [2025-01-26 14:14:18] Production.INFO: ProcessCDR(1,14334870,1,1,2) [2025-01-26 14:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334870', 'tblTempUsageDetail_20' ) start [2025-01-26 14:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334870', 'tblTempUsageDetail_20' ) end [2025-01-26 14:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:14:21] Production.INFO: ==21324== Releasing lock... [2025-01-26 14:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:14:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:15:05 [end_date_ymd] => 2025-01-26 14:15:05 [RateCDR] => 1 ) [2025-01-26 14:15: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-01-26 11:15:05' and `end` < '2025-01-26 14:15: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-01-26 14:15:18] Production.INFO: count ==1709 [2025-01-26 14:15:19] Production.ERROR: pbx CDR StartTime 2025-01-26 11:15:05 - End Time 2025-01-26 14:15:05 [2025-01-26 14:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334875', 'tblTempUsageDetail_20' ) start [2025-01-26 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334875', 'tblTempUsageDetail_20' ) end [2025-01-26 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334875', 'tblTempVendorCDR_20' ) start [2025-01-26 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334875', 'tblTempVendorCDR_20' ) end [2025-01-26 14:15:19] Production.INFO: ProcessCDR(1,14334875,1,1,2) [2025-01-26 14:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334875', 'tblTempUsageDetail_20' ) start [2025-01-26 14:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334875', 'tblTempUsageDetail_20' ) end [2025-01-26 14:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:15:22] Production.INFO: ==21398== Releasing lock... [2025-01-26 14:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:15:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-26 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:16:05 [end_date_ymd] => 2025-01-26 14:16:05 [RateCDR] => 1 ) [2025-01-26 14:16: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-01-26 11:16:05' and `end` < '2025-01-26 14:16: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-01-26 14:16:19] Production.INFO: count ==1716 [2025-01-26 14:16:19] Production.ERROR: pbx CDR StartTime 2025-01-26 11:16:05 - End Time 2025-01-26 14:16:05 [2025-01-26 14:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334880', 'tblTempUsageDetail_20' ) start [2025-01-26 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334880', 'tblTempUsageDetail_20' ) end [2025-01-26 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334880', 'tblTempVendorCDR_20' ) start [2025-01-26 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334880', 'tblTempVendorCDR_20' ) end [2025-01-26 14:16:19] Production.INFO: ProcessCDR(1,14334880,1,1,2) [2025-01-26 14:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334880', 'tblTempUsageDetail_20' ) start [2025-01-26 14:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334880', 'tblTempUsageDetail_20' ) end [2025-01-26 14:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:16:23] Production.INFO: ==21470== Releasing lock... [2025-01-26 14:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:16:23] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:17:05 [end_date_ymd] => 2025-01-26 14:17:05 [RateCDR] => 1 ) [2025-01-26 14:17: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-01-26 11:17:05' and `end` < '2025-01-26 14:17: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-01-26 14:17:18] Production.INFO: count ==1716 [2025-01-26 14:17:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:17:05 - End Time 2025-01-26 14:17:05 [2025-01-26 14:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334885', 'tblTempUsageDetail_20' ) start [2025-01-26 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334885', 'tblTempUsageDetail_20' ) end [2025-01-26 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334885', 'tblTempVendorCDR_20' ) start [2025-01-26 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334885', 'tblTempVendorCDR_20' ) end [2025-01-26 14:17:18] Production.INFO: ProcessCDR(1,14334885,1,1,2) [2025-01-26 14:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334885', 'tblTempUsageDetail_20' ) start [2025-01-26 14:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334885', 'tblTempUsageDetail_20' ) end [2025-01-26 14:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:17:22] Production.INFO: ==21548== Releasing lock... [2025-01-26 14:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:17:22] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:18:05 [end_date_ymd] => 2025-01-26 14:18:05 [RateCDR] => 1 ) [2025-01-26 14:18: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-01-26 11:18:05' and `end` < '2025-01-26 14:18: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-01-26 14:18:18] Production.INFO: count ==1720 [2025-01-26 14:18:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:18:05 - End Time 2025-01-26 14:18:05 [2025-01-26 14:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334890', 'tblTempUsageDetail_20' ) start [2025-01-26 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334890', 'tblTempUsageDetail_20' ) end [2025-01-26 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334890', 'tblTempVendorCDR_20' ) start [2025-01-26 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334890', 'tblTempVendorCDR_20' ) end [2025-01-26 14:18:18] Production.INFO: ProcessCDR(1,14334890,1,1,2) [2025-01-26 14:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334890', 'tblTempUsageDetail_20' ) start [2025-01-26 14:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334890', 'tblTempUsageDetail_20' ) end [2025-01-26 14:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:18:23] Production.INFO: ==21620== Releasing lock... [2025-01-26 14:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:18:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:19:06 [end_date_ymd] => 2025-01-26 14:19:06 [RateCDR] => 1 ) [2025-01-26 14:19: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-01-26 11:19:06' and `end` < '2025-01-26 14:19: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-01-26 14:19:18] Production.INFO: count ==1731 [2025-01-26 14:19:19] Production.ERROR: pbx CDR StartTime 2025-01-26 11:19:06 - End Time 2025-01-26 14:19:06 [2025-01-26 14:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334895', 'tblTempUsageDetail_20' ) start [2025-01-26 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334895', 'tblTempUsageDetail_20' ) end [2025-01-26 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334895', 'tblTempVendorCDR_20' ) start [2025-01-26 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334895', 'tblTempVendorCDR_20' ) end [2025-01-26 14:19:19] Production.INFO: ProcessCDR(1,14334895,1,1,2) [2025-01-26 14:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334895', 'tblTempUsageDetail_20' ) start [2025-01-26 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334895', 'tblTempUsageDetail_20' ) end [2025-01-26 14:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:19:22] Production.INFO: ==21696== Releasing lock... [2025-01-26 14:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:19:22] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:20:06 [end_date_ymd] => 2025-01-26 14:20:06 [RateCDR] => 1 ) [2025-01-26 14:20: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-01-26 11:20:06' and `end` < '2025-01-26 14:20: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-01-26 14:20:19] Production.INFO: count ==1727 [2025-01-26 14:20:19] Production.ERROR: pbx CDR StartTime 2025-01-26 11:20:06 - End Time 2025-01-26 14:20:06 [2025-01-26 14:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334901', 'tblTempUsageDetail_20' ) start [2025-01-26 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334901', 'tblTempUsageDetail_20' ) end [2025-01-26 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334901', 'tblTempVendorCDR_20' ) start [2025-01-26 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334901', 'tblTempVendorCDR_20' ) end [2025-01-26 14:20:19] Production.INFO: ProcessCDR(1,14334901,1,1,2) [2025-01-26 14:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334901', 'tblTempUsageDetail_20' ) start [2025-01-26 14:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334901', 'tblTempUsageDetail_20' ) end [2025-01-26 14:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:20:22] Production.INFO: ==21772== Releasing lock... [2025-01-26 14:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:20:22] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:21:05 [end_date_ymd] => 2025-01-26 14:21:05 [RateCDR] => 1 ) [2025-01-26 14:21: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-01-26 11:21:05' and `end` < '2025-01-26 14:21: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-01-26 14:21:17] Production.INFO: count ==1721 [2025-01-26 14:21:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:21:05 - End Time 2025-01-26 14:21:05 [2025-01-26 14:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334906', 'tblTempUsageDetail_20' ) start [2025-01-26 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334906', 'tblTempUsageDetail_20' ) end [2025-01-26 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334906', 'tblTempVendorCDR_20' ) start [2025-01-26 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334906', 'tblTempVendorCDR_20' ) end [2025-01-26 14:21:18] Production.INFO: ProcessCDR(1,14334906,1,1,2) [2025-01-26 14:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334906', 'tblTempUsageDetail_20' ) start [2025-01-26 14:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334906', 'tblTempUsageDetail_20' ) end [2025-01-26 14:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:21:22] Production.INFO: ==21852== Releasing lock... [2025-01-26 14:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:21:22] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:22:05 [end_date_ymd] => 2025-01-26 14:22:05 [RateCDR] => 1 ) [2025-01-26 14:22: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-01-26 11:22:05' and `end` < '2025-01-26 14:22: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-01-26 14:22:18] Production.INFO: count ==1719 [2025-01-26 14:22:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:22:05 - End Time 2025-01-26 14:22:05 [2025-01-26 14:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334911', 'tblTempUsageDetail_20' ) start [2025-01-26 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334911', 'tblTempUsageDetail_20' ) end [2025-01-26 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334911', 'tblTempVendorCDR_20' ) start [2025-01-26 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334911', 'tblTempVendorCDR_20' ) end [2025-01-26 14:22:18] Production.INFO: ProcessCDR(1,14334911,1,1,2) [2025-01-26 14:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334911', 'tblTempUsageDetail_20' ) start [2025-01-26 14:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334911', 'tblTempUsageDetail_20' ) end [2025-01-26 14:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:22:22] Production.INFO: ==21925== Releasing lock... [2025-01-26 14:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:22:22] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:23:05 [end_date_ymd] => 2025-01-26 14:23:05 [RateCDR] => 1 ) [2025-01-26 14:23: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-01-26 11:23:05' and `end` < '2025-01-26 14:23: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-01-26 14:23:18] Production.INFO: count ==1721 [2025-01-26 14:23:19] Production.ERROR: pbx CDR StartTime 2025-01-26 11:23:05 - End Time 2025-01-26 14:23:05 [2025-01-26 14:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334916', 'tblTempUsageDetail_20' ) start [2025-01-26 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334916', 'tblTempUsageDetail_20' ) end [2025-01-26 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334916', 'tblTempVendorCDR_20' ) start [2025-01-26 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334916', 'tblTempVendorCDR_20' ) end [2025-01-26 14:23:19] Production.INFO: ProcessCDR(1,14334916,1,1,2) [2025-01-26 14:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334916', 'tblTempUsageDetail_20' ) start [2025-01-26 14:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334916', 'tblTempUsageDetail_20' ) end [2025-01-26 14:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:23:22] Production.INFO: ==21998== Releasing lock... [2025-01-26 14:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:23:22] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:24:05 [end_date_ymd] => 2025-01-26 14:24:05 [RateCDR] => 1 ) [2025-01-26 14:24: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-01-26 11:24:05' and `end` < '2025-01-26 14:24: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-01-26 14:24:17] Production.INFO: count ==1719 [2025-01-26 14:24:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:24:05 - End Time 2025-01-26 14:24:05 [2025-01-26 14:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334921', 'tblTempUsageDetail_20' ) start [2025-01-26 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334921', 'tblTempUsageDetail_20' ) end [2025-01-26 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334921', 'tblTempVendorCDR_20' ) start [2025-01-26 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334921', 'tblTempVendorCDR_20' ) end [2025-01-26 14:24:18] Production.INFO: ProcessCDR(1,14334921,1,1,2) [2025-01-26 14:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334921', 'tblTempUsageDetail_20' ) start [2025-01-26 14:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334921', 'tblTempUsageDetail_20' ) end [2025-01-26 14:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:24:21] Production.INFO: ==22070== Releasing lock... [2025-01-26 14:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:24:21] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:25:05 [end_date_ymd] => 2025-01-26 14:25:05 [RateCDR] => 1 ) [2025-01-26 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 11:25:05' and `end` < '2025-01-26 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 14:25:20] Production.INFO: count ==1716 [2025-01-26 14:25:20] Production.ERROR: pbx CDR StartTime 2025-01-26 11:25:05 - End Time 2025-01-26 14:25:05 [2025-01-26 14:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334926', 'tblTempUsageDetail_20' ) start [2025-01-26 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334926', 'tblTempUsageDetail_20' ) end [2025-01-26 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334926', 'tblTempVendorCDR_20' ) start [2025-01-26 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334926', 'tblTempVendorCDR_20' ) end [2025-01-26 14:25:20] Production.INFO: ProcessCDR(1,14334926,1,1,2) [2025-01-26 14:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334926', 'tblTempUsageDetail_20' ) start [2025-01-26 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334926', 'tblTempUsageDetail_20' ) end [2025-01-26 14:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:25:23] Production.INFO: ==22143== Releasing lock... [2025-01-26 14:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:25:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:26:05 [end_date_ymd] => 2025-01-26 14:26:05 [RateCDR] => 1 ) [2025-01-26 14:26: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-01-26 11:26:05' and `end` < '2025-01-26 14:26: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-01-26 14:26:21] Production.INFO: count ==1715 [2025-01-26 14:26:21] Production.ERROR: pbx CDR StartTime 2025-01-26 11:26:05 - End Time 2025-01-26 14:26:05 [2025-01-26 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334931', 'tblTempUsageDetail_20' ) start [2025-01-26 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334931', 'tblTempUsageDetail_20' ) end [2025-01-26 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334931', 'tblTempVendorCDR_20' ) start [2025-01-26 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334931', 'tblTempVendorCDR_20' ) end [2025-01-26 14:26:21] Production.INFO: ProcessCDR(1,14334931,1,1,2) [2025-01-26 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334931', 'tblTempUsageDetail_20' ) start [2025-01-26 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334931', 'tblTempUsageDetail_20' ) end [2025-01-26 14:26:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:26:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:26:26] Production.INFO: ==22216== Releasing lock... [2025-01-26 14:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:26:26] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:27:05 [end_date_ymd] => 2025-01-26 14:27:05 [RateCDR] => 1 ) [2025-01-26 14:27: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-01-26 11:27:05' and `end` < '2025-01-26 14:27: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-01-26 14:27:18] Production.INFO: count ==1720 [2025-01-26 14:27:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:27:05 - End Time 2025-01-26 14:27:05 [2025-01-26 14:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334936', 'tblTempUsageDetail_20' ) start [2025-01-26 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334936', 'tblTempUsageDetail_20' ) end [2025-01-26 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334936', 'tblTempVendorCDR_20' ) start [2025-01-26 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334936', 'tblTempVendorCDR_20' ) end [2025-01-26 14:27:18] Production.INFO: ProcessCDR(1,14334936,1,1,2) [2025-01-26 14:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334936', 'tblTempUsageDetail_20' ) start [2025-01-26 14:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334936', 'tblTempUsageDetail_20' ) end [2025-01-26 14:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:27:22] Production.INFO: ==22289== Releasing lock... [2025-01-26 14:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:27:22] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:28:05 [end_date_ymd] => 2025-01-26 14:28:05 [RateCDR] => 1 ) [2025-01-26 14:28: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-01-26 11:28:05' and `end` < '2025-01-26 14:28: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-01-26 14:28:18] Production.INFO: count ==1714 [2025-01-26 14:28:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:28:05 - End Time 2025-01-26 14:28:05 [2025-01-26 14:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334941', 'tblTempUsageDetail_20' ) start [2025-01-26 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334941', 'tblTempUsageDetail_20' ) end [2025-01-26 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334941', 'tblTempVendorCDR_20' ) start [2025-01-26 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334941', 'tblTempVendorCDR_20' ) end [2025-01-26 14:28:18] Production.INFO: ProcessCDR(1,14334941,1,1,2) [2025-01-26 14:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334941', 'tblTempUsageDetail_20' ) start [2025-01-26 14:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334941', 'tblTempUsageDetail_20' ) end [2025-01-26 14:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:28:22] Production.INFO: ==22367== Releasing lock... [2025-01-26 14:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:28:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:29:05 [end_date_ymd] => 2025-01-26 14:29:05 [RateCDR] => 1 ) [2025-01-26 14:29: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-01-26 11:29:05' and `end` < '2025-01-26 14:29: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-01-26 14:29:18] Production.INFO: count ==1714 [2025-01-26 14:29:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:29:05 - End Time 2025-01-26 14:29:05 [2025-01-26 14:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334946', 'tblTempUsageDetail_20' ) start [2025-01-26 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334946', 'tblTempUsageDetail_20' ) end [2025-01-26 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334946', 'tblTempVendorCDR_20' ) start [2025-01-26 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334946', 'tblTempVendorCDR_20' ) end [2025-01-26 14:29:18] Production.INFO: ProcessCDR(1,14334946,1,1,2) [2025-01-26 14:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334946', 'tblTempUsageDetail_20' ) start [2025-01-26 14:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334946', 'tblTempUsageDetail_20' ) end [2025-01-26 14:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:29:21] Production.INFO: ==22478== Releasing lock... [2025-01-26 14:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:29:21] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:30:06 [end_date_ymd] => 2025-01-26 14:30:06 [RateCDR] => 1 ) [2025-01-26 14:30: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-01-26 11:30:06' and `end` < '2025-01-26 14:30: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-01-26 14:30:19] Production.INFO: count ==1712 [2025-01-26 14:30:19] Production.ERROR: pbx CDR StartTime 2025-01-26 11:30:06 - End Time 2025-01-26 14:30:06 [2025-01-26 14:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334952', 'tblTempUsageDetail_20' ) start [2025-01-26 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334952', 'tblTempUsageDetail_20' ) end [2025-01-26 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334952', 'tblTempVendorCDR_20' ) start [2025-01-26 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334952', 'tblTempVendorCDR_20' ) end [2025-01-26 14:30:19] Production.INFO: ProcessCDR(1,14334952,1,1,2) [2025-01-26 14:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334952', 'tblTempUsageDetail_20' ) start [2025-01-26 14:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334952', 'tblTempUsageDetail_20' ) end [2025-01-26 14:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:30:23] Production.INFO: ==22552== Releasing lock... [2025-01-26 14:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:30:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:31:05 [end_date_ymd] => 2025-01-26 14:31:05 [RateCDR] => 1 ) [2025-01-26 14:31: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-01-26 11:31:05' and `end` < '2025-01-26 14:31: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-01-26 14:31:18] Production.INFO: count ==1744 [2025-01-26 14:31:19] Production.ERROR: pbx CDR StartTime 2025-01-26 11:31:05 - End Time 2025-01-26 14:31:05 [2025-01-26 14:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334957', 'tblTempUsageDetail_20' ) start [2025-01-26 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334957', 'tblTempUsageDetail_20' ) end [2025-01-26 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334957', 'tblTempVendorCDR_20' ) start [2025-01-26 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334957', 'tblTempVendorCDR_20' ) end [2025-01-26 14:31:19] Production.INFO: ProcessCDR(1,14334957,1,1,2) [2025-01-26 14:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334957', 'tblTempUsageDetail_20' ) start [2025-01-26 14:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334957', 'tblTempUsageDetail_20' ) end [2025-01-26 14:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:31:22] Production.INFO: ==22626== Releasing lock... [2025-01-26 14:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:31:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-26 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:32:05 [end_date_ymd] => 2025-01-26 14:32:05 [RateCDR] => 1 ) [2025-01-26 14:32: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-01-26 11:32:05' and `end` < '2025-01-26 14:32: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-01-26 14:32:21] Production.INFO: count ==1753 [2025-01-26 14:32:21] Production.ERROR: pbx CDR StartTime 2025-01-26 11:32:05 - End Time 2025-01-26 14:32:05 [2025-01-26 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334962', 'tblTempUsageDetail_20' ) start [2025-01-26 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334962', 'tblTempUsageDetail_20' ) end [2025-01-26 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334962', 'tblTempVendorCDR_20' ) start [2025-01-26 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334962', 'tblTempVendorCDR_20' ) end [2025-01-26 14:32:21] Production.INFO: ProcessCDR(1,14334962,1,1,2) [2025-01-26 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334962', 'tblTempUsageDetail_20' ) start [2025-01-26 14:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334962', 'tblTempUsageDetail_20' ) end [2025-01-26 14:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:32:24] Production.INFO: ==22705== Releasing lock... [2025-01-26 14:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:32:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-26 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:33:05 [end_date_ymd] => 2025-01-26 14:33:05 [RateCDR] => 1 ) [2025-01-26 14:33: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-01-26 11:33:05' and `end` < '2025-01-26 14:33: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-01-26 14:33:18] Production.INFO: count ==1751 [2025-01-26 14:33:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:33:05 - End Time 2025-01-26 14:33:05 [2025-01-26 14:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334967', 'tblTempUsageDetail_20' ) start [2025-01-26 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334967', 'tblTempUsageDetail_20' ) end [2025-01-26 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334967', 'tblTempVendorCDR_20' ) start [2025-01-26 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334967', 'tblTempVendorCDR_20' ) end [2025-01-26 14:33:18] Production.INFO: ProcessCDR(1,14334967,1,1,2) [2025-01-26 14:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334967', 'tblTempUsageDetail_20' ) start [2025-01-26 14:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334967', 'tblTempUsageDetail_20' ) end [2025-01-26 14:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:33:23] Production.INFO: ==22777== Releasing lock... [2025-01-26 14:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:33:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-26 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:34:06 [end_date_ymd] => 2025-01-26 14:34:06 [RateCDR] => 1 ) [2025-01-26 14:34: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-01-26 11:34:06' and `end` < '2025-01-26 14:34: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-01-26 14:34:18] Production.INFO: count ==1755 [2025-01-26 14:34:19] Production.ERROR: pbx CDR StartTime 2025-01-26 11:34:06 - End Time 2025-01-26 14:34:06 [2025-01-26 14:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334972', 'tblTempUsageDetail_20' ) start [2025-01-26 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334972', 'tblTempUsageDetail_20' ) end [2025-01-26 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334972', 'tblTempVendorCDR_20' ) start [2025-01-26 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334972', 'tblTempVendorCDR_20' ) end [2025-01-26 14:34:19] Production.INFO: ProcessCDR(1,14334972,1,1,2) [2025-01-26 14:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334972', 'tblTempUsageDetail_20' ) start [2025-01-26 14:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334972', 'tblTempUsageDetail_20' ) end [2025-01-26 14:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:34:23] Production.INFO: ==22849== Releasing lock... [2025-01-26 14:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:34:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-26 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:35:05 [end_date_ymd] => 2025-01-26 14:35:05 [RateCDR] => 1 ) [2025-01-26 14:35: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-01-26 11:35:05' and `end` < '2025-01-26 14:35: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-01-26 14:35:18] Production.INFO: count ==1755 [2025-01-26 14:35:19] Production.ERROR: pbx CDR StartTime 2025-01-26 11:35:05 - End Time 2025-01-26 14:35:05 [2025-01-26 14:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334977', 'tblTempUsageDetail_20' ) start [2025-01-26 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334977', 'tblTempUsageDetail_20' ) end [2025-01-26 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334977', 'tblTempVendorCDR_20' ) start [2025-01-26 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334977', 'tblTempVendorCDR_20' ) end [2025-01-26 14:35:19] Production.INFO: ProcessCDR(1,14334977,1,1,2) [2025-01-26 14:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334977', 'tblTempUsageDetail_20' ) start [2025-01-26 14:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334977', 'tblTempUsageDetail_20' ) end [2025-01-26 14:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:35:23] Production.INFO: ==22939== Releasing lock... [2025-01-26 14:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:35:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-26 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:36:05 [end_date_ymd] => 2025-01-26 14:36:05 [RateCDR] => 1 ) [2025-01-26 14:36: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-01-26 11:36:05' and `end` < '2025-01-26 14:36: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-01-26 14:36:18] Production.INFO: count ==1748 [2025-01-26 14:36:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:36:05 - End Time 2025-01-26 14:36:05 [2025-01-26 14:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334982', 'tblTempUsageDetail_20' ) start [2025-01-26 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334982', 'tblTempUsageDetail_20' ) end [2025-01-26 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334982', 'tblTempVendorCDR_20' ) start [2025-01-26 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334982', 'tblTempVendorCDR_20' ) end [2025-01-26 14:36:18] Production.INFO: ProcessCDR(1,14334982,1,1,2) [2025-01-26 14:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334982', 'tblTempUsageDetail_20' ) start [2025-01-26 14:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334982', 'tblTempUsageDetail_20' ) end [2025-01-26 14:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:36:21] Production.INFO: ==23012== Releasing lock... [2025-01-26 14:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:36:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-26 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:37:05 [end_date_ymd] => 2025-01-26 14:37:05 [RateCDR] => 1 ) [2025-01-26 14:37: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-01-26 11:37:05' and `end` < '2025-01-26 14:37: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-01-26 14:37:17] Production.INFO: count ==1736 [2025-01-26 14:37:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:37:05 - End Time 2025-01-26 14:37:05 [2025-01-26 14:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334987', 'tblTempUsageDetail_20' ) start [2025-01-26 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334987', 'tblTempUsageDetail_20' ) end [2025-01-26 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334987', 'tblTempVendorCDR_20' ) start [2025-01-26 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334987', 'tblTempVendorCDR_20' ) end [2025-01-26 14:37:18] Production.INFO: ProcessCDR(1,14334987,1,1,2) [2025-01-26 14:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334987', 'tblTempUsageDetail_20' ) start [2025-01-26 14:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334987', 'tblTempUsageDetail_20' ) end [2025-01-26 14:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:37:21] Production.INFO: ==23083== Releasing lock... [2025-01-26 14:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:37:21] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:38:05 [end_date_ymd] => 2025-01-26 14:38:05 [RateCDR] => 1 ) [2025-01-26 14:38: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-01-26 11:38:05' and `end` < '2025-01-26 14:38: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-01-26 14:38:18] Production.INFO: count ==1739 [2025-01-26 14:38:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:38:05 - End Time 2025-01-26 14:38:05 [2025-01-26 14:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334992', 'tblTempUsageDetail_20' ) start [2025-01-26 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334992', 'tblTempUsageDetail_20' ) end [2025-01-26 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334992', 'tblTempVendorCDR_20' ) start [2025-01-26 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334992', 'tblTempVendorCDR_20' ) end [2025-01-26 14:38:18] Production.INFO: ProcessCDR(1,14334992,1,1,2) [2025-01-26 14:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334992', 'tblTempUsageDetail_20' ) start [2025-01-26 14:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334992', 'tblTempUsageDetail_20' ) end [2025-01-26 14:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:38:23] Production.INFO: ==23157== Releasing lock... [2025-01-26 14:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:38:23] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:39:06 [end_date_ymd] => 2025-01-26 14:39:06 [RateCDR] => 1 ) [2025-01-26 14:39: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-01-26 11:39:06' and `end` < '2025-01-26 14:39: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-01-26 14:39:18] Production.INFO: count ==1740 [2025-01-26 14:39:19] Production.ERROR: pbx CDR StartTime 2025-01-26 11:39:06 - End Time 2025-01-26 14:39:06 [2025-01-26 14:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334997', 'tblTempUsageDetail_20' ) start [2025-01-26 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14334997', 'tblTempUsageDetail_20' ) end [2025-01-26 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334997', 'tblTempVendorCDR_20' ) start [2025-01-26 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14334997', 'tblTempVendorCDR_20' ) end [2025-01-26 14:39:19] Production.INFO: ProcessCDR(1,14334997,1,1,2) [2025-01-26 14:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14334997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14334997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14334997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14334997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334997', 'tblTempUsageDetail_20' ) start [2025-01-26 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14334997', 'tblTempUsageDetail_20' ) end [2025-01-26 14:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:39:23] Production.INFO: ==23230== Releasing lock... [2025-01-26 14:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:39:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-26 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:40:06 [end_date_ymd] => 2025-01-26 14:40:06 [RateCDR] => 1 ) [2025-01-26 14:40: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-01-26 11:40:06' and `end` < '2025-01-26 14:40: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-01-26 14:40:18] Production.INFO: count ==1739 [2025-01-26 14:40:19] Production.ERROR: pbx CDR StartTime 2025-01-26 11:40:06 - End Time 2025-01-26 14:40:06 [2025-01-26 14:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335002', 'tblTempUsageDetail_20' ) start [2025-01-26 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335002', 'tblTempUsageDetail_20' ) end [2025-01-26 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335002', 'tblTempVendorCDR_20' ) start [2025-01-26 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335002', 'tblTempVendorCDR_20' ) end [2025-01-26 14:40:19] Production.INFO: ProcessCDR(1,14335002,1,1,2) [2025-01-26 14:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335002', 'tblTempUsageDetail_20' ) start [2025-01-26 14:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335002', 'tblTempUsageDetail_20' ) end [2025-01-26 14:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:40:22] Production.INFO: ==23307== Releasing lock... [2025-01-26 14:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:40:22] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:41:05 [end_date_ymd] => 2025-01-26 14:41:05 [RateCDR] => 1 ) [2025-01-26 14:41: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-01-26 11:41:05' and `end` < '2025-01-26 14:41: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-01-26 14:41:18] Production.INFO: count ==1718 [2025-01-26 14:41:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:41:05 - End Time 2025-01-26 14:41:05 [2025-01-26 14:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335008', 'tblTempUsageDetail_20' ) start [2025-01-26 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335008', 'tblTempUsageDetail_20' ) end [2025-01-26 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335008', 'tblTempVendorCDR_20' ) start [2025-01-26 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335008', 'tblTempVendorCDR_20' ) end [2025-01-26 14:41:18] Production.INFO: ProcessCDR(1,14335008,1,1,2) [2025-01-26 14:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335008', 'tblTempUsageDetail_20' ) start [2025-01-26 14:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335008', 'tblTempUsageDetail_20' ) end [2025-01-26 14:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:41:23] Production.INFO: ==23385== Releasing lock... [2025-01-26 14:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:41:23] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:42:05 [end_date_ymd] => 2025-01-26 14:42:05 [RateCDR] => 1 ) [2025-01-26 14:42: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-01-26 11:42:05' and `end` < '2025-01-26 14:42: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-01-26 14:42:18] Production.INFO: count ==1717 [2025-01-26 14:42:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:42:05 - End Time 2025-01-26 14:42:05 [2025-01-26 14:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335013', 'tblTempUsageDetail_20' ) start [2025-01-26 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335013', 'tblTempUsageDetail_20' ) end [2025-01-26 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335013', 'tblTempVendorCDR_20' ) start [2025-01-26 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335013', 'tblTempVendorCDR_20' ) end [2025-01-26 14:42:18] Production.INFO: ProcessCDR(1,14335013,1,1,2) [2025-01-26 14:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335013', 'tblTempUsageDetail_20' ) start [2025-01-26 14:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335013', 'tblTempUsageDetail_20' ) end [2025-01-26 14:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:42:22] Production.INFO: ==23457== Releasing lock... [2025-01-26 14:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:42:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:43:05 [end_date_ymd] => 2025-01-26 14:43:05 [RateCDR] => 1 ) [2025-01-26 14:43: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-01-26 11:43:05' and `end` < '2025-01-26 14:43: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-01-26 14:43:19] Production.INFO: count ==1711 [2025-01-26 14:43:19] Production.ERROR: pbx CDR StartTime 2025-01-26 11:43:05 - End Time 2025-01-26 14:43:05 [2025-01-26 14:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335018', 'tblTempUsageDetail_20' ) start [2025-01-26 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335018', 'tblTempUsageDetail_20' ) end [2025-01-26 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335018', 'tblTempVendorCDR_20' ) start [2025-01-26 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335018', 'tblTempVendorCDR_20' ) end [2025-01-26 14:43:19] Production.INFO: ProcessCDR(1,14335018,1,1,2) [2025-01-26 14:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335018', 'tblTempUsageDetail_20' ) start [2025-01-26 14:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335018', 'tblTempUsageDetail_20' ) end [2025-01-26 14:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:43:23] Production.INFO: ==23537== Releasing lock... [2025-01-26 14:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:43:23] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:44:05 [end_date_ymd] => 2025-01-26 14:44:05 [RateCDR] => 1 ) [2025-01-26 14:44: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-01-26 11:44:05' and `end` < '2025-01-26 14:44: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-01-26 14:44:18] Production.INFO: count ==1711 [2025-01-26 14:44:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:44:05 - End Time 2025-01-26 14:44:05 [2025-01-26 14:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335023', 'tblTempUsageDetail_20' ) start [2025-01-26 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335023', 'tblTempUsageDetail_20' ) end [2025-01-26 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335023', 'tblTempVendorCDR_20' ) start [2025-01-26 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335023', 'tblTempVendorCDR_20' ) end [2025-01-26 14:44:18] Production.INFO: ProcessCDR(1,14335023,1,1,2) [2025-01-26 14:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335023', 'tblTempUsageDetail_20' ) start [2025-01-26 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335023', 'tblTempUsageDetail_20' ) end [2025-01-26 14:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:44:23] Production.INFO: ==23650== Releasing lock... [2025-01-26 14:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:44:23] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:45:05 [end_date_ymd] => 2025-01-26 14:45:05 [RateCDR] => 1 ) [2025-01-26 14:45: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-01-26 11:45:05' and `end` < '2025-01-26 14:45: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-01-26 14:45:18] Production.INFO: count ==1713 [2025-01-26 14:45:19] Production.ERROR: pbx CDR StartTime 2025-01-26 11:45:05 - End Time 2025-01-26 14:45:05 [2025-01-26 14:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335028', 'tblTempUsageDetail_20' ) start [2025-01-26 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335028', 'tblTempUsageDetail_20' ) end [2025-01-26 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335028', 'tblTempVendorCDR_20' ) start [2025-01-26 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335028', 'tblTempVendorCDR_20' ) end [2025-01-26 14:45:19] Production.INFO: ProcessCDR(1,14335028,1,1,2) [2025-01-26 14:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335028', 'tblTempUsageDetail_20' ) start [2025-01-26 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335028', 'tblTempUsageDetail_20' ) end [2025-01-26 14:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:45:23] Production.INFO: ==23723== Releasing lock... [2025-01-26 14:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:45:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:46:05 [end_date_ymd] => 2025-01-26 14:46:05 [RateCDR] => 1 ) [2025-01-26 14:46: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-01-26 11:46:05' and `end` < '2025-01-26 14:46: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-01-26 14:46:17] Production.INFO: count ==1714 [2025-01-26 14:46:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:46:05 - End Time 2025-01-26 14:46:05 [2025-01-26 14:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335033', 'tblTempUsageDetail_20' ) start [2025-01-26 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335033', 'tblTempUsageDetail_20' ) end [2025-01-26 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335033', 'tblTempVendorCDR_20' ) start [2025-01-26 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335033', 'tblTempVendorCDR_20' ) end [2025-01-26 14:46:18] Production.INFO: ProcessCDR(1,14335033,1,1,2) [2025-01-26 14:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335033', 'tblTempUsageDetail_20' ) start [2025-01-26 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335033', 'tblTempUsageDetail_20' ) end [2025-01-26 14:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:46:23] Production.INFO: ==23797== Releasing lock... [2025-01-26 14:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:46:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:47:05 [end_date_ymd] => 2025-01-26 14:47:05 [RateCDR] => 1 ) [2025-01-26 14:47: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-01-26 11:47:05' and `end` < '2025-01-26 14:47: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-01-26 14:47:20] Production.INFO: count ==1716 [2025-01-26 14:47:20] Production.ERROR: pbx CDR StartTime 2025-01-26 11:47:05 - End Time 2025-01-26 14:47:05 [2025-01-26 14:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335038', 'tblTempUsageDetail_20' ) start [2025-01-26 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335038', 'tblTempUsageDetail_20' ) end [2025-01-26 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335038', 'tblTempVendorCDR_20' ) start [2025-01-26 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335038', 'tblTempVendorCDR_20' ) end [2025-01-26 14:47:21] Production.INFO: ProcessCDR(1,14335038,1,1,2) [2025-01-26 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335038', 'tblTempUsageDetail_20' ) start [2025-01-26 14:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335038', 'tblTempUsageDetail_20' ) end [2025-01-26 14:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:47:25] Production.INFO: ==23873== Releasing lock... [2025-01-26 14:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:47:25] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:48:05 [end_date_ymd] => 2025-01-26 14:48:05 [RateCDR] => 1 ) [2025-01-26 14:48: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-01-26 11:48:05' and `end` < '2025-01-26 14:48: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-01-26 14:48:18] Production.INFO: count ==1716 [2025-01-26 14:48:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:48:05 - End Time 2025-01-26 14:48:05 [2025-01-26 14:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335043', 'tblTempUsageDetail_20' ) start [2025-01-26 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335043', 'tblTempUsageDetail_20' ) end [2025-01-26 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335043', 'tblTempVendorCDR_20' ) start [2025-01-26 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335043', 'tblTempVendorCDR_20' ) end [2025-01-26 14:48:18] Production.INFO: ProcessCDR(1,14335043,1,1,2) [2025-01-26 14:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335043', 'tblTempUsageDetail_20' ) start [2025-01-26 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335043', 'tblTempUsageDetail_20' ) end [2025-01-26 14:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:48:22] Production.INFO: ==23945== Releasing lock... [2025-01-26 14:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:48:22] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:49:05 [end_date_ymd] => 2025-01-26 14:49:05 [RateCDR] => 1 ) [2025-01-26 14:49: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-01-26 11:49:05' and `end` < '2025-01-26 14:49: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-01-26 14:49:19] Production.INFO: count ==1707 [2025-01-26 14:49:20] Production.ERROR: pbx CDR StartTime 2025-01-26 11:49:05 - End Time 2025-01-26 14:49:05 [2025-01-26 14:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335048', 'tblTempUsageDetail_20' ) start [2025-01-26 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335048', 'tblTempUsageDetail_20' ) end [2025-01-26 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335048', 'tblTempVendorCDR_20' ) start [2025-01-26 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335048', 'tblTempVendorCDR_20' ) end [2025-01-26 14:49:20] Production.INFO: ProcessCDR(1,14335048,1,1,2) [2025-01-26 14:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335048', 'tblTempUsageDetail_20' ) start [2025-01-26 14:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335048', 'tblTempUsageDetail_20' ) end [2025-01-26 14:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:49:24] Production.INFO: ==24018== Releasing lock... [2025-01-26 14:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:49:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:50:05 [end_date_ymd] => 2025-01-26 14:50:05 [RateCDR] => 1 ) [2025-01-26 14:50: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-01-26 11:50:05' and `end` < '2025-01-26 14:50: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-01-26 14:50:18] Production.INFO: count ==1709 [2025-01-26 14:50:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:50:05 - End Time 2025-01-26 14:50:05 [2025-01-26 14:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335054', 'tblTempUsageDetail_20' ) start [2025-01-26 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335054', 'tblTempUsageDetail_20' ) end [2025-01-26 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335054', 'tblTempVendorCDR_20' ) start [2025-01-26 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335054', 'tblTempVendorCDR_20' ) end [2025-01-26 14:50:18] Production.INFO: ProcessCDR(1,14335054,1,1,2) [2025-01-26 14:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335054', 'tblTempUsageDetail_20' ) start [2025-01-26 14:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335054', 'tblTempUsageDetail_20' ) end [2025-01-26 14:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:50:23] Production.INFO: ==24102== Releasing lock... [2025-01-26 14:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:50:23] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:51:05 [end_date_ymd] => 2025-01-26 14:51:05 [RateCDR] => 1 ) [2025-01-26 14:51: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-01-26 11:51:05' and `end` < '2025-01-26 14:51: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-01-26 14:51:19] Production.INFO: count ==1734 [2025-01-26 14:51:20] Production.ERROR: pbx CDR StartTime 2025-01-26 11:51:05 - End Time 2025-01-26 14:51:05 [2025-01-26 14:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335059', 'tblTempUsageDetail_20' ) start [2025-01-26 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335059', 'tblTempUsageDetail_20' ) end [2025-01-26 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335059', 'tblTempVendorCDR_20' ) start [2025-01-26 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335059', 'tblTempVendorCDR_20' ) end [2025-01-26 14:51:20] Production.INFO: ProcessCDR(1,14335059,1,1,2) [2025-01-26 14:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335059', 'tblTempUsageDetail_20' ) start [2025-01-26 14:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335059', 'tblTempUsageDetail_20' ) end [2025-01-26 14:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:51:24] Production.INFO: ==24181== Releasing lock... [2025-01-26 14:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:51:24] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:52:05 [end_date_ymd] => 2025-01-26 14:52:05 [RateCDR] => 1 ) [2025-01-26 14:52: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-01-26 11:52:05' and `end` < '2025-01-26 14:52: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-01-26 14:52:18] Production.INFO: count ==1726 [2025-01-26 14:52:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:52:05 - End Time 2025-01-26 14:52:05 [2025-01-26 14:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335064', 'tblTempUsageDetail_20' ) start [2025-01-26 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335064', 'tblTempUsageDetail_20' ) end [2025-01-26 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335064', 'tblTempVendorCDR_20' ) start [2025-01-26 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335064', 'tblTempVendorCDR_20' ) end [2025-01-26 14:52:18] Production.INFO: ProcessCDR(1,14335064,1,1,2) [2025-01-26 14:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335064', 'tblTempUsageDetail_20' ) start [2025-01-26 14:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335064', 'tblTempUsageDetail_20' ) end [2025-01-26 14:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:52:23] Production.INFO: ==24255== Releasing lock... [2025-01-26 14:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:52:23] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:53:05 [end_date_ymd] => 2025-01-26 14:53:05 [RateCDR] => 1 ) [2025-01-26 14:53: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-01-26 11:53:05' and `end` < '2025-01-26 14:53: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-01-26 14:53:17] Production.INFO: count ==1725 [2025-01-26 14:53:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:53:05 - End Time 2025-01-26 14:53:05 [2025-01-26 14:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335069', 'tblTempUsageDetail_20' ) start [2025-01-26 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335069', 'tblTempUsageDetail_20' ) end [2025-01-26 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335069', 'tblTempVendorCDR_20' ) start [2025-01-26 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335069', 'tblTempVendorCDR_20' ) end [2025-01-26 14:53:18] Production.INFO: ProcessCDR(1,14335069,1,1,2) [2025-01-26 14:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335069', 'tblTempUsageDetail_20' ) start [2025-01-26 14:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335069', 'tblTempUsageDetail_20' ) end [2025-01-26 14:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:53:21] Production.INFO: ==24331== Releasing lock... [2025-01-26 14:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:53:21] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:54:05 [end_date_ymd] => 2025-01-26 14:54:05 [RateCDR] => 1 ) [2025-01-26 14:54: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-01-26 11:54:05' and `end` < '2025-01-26 14:54: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-01-26 14:54:18] Production.INFO: count ==1722 [2025-01-26 14:54:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:54:05 - End Time 2025-01-26 14:54:05 [2025-01-26 14:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335074', 'tblTempUsageDetail_20' ) start [2025-01-26 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335074', 'tblTempUsageDetail_20' ) end [2025-01-26 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335074', 'tblTempVendorCDR_20' ) start [2025-01-26 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335074', 'tblTempVendorCDR_20' ) end [2025-01-26 14:54:18] Production.INFO: ProcessCDR(1,14335074,1,1,2) [2025-01-26 14:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335074', 'tblTempUsageDetail_20' ) start [2025-01-26 14:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335074', 'tblTempUsageDetail_20' ) end [2025-01-26 14:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:54:21] Production.INFO: ==24405== Releasing lock... [2025-01-26 14:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:54:21] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:55:05 [end_date_ymd] => 2025-01-26 14:55:05 [RateCDR] => 1 ) [2025-01-26 14:55: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-01-26 11:55:05' and `end` < '2025-01-26 14:55: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-01-26 14:55:18] Production.INFO: count ==1721 [2025-01-26 14:55:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:55:05 - End Time 2025-01-26 14:55:05 [2025-01-26 14:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335079', 'tblTempUsageDetail_20' ) start [2025-01-26 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335079', 'tblTempUsageDetail_20' ) end [2025-01-26 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335079', 'tblTempVendorCDR_20' ) start [2025-01-26 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335079', 'tblTempVendorCDR_20' ) end [2025-01-26 14:55:18] Production.INFO: ProcessCDR(1,14335079,1,1,2) [2025-01-26 14:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335079', 'tblTempUsageDetail_20' ) start [2025-01-26 14:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335079', 'tblTempUsageDetail_20' ) end [2025-01-26 14:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:55:21] Production.INFO: ==24476== Releasing lock... [2025-01-26 14:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:55:21] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:56:04 [end_date_ymd] => 2025-01-26 14:56:04 [RateCDR] => 1 ) [2025-01-26 14:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 11:56:04' and `end` < '2025-01-26 14:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 14:56:18] Production.INFO: count ==1719 [2025-01-26 14:56:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:56:04 - End Time 2025-01-26 14:56:04 [2025-01-26 14:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335084', 'tblTempUsageDetail_20' ) start [2025-01-26 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335084', 'tblTempUsageDetail_20' ) end [2025-01-26 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335084', 'tblTempVendorCDR_20' ) start [2025-01-26 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335084', 'tblTempVendorCDR_20' ) end [2025-01-26 14:56:18] Production.INFO: ProcessCDR(1,14335084,1,1,2) [2025-01-26 14:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335084', 'tblTempUsageDetail_20' ) start [2025-01-26 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335084', 'tblTempUsageDetail_20' ) end [2025-01-26 14:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:56:23] Production.INFO: ==24549== Releasing lock... [2025-01-26 14:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:56:23] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:57:05 [end_date_ymd] => 2025-01-26 14:57:05 [RateCDR] => 1 ) [2025-01-26 14:57: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-01-26 11:57:05' and `end` < '2025-01-26 14:57: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-01-26 14:57:18] Production.INFO: count ==1724 [2025-01-26 14:57:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:57:05 - End Time 2025-01-26 14:57:05 [2025-01-26 14:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335089', 'tblTempUsageDetail_20' ) start [2025-01-26 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335089', 'tblTempUsageDetail_20' ) end [2025-01-26 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335089', 'tblTempVendorCDR_20' ) start [2025-01-26 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335089', 'tblTempVendorCDR_20' ) end [2025-01-26 14:57:18] Production.INFO: ProcessCDR(1,14335089,1,1,2) [2025-01-26 14:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335089', 'tblTempUsageDetail_20' ) start [2025-01-26 14:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335089', 'tblTempUsageDetail_20' ) end [2025-01-26 14:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:57:21] Production.INFO: ==24628== Releasing lock... [2025-01-26 14:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:57:21] Production.INFO: 41 MB #Memory Used# [2025-01-26 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:58:05 [end_date_ymd] => 2025-01-26 14:58:05 [RateCDR] => 1 ) [2025-01-26 14:58: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-01-26 11:58:05' and `end` < '2025-01-26 14:58: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-01-26 14:58:18] Production.INFO: count ==1717 [2025-01-26 14:58:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:58:05 - End Time 2025-01-26 14:58:05 [2025-01-26 14:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335094', 'tblTempUsageDetail_20' ) start [2025-01-26 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335094', 'tblTempUsageDetail_20' ) end [2025-01-26 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335094', 'tblTempVendorCDR_20' ) start [2025-01-26 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335094', 'tblTempVendorCDR_20' ) end [2025-01-26 14:58:18] Production.INFO: ProcessCDR(1,14335094,1,1,2) [2025-01-26 14:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335094', 'tblTempUsageDetail_20' ) start [2025-01-26 14:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335094', 'tblTempUsageDetail_20' ) end [2025-01-26 14:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:58:22] Production.INFO: ==24702== Releasing lock... [2025-01-26 14:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:58:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 11:59:05 [end_date_ymd] => 2025-01-26 14:59:05 [RateCDR] => 1 ) [2025-01-26 14:59: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-01-26 11:59:05' and `end` < '2025-01-26 14:59: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-01-26 14:59:18] Production.INFO: count ==1713 [2025-01-26 14:59:18] Production.ERROR: pbx CDR StartTime 2025-01-26 11:59:05 - End Time 2025-01-26 14:59:05 [2025-01-26 14:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335099', 'tblTempUsageDetail_20' ) start [2025-01-26 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335099', 'tblTempUsageDetail_20' ) end [2025-01-26 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335099', 'tblTempVendorCDR_20' ) start [2025-01-26 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335099', 'tblTempVendorCDR_20' ) end [2025-01-26 14:59:18] Production.INFO: ProcessCDR(1,14335099,1,1,2) [2025-01-26 14:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 14:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335099', 'tblTempUsageDetail_20' ) start [2025-01-26 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335099', 'tblTempUsageDetail_20' ) end [2025-01-26 14:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 14:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 14:59:23] Production.INFO: ==24775== Releasing lock... [2025-01-26 14:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 14:59:23] Production.INFO: 41 MB #Memory Used# [2025-01-26 15:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:00:07 [end_date_ymd] => 2025-01-26 15:00:07 [RateCDR] => 1 ) [2025-01-26 15: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-01-26 12:00:07' and `end` < '2025-01-26 15: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-01-26 15:00:20] Production.INFO: count ==1708 [2025-01-26 15:00:20] Production.ERROR: pbx CDR StartTime 2025-01-26 12:00:07 - End Time 2025-01-26 15:00:07 [2025-01-26 15:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335105', 'tblTempUsageDetail_20' ) start [2025-01-26 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335105', 'tblTempUsageDetail_20' ) end [2025-01-26 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335105', 'tblTempVendorCDR_20' ) start [2025-01-26 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335105', 'tblTempVendorCDR_20' ) end [2025-01-26 15:00:20] Production.INFO: ProcessCDR(1,14335105,1,1,2) [2025-01-26 15:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335105', 'tblTempUsageDetail_20' ) start [2025-01-26 15:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335105', 'tblTempUsageDetail_20' ) end [2025-01-26 15:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:00:23] Production.INFO: ==24893== Releasing lock... [2025-01-26 15:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:00:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:01:05 [end_date_ymd] => 2025-01-26 15:01:05 [RateCDR] => 1 ) [2025-01-26 15:01: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-01-26 12:01:05' and `end` < '2025-01-26 15:01: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-01-26 15:01:18] Production.INFO: count ==1722 [2025-01-26 15:01:19] Production.ERROR: pbx CDR StartTime 2025-01-26 12:01:05 - End Time 2025-01-26 15:01:05 [2025-01-26 15:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335110', 'tblTempUsageDetail_20' ) start [2025-01-26 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335110', 'tblTempUsageDetail_20' ) end [2025-01-26 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335110', 'tblTempVendorCDR_20' ) start [2025-01-26 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335110', 'tblTempVendorCDR_20' ) end [2025-01-26 15:01:19] Production.INFO: ProcessCDR(1,14335110,1,1,2) [2025-01-26 15:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335110', 'tblTempUsageDetail_20' ) start [2025-01-26 15:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335110', 'tblTempUsageDetail_20' ) end [2025-01-26 15:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:01:22] Production.INFO: ==24978== Releasing lock... [2025-01-26 15:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:01:22] Production.INFO: 41 MB #Memory Used# [2025-01-26 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:02:05 [end_date_ymd] => 2025-01-26 15:02:05 [RateCDR] => 1 ) [2025-01-26 15:02: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-01-26 12:02:05' and `end` < '2025-01-26 15:02: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-01-26 15:02:18] Production.INFO: count ==1732 [2025-01-26 15:02:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:02:05 - End Time 2025-01-26 15:02:05 [2025-01-26 15:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335115', 'tblTempUsageDetail_20' ) start [2025-01-26 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335115', 'tblTempUsageDetail_20' ) end [2025-01-26 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335115', 'tblTempVendorCDR_20' ) start [2025-01-26 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335115', 'tblTempVendorCDR_20' ) end [2025-01-26 15:02:19] Production.INFO: ProcessCDR(1,14335115,1,1,2) [2025-01-26 15:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335115', 'tblTempUsageDetail_20' ) start [2025-01-26 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335115', 'tblTempUsageDetail_20' ) end [2025-01-26 15:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:02:22] Production.INFO: ==25130== Releasing lock... [2025-01-26 15:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:02:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:03:05 [end_date_ymd] => 2025-01-26 15:03:05 [RateCDR] => 1 ) [2025-01-26 15:03: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-01-26 12:03:05' and `end` < '2025-01-26 15:03: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-01-26 15:03:18] Production.INFO: count ==1730 [2025-01-26 15:03:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:03:05 - End Time 2025-01-26 15:03:05 [2025-01-26 15:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335120', 'tblTempUsageDetail_20' ) start [2025-01-26 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335120', 'tblTempUsageDetail_20' ) end [2025-01-26 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335120', 'tblTempVendorCDR_20' ) start [2025-01-26 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335120', 'tblTempVendorCDR_20' ) end [2025-01-26 15:03:18] Production.INFO: ProcessCDR(1,14335120,1,1,2) [2025-01-26 15:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335120', 'tblTempUsageDetail_20' ) start [2025-01-26 15:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335120', 'tblTempUsageDetail_20' ) end [2025-01-26 15:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:03:21] Production.INFO: ==25203== Releasing lock... [2025-01-26 15:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:03:21] Production.INFO: 41 MB #Memory Used# [2025-01-26 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:04:06 [end_date_ymd] => 2025-01-26 15:04:06 [RateCDR] => 1 ) [2025-01-26 15:04: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-01-26 12:04:06' and `end` < '2025-01-26 15:04: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-01-26 15:04:18] Production.INFO: count ==1734 [2025-01-26 15:04:19] Production.ERROR: pbx CDR StartTime 2025-01-26 12:04:06 - End Time 2025-01-26 15:04:06 [2025-01-26 15:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335125', 'tblTempUsageDetail_20' ) start [2025-01-26 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335125', 'tblTempUsageDetail_20' ) end [2025-01-26 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335125', 'tblTempVendorCDR_20' ) start [2025-01-26 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335125', 'tblTempVendorCDR_20' ) end [2025-01-26 15:04:19] Production.INFO: ProcessCDR(1,14335125,1,1,2) [2025-01-26 15:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335125', 'tblTempUsageDetail_20' ) start [2025-01-26 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335125', 'tblTempUsageDetail_20' ) end [2025-01-26 15:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:04:23] Production.INFO: ==25284== Releasing lock... [2025-01-26 15:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:04:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:05:05 [end_date_ymd] => 2025-01-26 15:05:05 [RateCDR] => 1 ) [2025-01-26 15:05: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-01-26 12:05:05' and `end` < '2025-01-26 15:05: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-01-26 15:05:18] Production.INFO: count ==1734 [2025-01-26 15:05:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:05:05 - End Time 2025-01-26 15:05:05 [2025-01-26 15:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335130', 'tblTempUsageDetail_20' ) start [2025-01-26 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335130', 'tblTempUsageDetail_20' ) end [2025-01-26 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335130', 'tblTempVendorCDR_20' ) start [2025-01-26 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335130', 'tblTempVendorCDR_20' ) end [2025-01-26 15:05:18] Production.INFO: ProcessCDR(1,14335130,1,1,2) [2025-01-26 15:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335130', 'tblTempUsageDetail_20' ) start [2025-01-26 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335130', 'tblTempUsageDetail_20' ) end [2025-01-26 15:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:05:22] Production.INFO: ==25438== Releasing lock... [2025-01-26 15:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:05:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:06:05 [end_date_ymd] => 2025-01-26 15:06:05 [RateCDR] => 1 ) [2025-01-26 15:06: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-01-26 12:06:05' and `end` < '2025-01-26 15:06: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-01-26 15:06:18] Production.INFO: count ==1737 [2025-01-26 15:06:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:06:05 - End Time 2025-01-26 15:06:05 [2025-01-26 15:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335135', 'tblTempUsageDetail_20' ) start [2025-01-26 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335135', 'tblTempUsageDetail_20' ) end [2025-01-26 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335135', 'tblTempVendorCDR_20' ) start [2025-01-26 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335135', 'tblTempVendorCDR_20' ) end [2025-01-26 15:06:18] Production.INFO: ProcessCDR(1,14335135,1,1,2) [2025-01-26 15:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335135', 'tblTempUsageDetail_20' ) start [2025-01-26 15:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335135', 'tblTempUsageDetail_20' ) end [2025-01-26 15:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:06:23] Production.INFO: ==25512== Releasing lock... [2025-01-26 15:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:06:23] Production.INFO: 41 MB #Memory Used# [2025-01-26 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:07:05 [end_date_ymd] => 2025-01-26 15:07:05 [RateCDR] => 1 ) [2025-01-26 15:07: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-01-26 12:07:05' and `end` < '2025-01-26 15:07: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-01-26 15:07:18] Production.INFO: count ==1738 [2025-01-26 15:07:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:07:05 - End Time 2025-01-26 15:07:05 [2025-01-26 15:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335140', 'tblTempUsageDetail_20' ) start [2025-01-26 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335140', 'tblTempUsageDetail_20' ) end [2025-01-26 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335140', 'tblTempVendorCDR_20' ) start [2025-01-26 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335140', 'tblTempVendorCDR_20' ) end [2025-01-26 15:07:18] Production.INFO: ProcessCDR(1,14335140,1,1,2) [2025-01-26 15:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335140', 'tblTempUsageDetail_20' ) start [2025-01-26 15:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335140', 'tblTempUsageDetail_20' ) end [2025-01-26 15:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:07:22] Production.INFO: ==25586== Releasing lock... [2025-01-26 15:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:07:22] Production.INFO: 41 MB #Memory Used# [2025-01-26 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:08:05 [end_date_ymd] => 2025-01-26 15:08:05 [RateCDR] => 1 ) [2025-01-26 15:08: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-01-26 12:08:05' and `end` < '2025-01-26 15:08: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-01-26 15:08:23] Production.INFO: count ==1738 [2025-01-26 15:08:23] Production.ERROR: pbx CDR StartTime 2025-01-26 12:08:05 - End Time 2025-01-26 15:08:05 [2025-01-26 15:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335145', 'tblTempUsageDetail_20' ) start [2025-01-26 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335145', 'tblTempUsageDetail_20' ) end [2025-01-26 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335145', 'tblTempVendorCDR_20' ) start [2025-01-26 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335145', 'tblTempVendorCDR_20' ) end [2025-01-26 15:08:23] Production.INFO: ProcessCDR(1,14335145,1,1,2) [2025-01-26 15:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335145', 'tblTempUsageDetail_20' ) start [2025-01-26 15:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335145', 'tblTempUsageDetail_20' ) end [2025-01-26 15:08:28] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:08:28] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:08:28] Production.INFO: ==25738== Releasing lock... [2025-01-26 15:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:08:28] Production.INFO: 41 MB #Memory Used# [2025-01-26 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:09:05 [end_date_ymd] => 2025-01-26 15:09:05 [RateCDR] => 1 ) [2025-01-26 15:09: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-01-26 12:09:05' and `end` < '2025-01-26 15:09: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-01-26 15:09:19] Production.INFO: count ==1726 [2025-01-26 15:09:20] Production.ERROR: pbx CDR StartTime 2025-01-26 12:09:05 - End Time 2025-01-26 15:09:05 [2025-01-26 15:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335150', 'tblTempUsageDetail_20' ) start [2025-01-26 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335150', 'tblTempUsageDetail_20' ) end [2025-01-26 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335150', 'tblTempVendorCDR_20' ) start [2025-01-26 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335150', 'tblTempVendorCDR_20' ) end [2025-01-26 15:09:20] Production.INFO: ProcessCDR(1,14335150,1,1,2) [2025-01-26 15:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335150', 'tblTempUsageDetail_20' ) start [2025-01-26 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335150', 'tblTempUsageDetail_20' ) end [2025-01-26 15:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:09:23] Production.INFO: ==25810== Releasing lock... [2025-01-26 15:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:09:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:10:06 [end_date_ymd] => 2025-01-26 15:10:06 [RateCDR] => 1 ) [2025-01-26 15:10: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-01-26 12:10:06' and `end` < '2025-01-26 15:10: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-01-26 15:10:18] Production.INFO: count ==1722 [2025-01-26 15:10:19] Production.ERROR: pbx CDR StartTime 2025-01-26 12:10:06 - End Time 2025-01-26 15:10:06 [2025-01-26 15:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335156', 'tblTempUsageDetail_20' ) start [2025-01-26 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335156', 'tblTempUsageDetail_20' ) end [2025-01-26 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335156', 'tblTempVendorCDR_20' ) start [2025-01-26 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335156', 'tblTempVendorCDR_20' ) end [2025-01-26 15:10:19] Production.INFO: ProcessCDR(1,14335156,1,1,2) [2025-01-26 15:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335156', 'tblTempUsageDetail_20' ) start [2025-01-26 15:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335156', 'tblTempUsageDetail_20' ) end [2025-01-26 15:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:10:23] Production.INFO: ==25893== Releasing lock... [2025-01-26 15:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:10:23] Production.INFO: 41 MB #Memory Used# [2025-01-26 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:11:05 [end_date_ymd] => 2025-01-26 15:11:05 [RateCDR] => 1 ) [2025-01-26 15:11: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-01-26 12:11:05' and `end` < '2025-01-26 15:11: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-01-26 15:11:18] Production.INFO: count ==1737 [2025-01-26 15:11:19] Production.ERROR: pbx CDR StartTime 2025-01-26 12:11:05 - End Time 2025-01-26 15:11:05 [2025-01-26 15:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335161', 'tblTempUsageDetail_20' ) start [2025-01-26 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335161', 'tblTempUsageDetail_20' ) end [2025-01-26 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335161', 'tblTempVendorCDR_20' ) start [2025-01-26 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335161', 'tblTempVendorCDR_20' ) end [2025-01-26 15:11:19] Production.INFO: ProcessCDR(1,14335161,1,1,2) [2025-01-26 15:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335161', 'tblTempUsageDetail_20' ) start [2025-01-26 15:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335161', 'tblTempUsageDetail_20' ) end [2025-01-26 15:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:11:22] Production.INFO: ==25982== Releasing lock... [2025-01-26 15:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:11:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:12:05 [end_date_ymd] => 2025-01-26 15:12:05 [RateCDR] => 1 ) [2025-01-26 15:12: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-01-26 12:12:05' and `end` < '2025-01-26 15:12: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-01-26 15:12:18] Production.INFO: count ==1733 [2025-01-26 15:12:19] Production.ERROR: pbx CDR StartTime 2025-01-26 12:12:05 - End Time 2025-01-26 15:12:05 [2025-01-26 15:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335166', 'tblTempUsageDetail_20' ) start [2025-01-26 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335166', 'tblTempUsageDetail_20' ) end [2025-01-26 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335166', 'tblTempVendorCDR_20' ) start [2025-01-26 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335166', 'tblTempVendorCDR_20' ) end [2025-01-26 15:12:19] Production.INFO: ProcessCDR(1,14335166,1,1,2) [2025-01-26 15:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335166', 'tblTempUsageDetail_20' ) start [2025-01-26 15:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335166', 'tblTempUsageDetail_20' ) end [2025-01-26 15:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:12:22] Production.INFO: ==26137== Releasing lock... [2025-01-26 15:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:12:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-26 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:13:05 [end_date_ymd] => 2025-01-26 15:13:05 [RateCDR] => 1 ) [2025-01-26 15:13: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-01-26 12:13:05' and `end` < '2025-01-26 15:13: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-01-26 15:13:18] Production.INFO: count ==1734 [2025-01-26 15:13:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:13:05 - End Time 2025-01-26 15:13:05 [2025-01-26 15:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335171', 'tblTempUsageDetail_20' ) start [2025-01-26 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335171', 'tblTempUsageDetail_20' ) end [2025-01-26 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335171', 'tblTempVendorCDR_20' ) start [2025-01-26 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335171', 'tblTempVendorCDR_20' ) end [2025-01-26 15:13:18] Production.INFO: ProcessCDR(1,14335171,1,1,2) [2025-01-26 15:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335171', 'tblTempUsageDetail_20' ) start [2025-01-26 15:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335171', 'tblTempUsageDetail_20' ) end [2025-01-26 15:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:13:23] Production.INFO: ==26212== Releasing lock... [2025-01-26 15:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:13:23] Production.INFO: 41 MB #Memory Used# [2025-01-26 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:14:05 [end_date_ymd] => 2025-01-26 15:14:05 [RateCDR] => 1 ) [2025-01-26 15:14: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-01-26 12:14:05' and `end` < '2025-01-26 15:14: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-01-26 15:14:18] Production.INFO: count ==1729 [2025-01-26 15:14:19] Production.ERROR: pbx CDR StartTime 2025-01-26 12:14:05 - End Time 2025-01-26 15:14:05 [2025-01-26 15:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335176', 'tblTempUsageDetail_20' ) start [2025-01-26 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335176', 'tblTempUsageDetail_20' ) end [2025-01-26 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335176', 'tblTempVendorCDR_20' ) start [2025-01-26 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335176', 'tblTempVendorCDR_20' ) end [2025-01-26 15:14:19] Production.INFO: ProcessCDR(1,14335176,1,1,2) [2025-01-26 15:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335176', 'tblTempUsageDetail_20' ) start [2025-01-26 15:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335176', 'tblTempUsageDetail_20' ) end [2025-01-26 15:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:14:22] Production.INFO: ==26285== Releasing lock... [2025-01-26 15:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:14:22] Production.INFO: 41 MB #Memory Used# [2025-01-26 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:15:05 [end_date_ymd] => 2025-01-26 15:15:05 [RateCDR] => 1 ) [2025-01-26 15:15: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-01-26 12:15:05' and `end` < '2025-01-26 15:15: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-01-26 15:15:18] Production.INFO: count ==1723 [2025-01-26 15:15:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:15:05 - End Time 2025-01-26 15:15:05 [2025-01-26 15:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335181', 'tblTempUsageDetail_20' ) start [2025-01-26 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335181', 'tblTempUsageDetail_20' ) end [2025-01-26 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335181', 'tblTempVendorCDR_20' ) start [2025-01-26 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335181', 'tblTempVendorCDR_20' ) end [2025-01-26 15:15:18] Production.INFO: ProcessCDR(1,14335181,1,1,2) [2025-01-26 15:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335181', 'tblTempUsageDetail_20' ) start [2025-01-26 15:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335181', 'tblTempUsageDetail_20' ) end [2025-01-26 15:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:15:21] Production.INFO: ==26477== Releasing lock... [2025-01-26 15:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:15:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:16:05 [end_date_ymd] => 2025-01-26 15:16:05 [RateCDR] => 1 ) [2025-01-26 15:16: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-01-26 12:16:05' and `end` < '2025-01-26 15:16: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-01-26 15:16:18] Production.INFO: count ==1718 [2025-01-26 15:16:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:16:05 - End Time 2025-01-26 15:16:05 [2025-01-26 15:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335186', 'tblTempUsageDetail_20' ) start [2025-01-26 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335186', 'tblTempUsageDetail_20' ) end [2025-01-26 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335186', 'tblTempVendorCDR_20' ) start [2025-01-26 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335186', 'tblTempVendorCDR_20' ) end [2025-01-26 15:16:18] Production.INFO: ProcessCDR(1,14335186,1,1,2) [2025-01-26 15:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335186', 'tblTempUsageDetail_20' ) start [2025-01-26 15:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335186', 'tblTempUsageDetail_20' ) end [2025-01-26 15:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:16:21] Production.INFO: ==26552== Releasing lock... [2025-01-26 15:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:16:21] Production.INFO: 41 MB #Memory Used# [2025-01-26 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:17:05 [end_date_ymd] => 2025-01-26 15:17:05 [RateCDR] => 1 ) [2025-01-26 15:17: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-01-26 12:17:05' and `end` < '2025-01-26 15:17: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-01-26 15:17:21] Production.INFO: count ==1710 [2025-01-26 15:17:21] Production.ERROR: pbx CDR StartTime 2025-01-26 12:17:05 - End Time 2025-01-26 15:17:05 [2025-01-26 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335191', 'tblTempUsageDetail_20' ) start [2025-01-26 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335191', 'tblTempUsageDetail_20' ) end [2025-01-26 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335191', 'tblTempVendorCDR_20' ) start [2025-01-26 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335191', 'tblTempVendorCDR_20' ) end [2025-01-26 15:17:21] Production.INFO: ProcessCDR(1,14335191,1,1,2) [2025-01-26 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335191', 'tblTempUsageDetail_20' ) start [2025-01-26 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335191', 'tblTempUsageDetail_20' ) end [2025-01-26 15:17:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:17:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:17:26] Production.INFO: ==26626== Releasing lock... [2025-01-26 15:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:17:26] Production.INFO: 41 MB #Memory Used# [2025-01-26 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:18:05 [end_date_ymd] => 2025-01-26 15:18:05 [RateCDR] => 1 ) [2025-01-26 15:18: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-01-26 12:18:05' and `end` < '2025-01-26 15:18: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-01-26 15:18:18] Production.INFO: count ==1708 [2025-01-26 15:18:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:18:05 - End Time 2025-01-26 15:18:05 [2025-01-26 15:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335196', 'tblTempUsageDetail_20' ) start [2025-01-26 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335196', 'tblTempUsageDetail_20' ) end [2025-01-26 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335196', 'tblTempVendorCDR_20' ) start [2025-01-26 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335196', 'tblTempVendorCDR_20' ) end [2025-01-26 15:18:18] Production.INFO: ProcessCDR(1,14335196,1,1,2) [2025-01-26 15:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335196', 'tblTempUsageDetail_20' ) start [2025-01-26 15:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335196', 'tblTempUsageDetail_20' ) end [2025-01-26 15:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:18:21] Production.INFO: ==26702== Releasing lock... [2025-01-26 15:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:18:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:19:05 [end_date_ymd] => 2025-01-26 15:19:05 [RateCDR] => 1 ) [2025-01-26 15:19: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-01-26 12:19:05' and `end` < '2025-01-26 15:19: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-01-26 15:19:17] Production.INFO: count ==1703 [2025-01-26 15:19:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:19:05 - End Time 2025-01-26 15:19:05 [2025-01-26 15:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335201', 'tblTempUsageDetail_20' ) start [2025-01-26 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335201', 'tblTempUsageDetail_20' ) end [2025-01-26 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335201', 'tblTempVendorCDR_20' ) start [2025-01-26 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335201', 'tblTempVendorCDR_20' ) end [2025-01-26 15:19:18] Production.INFO: ProcessCDR(1,14335201,1,1,2) [2025-01-26 15:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335201', 'tblTempUsageDetail_20' ) start [2025-01-26 15:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335201', 'tblTempUsageDetail_20' ) end [2025-01-26 15:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:19:21] Production.INFO: ==26781== Releasing lock... [2025-01-26 15:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:19:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:20:06 [end_date_ymd] => 2025-01-26 15:20:06 [RateCDR] => 1 ) [2025-01-26 15:20: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-01-26 12:20:06' and `end` < '2025-01-26 15:20: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-01-26 15:20:19] Production.INFO: count ==1690 [2025-01-26 15:20:19] Production.ERROR: pbx CDR StartTime 2025-01-26 12:20:06 - End Time 2025-01-26 15:20:06 [2025-01-26 15:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335206', 'tblTempUsageDetail_20' ) start [2025-01-26 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335206', 'tblTempUsageDetail_20' ) end [2025-01-26 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335206', 'tblTempVendorCDR_20' ) start [2025-01-26 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335206', 'tblTempVendorCDR_20' ) end [2025-01-26 15:20:19] Production.INFO: ProcessCDR(1,14335206,1,1,2) [2025-01-26 15:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335206', 'tblTempUsageDetail_20' ) start [2025-01-26 15:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335206', 'tblTempUsageDetail_20' ) end [2025-01-26 15:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:20:22] Production.INFO: ==26858== Releasing lock... [2025-01-26 15:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:20:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:21:05 [end_date_ymd] => 2025-01-26 15:21:05 [RateCDR] => 1 ) [2025-01-26 15:21: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-01-26 12:21:05' and `end` < '2025-01-26 15:21: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-01-26 15:21:17] Production.INFO: count ==1667 [2025-01-26 15:21:17] Production.ERROR: pbx CDR StartTime 2025-01-26 12:21:05 - End Time 2025-01-26 15:21:05 [2025-01-26 15:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335212', 'tblTempUsageDetail_20' ) start [2025-01-26 15:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335212', 'tblTempUsageDetail_20' ) end [2025-01-26 15:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335212', 'tblTempVendorCDR_20' ) start [2025-01-26 15:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335212', 'tblTempVendorCDR_20' ) end [2025-01-26 15:21:17] Production.INFO: ProcessCDR(1,14335212,1,1,2) [2025-01-26 15:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335212', 'tblTempUsageDetail_20' ) start [2025-01-26 15:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335212', 'tblTempUsageDetail_20' ) end [2025-01-26 15:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:21:21] Production.INFO: ==26931== Releasing lock... [2025-01-26 15:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:21:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:22:05 [end_date_ymd] => 2025-01-26 15:22:05 [RateCDR] => 1 ) [2025-01-26 15:22: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-01-26 12:22:05' and `end` < '2025-01-26 15:22: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-01-26 15:22:19] Production.INFO: count ==1661 [2025-01-26 15:22:19] Production.ERROR: pbx CDR StartTime 2025-01-26 12:22:05 - End Time 2025-01-26 15:22:05 [2025-01-26 15:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335217', 'tblTempUsageDetail_20' ) start [2025-01-26 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335217', 'tblTempUsageDetail_20' ) end [2025-01-26 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335217', 'tblTempVendorCDR_20' ) start [2025-01-26 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335217', 'tblTempVendorCDR_20' ) end [2025-01-26 15:22:19] Production.INFO: ProcessCDR(1,14335217,1,1,2) [2025-01-26 15:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335217', 'tblTempUsageDetail_20' ) start [2025-01-26 15:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335217', 'tblTempUsageDetail_20' ) end [2025-01-26 15:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:22:22] Production.INFO: ==27003== Releasing lock... [2025-01-26 15:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:22:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 15:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:23:04 [end_date_ymd] => 2025-01-26 15:23:04 [RateCDR] => 1 ) [2025-01-26 15:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 12:23:04' and `end` < '2025-01-26 15:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 15:23:18] Production.INFO: count ==1659 [2025-01-26 15:23:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:23:04 - End Time 2025-01-26 15:23:04 [2025-01-26 15:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335222', 'tblTempUsageDetail_20' ) start [2025-01-26 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335222', 'tblTempUsageDetail_20' ) end [2025-01-26 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335222', 'tblTempVendorCDR_20' ) start [2025-01-26 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335222', 'tblTempVendorCDR_20' ) end [2025-01-26 15:23:18] Production.INFO: ProcessCDR(1,14335222,1,1,2) [2025-01-26 15:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335222', 'tblTempUsageDetail_20' ) start [2025-01-26 15:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335222', 'tblTempUsageDetail_20' ) end [2025-01-26 15:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:23:21] Production.INFO: ==27079== Releasing lock... [2025-01-26 15:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:23:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:24:06 [end_date_ymd] => 2025-01-26 15:24:06 [RateCDR] => 1 ) [2025-01-26 15:24: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-01-26 12:24:06' and `end` < '2025-01-26 15:24: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-01-26 15:24:19] Production.INFO: count ==1653 [2025-01-26 15:24:19] Production.ERROR: pbx CDR StartTime 2025-01-26 12:24:06 - End Time 2025-01-26 15:24:06 [2025-01-26 15:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335227', 'tblTempUsageDetail_20' ) start [2025-01-26 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335227', 'tblTempUsageDetail_20' ) end [2025-01-26 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335227', 'tblTempVendorCDR_20' ) start [2025-01-26 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335227', 'tblTempVendorCDR_20' ) end [2025-01-26 15:24:19] Production.INFO: ProcessCDR(1,14335227,1,1,2) [2025-01-26 15:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335227', 'tblTempUsageDetail_20' ) start [2025-01-26 15:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335227', 'tblTempUsageDetail_20' ) end [2025-01-26 15:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:24:22] Production.INFO: ==27154== Releasing lock... [2025-01-26 15:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:24:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:25:05 [end_date_ymd] => 2025-01-26 15:25:05 [RateCDR] => 1 ) [2025-01-26 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 12:25:05' and `end` < '2025-01-26 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 15:25:17] Production.INFO: count ==1656 [2025-01-26 15:25:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:25:05 - End Time 2025-01-26 15:25:05 [2025-01-26 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335232', 'tblTempUsageDetail_20' ) start [2025-01-26 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335232', 'tblTempUsageDetail_20' ) end [2025-01-26 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335232', 'tblTempVendorCDR_20' ) start [2025-01-26 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335232', 'tblTempVendorCDR_20' ) end [2025-01-26 15:25:18] Production.INFO: ProcessCDR(1,14335232,1,1,2) [2025-01-26 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335232', 'tblTempUsageDetail_20' ) start [2025-01-26 15:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335232', 'tblTempUsageDetail_20' ) end [2025-01-26 15:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:25:21] Production.INFO: ==27235== Releasing lock... [2025-01-26 15:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:25:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:26:05 [end_date_ymd] => 2025-01-26 15:26:05 [RateCDR] => 1 ) [2025-01-26 15:26: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-01-26 12:26:05' and `end` < '2025-01-26 15:26: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-01-26 15:26:18] Production.INFO: count ==1652 [2025-01-26 15:26:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:26:05 - End Time 2025-01-26 15:26:05 [2025-01-26 15:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335237', 'tblTempUsageDetail_20' ) start [2025-01-26 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335237', 'tblTempUsageDetail_20' ) end [2025-01-26 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335237', 'tblTempVendorCDR_20' ) start [2025-01-26 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335237', 'tblTempVendorCDR_20' ) end [2025-01-26 15:26:18] Production.INFO: ProcessCDR(1,14335237,1,1,2) [2025-01-26 15:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335237', 'tblTempUsageDetail_20' ) start [2025-01-26 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335237', 'tblTempUsageDetail_20' ) end [2025-01-26 15:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:26:23] Production.INFO: ==27311== Releasing lock... [2025-01-26 15:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:26:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:27:06 [end_date_ymd] => 2025-01-26 15:27:06 [RateCDR] => 1 ) [2025-01-26 15:27: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-01-26 12:27:06' and `end` < '2025-01-26 15:27: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-01-26 15:27:18] Production.INFO: count ==1655 [2025-01-26 15:27:19] Production.ERROR: pbx CDR StartTime 2025-01-26 12:27:06 - End Time 2025-01-26 15:27:06 [2025-01-26 15:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335242', 'tblTempUsageDetail_20' ) start [2025-01-26 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335242', 'tblTempUsageDetail_20' ) end [2025-01-26 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335242', 'tblTempVendorCDR_20' ) start [2025-01-26 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335242', 'tblTempVendorCDR_20' ) end [2025-01-26 15:27:19] Production.INFO: ProcessCDR(1,14335242,1,1,2) [2025-01-26 15:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335242', 'tblTempUsageDetail_20' ) start [2025-01-26 15:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335242', 'tblTempUsageDetail_20' ) end [2025-01-26 15:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:27:22] Production.INFO: ==27384== Releasing lock... [2025-01-26 15:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:27:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:28:05 [end_date_ymd] => 2025-01-26 15:28:05 [RateCDR] => 1 ) [2025-01-26 15:28: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-01-26 12:28:05' and `end` < '2025-01-26 15:28: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-01-26 15:28:20] Production.INFO: count ==1656 [2025-01-26 15:28:21] Production.ERROR: pbx CDR StartTime 2025-01-26 12:28:05 - End Time 2025-01-26 15:28:05 [2025-01-26 15:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335247', 'tblTempUsageDetail_20' ) start [2025-01-26 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335247', 'tblTempUsageDetail_20' ) end [2025-01-26 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335247', 'tblTempVendorCDR_20' ) start [2025-01-26 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335247', 'tblTempVendorCDR_20' ) end [2025-01-26 15:28:21] Production.INFO: ProcessCDR(1,14335247,1,1,2) [2025-01-26 15:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335247', 'tblTempUsageDetail_20' ) start [2025-01-26 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335247', 'tblTempUsageDetail_20' ) end [2025-01-26 15:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:28:24] Production.INFO: ==27459== Releasing lock... [2025-01-26 15:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:28:24] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:29:05 [end_date_ymd] => 2025-01-26 15:29:05 [RateCDR] => 1 ) [2025-01-26 15:29: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-01-26 12:29:05' and `end` < '2025-01-26 15:29: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-01-26 15:29:18] Production.INFO: count ==1654 [2025-01-26 15:29:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:29:05 - End Time 2025-01-26 15:29:05 [2025-01-26 15:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335252', 'tblTempUsageDetail_20' ) start [2025-01-26 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335252', 'tblTempUsageDetail_20' ) end [2025-01-26 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335252', 'tblTempVendorCDR_20' ) start [2025-01-26 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335252', 'tblTempVendorCDR_20' ) end [2025-01-26 15:29:18] Production.INFO: ProcessCDR(1,14335252,1,1,2) [2025-01-26 15:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335252', 'tblTempUsageDetail_20' ) start [2025-01-26 15:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335252', 'tblTempUsageDetail_20' ) end [2025-01-26 15:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:29:21] Production.INFO: ==27534== Releasing lock... [2025-01-26 15:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:29:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:30:05 [end_date_ymd] => 2025-01-26 15:30:05 [RateCDR] => 1 ) [2025-01-26 15:30: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-01-26 12:30:05' and `end` < '2025-01-26 15:30: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-01-26 15:30:18] Production.INFO: count ==1654 [2025-01-26 15:30:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:30:05 - End Time 2025-01-26 15:30:05 [2025-01-26 15:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335258', 'tblTempUsageDetail_20' ) start [2025-01-26 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335258', 'tblTempUsageDetail_20' ) end [2025-01-26 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335258', 'tblTempVendorCDR_20' ) start [2025-01-26 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335258', 'tblTempVendorCDR_20' ) end [2025-01-26 15:30:18] Production.INFO: ProcessCDR(1,14335258,1,1,2) [2025-01-26 15:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335258', 'tblTempUsageDetail_20' ) start [2025-01-26 15:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335258', 'tblTempUsageDetail_20' ) end [2025-01-26 15:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:30:21] Production.INFO: ==27615== Releasing lock... [2025-01-26 15:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:30:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:31:05 [end_date_ymd] => 2025-01-26 15:31:05 [RateCDR] => 1 ) [2025-01-26 15:31: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-01-26 12:31:05' and `end` < '2025-01-26 15:31: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-01-26 15:31:19] Production.INFO: count ==1646 [2025-01-26 15:31:19] Production.ERROR: pbx CDR StartTime 2025-01-26 12:31:05 - End Time 2025-01-26 15:31:05 [2025-01-26 15:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335263', 'tblTempUsageDetail_20' ) start [2025-01-26 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335263', 'tblTempUsageDetail_20' ) end [2025-01-26 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335263', 'tblTempVendorCDR_20' ) start [2025-01-26 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335263', 'tblTempVendorCDR_20' ) end [2025-01-26 15:31:19] Production.INFO: ProcessCDR(1,14335263,1,1,2) [2025-01-26 15:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335263', 'tblTempUsageDetail_20' ) start [2025-01-26 15:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335263', 'tblTempUsageDetail_20' ) end [2025-01-26 15:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:31:22] Production.INFO: ==27729== Releasing lock... [2025-01-26 15:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:31:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 15:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:32:04 [end_date_ymd] => 2025-01-26 15:32:04 [RateCDR] => 1 ) [2025-01-26 15:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 12:32:04' and `end` < '2025-01-26 15:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 15:32:17] Production.INFO: count ==1644 [2025-01-26 15:32:17] Production.ERROR: pbx CDR StartTime 2025-01-26 12:32:04 - End Time 2025-01-26 15:32:04 [2025-01-26 15:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335268', 'tblTempUsageDetail_20' ) start [2025-01-26 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335268', 'tblTempUsageDetail_20' ) end [2025-01-26 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335268', 'tblTempVendorCDR_20' ) start [2025-01-26 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335268', 'tblTempVendorCDR_20' ) end [2025-01-26 15:32:17] Production.INFO: ProcessCDR(1,14335268,1,1,2) [2025-01-26 15:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335268', 'tblTempUsageDetail_20' ) start [2025-01-26 15:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335268', 'tblTempUsageDetail_20' ) end [2025-01-26 15:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:32:21] Production.INFO: ==27803== Releasing lock... [2025-01-26 15:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:32:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 15:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:33:06 [end_date_ymd] => 2025-01-26 15:33:06 [RateCDR] => 1 ) [2025-01-26 15:33: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-01-26 12:33:06' and `end` < '2025-01-26 15:33: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-01-26 15:33:20] Production.INFO: count ==1640 [2025-01-26 15:33:20] Production.ERROR: pbx CDR StartTime 2025-01-26 12:33:06 - End Time 2025-01-26 15:33:06 [2025-01-26 15:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335273', 'tblTempUsageDetail_20' ) start [2025-01-26 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335273', 'tblTempUsageDetail_20' ) end [2025-01-26 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335273', 'tblTempVendorCDR_20' ) start [2025-01-26 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335273', 'tblTempVendorCDR_20' ) end [2025-01-26 15:33:20] Production.INFO: ProcessCDR(1,14335273,1,1,2) [2025-01-26 15:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335273', 'tblTempUsageDetail_20' ) start [2025-01-26 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335273', 'tblTempUsageDetail_20' ) end [2025-01-26 15:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:33:23] Production.INFO: ==27879== Releasing lock... [2025-01-26 15:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:33:23] Production.INFO: 40 MB #Memory Used# [2025-01-26 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:34:06 [end_date_ymd] => 2025-01-26 15:34:06 [RateCDR] => 1 ) [2025-01-26 15:34: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-01-26 12:34:06' and `end` < '2025-01-26 15:34: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-01-26 15:34:18] Production.INFO: count ==1637 [2025-01-26 15:34:19] Production.ERROR: pbx CDR StartTime 2025-01-26 12:34:06 - End Time 2025-01-26 15:34:06 [2025-01-26 15:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335278', 'tblTempUsageDetail_20' ) start [2025-01-26 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335278', 'tblTempUsageDetail_20' ) end [2025-01-26 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335278', 'tblTempVendorCDR_20' ) start [2025-01-26 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335278', 'tblTempVendorCDR_20' ) end [2025-01-26 15:34:19] Production.INFO: ProcessCDR(1,14335278,1,1,2) [2025-01-26 15:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335278', 'tblTempUsageDetail_20' ) start [2025-01-26 15:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335278', 'tblTempUsageDetail_20' ) end [2025-01-26 15:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:34:22] Production.INFO: ==27957== Releasing lock... [2025-01-26 15:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:34:22] Production.INFO: 40 MB #Memory Used# [2025-01-26 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:35:05 [end_date_ymd] => 2025-01-26 15:35:05 [RateCDR] => 1 ) [2025-01-26 15:35: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-01-26 12:35:05' and `end` < '2025-01-26 15:35: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-01-26 15:35:18] Production.INFO: count ==1636 [2025-01-26 15:35:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:35:05 - End Time 2025-01-26 15:35:05 [2025-01-26 15:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335283', 'tblTempUsageDetail_20' ) start [2025-01-26 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335283', 'tblTempUsageDetail_20' ) end [2025-01-26 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335283', 'tblTempVendorCDR_20' ) start [2025-01-26 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335283', 'tblTempVendorCDR_20' ) end [2025-01-26 15:35:18] Production.INFO: ProcessCDR(1,14335283,1,1,2) [2025-01-26 15:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335283', 'tblTempUsageDetail_20' ) start [2025-01-26 15:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335283', 'tblTempUsageDetail_20' ) end [2025-01-26 15:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:35:21] Production.INFO: ==28030== Releasing lock... [2025-01-26 15:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:35:21] Production.INFO: 40 MB #Memory Used# [2025-01-26 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:36:05 [end_date_ymd] => 2025-01-26 15:36:05 [RateCDR] => 1 ) [2025-01-26 15:36: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-01-26 12:36:05' and `end` < '2025-01-26 15:36: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-01-26 15:36:19] Production.INFO: count ==1631 [2025-01-26 15:36:19] Production.ERROR: pbx CDR StartTime 2025-01-26 12:36:05 - End Time 2025-01-26 15:36:05 [2025-01-26 15:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335288', 'tblTempUsageDetail_20' ) start [2025-01-26 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335288', 'tblTempUsageDetail_20' ) end [2025-01-26 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335288', 'tblTempVendorCDR_20' ) start [2025-01-26 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335288', 'tblTempVendorCDR_20' ) end [2025-01-26 15:36:19] Production.INFO: ProcessCDR(1,14335288,1,1,2) [2025-01-26 15:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335288', 'tblTempUsageDetail_20' ) start [2025-01-26 15:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335288', 'tblTempUsageDetail_20' ) end [2025-01-26 15:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:36:22] Production.INFO: ==28101== Releasing lock... [2025-01-26 15:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:36:22] Production.INFO: 40 MB #Memory Used# [2025-01-26 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:37:05 [end_date_ymd] => 2025-01-26 15:37:05 [RateCDR] => 1 ) [2025-01-26 15:37: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-01-26 12:37:05' and `end` < '2025-01-26 15:37: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-01-26 15:37:19] Production.INFO: count ==1634 [2025-01-26 15:37:19] Production.ERROR: pbx CDR StartTime 2025-01-26 12:37:05 - End Time 2025-01-26 15:37:05 [2025-01-26 15:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335293', 'tblTempUsageDetail_20' ) start [2025-01-26 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335293', 'tblTempUsageDetail_20' ) end [2025-01-26 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335293', 'tblTempVendorCDR_20' ) start [2025-01-26 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335293', 'tblTempVendorCDR_20' ) end [2025-01-26 15:37:19] Production.INFO: ProcessCDR(1,14335293,1,1,2) [2025-01-26 15:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335293', 'tblTempUsageDetail_20' ) start [2025-01-26 15:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335293', 'tblTempUsageDetail_20' ) end [2025-01-26 15:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:37:22] Production.INFO: ==28174== Releasing lock... [2025-01-26 15:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:37:22] Production.INFO: 40 MB #Memory Used# [2025-01-26 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:38:05 [end_date_ymd] => 2025-01-26 15:38:05 [RateCDR] => 1 ) [2025-01-26 15:38: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-01-26 12:38:05' and `end` < '2025-01-26 15:38: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-01-26 15:38:18] Production.INFO: count ==1636 [2025-01-26 15:38:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:38:05 - End Time 2025-01-26 15:38:05 [2025-01-26 15:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335298', 'tblTempUsageDetail_20' ) start [2025-01-26 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335298', 'tblTempUsageDetail_20' ) end [2025-01-26 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335298', 'tblTempVendorCDR_20' ) start [2025-01-26 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335298', 'tblTempVendorCDR_20' ) end [2025-01-26 15:38:18] Production.INFO: ProcessCDR(1,14335298,1,1,2) [2025-01-26 15:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335298', 'tblTempUsageDetail_20' ) start [2025-01-26 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335298', 'tblTempUsageDetail_20' ) end [2025-01-26 15:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:38:22] Production.INFO: ==28247== Releasing lock... [2025-01-26 15:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:38:22] Production.INFO: 40 MB #Memory Used# [2025-01-26 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:39:05 [end_date_ymd] => 2025-01-26 15:39:05 [RateCDR] => 1 ) [2025-01-26 15:39: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-01-26 12:39:05' and `end` < '2025-01-26 15:39: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-01-26 15:39:18] Production.INFO: count ==1635 [2025-01-26 15:39:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:39:05 - End Time 2025-01-26 15:39:05 [2025-01-26 15:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335303', 'tblTempUsageDetail_20' ) start [2025-01-26 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335303', 'tblTempUsageDetail_20' ) end [2025-01-26 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335303', 'tblTempVendorCDR_20' ) start [2025-01-26 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335303', 'tblTempVendorCDR_20' ) end [2025-01-26 15:39:18] Production.INFO: ProcessCDR(1,14335303,1,1,2) [2025-01-26 15:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335303', 'tblTempUsageDetail_20' ) start [2025-01-26 15:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335303', 'tblTempUsageDetail_20' ) end [2025-01-26 15:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:39:23] Production.INFO: ==28329== Releasing lock... [2025-01-26 15:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:39:23] Production.INFO: 40 MB #Memory Used# [2025-01-26 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:40:06 [end_date_ymd] => 2025-01-26 15:40:06 [RateCDR] => 1 ) [2025-01-26 15:40: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-01-26 12:40:06' and `end` < '2025-01-26 15:40: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-01-26 15:40:18] Production.INFO: count ==1639 [2025-01-26 15:40:19] Production.ERROR: pbx CDR StartTime 2025-01-26 12:40:06 - End Time 2025-01-26 15:40:06 [2025-01-26 15:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335309', 'tblTempUsageDetail_20' ) start [2025-01-26 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335309', 'tblTempUsageDetail_20' ) end [2025-01-26 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335309', 'tblTempVendorCDR_20' ) start [2025-01-26 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335309', 'tblTempVendorCDR_20' ) end [2025-01-26 15:40:19] Production.INFO: ProcessCDR(1,14335309,1,1,2) [2025-01-26 15:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335309', 'tblTempUsageDetail_20' ) start [2025-01-26 15:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335309', 'tblTempUsageDetail_20' ) end [2025-01-26 15:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:40:23] Production.INFO: ==28409== Releasing lock... [2025-01-26 15:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:40:23] Production.INFO: 40 MB #Memory Used# [2025-01-26 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:41:05 [end_date_ymd] => 2025-01-26 15:41:05 [RateCDR] => 1 ) [2025-01-26 15:41: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-01-26 12:41:05' and `end` < '2025-01-26 15:41: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-01-26 15:41:17] Production.INFO: count ==1627 [2025-01-26 15:41:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:41:05 - End Time 2025-01-26 15:41:05 [2025-01-26 15:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335314', 'tblTempUsageDetail_20' ) start [2025-01-26 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335314', 'tblTempUsageDetail_20' ) end [2025-01-26 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335314', 'tblTempVendorCDR_20' ) start [2025-01-26 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335314', 'tblTempVendorCDR_20' ) end [2025-01-26 15:41:18] Production.INFO: ProcessCDR(1,14335314,1,1,2) [2025-01-26 15:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335314', 'tblTempUsageDetail_20' ) start [2025-01-26 15:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335314', 'tblTempUsageDetail_20' ) end [2025-01-26 15:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:41:21] Production.INFO: ==28485== Releasing lock... [2025-01-26 15:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:41:21] Production.INFO: 40 MB #Memory Used# [2025-01-26 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:42:05 [end_date_ymd] => 2025-01-26 15:42:05 [RateCDR] => 1 ) [2025-01-26 15:42: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-01-26 12:42:05' and `end` < '2025-01-26 15:42: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-01-26 15:42:19] Production.INFO: count ==1621 [2025-01-26 15:42:20] Production.ERROR: pbx CDR StartTime 2025-01-26 12:42:05 - End Time 2025-01-26 15:42:05 [2025-01-26 15:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335319', 'tblTempUsageDetail_20' ) start [2025-01-26 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335319', 'tblTempUsageDetail_20' ) end [2025-01-26 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335319', 'tblTempVendorCDR_20' ) start [2025-01-26 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335319', 'tblTempVendorCDR_20' ) end [2025-01-26 15:42:20] Production.INFO: ProcessCDR(1,14335319,1,1,2) [2025-01-26 15:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335319', 'tblTempUsageDetail_20' ) start [2025-01-26 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335319', 'tblTempUsageDetail_20' ) end [2025-01-26 15:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:42:23] Production.INFO: ==28561== Releasing lock... [2025-01-26 15:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:42:23] Production.INFO: 40 MB #Memory Used# [2025-01-26 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:43:05 [end_date_ymd] => 2025-01-26 15:43:05 [RateCDR] => 1 ) [2025-01-26 15:43: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-01-26 12:43:05' and `end` < '2025-01-26 15:43: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-01-26 15:43:17] Production.INFO: count ==1620 [2025-01-26 15:43:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:43:05 - End Time 2025-01-26 15:43:05 [2025-01-26 15:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335324', 'tblTempUsageDetail_20' ) start [2025-01-26 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335324', 'tblTempUsageDetail_20' ) end [2025-01-26 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335324', 'tblTempVendorCDR_20' ) start [2025-01-26 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335324', 'tblTempVendorCDR_20' ) end [2025-01-26 15:43:18] Production.INFO: ProcessCDR(1,14335324,1,1,2) [2025-01-26 15:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335324', 'tblTempUsageDetail_20' ) start [2025-01-26 15:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335324', 'tblTempUsageDetail_20' ) end [2025-01-26 15:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:43:21] Production.INFO: ==28632== Releasing lock... [2025-01-26 15:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:43:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-26 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:44:05 [end_date_ymd] => 2025-01-26 15:44:05 [RateCDR] => 1 ) [2025-01-26 15:44: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-01-26 12:44:05' and `end` < '2025-01-26 15:44: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-01-26 15:44:18] Production.INFO: count ==1633 [2025-01-26 15:44:19] Production.ERROR: pbx CDR StartTime 2025-01-26 12:44:05 - End Time 2025-01-26 15:44:05 [2025-01-26 15:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335329', 'tblTempUsageDetail_20' ) start [2025-01-26 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335329', 'tblTempUsageDetail_20' ) end [2025-01-26 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335329', 'tblTempVendorCDR_20' ) start [2025-01-26 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335329', 'tblTempVendorCDR_20' ) end [2025-01-26 15:44:19] Production.INFO: ProcessCDR(1,14335329,1,1,2) [2025-01-26 15:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335329', 'tblTempUsageDetail_20' ) start [2025-01-26 15:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335329', 'tblTempUsageDetail_20' ) end [2025-01-26 15:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:44:22] Production.INFO: ==28705== Releasing lock... [2025-01-26 15:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:44:22] Production.INFO: 40 MB #Memory Used# [2025-01-26 15:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:45:04 [end_date_ymd] => 2025-01-26 15:45:04 [RateCDR] => 1 ) [2025-01-26 15:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 12:45:04' and `end` < '2025-01-26 15:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 15:45:17] Production.INFO: count ==1630 [2025-01-26 15:45:17] Production.ERROR: pbx CDR StartTime 2025-01-26 12:45:04 - End Time 2025-01-26 15:45:04 [2025-01-26 15:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335332', 'tblTempUsageDetail_20' ) start [2025-01-26 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335332', 'tblTempUsageDetail_20' ) end [2025-01-26 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335332', 'tblTempVendorCDR_20' ) start [2025-01-26 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335332', 'tblTempVendorCDR_20' ) end [2025-01-26 15:45:17] Production.INFO: ProcessCDR(1,14335332,1,1,2) [2025-01-26 15:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335332', 'tblTempUsageDetail_20' ) start [2025-01-26 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335332', 'tblTempUsageDetail_20' ) end [2025-01-26 15:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:45:22] Production.INFO: ==28786== Releasing lock... [2025-01-26 15:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:45:22] Production.INFO: 40 MB #Memory Used# [2025-01-26 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:46:05 [end_date_ymd] => 2025-01-26 15:46:05 [RateCDR] => 1 ) [2025-01-26 15:46: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-01-26 12:46:05' and `end` < '2025-01-26 15:46: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-01-26 15:46:18] Production.INFO: count ==1634 [2025-01-26 15:46:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:46:05 - End Time 2025-01-26 15:46:05 [2025-01-26 15:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335339', 'tblTempUsageDetail_20' ) start [2025-01-26 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335339', 'tblTempUsageDetail_20' ) end [2025-01-26 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335339', 'tblTempVendorCDR_20' ) start [2025-01-26 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335339', 'tblTempVendorCDR_20' ) end [2025-01-26 15:46:19] Production.INFO: ProcessCDR(1,14335339,1,1,2) [2025-01-26 15:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335339', 'tblTempUsageDetail_20' ) start [2025-01-26 15:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335339', 'tblTempUsageDetail_20' ) end [2025-01-26 15:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:46:23] Production.INFO: ==28897== Releasing lock... [2025-01-26 15:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:46:23] Production.INFO: 40 MB #Memory Used# [2025-01-26 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:47:05 [end_date_ymd] => 2025-01-26 15:47:05 [RateCDR] => 1 ) [2025-01-26 15:47: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-01-26 12:47:05' and `end` < '2025-01-26 15:47: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-01-26 15:47:18] Production.INFO: count ==1636 [2025-01-26 15:47:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:47:05 - End Time 2025-01-26 15:47:05 [2025-01-26 15:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335344', 'tblTempUsageDetail_20' ) start [2025-01-26 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335344', 'tblTempUsageDetail_20' ) end [2025-01-26 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335344', 'tblTempVendorCDR_20' ) start [2025-01-26 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335344', 'tblTempVendorCDR_20' ) end [2025-01-26 15:47:18] Production.INFO: ProcessCDR(1,14335344,1,1,2) [2025-01-26 15:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335344', 'tblTempUsageDetail_20' ) start [2025-01-26 15:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335344', 'tblTempUsageDetail_20' ) end [2025-01-26 15:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:47:23] Production.INFO: ==28968== Releasing lock... [2025-01-26 15:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:47:23] Production.INFO: 40 MB #Memory Used# [2025-01-26 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:48:05 [end_date_ymd] => 2025-01-26 15:48:05 [RateCDR] => 1 ) [2025-01-26 15:48: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-01-26 12:48:05' and `end` < '2025-01-26 15:48: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-01-26 15:48:18] Production.INFO: count ==1649 [2025-01-26 15:48:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:48:05 - End Time 2025-01-26 15:48:05 [2025-01-26 15:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335349', 'tblTempUsageDetail_20' ) start [2025-01-26 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335349', 'tblTempUsageDetail_20' ) end [2025-01-26 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335349', 'tblTempVendorCDR_20' ) start [2025-01-26 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335349', 'tblTempVendorCDR_20' ) end [2025-01-26 15:48:18] Production.INFO: ProcessCDR(1,14335349,1,1,2) [2025-01-26 15:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335349', 'tblTempUsageDetail_20' ) start [2025-01-26 15:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335349', 'tblTempUsageDetail_20' ) end [2025-01-26 15:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:48:23] Production.INFO: ==29044== Releasing lock... [2025-01-26 15:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:48:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:49:05 [end_date_ymd] => 2025-01-26 15:49:05 [RateCDR] => 1 ) [2025-01-26 15:49: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-01-26 12:49:05' and `end` < '2025-01-26 15:49: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-01-26 15:49:18] Production.INFO: count ==1645 [2025-01-26 15:49:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:49:05 - End Time 2025-01-26 15:49:05 [2025-01-26 15:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335354', 'tblTempUsageDetail_20' ) start [2025-01-26 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335354', 'tblTempUsageDetail_20' ) end [2025-01-26 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335354', 'tblTempVendorCDR_20' ) start [2025-01-26 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335354', 'tblTempVendorCDR_20' ) end [2025-01-26 15:49:18] Production.INFO: ProcessCDR(1,14335354,1,1,2) [2025-01-26 15:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335354', 'tblTempUsageDetail_20' ) start [2025-01-26 15:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335354', 'tblTempUsageDetail_20' ) end [2025-01-26 15:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:49:21] Production.INFO: ==29122== Releasing lock... [2025-01-26 15:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:49:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:50:05 [end_date_ymd] => 2025-01-26 15:50:05 [RateCDR] => 1 ) [2025-01-26 15:50: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-01-26 12:50:05' and `end` < '2025-01-26 15:50: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-01-26 15:50:18] Production.INFO: count ==1639 [2025-01-26 15:50:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:50:05 - End Time 2025-01-26 15:50:05 [2025-01-26 15:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335360', 'tblTempUsageDetail_20' ) start [2025-01-26 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335360', 'tblTempUsageDetail_20' ) end [2025-01-26 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335360', 'tblTempVendorCDR_20' ) start [2025-01-26 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335360', 'tblTempVendorCDR_20' ) end [2025-01-26 15:50:18] Production.INFO: ProcessCDR(1,14335360,1,1,2) [2025-01-26 15:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335360', 'tblTempUsageDetail_20' ) start [2025-01-26 15:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335360', 'tblTempUsageDetail_20' ) end [2025-01-26 15:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:50:22] Production.INFO: ==29196== Releasing lock... [2025-01-26 15:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:50:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:51:05 [end_date_ymd] => 2025-01-26 15:51:05 [RateCDR] => 1 ) [2025-01-26 15:51: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-01-26 12:51:05' and `end` < '2025-01-26 15:51: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-01-26 15:51:20] Production.INFO: count ==1647 [2025-01-26 15:51:20] Production.ERROR: pbx CDR StartTime 2025-01-26 12:51:05 - End Time 2025-01-26 15:51:05 [2025-01-26 15:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335365', 'tblTempUsageDetail_20' ) start [2025-01-26 15:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335365', 'tblTempUsageDetail_20' ) end [2025-01-26 15:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335365', 'tblTempVendorCDR_20' ) start [2025-01-26 15:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335365', 'tblTempVendorCDR_20' ) end [2025-01-26 15:51:20] Production.INFO: ProcessCDR(1,14335365,1,1,2) [2025-01-26 15:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335365', 'tblTempUsageDetail_20' ) start [2025-01-26 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335365', 'tblTempUsageDetail_20' ) end [2025-01-26 15:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:51:23] Production.INFO: ==29271== Releasing lock... [2025-01-26 15:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:51:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:52:05 [end_date_ymd] => 2025-01-26 15:52:05 [RateCDR] => 1 ) [2025-01-26 15:52: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-01-26 12:52:05' and `end` < '2025-01-26 15:52: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-01-26 15:52:20] Production.INFO: count ==1651 [2025-01-26 15:52:20] Production.ERROR: pbx CDR StartTime 2025-01-26 12:52:05 - End Time 2025-01-26 15:52:05 [2025-01-26 15:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335370', 'tblTempUsageDetail_20' ) start [2025-01-26 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335370', 'tblTempUsageDetail_20' ) end [2025-01-26 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335370', 'tblTempVendorCDR_20' ) start [2025-01-26 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335370', 'tblTempVendorCDR_20' ) end [2025-01-26 15:52:20] Production.INFO: ProcessCDR(1,14335370,1,1,2) [2025-01-26 15:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335370', 'tblTempUsageDetail_20' ) start [2025-01-26 15:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335370', 'tblTempUsageDetail_20' ) end [2025-01-26 15:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:52:25] Production.INFO: ==29345== Releasing lock... [2025-01-26 15:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:52:25] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:53:05 [end_date_ymd] => 2025-01-26 15:53:05 [RateCDR] => 1 ) [2025-01-26 15:53: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-01-26 12:53:05' and `end` < '2025-01-26 15:53: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-01-26 15:53:18] Production.INFO: count ==1650 [2025-01-26 15:53:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:53:05 - End Time 2025-01-26 15:53:05 [2025-01-26 15:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335375', 'tblTempUsageDetail_20' ) start [2025-01-26 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335375', 'tblTempUsageDetail_20' ) end [2025-01-26 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335375', 'tblTempVendorCDR_20' ) start [2025-01-26 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335375', 'tblTempVendorCDR_20' ) end [2025-01-26 15:53:18] Production.INFO: ProcessCDR(1,14335375,1,1,2) [2025-01-26 15:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335375', 'tblTempUsageDetail_20' ) start [2025-01-26 15:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335375', 'tblTempUsageDetail_20' ) end [2025-01-26 15:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:53:21] Production.INFO: ==29420== Releasing lock... [2025-01-26 15:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:53:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:54:05 [end_date_ymd] => 2025-01-26 15:54:05 [RateCDR] => 1 ) [2025-01-26 15:54: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-01-26 12:54:05' and `end` < '2025-01-26 15:54: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-01-26 15:54:18] Production.INFO: count ==1655 [2025-01-26 15:54:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:54:05 - End Time 2025-01-26 15:54:05 [2025-01-26 15:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335380', 'tblTempUsageDetail_20' ) start [2025-01-26 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335380', 'tblTempUsageDetail_20' ) end [2025-01-26 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335380', 'tblTempVendorCDR_20' ) start [2025-01-26 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335380', 'tblTempVendorCDR_20' ) end [2025-01-26 15:54:18] Production.INFO: ProcessCDR(1,14335380,1,1,2) [2025-01-26 15:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335380', 'tblTempUsageDetail_20' ) start [2025-01-26 15:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335380', 'tblTempUsageDetail_20' ) end [2025-01-26 15:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:54:21] Production.INFO: ==29493== Releasing lock... [2025-01-26 15:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:54:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:55:05 [end_date_ymd] => 2025-01-26 15:55:05 [RateCDR] => 1 ) [2025-01-26 15:55: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-01-26 12:55:05' and `end` < '2025-01-26 15:55: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-01-26 15:55:19] Production.INFO: count ==1667 [2025-01-26 15:55:19] Production.ERROR: pbx CDR StartTime 2025-01-26 12:55:05 - End Time 2025-01-26 15:55:05 [2025-01-26 15:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335385', 'tblTempUsageDetail_20' ) start [2025-01-26 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335385', 'tblTempUsageDetail_20' ) end [2025-01-26 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335385', 'tblTempVendorCDR_20' ) start [2025-01-26 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335385', 'tblTempVendorCDR_20' ) end [2025-01-26 15:55:19] Production.INFO: ProcessCDR(1,14335385,1,1,2) [2025-01-26 15:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335385', 'tblTempUsageDetail_20' ) start [2025-01-26 15:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335385', 'tblTempUsageDetail_20' ) end [2025-01-26 15:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:55:24] Production.INFO: ==29567== Releasing lock... [2025-01-26 15:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:55:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:56:06 [end_date_ymd] => 2025-01-26 15:56:06 [RateCDR] => 1 ) [2025-01-26 15:56: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-01-26 12:56:06' and `end` < '2025-01-26 15:56: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-01-26 15:56:20] Production.INFO: count ==1666 [2025-01-26 15:56:20] Production.ERROR: pbx CDR StartTime 2025-01-26 12:56:06 - End Time 2025-01-26 15:56:06 [2025-01-26 15:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335390', 'tblTempUsageDetail_20' ) start [2025-01-26 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335390', 'tblTempUsageDetail_20' ) end [2025-01-26 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335390', 'tblTempVendorCDR_20' ) start [2025-01-26 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335390', 'tblTempVendorCDR_20' ) end [2025-01-26 15:56:20] Production.INFO: ProcessCDR(1,14335390,1,1,2) [2025-01-26 15:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335390', 'tblTempUsageDetail_20' ) start [2025-01-26 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335390', 'tblTempUsageDetail_20' ) end [2025-01-26 15:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:56:23] Production.INFO: ==29644== Releasing lock... [2025-01-26 15:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:56:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:57:05 [end_date_ymd] => 2025-01-26 15:57:05 [RateCDR] => 1 ) [2025-01-26 15:57: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-01-26 12:57:05' and `end` < '2025-01-26 15:57: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-01-26 15:57:19] Production.INFO: count ==1678 [2025-01-26 15:57:19] Production.ERROR: pbx CDR StartTime 2025-01-26 12:57:05 - End Time 2025-01-26 15:57:05 [2025-01-26 15:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335395', 'tblTempUsageDetail_20' ) start [2025-01-26 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335395', 'tblTempUsageDetail_20' ) end [2025-01-26 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335395', 'tblTempVendorCDR_20' ) start [2025-01-26 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335395', 'tblTempVendorCDR_20' ) end [2025-01-26 15:57:19] Production.INFO: ProcessCDR(1,14335395,1,1,2) [2025-01-26 15:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335395', 'tblTempUsageDetail_20' ) start [2025-01-26 15:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335395', 'tblTempUsageDetail_20' ) end [2025-01-26 15:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:57:22] Production.INFO: ==29718== Releasing lock... [2025-01-26 15:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:57:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:58:06 [end_date_ymd] => 2025-01-26 15:58:06 [RateCDR] => 1 ) [2025-01-26 15:58: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-01-26 12:58:06' and `end` < '2025-01-26 15:58: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-01-26 15:58:18] Production.INFO: count ==1679 [2025-01-26 15:58:19] Production.ERROR: pbx CDR StartTime 2025-01-26 12:58:06 - End Time 2025-01-26 15:58:06 [2025-01-26 15:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335400', 'tblTempUsageDetail_20' ) start [2025-01-26 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335400', 'tblTempUsageDetail_20' ) end [2025-01-26 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335400', 'tblTempVendorCDR_20' ) start [2025-01-26 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335400', 'tblTempVendorCDR_20' ) end [2025-01-26 15:58:19] Production.INFO: ProcessCDR(1,14335400,1,1,2) [2025-01-26 15:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335400', 'tblTempUsageDetail_20' ) start [2025-01-26 15:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335400', 'tblTempUsageDetail_20' ) end [2025-01-26 15:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:58:23] Production.INFO: ==29792== Releasing lock... [2025-01-26 15:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:58:23] Production.INFO: 41 MB #Memory Used# [2025-01-26 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 12:59:05 [end_date_ymd] => 2025-01-26 15:59:05 [RateCDR] => 1 ) [2025-01-26 15:59: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-01-26 12:59:05' and `end` < '2025-01-26 15:59: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-01-26 15:59:18] Production.INFO: count ==1680 [2025-01-26 15:59:18] Production.ERROR: pbx CDR StartTime 2025-01-26 12:59:05 - End Time 2025-01-26 15:59:05 [2025-01-26 15:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335405', 'tblTempUsageDetail_20' ) start [2025-01-26 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335405', 'tblTempUsageDetail_20' ) end [2025-01-26 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335405', 'tblTempVendorCDR_20' ) start [2025-01-26 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335405', 'tblTempVendorCDR_20' ) end [2025-01-26 15:59:18] Production.INFO: ProcessCDR(1,14335405,1,1,2) [2025-01-26 15:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 15:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 15:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335405', 'tblTempUsageDetail_20' ) start [2025-01-26 15:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335405', 'tblTempUsageDetail_20' ) end [2025-01-26 15:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 15:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 15:59:23] Production.INFO: ==29865== Releasing lock... [2025-01-26 15:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 15:59:23] Production.INFO: 41 MB #Memory Used# [2025-01-26 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:00:06 [end_date_ymd] => 2025-01-26 16:00:06 [RateCDR] => 1 ) [2025-01-26 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-01-26 13:00:06' and `end` < '2025-01-26 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-01-26 16:00:18] Production.INFO: count ==1685 [2025-01-26 16:00:19] Production.ERROR: pbx CDR StartTime 2025-01-26 13:00:06 - End Time 2025-01-26 16:00:06 [2025-01-26 16:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335410', 'tblTempUsageDetail_20' ) start [2025-01-26 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335410', 'tblTempUsageDetail_20' ) end [2025-01-26 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335410', 'tblTempVendorCDR_20' ) start [2025-01-26 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335410', 'tblTempVendorCDR_20' ) end [2025-01-26 16:00:19] Production.INFO: ProcessCDR(1,14335410,1,1,2) [2025-01-26 16:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335410', 'tblTempUsageDetail_20' ) start [2025-01-26 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335410', 'tblTempUsageDetail_20' ) end [2025-01-26 16:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:00:23] Production.INFO: ==29945== Releasing lock... [2025-01-26 16:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:00:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:01:04 [end_date_ymd] => 2025-01-26 16:01:04 [RateCDR] => 1 ) [2025-01-26 16:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 13:01:04' and `end` < '2025-01-26 16:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 16:01:18] Production.INFO: count ==1718 [2025-01-26 16:01:19] Production.ERROR: pbx CDR StartTime 2025-01-26 13:01:04 - End Time 2025-01-26 16:01:04 [2025-01-26 16:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335416', 'tblTempUsageDetail_20' ) start [2025-01-26 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335416', 'tblTempUsageDetail_20' ) end [2025-01-26 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335416', 'tblTempVendorCDR_20' ) start [2025-01-26 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335416', 'tblTempVendorCDR_20' ) end [2025-01-26 16:01:19] Production.INFO: ProcessCDR(1,14335416,1,1,2) [2025-01-26 16:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335416', 'tblTempUsageDetail_20' ) start [2025-01-26 16:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335416', 'tblTempUsageDetail_20' ) end [2025-01-26 16:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:01:23] Production.INFO: ==30035== Releasing lock... [2025-01-26 16:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:01:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:02:04 [end_date_ymd] => 2025-01-26 16:02:04 [RateCDR] => 1 ) [2025-01-26 16:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 13:02:04' and `end` < '2025-01-26 16:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 16:02:17] Production.INFO: count ==1721 [2025-01-26 16:02:18] Production.ERROR: pbx CDR StartTime 2025-01-26 13:02:04 - End Time 2025-01-26 16:02:04 [2025-01-26 16:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335421', 'tblTempUsageDetail_20' ) start [2025-01-26 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335421', 'tblTempUsageDetail_20' ) end [2025-01-26 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335421', 'tblTempVendorCDR_20' ) start [2025-01-26 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335421', 'tblTempVendorCDR_20' ) end [2025-01-26 16:02:18] Production.INFO: ProcessCDR(1,14335421,1,1,2) [2025-01-26 16:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335421', 'tblTempUsageDetail_20' ) start [2025-01-26 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335421', 'tblTempUsageDetail_20' ) end [2025-01-26 16:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:02:22] Production.INFO: ==30149== Releasing lock... [2025-01-26 16:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:02:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-26 16:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:03:06 [end_date_ymd] => 2025-01-26 16:03:06 [RateCDR] => 1 ) [2025-01-26 16:03: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-01-26 13:03:06' and `end` < '2025-01-26 16:03: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-01-26 16:03:19] Production.INFO: count ==1714 [2025-01-26 16:03:19] Production.ERROR: pbx CDR StartTime 2025-01-26 13:03:06 - End Time 2025-01-26 16:03:06 [2025-01-26 16:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335426', 'tblTempUsageDetail_20' ) start [2025-01-26 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335426', 'tblTempUsageDetail_20' ) end [2025-01-26 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335426', 'tblTempVendorCDR_20' ) start [2025-01-26 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335426', 'tblTempVendorCDR_20' ) end [2025-01-26 16:03:19] Production.INFO: ProcessCDR(1,14335426,1,1,2) [2025-01-26 16:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335426', 'tblTempUsageDetail_20' ) start [2025-01-26 16:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335426', 'tblTempUsageDetail_20' ) end [2025-01-26 16:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:03:23] Production.INFO: ==30232== Releasing lock... [2025-01-26 16:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:03:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:04:05 [end_date_ymd] => 2025-01-26 16:04:05 [RateCDR] => 1 ) [2025-01-26 16:04: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-01-26 13:04:05' and `end` < '2025-01-26 16:04: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-01-26 16:04:19] Production.INFO: count ==1714 [2025-01-26 16:04:20] Production.ERROR: pbx CDR StartTime 2025-01-26 13:04:05 - End Time 2025-01-26 16:04:05 [2025-01-26 16:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335431', 'tblTempUsageDetail_20' ) start [2025-01-26 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335431', 'tblTempUsageDetail_20' ) end [2025-01-26 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335431', 'tblTempVendorCDR_20' ) start [2025-01-26 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335431', 'tblTempVendorCDR_20' ) end [2025-01-26 16:04:20] Production.INFO: ProcessCDR(1,14335431,1,1,2) [2025-01-26 16:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335431', 'tblTempUsageDetail_20' ) start [2025-01-26 16:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335431', 'tblTempUsageDetail_20' ) end [2025-01-26 16:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:04:24] Production.INFO: ==30305== Releasing lock... [2025-01-26 16:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:04:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:05:05 [end_date_ymd] => 2025-01-26 16:05:05 [RateCDR] => 1 ) [2025-01-26 16:05: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-01-26 13:05:05' and `end` < '2025-01-26 16:05: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-01-26 16:05:21] Production.INFO: count ==1706 [2025-01-26 16:05:22] Production.ERROR: pbx CDR StartTime 2025-01-26 13:05:05 - End Time 2025-01-26 16:05:05 [2025-01-26 16:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335436', 'tblTempUsageDetail_20' ) start [2025-01-26 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335436', 'tblTempUsageDetail_20' ) end [2025-01-26 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335436', 'tblTempVendorCDR_20' ) start [2025-01-26 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335436', 'tblTempVendorCDR_20' ) end [2025-01-26 16:05:22] Production.INFO: ProcessCDR(1,14335436,1,1,2) [2025-01-26 16:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335436', 'tblTempUsageDetail_20' ) start [2025-01-26 16:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335436', 'tblTempUsageDetail_20' ) end [2025-01-26 16:05:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:05:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:05:25] Production.INFO: ==30379== Releasing lock... [2025-01-26 16:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:05:25] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:06:05 [end_date_ymd] => 2025-01-26 16:06:05 [RateCDR] => 1 ) [2025-01-26 16:06: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-01-26 13:06:05' and `end` < '2025-01-26 16:06: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-01-26 16:06:19] Production.INFO: count ==1694 [2025-01-26 16:06:19] Production.ERROR: pbx CDR StartTime 2025-01-26 13:06:05 - End Time 2025-01-26 16:06:05 [2025-01-26 16:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335441', 'tblTempUsageDetail_20' ) start [2025-01-26 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335441', 'tblTempUsageDetail_20' ) end [2025-01-26 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335441', 'tblTempVendorCDR_20' ) start [2025-01-26 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335441', 'tblTempVendorCDR_20' ) end [2025-01-26 16:06:19] Production.INFO: ProcessCDR(1,14335441,1,1,2) [2025-01-26 16:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335441', 'tblTempUsageDetail_20' ) start [2025-01-26 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335441', 'tblTempUsageDetail_20' ) end [2025-01-26 16:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:06:22] Production.INFO: ==30460== Releasing lock... [2025-01-26 16:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:06:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:07:05 [end_date_ymd] => 2025-01-26 16:07:05 [RateCDR] => 1 ) [2025-01-26 16:07: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-01-26 13:07:05' and `end` < '2025-01-26 16:07: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-01-26 16:07:20] Production.INFO: count ==1682 [2025-01-26 16:07:20] Production.ERROR: pbx CDR StartTime 2025-01-26 13:07:05 - End Time 2025-01-26 16:07:05 [2025-01-26 16:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335446', 'tblTempUsageDetail_20' ) start [2025-01-26 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335446', 'tblTempUsageDetail_20' ) end [2025-01-26 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335446', 'tblTempVendorCDR_20' ) start [2025-01-26 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335446', 'tblTempVendorCDR_20' ) end [2025-01-26 16:07:20] Production.INFO: ProcessCDR(1,14335446,1,1,2) [2025-01-26 16:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335446', 'tblTempUsageDetail_20' ) start [2025-01-26 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335446', 'tblTempUsageDetail_20' ) end [2025-01-26 16:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:07:23] Production.INFO: ==30533== Releasing lock... [2025-01-26 16:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:07:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:08:05 [end_date_ymd] => 2025-01-26 16:08:05 [RateCDR] => 1 ) [2025-01-26 16:08: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-01-26 13:08:05' and `end` < '2025-01-26 16:08: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-01-26 16:08:18] Production.INFO: count ==1679 [2025-01-26 16:08:18] Production.ERROR: pbx CDR StartTime 2025-01-26 13:08:05 - End Time 2025-01-26 16:08:05 [2025-01-26 16:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335451', 'tblTempUsageDetail_20' ) start [2025-01-26 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335451', 'tblTempUsageDetail_20' ) end [2025-01-26 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335451', 'tblTempVendorCDR_20' ) start [2025-01-26 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335451', 'tblTempVendorCDR_20' ) end [2025-01-26 16:08:18] Production.INFO: ProcessCDR(1,14335451,1,1,2) [2025-01-26 16:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335451', 'tblTempUsageDetail_20' ) start [2025-01-26 16:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335451', 'tblTempUsageDetail_20' ) end [2025-01-26 16:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:08:21] Production.INFO: ==30612== Releasing lock... [2025-01-26 16:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:08:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:09:05 [end_date_ymd] => 2025-01-26 16:09:05 [RateCDR] => 1 ) [2025-01-26 16:09: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-01-26 13:09:05' and `end` < '2025-01-26 16:09: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-01-26 16:09:18] Production.INFO: count ==1680 [2025-01-26 16:09:18] Production.ERROR: pbx CDR StartTime 2025-01-26 13:09:05 - End Time 2025-01-26 16:09:05 [2025-01-26 16:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335456', 'tblTempUsageDetail_20' ) start [2025-01-26 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335456', 'tblTempUsageDetail_20' ) end [2025-01-26 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335456', 'tblTempVendorCDR_20' ) start [2025-01-26 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335456', 'tblTempVendorCDR_20' ) end [2025-01-26 16:09:18] Production.INFO: ProcessCDR(1,14335456,1,1,2) [2025-01-26 16:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335456', 'tblTempUsageDetail_20' ) start [2025-01-26 16:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335456', 'tblTempUsageDetail_20' ) end [2025-01-26 16:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:09:22] Production.INFO: ==30686== Releasing lock... [2025-01-26 16:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:09:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-26 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:10:06 [end_date_ymd] => 2025-01-26 16:10:06 [RateCDR] => 1 ) [2025-01-26 16:10: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-01-26 13:10:06' and `end` < '2025-01-26 16:10: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-01-26 16:10:19] Production.INFO: count ==1685 [2025-01-26 16:10:19] Production.ERROR: pbx CDR StartTime 2025-01-26 13:10:06 - End Time 2025-01-26 16:10:06 [2025-01-26 16:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335462', 'tblTempUsageDetail_20' ) start [2025-01-26 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335462', 'tblTempUsageDetail_20' ) end [2025-01-26 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335462', 'tblTempVendorCDR_20' ) start [2025-01-26 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335462', 'tblTempVendorCDR_20' ) end [2025-01-26 16:10:19] Production.INFO: ProcessCDR(1,14335462,1,1,2) [2025-01-26 16:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335462', 'tblTempUsageDetail_20' ) start [2025-01-26 16:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335462', 'tblTempUsageDetail_20' ) end [2025-01-26 16:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:10:24] Production.INFO: ==30763== Releasing lock... [2025-01-26 16:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:10:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:11:06 [end_date_ymd] => 2025-01-26 16:11:06 [RateCDR] => 1 ) [2025-01-26 16:11: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-01-26 13:11:06' and `end` < '2025-01-26 16:11: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-01-26 16:11:22] Production.INFO: count ==1732 [2025-01-26 16:11:23] Production.ERROR: pbx CDR StartTime 2025-01-26 13:11:06 - End Time 2025-01-26 16:11:06 [2025-01-26 16:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335467', 'tblTempUsageDetail_20' ) start [2025-01-26 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335467', 'tblTempUsageDetail_20' ) end [2025-01-26 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335467', 'tblTempVendorCDR_20' ) start [2025-01-26 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335467', 'tblTempVendorCDR_20' ) end [2025-01-26 16:11:23] Production.INFO: ProcessCDR(1,14335467,1,1,2) [2025-01-26 16:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335467', 'tblTempUsageDetail_20' ) start [2025-01-26 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335467', 'tblTempUsageDetail_20' ) end [2025-01-26 16:11:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:11:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:11:26] Production.INFO: ==30844== Releasing lock... [2025-01-26 16:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:11:26] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:12:06 [end_date_ymd] => 2025-01-26 16:12:06 [RateCDR] => 1 ) [2025-01-26 16:12: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-01-26 13:12:06' and `end` < '2025-01-26 16:12: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-01-26 16:12:18] Production.INFO: count ==1731 [2025-01-26 16:12:19] Production.ERROR: pbx CDR StartTime 2025-01-26 13:12:06 - End Time 2025-01-26 16:12:06 [2025-01-26 16:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335472', 'tblTempUsageDetail_20' ) start [2025-01-26 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335472', 'tblTempUsageDetail_20' ) end [2025-01-26 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335472', 'tblTempVendorCDR_20' ) start [2025-01-26 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335472', 'tblTempVendorCDR_20' ) end [2025-01-26 16:12:19] Production.INFO: ProcessCDR(1,14335472,1,1,2) [2025-01-26 16:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335472', 'tblTempUsageDetail_20' ) start [2025-01-26 16:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335472', 'tblTempUsageDetail_20' ) end [2025-01-26 16:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:12:22] Production.INFO: ==30936== Releasing lock... [2025-01-26 16:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:12:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:13:05 [end_date_ymd] => 2025-01-26 16:13:05 [RateCDR] => 1 ) [2025-01-26 16:13: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-01-26 13:13:05' and `end` < '2025-01-26 16:13: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-01-26 16:13:21] Production.INFO: count ==1732 [2025-01-26 16:13:21] Production.ERROR: pbx CDR StartTime 2025-01-26 13:13:05 - End Time 2025-01-26 16:13:05 [2025-01-26 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335477', 'tblTempUsageDetail_20' ) start [2025-01-26 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335477', 'tblTempUsageDetail_20' ) end [2025-01-26 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335477', 'tblTempVendorCDR_20' ) start [2025-01-26 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335477', 'tblTempVendorCDR_20' ) end [2025-01-26 16:13:21] Production.INFO: ProcessCDR(1,14335477,1,1,2) [2025-01-26 16:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335477', 'tblTempUsageDetail_20' ) start [2025-01-26 16:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335477', 'tblTempUsageDetail_20' ) end [2025-01-26 16:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:13:24] Production.INFO: ==31032== Releasing lock... [2025-01-26 16:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:13:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:14:06 [end_date_ymd] => 2025-01-26 16:14:06 [RateCDR] => 1 ) [2025-01-26 16:14: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-01-26 13:14:06' and `end` < '2025-01-26 16:14: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-01-26 16:14:22] Production.INFO: count ==1732 [2025-01-26 16:14:22] Production.ERROR: pbx CDR StartTime 2025-01-26 13:14:06 - End Time 2025-01-26 16:14:06 [2025-01-26 16:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335482', 'tblTempUsageDetail_20' ) start [2025-01-26 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335482', 'tblTempUsageDetail_20' ) end [2025-01-26 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335482', 'tblTempVendorCDR_20' ) start [2025-01-26 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335482', 'tblTempVendorCDR_20' ) end [2025-01-26 16:14:22] Production.INFO: ProcessCDR(1,14335482,1,1,2) [2025-01-26 16:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335482', 'tblTempUsageDetail_20' ) start [2025-01-26 16:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335482', 'tblTempUsageDetail_20' ) end [2025-01-26 16:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:14:25] Production.INFO: ==31138== Releasing lock... [2025-01-26 16:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:14:25] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:15:05 [end_date_ymd] => 2025-01-26 16:15:05 [RateCDR] => 1 ) [2025-01-26 16:15: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-01-26 13:15:05' and `end` < '2025-01-26 16:15: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-01-26 16:15:20] Production.INFO: count ==1740 [2025-01-26 16:15:20] Production.ERROR: pbx CDR StartTime 2025-01-26 13:15:05 - End Time 2025-01-26 16:15:05 [2025-01-26 16:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335487', 'tblTempUsageDetail_20' ) start [2025-01-26 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335487', 'tblTempUsageDetail_20' ) end [2025-01-26 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335487', 'tblTempVendorCDR_20' ) start [2025-01-26 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335487', 'tblTempVendorCDR_20' ) end [2025-01-26 16:15:20] Production.INFO: ProcessCDR(1,14335487,1,1,2) [2025-01-26 16:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335487', 'tblTempUsageDetail_20' ) start [2025-01-26 16:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335487', 'tblTempUsageDetail_20' ) end [2025-01-26 16:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:15:23] Production.INFO: ==31239== Releasing lock... [2025-01-26 16:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:15:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:16:06 [end_date_ymd] => 2025-01-26 16:16:06 [RateCDR] => 1 ) [2025-01-26 16:16: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-01-26 13:16:06' and `end` < '2025-01-26 16:16: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-01-26 16:16:20] Production.INFO: count ==1746 [2025-01-26 16:16:20] Production.ERROR: pbx CDR StartTime 2025-01-26 13:16:06 - End Time 2025-01-26 16:16:06 [2025-01-26 16:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335492', 'tblTempUsageDetail_20' ) start [2025-01-26 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335492', 'tblTempUsageDetail_20' ) end [2025-01-26 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335492', 'tblTempVendorCDR_20' ) start [2025-01-26 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335492', 'tblTempVendorCDR_20' ) end [2025-01-26 16:16:20] Production.INFO: ProcessCDR(1,14335492,1,1,2) [2025-01-26 16:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335492', 'tblTempUsageDetail_20' ) start [2025-01-26 16:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335492', 'tblTempUsageDetail_20' ) end [2025-01-26 16:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:16:24] Production.INFO: ==31341== Releasing lock... [2025-01-26 16:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:16:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:17:05 [end_date_ymd] => 2025-01-26 16:17:05 [RateCDR] => 1 ) [2025-01-26 16:17: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-01-26 13:17:05' and `end` < '2025-01-26 16:17: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-01-26 16:17:18] Production.INFO: count ==1743 [2025-01-26 16:17:18] Production.ERROR: pbx CDR StartTime 2025-01-26 13:17:05 - End Time 2025-01-26 16:17:05 [2025-01-26 16:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335497', 'tblTempUsageDetail_20' ) start [2025-01-26 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335497', 'tblTempUsageDetail_20' ) end [2025-01-26 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335497', 'tblTempVendorCDR_20' ) start [2025-01-26 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335497', 'tblTempVendorCDR_20' ) end [2025-01-26 16:17:18] Production.INFO: ProcessCDR(1,14335497,1,1,2) [2025-01-26 16:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335497', 'tblTempUsageDetail_20' ) start [2025-01-26 16:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335497', 'tblTempUsageDetail_20' ) end [2025-01-26 16:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:17:21] Production.INFO: ==31486== Releasing lock... [2025-01-26 16:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:17:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:18:05 [end_date_ymd] => 2025-01-26 16:18:05 [RateCDR] => 1 ) [2025-01-26 16:18: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-01-26 13:18:05' and `end` < '2025-01-26 16:18: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-01-26 16:18:20] Production.INFO: count ==1748 [2025-01-26 16:18:20] Production.ERROR: pbx CDR StartTime 2025-01-26 13:18:05 - End Time 2025-01-26 16:18:05 [2025-01-26 16:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335502', 'tblTempUsageDetail_20' ) start [2025-01-26 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335502', 'tblTempUsageDetail_20' ) end [2025-01-26 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335502', 'tblTempVendorCDR_20' ) start [2025-01-26 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335502', 'tblTempVendorCDR_20' ) end [2025-01-26 16:18:20] Production.INFO: ProcessCDR(1,14335502,1,1,2) [2025-01-26 16:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335502', 'tblTempUsageDetail_20' ) start [2025-01-26 16:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335502', 'tblTempUsageDetail_20' ) end [2025-01-26 16:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:18:25] Production.INFO: ==31604== Releasing lock... [2025-01-26 16:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:18:25] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:19:05 [end_date_ymd] => 2025-01-26 16:19:05 [RateCDR] => 1 ) [2025-01-26 16:19: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-01-26 13:19:05' and `end` < '2025-01-26 16:19: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-01-26 16:19:19] Production.INFO: count ==1751 [2025-01-26 16:19:19] Production.ERROR: pbx CDR StartTime 2025-01-26 13:19:05 - End Time 2025-01-26 16:19:05 [2025-01-26 16:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335507', 'tblTempUsageDetail_20' ) start [2025-01-26 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335507', 'tblTempUsageDetail_20' ) end [2025-01-26 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335507', 'tblTempVendorCDR_20' ) start [2025-01-26 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335507', 'tblTempVendorCDR_20' ) end [2025-01-26 16:19:19] Production.INFO: ProcessCDR(1,14335507,1,1,2) [2025-01-26 16:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335507', 'tblTempUsageDetail_20' ) start [2025-01-26 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335507', 'tblTempUsageDetail_20' ) end [2025-01-26 16:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:19:23] Production.INFO: ==31707== Releasing lock... [2025-01-26 16:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:19:23] Production.INFO: 41 MB #Memory Used# [2025-01-26 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:20:06 [end_date_ymd] => 2025-01-26 16:20:06 [RateCDR] => 1 ) [2025-01-26 16:20: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-01-26 13:20:06' and `end` < '2025-01-26 16:20: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-01-26 16:20:19] Production.INFO: count ==1742 [2025-01-26 16:20:19] Production.ERROR: pbx CDR StartTime 2025-01-26 13:20:06 - End Time 2025-01-26 16:20:06 [2025-01-26 16:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335513', 'tblTempUsageDetail_20' ) start [2025-01-26 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335513', 'tblTempUsageDetail_20' ) end [2025-01-26 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335513', 'tblTempVendorCDR_20' ) start [2025-01-26 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335513', 'tblTempVendorCDR_20' ) end [2025-01-26 16:20:19] Production.INFO: ProcessCDR(1,14335513,1,1,2) [2025-01-26 16:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335513', 'tblTempUsageDetail_20' ) start [2025-01-26 16:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335513', 'tblTempUsageDetail_20' ) end [2025-01-26 16:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:20:22] Production.INFO: ==31835== Releasing lock... [2025-01-26 16:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:20:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:21:05 [end_date_ymd] => 2025-01-26 16:21:05 [RateCDR] => 1 ) [2025-01-26 16:21: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-01-26 13:21:05' and `end` < '2025-01-26 16:21: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-01-26 16:21:19] Production.INFO: count ==1779 [2025-01-26 16:21:19] Production.ERROR: pbx CDR StartTime 2025-01-26 13:21:05 - End Time 2025-01-26 16:21:05 [2025-01-26 16:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335518', 'tblTempUsageDetail_20' ) start [2025-01-26 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335518', 'tblTempUsageDetail_20' ) end [2025-01-26 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335518', 'tblTempVendorCDR_20' ) start [2025-01-26 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335518', 'tblTempVendorCDR_20' ) end [2025-01-26 16:21:19] Production.INFO: ProcessCDR(1,14335518,1,1,2) [2025-01-26 16:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335518', 'tblTempUsageDetail_20' ) start [2025-01-26 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335518', 'tblTempUsageDetail_20' ) end [2025-01-26 16:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:21:23] Production.INFO: ==31941== Releasing lock... [2025-01-26 16:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:21:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-26 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:22:06 [end_date_ymd] => 2025-01-26 16:22:06 [RateCDR] => 1 ) [2025-01-26 16:22: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-01-26 13:22:06' and `end` < '2025-01-26 16:22: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-01-26 16:22:20] Production.INFO: count ==1773 [2025-01-26 16:22:21] Production.ERROR: pbx CDR StartTime 2025-01-26 13:22:06 - End Time 2025-01-26 16:22:06 [2025-01-26 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335523', 'tblTempUsageDetail_20' ) start [2025-01-26 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335523', 'tblTempUsageDetail_20' ) end [2025-01-26 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335523', 'tblTempVendorCDR_20' ) start [2025-01-26 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335523', 'tblTempVendorCDR_20' ) end [2025-01-26 16:22:21] Production.INFO: ProcessCDR(1,14335523,1,1,2) [2025-01-26 16:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335523', 'tblTempUsageDetail_20' ) start [2025-01-26 16:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335523', 'tblTempUsageDetail_20' ) end [2025-01-26 16:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:22:24] Production.INFO: ==32047== Releasing lock... [2025-01-26 16:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:22:24] Production.INFO: 41 MB #Memory Used# [2025-01-26 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:23:05 [end_date_ymd] => 2025-01-26 16:23:05 [RateCDR] => 1 ) [2025-01-26 16:23: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-01-26 13:23:05' and `end` < '2025-01-26 16:23: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-01-26 16:23:18] Production.INFO: count ==1769 [2025-01-26 16:23:18] Production.ERROR: pbx CDR StartTime 2025-01-26 13:23:05 - End Time 2025-01-26 16:23:05 [2025-01-26 16:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335528', 'tblTempUsageDetail_20' ) start [2025-01-26 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335528', 'tblTempUsageDetail_20' ) end [2025-01-26 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335528', 'tblTempVendorCDR_20' ) start [2025-01-26 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335528', 'tblTempVendorCDR_20' ) end [2025-01-26 16:23:18] Production.INFO: ProcessCDR(1,14335528,1,1,2) [2025-01-26 16:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335528', 'tblTempUsageDetail_20' ) start [2025-01-26 16:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335528', 'tblTempUsageDetail_20' ) end [2025-01-26 16:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:23:21] Production.INFO: ==32148== Releasing lock... [2025-01-26 16:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:23:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:24:05 [end_date_ymd] => 2025-01-26 16:24:05 [RateCDR] => 1 ) [2025-01-26 16:24: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-01-26 13:24:05' and `end` < '2025-01-26 16:24: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-01-26 16:24:18] Production.INFO: count ==1769 [2025-01-26 16:24:18] Production.ERROR: pbx CDR StartTime 2025-01-26 13:24:05 - End Time 2025-01-26 16:24:05 [2025-01-26 16:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335533', 'tblTempUsageDetail_20' ) start [2025-01-26 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335533', 'tblTempUsageDetail_20' ) end [2025-01-26 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335533', 'tblTempVendorCDR_20' ) start [2025-01-26 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335533', 'tblTempVendorCDR_20' ) end [2025-01-26 16:24:18] Production.INFO: ProcessCDR(1,14335533,1,1,2) [2025-01-26 16:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335533', 'tblTempUsageDetail_20' ) start [2025-01-26 16:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335533', 'tblTempUsageDetail_20' ) end [2025-01-26 16:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:24:21] Production.INFO: ==32251== Releasing lock... [2025-01-26 16:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:24:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:25:06 [end_date_ymd] => 2025-01-26 16:25:06 [RateCDR] => 1 ) [2025-01-26 16:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 13:25:06' and `end` < '2025-01-26 16:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 16:25:18] Production.INFO: count ==1770 [2025-01-26 16:25:18] Production.ERROR: pbx CDR StartTime 2025-01-26 13:25:06 - End Time 2025-01-26 16:25:06 [2025-01-26 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335538', 'tblTempUsageDetail_20' ) start [2025-01-26 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335538', 'tblTempUsageDetail_20' ) end [2025-01-26 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335538', 'tblTempVendorCDR_20' ) start [2025-01-26 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335538', 'tblTempVendorCDR_20' ) end [2025-01-26 16:25:19] Production.INFO: ProcessCDR(1,14335538,1,1,2) [2025-01-26 16:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335538', 'tblTempUsageDetail_20' ) start [2025-01-26 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335538', 'tblTempUsageDetail_20' ) end [2025-01-26 16:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:25:22] Production.INFO: ==32354== Releasing lock... [2025-01-26 16:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:25:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:26:05 [end_date_ymd] => 2025-01-26 16:26:05 [RateCDR] => 1 ) [2025-01-26 16:26: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-01-26 13:26:05' and `end` < '2025-01-26 16:26: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-01-26 16:26:18] Production.INFO: count ==1774 [2025-01-26 16:26:19] Production.ERROR: pbx CDR StartTime 2025-01-26 13:26:05 - End Time 2025-01-26 16:26:05 [2025-01-26 16:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335543', 'tblTempUsageDetail_20' ) start [2025-01-26 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335543', 'tblTempUsageDetail_20' ) end [2025-01-26 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335543', 'tblTempVendorCDR_20' ) start [2025-01-26 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335543', 'tblTempVendorCDR_20' ) end [2025-01-26 16:26:19] Production.INFO: ProcessCDR(1,14335543,1,1,2) [2025-01-26 16:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335543', 'tblTempUsageDetail_20' ) start [2025-01-26 16:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335543', 'tblTempUsageDetail_20' ) end [2025-01-26 16:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:26:22] Production.INFO: ==32460== Releasing lock... [2025-01-26 16:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:26:22] Production.INFO: 41 MB #Memory Used# [2025-01-26 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:27:05 [end_date_ymd] => 2025-01-26 16:27:05 [RateCDR] => 1 ) [2025-01-26 16:27: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-01-26 13:27:05' and `end` < '2025-01-26 16:27: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-01-26 16:27:18] Production.INFO: count ==1772 [2025-01-26 16:27:19] Production.ERROR: pbx CDR StartTime 2025-01-26 13:27:05 - End Time 2025-01-26 16:27:05 [2025-01-26 16:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335548', 'tblTempUsageDetail_20' ) start [2025-01-26 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335548', 'tblTempUsageDetail_20' ) end [2025-01-26 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335548', 'tblTempVendorCDR_20' ) start [2025-01-26 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335548', 'tblTempVendorCDR_20' ) end [2025-01-26 16:27:19] Production.INFO: ProcessCDR(1,14335548,1,1,2) [2025-01-26 16:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335548', 'tblTempUsageDetail_20' ) start [2025-01-26 16:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335548', 'tblTempUsageDetail_20' ) end [2025-01-26 16:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:27:22] Production.INFO: ==32566== Releasing lock... [2025-01-26 16:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:27:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:28:05 [end_date_ymd] => 2025-01-26 16:28:05 [RateCDR] => 1 ) [2025-01-26 16:28: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-01-26 13:28:05' and `end` < '2025-01-26 16:28: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-01-26 16:28:18] Production.INFO: count ==1776 [2025-01-26 16:28:18] Production.ERROR: pbx CDR StartTime 2025-01-26 13:28:05 - End Time 2025-01-26 16:28:05 [2025-01-26 16:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335553', 'tblTempUsageDetail_20' ) start [2025-01-26 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335553', 'tblTempUsageDetail_20' ) end [2025-01-26 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335553', 'tblTempVendorCDR_20' ) start [2025-01-26 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335553', 'tblTempVendorCDR_20' ) end [2025-01-26 16:28:18] Production.INFO: ProcessCDR(1,14335553,1,1,2) [2025-01-26 16:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335553', 'tblTempUsageDetail_20' ) start [2025-01-26 16:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335553', 'tblTempUsageDetail_20' ) end [2025-01-26 16:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:28:22] Production.INFO: ==32675== Releasing lock... [2025-01-26 16:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:28:22] Production.INFO: 41 MB #Memory Used# [2025-01-26 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:29:05 [end_date_ymd] => 2025-01-26 16:29:05 [RateCDR] => 1 ) [2025-01-26 16:29: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-01-26 13:29:05' and `end` < '2025-01-26 16:29: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-01-26 16:29:18] Production.INFO: count ==1771 [2025-01-26 16:29:19] Production.ERROR: pbx CDR StartTime 2025-01-26 13:29:05 - End Time 2025-01-26 16:29:05 [2025-01-26 16:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335558', 'tblTempUsageDetail_20' ) start [2025-01-26 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335558', 'tblTempUsageDetail_20' ) end [2025-01-26 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335558', 'tblTempVendorCDR_20' ) start [2025-01-26 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335558', 'tblTempVendorCDR_20' ) end [2025-01-26 16:29:19] Production.INFO: ProcessCDR(1,14335558,1,1,2) [2025-01-26 16:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335558', 'tblTempUsageDetail_20' ) start [2025-01-26 16:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335558', 'tblTempUsageDetail_20' ) end [2025-01-26 16:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:29:22] Production.INFO: ==316== Releasing lock... [2025-01-26 16:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:29:22] Production.INFO: 41 MB #Memory Used# [2025-01-26 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:30:05 [end_date_ymd] => 2025-01-26 16:30:05 [RateCDR] => 1 ) [2025-01-26 16:30: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-01-26 13:30:05' and `end` < '2025-01-26 16:30: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-01-26 16:30:19] Production.INFO: count ==1770 [2025-01-26 16:30:20] Production.ERROR: pbx CDR StartTime 2025-01-26 13:30:05 - End Time 2025-01-26 16:30:05 [2025-01-26 16:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335564', 'tblTempUsageDetail_20' ) start [2025-01-26 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335564', 'tblTempUsageDetail_20' ) end [2025-01-26 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335564', 'tblTempVendorCDR_20' ) start [2025-01-26 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335564', 'tblTempVendorCDR_20' ) end [2025-01-26 16:30:20] Production.INFO: ProcessCDR(1,14335564,1,1,2) [2025-01-26 16:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335564', 'tblTempUsageDetail_20' ) start [2025-01-26 16:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335564', 'tblTempUsageDetail_20' ) end [2025-01-26 16:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:30:23] Production.INFO: ==436== Releasing lock... [2025-01-26 16:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:30:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:31:05 [end_date_ymd] => 2025-01-26 16:31:05 [RateCDR] => 1 ) [2025-01-26 16:31: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-01-26 13:31:05' and `end` < '2025-01-26 16:31: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-01-26 16:31:18] Production.INFO: count ==1793 [2025-01-26 16:31:19] Production.ERROR: pbx CDR StartTime 2025-01-26 13:31:05 - End Time 2025-01-26 16:31:05 [2025-01-26 16:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335569', 'tblTempUsageDetail_20' ) start [2025-01-26 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335569', 'tblTempUsageDetail_20' ) end [2025-01-26 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335569', 'tblTempVendorCDR_20' ) start [2025-01-26 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335569', 'tblTempVendorCDR_20' ) end [2025-01-26 16:31:19] Production.INFO: ProcessCDR(1,14335569,1,1,2) [2025-01-26 16:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335569', 'tblTempUsageDetail_20' ) start [2025-01-26 16:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335569', 'tblTempUsageDetail_20' ) end [2025-01-26 16:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:31:22] Production.INFO: ==520== Releasing lock... [2025-01-26 16:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:31:22] Production.INFO: 41 MB #Memory Used# [2025-01-26 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:32:05 [end_date_ymd] => 2025-01-26 16:32:05 [RateCDR] => 1 ) [2025-01-26 16:32: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-01-26 13:32:05' and `end` < '2025-01-26 16:32: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-01-26 16:32:19] Production.INFO: count ==1789 [2025-01-26 16:32:20] Production.ERROR: pbx CDR StartTime 2025-01-26 13:32:05 - End Time 2025-01-26 16:32:05 [2025-01-26 16:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335574', 'tblTempUsageDetail_20' ) start [2025-01-26 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335574', 'tblTempUsageDetail_20' ) end [2025-01-26 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335574', 'tblTempVendorCDR_20' ) start [2025-01-26 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335574', 'tblTempVendorCDR_20' ) end [2025-01-26 16:32:20] Production.INFO: ProcessCDR(1,14335574,1,1,2) [2025-01-26 16:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335574', 'tblTempUsageDetail_20' ) start [2025-01-26 16:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335574', 'tblTempUsageDetail_20' ) end [2025-01-26 16:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:32:24] Production.INFO: ==600== Releasing lock... [2025-01-26 16:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:32:24] Production.INFO: 41 MB #Memory Used# [2025-01-26 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:33:05 [end_date_ymd] => 2025-01-26 16:33:05 [RateCDR] => 1 ) [2025-01-26 16:33: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-01-26 13:33:05' and `end` < '2025-01-26 16:33: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-01-26 16:33:18] Production.INFO: count ==1767 [2025-01-26 16:33:18] Production.ERROR: pbx CDR StartTime 2025-01-26 13:33:05 - End Time 2025-01-26 16:33:05 [2025-01-26 16:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335579', 'tblTempUsageDetail_20' ) start [2025-01-26 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335579', 'tblTempUsageDetail_20' ) end [2025-01-26 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335579', 'tblTempVendorCDR_20' ) start [2025-01-26 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335579', 'tblTempVendorCDR_20' ) end [2025-01-26 16:33:18] Production.INFO: ProcessCDR(1,14335579,1,1,2) [2025-01-26 16:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335579', 'tblTempUsageDetail_20' ) start [2025-01-26 16:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335579', 'tblTempUsageDetail_20' ) end [2025-01-26 16:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:33:21] Production.INFO: ==748== Releasing lock... [2025-01-26 16:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:33:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:34:05 [end_date_ymd] => 2025-01-26 16:34:05 [RateCDR] => 1 ) [2025-01-26 16:34: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-01-26 13:34:05' and `end` < '2025-01-26 16:34: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-01-26 16:34:18] Production.INFO: count ==1763 [2025-01-26 16:34:18] Production.ERROR: pbx CDR StartTime 2025-01-26 13:34:05 - End Time 2025-01-26 16:34:05 [2025-01-26 16:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335584', 'tblTempUsageDetail_20' ) start [2025-01-26 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335584', 'tblTempUsageDetail_20' ) end [2025-01-26 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335584', 'tblTempVendorCDR_20' ) start [2025-01-26 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335584', 'tblTempVendorCDR_20' ) end [2025-01-26 16:34:18] Production.INFO: ProcessCDR(1,14335584,1,1,2) [2025-01-26 16:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335584', 'tblTempUsageDetail_20' ) start [2025-01-26 16:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335584', 'tblTempUsageDetail_20' ) end [2025-01-26 16:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:34:21] Production.INFO: ==824== Releasing lock... [2025-01-26 16:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:34:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:35:04 [end_date_ymd] => 2025-01-26 16:35:04 [RateCDR] => 1 ) [2025-01-26 16:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 13:35:04' and `end` < '2025-01-26 16:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 16:35:18] Production.INFO: count ==1764 [2025-01-26 16:35:18] Production.ERROR: pbx CDR StartTime 2025-01-26 13:35:04 - End Time 2025-01-26 16:35:04 [2025-01-26 16:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335588', 'tblTempUsageDetail_20' ) start [2025-01-26 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335588', 'tblTempUsageDetail_20' ) end [2025-01-26 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335588', 'tblTempVendorCDR_20' ) start [2025-01-26 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335588', 'tblTempVendorCDR_20' ) end [2025-01-26 16:35:18] Production.INFO: ProcessCDR(1,14335588,1,1,2) [2025-01-26 16:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335588', 'tblTempUsageDetail_20' ) start [2025-01-26 16:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335588', 'tblTempUsageDetail_20' ) end [2025-01-26 16:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:35:22] Production.INFO: ==897== Releasing lock... [2025-01-26 16:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:35:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:36:05 [end_date_ymd] => 2025-01-26 16:36:05 [RateCDR] => 1 ) [2025-01-26 16:36: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-01-26 13:36:05' and `end` < '2025-01-26 16:36: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-01-26 16:36:24] Production.INFO: count ==1750 [2025-01-26 16:36:25] Production.ERROR: pbx CDR StartTime 2025-01-26 13:36:05 - End Time 2025-01-26 16:36:05 [2025-01-26 16:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335594', 'tblTempUsageDetail_20' ) start [2025-01-26 16:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335594', 'tblTempUsageDetail_20' ) end [2025-01-26 16:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335594', 'tblTempVendorCDR_20' ) start [2025-01-26 16:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335594', 'tblTempVendorCDR_20' ) end [2025-01-26 16:36:25] Production.INFO: ProcessCDR(1,14335594,1,1,2) [2025-01-26 16:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335594', 'tblTempUsageDetail_20' ) start [2025-01-26 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335594', 'tblTempUsageDetail_20' ) end [2025-01-26 16:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:36:27] Production.INFO: ==975== Releasing lock... [2025-01-26 16:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:36:27] Production.INFO: 41 MB #Memory Used# [2025-01-26 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:37:05 [end_date_ymd] => 2025-01-26 16:37:05 [RateCDR] => 1 ) [2025-01-26 16:37: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-01-26 13:37:05' and `end` < '2025-01-26 16:37: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-01-26 16:37:19] Production.INFO: count ==1743 [2025-01-26 16:37:19] Production.ERROR: pbx CDR StartTime 2025-01-26 13:37:05 - End Time 2025-01-26 16:37:05 [2025-01-26 16:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335599', 'tblTempUsageDetail_20' ) start [2025-01-26 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335599', 'tblTempUsageDetail_20' ) end [2025-01-26 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335599', 'tblTempVendorCDR_20' ) start [2025-01-26 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335599', 'tblTempVendorCDR_20' ) end [2025-01-26 16:37:19] Production.INFO: ProcessCDR(1,14335599,1,1,2) [2025-01-26 16:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335599', 'tblTempUsageDetail_20' ) start [2025-01-26 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335599', 'tblTempUsageDetail_20' ) end [2025-01-26 16:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:37:22] Production.INFO: ==1051== Releasing lock... [2025-01-26 16:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:37:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:38:05 [end_date_ymd] => 2025-01-26 16:38:05 [RateCDR] => 1 ) [2025-01-26 16:38: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-01-26 13:38:05' and `end` < '2025-01-26 16:38: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-01-26 16:38:18] Production.INFO: count ==1731 [2025-01-26 16:38:18] Production.ERROR: pbx CDR StartTime 2025-01-26 13:38:05 - End Time 2025-01-26 16:38:05 [2025-01-26 16:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335604', 'tblTempUsageDetail_20' ) start [2025-01-26 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335604', 'tblTempUsageDetail_20' ) end [2025-01-26 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335604', 'tblTempVendorCDR_20' ) start [2025-01-26 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335604', 'tblTempVendorCDR_20' ) end [2025-01-26 16:38:18] Production.INFO: ProcessCDR(1,14335604,1,1,2) [2025-01-26 16:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335604', 'tblTempUsageDetail_20' ) start [2025-01-26 16:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335604', 'tblTempUsageDetail_20' ) end [2025-01-26 16:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:38:21] Production.INFO: ==1127== Releasing lock... [2025-01-26 16:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:38:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:39:05 [end_date_ymd] => 2025-01-26 16:39:05 [RateCDR] => 1 ) [2025-01-26 16:39: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-01-26 13:39:05' and `end` < '2025-01-26 16:39: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-01-26 16:39:22] Production.INFO: count ==1734 [2025-01-26 16:39:22] Production.ERROR: pbx CDR StartTime 2025-01-26 13:39:05 - End Time 2025-01-26 16:39:05 [2025-01-26 16:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335609', 'tblTempUsageDetail_20' ) start [2025-01-26 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335609', 'tblTempUsageDetail_20' ) end [2025-01-26 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335609', 'tblTempVendorCDR_20' ) start [2025-01-26 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335609', 'tblTempVendorCDR_20' ) end [2025-01-26 16:39:22] Production.INFO: ProcessCDR(1,14335609,1,1,2) [2025-01-26 16:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335609', 'tblTempUsageDetail_20' ) start [2025-01-26 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335609', 'tblTempUsageDetail_20' ) end [2025-01-26 16:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:39:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:39:26] Production.INFO: ==1209== Releasing lock... [2025-01-26 16:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:39:26] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:40:06 [end_date_ymd] => 2025-01-26 16:40:06 [RateCDR] => 1 ) [2025-01-26 16:40: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-01-26 13:40:06' and `end` < '2025-01-26 16:40: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-01-26 16:40:22] Production.INFO: count ==1735 [2025-01-26 16:40:22] Production.ERROR: pbx CDR StartTime 2025-01-26 13:40:06 - End Time 2025-01-26 16:40:06 [2025-01-26 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335614', 'tblTempUsageDetail_20' ) start [2025-01-26 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335614', 'tblTempUsageDetail_20' ) end [2025-01-26 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335614', 'tblTempVendorCDR_20' ) start [2025-01-26 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335614', 'tblTempVendorCDR_20' ) end [2025-01-26 16:40:22] Production.INFO: ProcessCDR(1,14335614,1,1,2) [2025-01-26 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335614', 'tblTempUsageDetail_20' ) start [2025-01-26 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335614', 'tblTempUsageDetail_20' ) end [2025-01-26 16:40:27] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:40:27] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:40:27] Production.INFO: ==1296== Releasing lock... [2025-01-26 16:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:40:27] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:41:05 [end_date_ymd] => 2025-01-26 16:41:05 [RateCDR] => 1 ) [2025-01-26 16:41: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-01-26 13:41:05' and `end` < '2025-01-26 16:41: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-01-26 16:41:18] Production.INFO: count ==1738 [2025-01-26 16:41:18] Production.ERROR: pbx CDR StartTime 2025-01-26 13:41:05 - End Time 2025-01-26 16:41:05 [2025-01-26 16:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335620', 'tblTempUsageDetail_20' ) start [2025-01-26 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335620', 'tblTempUsageDetail_20' ) end [2025-01-26 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335620', 'tblTempVendorCDR_20' ) start [2025-01-26 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335620', 'tblTempVendorCDR_20' ) end [2025-01-26 16:41:18] Production.INFO: ProcessCDR(1,14335620,1,1,2) [2025-01-26 16:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335620', 'tblTempUsageDetail_20' ) start [2025-01-26 16:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335620', 'tblTempUsageDetail_20' ) end [2025-01-26 16:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:41:23] Production.INFO: ==1372== Releasing lock... [2025-01-26 16:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:41:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:42:05 [end_date_ymd] => 2025-01-26 16:42:05 [RateCDR] => 1 ) [2025-01-26 16:42: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-01-26 13:42:05' and `end` < '2025-01-26 16:42: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-01-26 16:42:17] Production.INFO: count ==1736 [2025-01-26 16:42:18] Production.ERROR: pbx CDR StartTime 2025-01-26 13:42:05 - End Time 2025-01-26 16:42:05 [2025-01-26 16:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335625', 'tblTempUsageDetail_20' ) start [2025-01-26 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335625', 'tblTempUsageDetail_20' ) end [2025-01-26 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335625', 'tblTempVendorCDR_20' ) start [2025-01-26 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335625', 'tblTempVendorCDR_20' ) end [2025-01-26 16:42:18] Production.INFO: ProcessCDR(1,14335625,1,1,2) [2025-01-26 16:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335625', 'tblTempUsageDetail_20' ) start [2025-01-26 16:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335625', 'tblTempUsageDetail_20' ) end [2025-01-26 16:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:42:21] Production.INFO: ==1449== Releasing lock... [2025-01-26 16:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:42:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:43:05 [end_date_ymd] => 2025-01-26 16:43:05 [RateCDR] => 1 ) [2025-01-26 16:43: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-01-26 13:43:05' and `end` < '2025-01-26 16:43: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-01-26 16:43:19] Production.INFO: count ==1737 [2025-01-26 16:43:19] Production.ERROR: pbx CDR StartTime 2025-01-26 13:43:05 - End Time 2025-01-26 16:43:05 [2025-01-26 16:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335630', 'tblTempUsageDetail_20' ) start [2025-01-26 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335630', 'tblTempUsageDetail_20' ) end [2025-01-26 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335630', 'tblTempVendorCDR_20' ) start [2025-01-26 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335630', 'tblTempVendorCDR_20' ) end [2025-01-26 16:43:19] Production.INFO: ProcessCDR(1,14335630,1,1,2) [2025-01-26 16:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335630', 'tblTempUsageDetail_20' ) start [2025-01-26 16:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335630', 'tblTempUsageDetail_20' ) end [2025-01-26 16:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:43:24] Production.INFO: ==1560== Releasing lock... [2025-01-26 16:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:43:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:44:05 [end_date_ymd] => 2025-01-26 16:44:05 [RateCDR] => 1 ) [2025-01-26 16:44: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-01-26 13:44:05' and `end` < '2025-01-26 16:44: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-01-26 16:44:20] Production.INFO: count ==1741 [2025-01-26 16:44:20] Production.ERROR: pbx CDR StartTime 2025-01-26 13:44:05 - End Time 2025-01-26 16:44:05 [2025-01-26 16:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335635', 'tblTempUsageDetail_20' ) start [2025-01-26 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335635', 'tblTempUsageDetail_20' ) end [2025-01-26 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335635', 'tblTempVendorCDR_20' ) start [2025-01-26 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335635', 'tblTempVendorCDR_20' ) end [2025-01-26 16:44:20] Production.INFO: ProcessCDR(1,14335635,1,1,2) [2025-01-26 16:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335635', 'tblTempUsageDetail_20' ) start [2025-01-26 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335635', 'tblTempUsageDetail_20' ) end [2025-01-26 16:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:44:23] Production.INFO: ==1637== Releasing lock... [2025-01-26 16:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:44:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:45:05 [end_date_ymd] => 2025-01-26 16:45:05 [RateCDR] => 1 ) [2025-01-26 16:45: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-01-26 13:45:05' and `end` < '2025-01-26 16:45: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-01-26 16:45:19] Production.INFO: count ==1744 [2025-01-26 16:45:19] Production.ERROR: pbx CDR StartTime 2025-01-26 13:45:05 - End Time 2025-01-26 16:45:05 [2025-01-26 16:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335640', 'tblTempUsageDetail_20' ) start [2025-01-26 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335640', 'tblTempUsageDetail_20' ) end [2025-01-26 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335640', 'tblTempVendorCDR_20' ) start [2025-01-26 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335640', 'tblTempVendorCDR_20' ) end [2025-01-26 16:45:19] Production.INFO: ProcessCDR(1,14335640,1,1,2) [2025-01-26 16:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335640', 'tblTempUsageDetail_20' ) start [2025-01-26 16:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335640', 'tblTempUsageDetail_20' ) end [2025-01-26 16:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:45:22] Production.INFO: ==1715== Releasing lock... [2025-01-26 16:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:45:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:46:05 [end_date_ymd] => 2025-01-26 16:46:05 [RateCDR] => 1 ) [2025-01-26 16:46: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-01-26 13:46:05' and `end` < '2025-01-26 16:46: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-01-26 16:46:18] Production.INFO: count ==1736 [2025-01-26 16:46:18] Production.ERROR: pbx CDR StartTime 2025-01-26 13:46:05 - End Time 2025-01-26 16:46:05 [2025-01-26 16:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335645', 'tblTempUsageDetail_20' ) start [2025-01-26 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335645', 'tblTempUsageDetail_20' ) end [2025-01-26 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335645', 'tblTempVendorCDR_20' ) start [2025-01-26 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335645', 'tblTempVendorCDR_20' ) end [2025-01-26 16:46:18] Production.INFO: ProcessCDR(1,14335645,1,1,2) [2025-01-26 16:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335645', 'tblTempUsageDetail_20' ) start [2025-01-26 16:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335645', 'tblTempUsageDetail_20' ) end [2025-01-26 16:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:46:22] Production.INFO: ==1798== Releasing lock... [2025-01-26 16:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:46:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-26 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:47:05 [end_date_ymd] => 2025-01-26 16:47:05 [RateCDR] => 1 ) [2025-01-26 16:47: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-01-26 13:47:05' and `end` < '2025-01-26 16:47: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-01-26 16:47:20] Production.INFO: count ==1736 [2025-01-26 16:47:20] Production.ERROR: pbx CDR StartTime 2025-01-26 13:47:05 - End Time 2025-01-26 16:47:05 [2025-01-26 16:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335650', 'tblTempUsageDetail_20' ) start [2025-01-26 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335650', 'tblTempUsageDetail_20' ) end [2025-01-26 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335650', 'tblTempVendorCDR_20' ) start [2025-01-26 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335650', 'tblTempVendorCDR_20' ) end [2025-01-26 16:47:20] Production.INFO: ProcessCDR(1,14335650,1,1,2) [2025-01-26 16:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335650', 'tblTempUsageDetail_20' ) start [2025-01-26 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335650', 'tblTempUsageDetail_20' ) end [2025-01-26 16:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:47:25] Production.INFO: ==1916== Releasing lock... [2025-01-26 16:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:47:25] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:48:05 [end_date_ymd] => 2025-01-26 16:48:05 [RateCDR] => 1 ) [2025-01-26 16:48: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-01-26 13:48:05' and `end` < '2025-01-26 16:48: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-01-26 16:48:19] Production.INFO: count ==1740 [2025-01-26 16:48:19] Production.ERROR: pbx CDR StartTime 2025-01-26 13:48:05 - End Time 2025-01-26 16:48:05 [2025-01-26 16:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335655', 'tblTempUsageDetail_20' ) start [2025-01-26 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335655', 'tblTempUsageDetail_20' ) end [2025-01-26 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335655', 'tblTempVendorCDR_20' ) start [2025-01-26 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335655', 'tblTempVendorCDR_20' ) end [2025-01-26 16:48:19] Production.INFO: ProcessCDR(1,14335655,1,1,2) [2025-01-26 16:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335655', 'tblTempUsageDetail_20' ) start [2025-01-26 16:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335655', 'tblTempUsageDetail_20' ) end [2025-01-26 16:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:48:22] Production.INFO: ==2056== Releasing lock... [2025-01-26 16:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:48:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:49:05 [end_date_ymd] => 2025-01-26 16:49:05 [RateCDR] => 1 ) [2025-01-26 16:49: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-01-26 13:49:05' and `end` < '2025-01-26 16:49: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-01-26 16:49:19] Production.INFO: count ==1744 [2025-01-26 16:49:20] Production.ERROR: pbx CDR StartTime 2025-01-26 13:49:05 - End Time 2025-01-26 16:49:05 [2025-01-26 16:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335660', 'tblTempUsageDetail_20' ) start [2025-01-26 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335660', 'tblTempUsageDetail_20' ) end [2025-01-26 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335660', 'tblTempVendorCDR_20' ) start [2025-01-26 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335660', 'tblTempVendorCDR_20' ) end [2025-01-26 16:49:20] Production.INFO: ProcessCDR(1,14335660,1,1,2) [2025-01-26 16:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335660', 'tblTempUsageDetail_20' ) start [2025-01-26 16:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335660', 'tblTempUsageDetail_20' ) end [2025-01-26 16:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:49:24] Production.INFO: ==2154== Releasing lock... [2025-01-26 16:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:49:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:50:06 [end_date_ymd] => 2025-01-26 16:50:06 [RateCDR] => 1 ) [2025-01-26 16:50: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-01-26 13:50:06' and `end` < '2025-01-26 16:50: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-01-26 16:50:28] Production.INFO: count ==1749 [2025-01-26 16:50:28] Production.ERROR: pbx CDR StartTime 2025-01-26 13:50:06 - End Time 2025-01-26 16:50:06 [2025-01-26 16:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335666', 'tblTempUsageDetail_20' ) start [2025-01-26 16:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335666', 'tblTempUsageDetail_20' ) end [2025-01-26 16:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335666', 'tblTempVendorCDR_20' ) start [2025-01-26 16:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335666', 'tblTempVendorCDR_20' ) end [2025-01-26 16:50:28] Production.INFO: ProcessCDR(1,14335666,1,1,2) [2025-01-26 16:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:50:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:50:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335666', 'tblTempUsageDetail_20' ) start [2025-01-26 16:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335666', 'tblTempUsageDetail_20' ) end [2025-01-26 16:50:33] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:50:33] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:50:33] Production.INFO: ==2238== Releasing lock... [2025-01-26 16:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:50:33] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 16:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:51:04 [end_date_ymd] => 2025-01-26 16:51:04 [RateCDR] => 1 ) [2025-01-26 16:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 13:51:04' and `end` < '2025-01-26 16:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 16:51:20] Production.INFO: count ==1777 [2025-01-26 16:51:20] Production.ERROR: pbx CDR StartTime 2025-01-26 13:51:04 - End Time 2025-01-26 16:51:04 [2025-01-26 16:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335671', 'tblTempUsageDetail_20' ) start [2025-01-26 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335671', 'tblTempUsageDetail_20' ) end [2025-01-26 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335671', 'tblTempVendorCDR_20' ) start [2025-01-26 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335671', 'tblTempVendorCDR_20' ) end [2025-01-26 16:51:20] Production.INFO: ProcessCDR(1,14335671,1,1,2) [2025-01-26 16:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335671', 'tblTempUsageDetail_20' ) start [2025-01-26 16:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335671', 'tblTempUsageDetail_20' ) end [2025-01-26 16:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:51:24] Production.INFO: ==2316== Releasing lock... [2025-01-26 16:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:51:24] Production.INFO: 41 MB #Memory Used# [2025-01-26 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:52:05 [end_date_ymd] => 2025-01-26 16:52:05 [RateCDR] => 1 ) [2025-01-26 16:52: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-01-26 13:52:05' and `end` < '2025-01-26 16:52: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-01-26 16:52:20] Production.INFO: count ==1786 [2025-01-26 16:52:21] Production.ERROR: pbx CDR StartTime 2025-01-26 13:52:05 - End Time 2025-01-26 16:52:05 [2025-01-26 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335676', 'tblTempUsageDetail_20' ) start [2025-01-26 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335676', 'tblTempUsageDetail_20' ) end [2025-01-26 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335676', 'tblTempVendorCDR_20' ) start [2025-01-26 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335676', 'tblTempVendorCDR_20' ) end [2025-01-26 16:52:21] Production.INFO: ProcessCDR(1,14335676,1,1,2) [2025-01-26 16:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335676', 'tblTempUsageDetail_20' ) start [2025-01-26 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335676', 'tblTempUsageDetail_20' ) end [2025-01-26 16:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:52:25] Production.INFO: ==2391== Releasing lock... [2025-01-26 16:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:52:25] Production.INFO: 41 MB #Memory Used# [2025-01-26 16:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:53:04 [end_date_ymd] => 2025-01-26 16:53:04 [RateCDR] => 1 ) [2025-01-26 16:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 13:53:04' and `end` < '2025-01-26 16:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 16:53:17] Production.INFO: count ==1783 [2025-01-26 16:53:17] Production.ERROR: pbx CDR StartTime 2025-01-26 13:53:04 - End Time 2025-01-26 16:53:04 [2025-01-26 16:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335681', 'tblTempUsageDetail_20' ) start [2025-01-26 16:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335681', 'tblTempUsageDetail_20' ) end [2025-01-26 16:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335681', 'tblTempVendorCDR_20' ) start [2025-01-26 16:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335681', 'tblTempVendorCDR_20' ) end [2025-01-26 16:53:17] Production.INFO: ProcessCDR(1,14335681,1,1,2) [2025-01-26 16:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335681', 'tblTempUsageDetail_20' ) start [2025-01-26 16:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335681', 'tblTempUsageDetail_20' ) end [2025-01-26 16:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:53:21] Production.INFO: ==2467== Releasing lock... [2025-01-26 16:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:53:21] Production.INFO: 41 MB #Memory Used# [2025-01-26 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:54:05 [end_date_ymd] => 2025-01-26 16:54:05 [RateCDR] => 1 ) [2025-01-26 16:54: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-01-26 13:54:05' and `end` < '2025-01-26 16:54: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-01-26 16:54:18] Production.INFO: count ==1785 [2025-01-26 16:54:18] Production.ERROR: pbx CDR StartTime 2025-01-26 13:54:05 - End Time 2025-01-26 16:54:05 [2025-01-26 16:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335686', 'tblTempUsageDetail_20' ) start [2025-01-26 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335686', 'tblTempUsageDetail_20' ) end [2025-01-26 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335686', 'tblTempVendorCDR_20' ) start [2025-01-26 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335686', 'tblTempVendorCDR_20' ) end [2025-01-26 16:54:18] Production.INFO: ProcessCDR(1,14335686,1,1,2) [2025-01-26 16:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335686', 'tblTempUsageDetail_20' ) start [2025-01-26 16:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335686', 'tblTempUsageDetail_20' ) end [2025-01-26 16:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:54:22] Production.INFO: ==2542== Releasing lock... [2025-01-26 16:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:54:22] Production.INFO: 41 MB #Memory Used# [2025-01-26 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:55:05 [end_date_ymd] => 2025-01-26 16:55:05 [RateCDR] => 1 ) [2025-01-26 16:55: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-01-26 13:55:05' and `end` < '2025-01-26 16:55: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-01-26 16:55:19] Production.INFO: count ==1787 [2025-01-26 16:55:19] Production.ERROR: pbx CDR StartTime 2025-01-26 13:55:05 - End Time 2025-01-26 16:55:05 [2025-01-26 16:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335691', 'tblTempUsageDetail_20' ) start [2025-01-26 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335691', 'tblTempUsageDetail_20' ) end [2025-01-26 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335691', 'tblTempVendorCDR_20' ) start [2025-01-26 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335691', 'tblTempVendorCDR_20' ) end [2025-01-26 16:55:19] Production.INFO: ProcessCDR(1,14335691,1,1,2) [2025-01-26 16:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335691', 'tblTempUsageDetail_20' ) start [2025-01-26 16:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335691', 'tblTempUsageDetail_20' ) end [2025-01-26 16:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:55:23] Production.INFO: ==2615== Releasing lock... [2025-01-26 16:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:55:23] Production.INFO: 41 MB #Memory Used# [2025-01-26 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:56:05 [end_date_ymd] => 2025-01-26 16:56:05 [RateCDR] => 1 ) [2025-01-26 16:56: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-01-26 13:56:05' and `end` < '2025-01-26 16:56: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-01-26 16:56:19] Production.INFO: count ==1787 [2025-01-26 16:56:19] Production.ERROR: pbx CDR StartTime 2025-01-26 13:56:05 - End Time 2025-01-26 16:56:05 [2025-01-26 16:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335696', 'tblTempUsageDetail_20' ) start [2025-01-26 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335696', 'tblTempUsageDetail_20' ) end [2025-01-26 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335696', 'tblTempVendorCDR_20' ) start [2025-01-26 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335696', 'tblTempVendorCDR_20' ) end [2025-01-26 16:56:19] Production.INFO: ProcessCDR(1,14335696,1,1,2) [2025-01-26 16:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335696', 'tblTempUsageDetail_20' ) start [2025-01-26 16:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335696', 'tblTempUsageDetail_20' ) end [2025-01-26 16:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:56:22] Production.INFO: ==2690== Releasing lock... [2025-01-26 16:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:56:22] Production.INFO: 41 MB #Memory Used# [2025-01-26 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:57:05 [end_date_ymd] => 2025-01-26 16:57:05 [RateCDR] => 1 ) [2025-01-26 16:57: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-01-26 13:57:05' and `end` < '2025-01-26 16:57: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-01-26 16:57:18] Production.INFO: count ==1789 [2025-01-26 16:57:18] Production.ERROR: pbx CDR StartTime 2025-01-26 13:57:05 - End Time 2025-01-26 16:57:05 [2025-01-26 16:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335701', 'tblTempUsageDetail_20' ) start [2025-01-26 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335701', 'tblTempUsageDetail_20' ) end [2025-01-26 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335701', 'tblTempVendorCDR_20' ) start [2025-01-26 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335701', 'tblTempVendorCDR_20' ) end [2025-01-26 16:57:18] Production.INFO: ProcessCDR(1,14335701,1,1,2) [2025-01-26 16:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335701', 'tblTempUsageDetail_20' ) start [2025-01-26 16:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335701', 'tblTempUsageDetail_20' ) end [2025-01-26 16:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:57:22] Production.INFO: ==2761== Releasing lock... [2025-01-26 16:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:57:22] Production.INFO: 41 MB #Memory Used# [2025-01-26 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:58:05 [end_date_ymd] => 2025-01-26 16:58:05 [RateCDR] => 1 ) [2025-01-26 16:58: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-01-26 13:58:05' and `end` < '2025-01-26 16:58: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-01-26 16:58:18] Production.INFO: count ==1788 [2025-01-26 16:58:19] Production.ERROR: pbx CDR StartTime 2025-01-26 13:58:05 - End Time 2025-01-26 16:58:05 [2025-01-26 16:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335706', 'tblTempUsageDetail_20' ) start [2025-01-26 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335706', 'tblTempUsageDetail_20' ) end [2025-01-26 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335706', 'tblTempVendorCDR_20' ) start [2025-01-26 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335706', 'tblTempVendorCDR_20' ) end [2025-01-26 16:58:19] Production.INFO: ProcessCDR(1,14335706,1,1,2) [2025-01-26 16:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335706', 'tblTempUsageDetail_20' ) start [2025-01-26 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335706', 'tblTempUsageDetail_20' ) end [2025-01-26 16:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:58:22] Production.INFO: ==2834== Releasing lock... [2025-01-26 16:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:58:22] Production.INFO: 41 MB #Memory Used# [2025-01-26 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 13:59:05 [end_date_ymd] => 2025-01-26 16:59:05 [RateCDR] => 1 ) [2025-01-26 16:59: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-01-26 13:59:05' and `end` < '2025-01-26 16:59: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-01-26 16:59:20] Production.INFO: count ==1792 [2025-01-26 16:59:20] Production.ERROR: pbx CDR StartTime 2025-01-26 13:59:05 - End Time 2025-01-26 16:59:05 [2025-01-26 16:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335711', 'tblTempUsageDetail_20' ) start [2025-01-26 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335711', 'tblTempUsageDetail_20' ) end [2025-01-26 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335711', 'tblTempVendorCDR_20' ) start [2025-01-26 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335711', 'tblTempVendorCDR_20' ) end [2025-01-26 16:59:20] Production.INFO: ProcessCDR(1,14335711,1,1,2) [2025-01-26 16:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 16:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335711', 'tblTempUsageDetail_20' ) start [2025-01-26 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335711', 'tblTempUsageDetail_20' ) end [2025-01-26 16:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 16:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 16:59:23] Production.INFO: ==2910== Releasing lock... [2025-01-26 16:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 16:59:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-26 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:00:05 [end_date_ymd] => 2025-01-26 17:00:05 [RateCDR] => 1 ) [2025-01-26 17: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-01-26 14:00:05' and `end` < '2025-01-26 17: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-01-26 17:00:23] Production.INFO: count ==1799 [2025-01-26 17:00:24] Production.ERROR: pbx CDR StartTime 2025-01-26 14:00:05 - End Time 2025-01-26 17:00:05 [2025-01-26 17:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335717', 'tblTempUsageDetail_20' ) start [2025-01-26 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335717', 'tblTempUsageDetail_20' ) end [2025-01-26 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335717', 'tblTempVendorCDR_20' ) start [2025-01-26 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335717', 'tblTempVendorCDR_20' ) end [2025-01-26 17:00:24] Production.INFO: ProcessCDR(1,14335717,1,1,2) [2025-01-26 17:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335717', 'tblTempUsageDetail_20' ) start [2025-01-26 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335717', 'tblTempUsageDetail_20' ) end [2025-01-26 17:00:27] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:00:27] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:00:27] Production.INFO: ==2986== Releasing lock... [2025-01-26 17:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:00:27] Production.INFO: 41 MB #Memory Used# [2025-01-26 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:01:05 [end_date_ymd] => 2025-01-26 17:01:05 [RateCDR] => 1 ) [2025-01-26 17:01: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-01-26 14:01:05' and `end` < '2025-01-26 17:01: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-01-26 17:01:21] Production.INFO: count ==1847 [2025-01-26 17:01:21] Production.ERROR: pbx CDR StartTime 2025-01-26 14:01:05 - End Time 2025-01-26 17:01:05 [2025-01-26 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335722', 'tblTempUsageDetail_20' ) start [2025-01-26 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335722', 'tblTempUsageDetail_20' ) end [2025-01-26 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335722', 'tblTempVendorCDR_20' ) start [2025-01-26 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335722', 'tblTempVendorCDR_20' ) end [2025-01-26 17:01:21] Production.INFO: ProcessCDR(1,14335722,1,1,2) [2025-01-26 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335722', 'tblTempUsageDetail_20' ) start [2025-01-26 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335722', 'tblTempUsageDetail_20' ) end [2025-01-26 17:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:01:24] Production.INFO: ==3075== Releasing lock... [2025-01-26 17:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:01:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-26 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:02:05 [end_date_ymd] => 2025-01-26 17:02:05 [RateCDR] => 1 ) [2025-01-26 17:02: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-01-26 14:02:05' and `end` < '2025-01-26 17:02: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-01-26 17:02:19] Production.INFO: count ==1855 [2025-01-26 17:02:20] Production.ERROR: pbx CDR StartTime 2025-01-26 14:02:05 - End Time 2025-01-26 17:02:05 [2025-01-26 17:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335727', 'tblTempUsageDetail_20' ) start [2025-01-26 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335727', 'tblTempUsageDetail_20' ) end [2025-01-26 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335727', 'tblTempVendorCDR_20' ) start [2025-01-26 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335727', 'tblTempVendorCDR_20' ) end [2025-01-26 17:02:20] Production.INFO: ProcessCDR(1,14335727,1,1,2) [2025-01-26 17:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335727', 'tblTempUsageDetail_20' ) start [2025-01-26 17:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335727', 'tblTempUsageDetail_20' ) end [2025-01-26 17:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:02:23] Production.INFO: ==3153== Releasing lock... [2025-01-26 17:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:02:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-26 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:03:05 [end_date_ymd] => 2025-01-26 17:03:05 [RateCDR] => 1 ) [2025-01-26 17:03: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-01-26 14:03:05' and `end` < '2025-01-26 17:03: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-01-26 17:03:23] Production.INFO: count ==1868 [2025-01-26 17:03:23] Production.ERROR: pbx CDR StartTime 2025-01-26 14:03:05 - End Time 2025-01-26 17:03:05 [2025-01-26 17:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335732', 'tblTempUsageDetail_20' ) start [2025-01-26 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335732', 'tblTempUsageDetail_20' ) end [2025-01-26 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335732', 'tblTempVendorCDR_20' ) start [2025-01-26 17:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335732', 'tblTempVendorCDR_20' ) end [2025-01-26 17:03:23] Production.INFO: ProcessCDR(1,14335732,1,1,2) [2025-01-26 17:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335732', 'tblTempUsageDetail_20' ) start [2025-01-26 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335732', 'tblTempUsageDetail_20' ) end [2025-01-26 17:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:03:26] Production.INFO: ==3225== Releasing lock... [2025-01-26 17:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:03:26] Production.INFO: 41.5 MB #Memory Used# [2025-01-26 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:04:05 [end_date_ymd] => 2025-01-26 17:04:05 [RateCDR] => 1 ) [2025-01-26 17:04: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-01-26 14:04:05' and `end` < '2025-01-26 17:04: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-01-26 17:04:20] Production.INFO: count ==1869 [2025-01-26 17:04:20] Production.ERROR: pbx CDR StartTime 2025-01-26 14:04:05 - End Time 2025-01-26 17:04:05 [2025-01-26 17:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335737', 'tblTempUsageDetail_20' ) start [2025-01-26 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335737', 'tblTempUsageDetail_20' ) end [2025-01-26 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335737', 'tblTempVendorCDR_20' ) start [2025-01-26 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335737', 'tblTempVendorCDR_20' ) end [2025-01-26 17:04:20] Production.INFO: ProcessCDR(1,14335737,1,1,2) [2025-01-26 17:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335737', 'tblTempUsageDetail_20' ) start [2025-01-26 17:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335737', 'tblTempUsageDetail_20' ) end [2025-01-26 17:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:04:23] Production.INFO: ==3343== Releasing lock... [2025-01-26 17:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:04:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-26 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:05:05 [end_date_ymd] => 2025-01-26 17:05:05 [RateCDR] => 1 ) [2025-01-26 17:05: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-01-26 14:05:05' and `end` < '2025-01-26 17:05: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-01-26 17:05:19] Production.INFO: count ==1868 [2025-01-26 17:05:19] Production.ERROR: pbx CDR StartTime 2025-01-26 14:05:05 - End Time 2025-01-26 17:05:05 [2025-01-26 17:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335742', 'tblTempUsageDetail_20' ) start [2025-01-26 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335742', 'tblTempUsageDetail_20' ) end [2025-01-26 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335742', 'tblTempVendorCDR_20' ) start [2025-01-26 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335742', 'tblTempVendorCDR_20' ) end [2025-01-26 17:05:19] Production.INFO: ProcessCDR(1,14335742,1,1,2) [2025-01-26 17:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335742', 'tblTempUsageDetail_20' ) start [2025-01-26 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335742', 'tblTempUsageDetail_20' ) end [2025-01-26 17:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:05:23] Production.INFO: ==3443== Releasing lock... [2025-01-26 17:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:05:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-26 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:06:05 [end_date_ymd] => 2025-01-26 17:06:05 [RateCDR] => 1 ) [2025-01-26 17:06: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-01-26 14:06:05' and `end` < '2025-01-26 17:06: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-01-26 17:06:18] Production.INFO: count ==1871 [2025-01-26 17:06:18] Production.ERROR: pbx CDR StartTime 2025-01-26 14:06:05 - End Time 2025-01-26 17:06:05 [2025-01-26 17:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335747', 'tblTempUsageDetail_20' ) start [2025-01-26 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335747', 'tblTempUsageDetail_20' ) end [2025-01-26 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335747', 'tblTempVendorCDR_20' ) start [2025-01-26 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335747', 'tblTempVendorCDR_20' ) end [2025-01-26 17:06:18] Production.INFO: ProcessCDR(1,14335747,1,1,2) [2025-01-26 17:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335747', 'tblTempUsageDetail_20' ) start [2025-01-26 17:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335747', 'tblTempUsageDetail_20' ) end [2025-01-26 17:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:06:23] Production.INFO: ==3562== Releasing lock... [2025-01-26 17:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:06:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-26 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:07:05 [end_date_ymd] => 2025-01-26 17:07:05 [RateCDR] => 1 ) [2025-01-26 17:07: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-01-26 14:07:05' and `end` < '2025-01-26 17:07: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-01-26 17:07:17] Production.INFO: count ==1869 [2025-01-26 17:07:18] Production.ERROR: pbx CDR StartTime 2025-01-26 14:07:05 - End Time 2025-01-26 17:07:05 [2025-01-26 17:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335752', 'tblTempUsageDetail_20' ) start [2025-01-26 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335752', 'tblTempUsageDetail_20' ) end [2025-01-26 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335752', 'tblTempVendorCDR_20' ) start [2025-01-26 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335752', 'tblTempVendorCDR_20' ) end [2025-01-26 17:07:18] Production.INFO: ProcessCDR(1,14335752,1,1,2) [2025-01-26 17:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335752', 'tblTempUsageDetail_20' ) start [2025-01-26 17:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335752', 'tblTempUsageDetail_20' ) end [2025-01-26 17:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:07:21] Production.INFO: ==3648== Releasing lock... [2025-01-26 17:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:07:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-26 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:08:05 [end_date_ymd] => 2025-01-26 17:08:05 [RateCDR] => 1 ) [2025-01-26 17:08: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-01-26 14:08:05' and `end` < '2025-01-26 17:08: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-01-26 17:08:21] Production.INFO: count ==1875 [2025-01-26 17:08:22] Production.ERROR: pbx CDR StartTime 2025-01-26 14:08:05 - End Time 2025-01-26 17:08:05 [2025-01-26 17:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335757', 'tblTempUsageDetail_20' ) start [2025-01-26 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335757', 'tblTempUsageDetail_20' ) end [2025-01-26 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335757', 'tblTempVendorCDR_20' ) start [2025-01-26 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335757', 'tblTempVendorCDR_20' ) end [2025-01-26 17:08:22] Production.INFO: ProcessCDR(1,14335757,1,1,2) [2025-01-26 17:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335757', 'tblTempUsageDetail_20' ) start [2025-01-26 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335757', 'tblTempUsageDetail_20' ) end [2025-01-26 17:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:08:25] Production.INFO: ==3721== Releasing lock... [2025-01-26 17:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:08:25] Production.INFO: 41.75 MB #Memory Used# [2025-01-26 17:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:09:04 [end_date_ymd] => 2025-01-26 17:09:04 [RateCDR] => 1 ) [2025-01-26 17:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 14:09:04' and `end` < '2025-01-26 17:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 17:09:18] Production.INFO: count ==1877 [2025-01-26 17:09:18] Production.ERROR: pbx CDR StartTime 2025-01-26 14:09:04 - End Time 2025-01-26 17:09:04 [2025-01-26 17:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335762', 'tblTempUsageDetail_20' ) start [2025-01-26 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335762', 'tblTempUsageDetail_20' ) end [2025-01-26 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335762', 'tblTempVendorCDR_20' ) start [2025-01-26 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335762', 'tblTempVendorCDR_20' ) end [2025-01-26 17:09:18] Production.INFO: ProcessCDR(1,14335762,1,1,2) [2025-01-26 17:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335762', 'tblTempUsageDetail_20' ) start [2025-01-26 17:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335762', 'tblTempUsageDetail_20' ) end [2025-01-26 17:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:09:22] Production.INFO: ==3794== Releasing lock... [2025-01-26 17:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:09:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-26 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:10:06 [end_date_ymd] => 2025-01-26 17:10:06 [RateCDR] => 1 ) [2025-01-26 17:10: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-01-26 14:10:06' and `end` < '2025-01-26 17:10: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-01-26 17:10:20] Production.INFO: count ==1878 [2025-01-26 17:10:20] Production.ERROR: pbx CDR StartTime 2025-01-26 14:10:06 - End Time 2025-01-26 17:10:06 [2025-01-26 17:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335768', 'tblTempUsageDetail_20' ) start [2025-01-26 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335768', 'tblTempUsageDetail_20' ) end [2025-01-26 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335768', 'tblTempVendorCDR_20' ) start [2025-01-26 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335768', 'tblTempVendorCDR_20' ) end [2025-01-26 17:10:20] Production.INFO: ProcessCDR(1,14335768,1,1,2) [2025-01-26 17:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335768', 'tblTempUsageDetail_20' ) start [2025-01-26 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335768', 'tblTempUsageDetail_20' ) end [2025-01-26 17:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:10:23] Production.INFO: ==3872== Releasing lock... [2025-01-26 17:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:10:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-26 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:11:05 [end_date_ymd] => 2025-01-26 17:11:05 [RateCDR] => 1 ) [2025-01-26 17:11: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-01-26 14:11:05' and `end` < '2025-01-26 17:11: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-01-26 17:11:21] Production.INFO: count ==1920 [2025-01-26 17:11:21] Production.ERROR: pbx CDR StartTime 2025-01-26 14:11:05 - End Time 2025-01-26 17:11:05 [2025-01-26 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335773', 'tblTempUsageDetail_20' ) start [2025-01-26 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335773', 'tblTempUsageDetail_20' ) end [2025-01-26 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335773', 'tblTempVendorCDR_20' ) start [2025-01-26 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335773', 'tblTempVendorCDR_20' ) end [2025-01-26 17:11:22] Production.INFO: ProcessCDR(1,14335773,1,1,2) [2025-01-26 17:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335773', 'tblTempUsageDetail_20' ) start [2025-01-26 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335773', 'tblTempUsageDetail_20' ) end [2025-01-26 17:11:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:11:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:11:25] Production.INFO: ==3946== Releasing lock... [2025-01-26 17:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:11:25] Production.INFO: 42 MB #Memory Used# [2025-01-26 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:12:05 [end_date_ymd] => 2025-01-26 17:12:05 [RateCDR] => 1 ) [2025-01-26 17:12: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-01-26 14:12:05' and `end` < '2025-01-26 17:12: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-01-26 17:12:22] Production.INFO: count ==1915 [2025-01-26 17:12:22] Production.ERROR: pbx CDR StartTime 2025-01-26 14:12:05 - End Time 2025-01-26 17:12:05 [2025-01-26 17:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335778', 'tblTempUsageDetail_20' ) start [2025-01-26 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335778', 'tblTempUsageDetail_20' ) end [2025-01-26 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335778', 'tblTempVendorCDR_20' ) start [2025-01-26 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335778', 'tblTempVendorCDR_20' ) end [2025-01-26 17:12:22] Production.INFO: ProcessCDR(1,14335778,1,1,2) [2025-01-26 17:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335778', 'tblTempUsageDetail_20' ) start [2025-01-26 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335778', 'tblTempUsageDetail_20' ) end [2025-01-26 17:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:12:26] Production.INFO: ==4019== Releasing lock... [2025-01-26 17:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:12:26] Production.INFO: 42 MB #Memory Used# [2025-01-26 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:13:05 [end_date_ymd] => 2025-01-26 17:13:05 [RateCDR] => 1 ) [2025-01-26 17:13: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-01-26 14:13:05' and `end` < '2025-01-26 17:13: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-01-26 17:13:20] Production.INFO: count ==1915 [2025-01-26 17:13:21] Production.ERROR: pbx CDR StartTime 2025-01-26 14:13:05 - End Time 2025-01-26 17:13:05 [2025-01-26 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335783', 'tblTempUsageDetail_20' ) start [2025-01-26 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335783', 'tblTempUsageDetail_20' ) end [2025-01-26 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335783', 'tblTempVendorCDR_20' ) start [2025-01-26 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335783', 'tblTempVendorCDR_20' ) end [2025-01-26 17:13:21] Production.INFO: ProcessCDR(1,14335783,1,1,2) [2025-01-26 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335783', 'tblTempUsageDetail_20' ) start [2025-01-26 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335783', 'tblTempUsageDetail_20' ) end [2025-01-26 17:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:13:24] Production.INFO: ==4093== Releasing lock... [2025-01-26 17:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:13:24] Production.INFO: 42 MB #Memory Used# [2025-01-26 17:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:14:06 [end_date_ymd] => 2025-01-26 17:14:06 [RateCDR] => 1 ) [2025-01-26 17:14: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-01-26 14:14:06' and `end` < '2025-01-26 17:14: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-01-26 17:14:21] Production.INFO: count ==1923 [2025-01-26 17:14:22] Production.ERROR: pbx CDR StartTime 2025-01-26 14:14:06 - End Time 2025-01-26 17:14:06 [2025-01-26 17:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335788', 'tblTempUsageDetail_20' ) start [2025-01-26 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335788', 'tblTempUsageDetail_20' ) end [2025-01-26 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335788', 'tblTempVendorCDR_20' ) start [2025-01-26 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335788', 'tblTempVendorCDR_20' ) end [2025-01-26 17:14:22] Production.INFO: ProcessCDR(1,14335788,1,1,2) [2025-01-26 17:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335788', 'tblTempUsageDetail_20' ) start [2025-01-26 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335788', 'tblTempUsageDetail_20' ) end [2025-01-26 17:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:14:25] Production.INFO: ==4168== Releasing lock... [2025-01-26 17:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:14:25] Production.INFO: 42 MB #Memory Used# [2025-01-26 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:15:05 [end_date_ymd] => 2025-01-26 17:15:05 [RateCDR] => 1 ) [2025-01-26 17:15: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-01-26 14:15:05' and `end` < '2025-01-26 17:15: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-01-26 17:15:22] Production.INFO: count ==1924 [2025-01-26 17:15:22] Production.ERROR: pbx CDR StartTime 2025-01-26 14:15:05 - End Time 2025-01-26 17:15:05 [2025-01-26 17:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335793', 'tblTempUsageDetail_20' ) start [2025-01-26 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335793', 'tblTempUsageDetail_20' ) end [2025-01-26 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335793', 'tblTempVendorCDR_20' ) start [2025-01-26 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335793', 'tblTempVendorCDR_20' ) end [2025-01-26 17:15:22] Production.INFO: ProcessCDR(1,14335793,1,1,2) [2025-01-26 17:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335793', 'tblTempUsageDetail_20' ) start [2025-01-26 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335793', 'tblTempUsageDetail_20' ) end [2025-01-26 17:15:27] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:15:27] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:15:27] Production.INFO: ==4239== Releasing lock... [2025-01-26 17:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:15:27] Production.INFO: 42 MB #Memory Used# [2025-01-26 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:16:05 [end_date_ymd] => 2025-01-26 17:16:05 [RateCDR] => 1 ) [2025-01-26 17:16: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-01-26 14:16:05' and `end` < '2025-01-26 17:16: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-01-26 17:16:22] Production.INFO: count ==1925 [2025-01-26 17:16:23] Production.ERROR: pbx CDR StartTime 2025-01-26 14:16:05 - End Time 2025-01-26 17:16:05 [2025-01-26 17:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335798', 'tblTempUsageDetail_20' ) start [2025-01-26 17:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335798', 'tblTempUsageDetail_20' ) end [2025-01-26 17:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335798', 'tblTempVendorCDR_20' ) start [2025-01-26 17:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335798', 'tblTempVendorCDR_20' ) end [2025-01-26 17:16:23] Production.INFO: ProcessCDR(1,14335798,1,1,2) [2025-01-26 17:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335798', 'tblTempUsageDetail_20' ) start [2025-01-26 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335798', 'tblTempUsageDetail_20' ) end [2025-01-26 17:16:27] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:16:27] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:16:27] Production.INFO: ==4314== Releasing lock... [2025-01-26 17:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:16:27] Production.INFO: 42 MB #Memory Used# [2025-01-26 17:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:17:04 [end_date_ymd] => 2025-01-26 17:17:04 [RateCDR] => 1 ) [2025-01-26 17:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 14:17:04' and `end` < '2025-01-26 17:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 17:17:19] Production.INFO: count ==1933 [2025-01-26 17:17:19] Production.ERROR: pbx CDR StartTime 2025-01-26 14:17:04 - End Time 2025-01-26 17:17:04 [2025-01-26 17:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335803', 'tblTempUsageDetail_20' ) start [2025-01-26 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335803', 'tblTempUsageDetail_20' ) end [2025-01-26 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335803', 'tblTempVendorCDR_20' ) start [2025-01-26 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335803', 'tblTempVendorCDR_20' ) end [2025-01-26 17:17:19] Production.INFO: ProcessCDR(1,14335803,1,1,2) [2025-01-26 17:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335803', 'tblTempUsageDetail_20' ) start [2025-01-26 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335803', 'tblTempUsageDetail_20' ) end [2025-01-26 17:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:17:24] Production.INFO: ==4387== Releasing lock... [2025-01-26 17:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:17:24] Production.INFO: 42 MB #Memory Used# [2025-01-26 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:18:05 [end_date_ymd] => 2025-01-26 17:18:05 [RateCDR] => 1 ) [2025-01-26 17:18: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-01-26 14:18:05' and `end` < '2025-01-26 17:18: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-01-26 17:18:18] Production.INFO: count ==1930 [2025-01-26 17:18:18] Production.ERROR: pbx CDR StartTime 2025-01-26 14:18:05 - End Time 2025-01-26 17:18:05 [2025-01-26 17:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335808', 'tblTempUsageDetail_20' ) start [2025-01-26 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335808', 'tblTempUsageDetail_20' ) end [2025-01-26 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335808', 'tblTempVendorCDR_20' ) start [2025-01-26 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335808', 'tblTempVendorCDR_20' ) end [2025-01-26 17:18:18] Production.INFO: ProcessCDR(1,14335808,1,1,2) [2025-01-26 17:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335808', 'tblTempUsageDetail_20' ) start [2025-01-26 17:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335808', 'tblTempUsageDetail_20' ) end [2025-01-26 17:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:18:22] Production.INFO: ==4457== Releasing lock... [2025-01-26 17:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:18:22] Production.INFO: 42 MB #Memory Used# [2025-01-26 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:19:05 [end_date_ymd] => 2025-01-26 17:19:05 [RateCDR] => 1 ) [2025-01-26 17:19: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-01-26 14:19:05' and `end` < '2025-01-26 17:19: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-01-26 17:19:19] Production.INFO: count ==1928 [2025-01-26 17:19:19] Production.ERROR: pbx CDR StartTime 2025-01-26 14:19:05 - End Time 2025-01-26 17:19:05 [2025-01-26 17:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335813', 'tblTempUsageDetail_20' ) start [2025-01-26 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335813', 'tblTempUsageDetail_20' ) end [2025-01-26 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335813', 'tblTempVendorCDR_20' ) start [2025-01-26 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335813', 'tblTempVendorCDR_20' ) end [2025-01-26 17:19:19] Production.INFO: ProcessCDR(1,14335813,1,1,2) [2025-01-26 17:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335813', 'tblTempUsageDetail_20' ) start [2025-01-26 17:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335813', 'tblTempUsageDetail_20' ) end [2025-01-26 17:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:19:22] Production.INFO: ==4571== Releasing lock... [2025-01-26 17:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:19:22] Production.INFO: 42 MB #Memory Used# [2025-01-26 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:20:05 [end_date_ymd] => 2025-01-26 17:20:05 [RateCDR] => 1 ) [2025-01-26 17:20: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-01-26 14:20:05' and `end` < '2025-01-26 17:20: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-01-26 17:20:21] Production.INFO: count ==1924 [2025-01-26 17:20:21] Production.ERROR: pbx CDR StartTime 2025-01-26 14:20:05 - End Time 2025-01-26 17:20:05 [2025-01-26 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335819', 'tblTempUsageDetail_20' ) start [2025-01-26 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335819', 'tblTempUsageDetail_20' ) end [2025-01-26 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335819', 'tblTempVendorCDR_20' ) start [2025-01-26 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335819', 'tblTempVendorCDR_20' ) end [2025-01-26 17:20:21] Production.INFO: ProcessCDR(1,14335819,1,1,2) [2025-01-26 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335819', 'tblTempUsageDetail_20' ) start [2025-01-26 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335819', 'tblTempUsageDetail_20' ) end [2025-01-26 17:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:20:24] Production.INFO: ==4652== Releasing lock... [2025-01-26 17:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:20:24] Production.INFO: 42 MB #Memory Used# [2025-01-26 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:21:05 [end_date_ymd] => 2025-01-26 17:21:05 [RateCDR] => 1 ) [2025-01-26 17:21: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-01-26 14:21:05' and `end` < '2025-01-26 17:21: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-01-26 17:21:21] Production.INFO: count ==2022 [2025-01-26 17:21:21] Production.ERROR: pbx CDR StartTime 2025-01-26 14:21:05 - End Time 2025-01-26 17:21:05 [2025-01-26 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335824', 'tblTempUsageDetail_20' ) start [2025-01-26 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335824', 'tblTempUsageDetail_20' ) end [2025-01-26 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335824', 'tblTempVendorCDR_20' ) start [2025-01-26 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335824', 'tblTempVendorCDR_20' ) end [2025-01-26 17:21:21] Production.INFO: ProcessCDR(1,14335824,1,1,2) [2025-01-26 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335824', 'tblTempUsageDetail_20' ) start [2025-01-26 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335824', 'tblTempUsageDetail_20' ) end [2025-01-26 17:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:21:24] Production.INFO: ==4726== Releasing lock... [2025-01-26 17:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:21:24] Production.INFO: 42.75 MB #Memory Used# [2025-01-26 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:22:05 [end_date_ymd] => 2025-01-26 17:22:05 [RateCDR] => 1 ) [2025-01-26 17:22: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-01-26 14:22:05' and `end` < '2025-01-26 17:22: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-01-26 17:22:20] Production.INFO: count ==2019 [2025-01-26 17:22:20] Production.ERROR: pbx CDR StartTime 2025-01-26 14:22:05 - End Time 2025-01-26 17:22:05 [2025-01-26 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335829', 'tblTempUsageDetail_20' ) start [2025-01-26 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335829', 'tblTempUsageDetail_20' ) end [2025-01-26 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335829', 'tblTempVendorCDR_20' ) start [2025-01-26 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335829', 'tblTempVendorCDR_20' ) end [2025-01-26 17:22:20] Production.INFO: ProcessCDR(1,14335829,1,1,2) [2025-01-26 17:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335829', 'tblTempUsageDetail_20' ) start [2025-01-26 17:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335829', 'tblTempUsageDetail_20' ) end [2025-01-26 17:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:22:23] Production.INFO: ==4797== Releasing lock... [2025-01-26 17:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:22:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-26 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:23:05 [end_date_ymd] => 2025-01-26 17:23:05 [RateCDR] => 1 ) [2025-01-26 17:23: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-01-26 14:23:05' and `end` < '2025-01-26 17:23: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-01-26 17:23:20] Production.INFO: count ==2022 [2025-01-26 17:23:20] Production.ERROR: pbx CDR StartTime 2025-01-26 14:23:05 - End Time 2025-01-26 17:23:05 [2025-01-26 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335834', 'tblTempUsageDetail_20' ) start [2025-01-26 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335834', 'tblTempUsageDetail_20' ) end [2025-01-26 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335834', 'tblTempVendorCDR_20' ) start [2025-01-26 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335834', 'tblTempVendorCDR_20' ) end [2025-01-26 17:23:20] Production.INFO: ProcessCDR(1,14335834,1,1,2) [2025-01-26 17:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335834', 'tblTempUsageDetail_20' ) start [2025-01-26 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335834', 'tblTempUsageDetail_20' ) end [2025-01-26 17:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:23:23] Production.INFO: ==4868== Releasing lock... [2025-01-26 17:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:23:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-26 17:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:24:04 [end_date_ymd] => 2025-01-26 17:24:04 [RateCDR] => 1 ) [2025-01-26 17:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 14:24:04' and `end` < '2025-01-26 17:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 17:24:17] Production.INFO: count ==2035 [2025-01-26 17:24:18] Production.ERROR: pbx CDR StartTime 2025-01-26 14:24:04 - End Time 2025-01-26 17:24:04 [2025-01-26 17:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335839', 'tblTempUsageDetail_20' ) start [2025-01-26 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335839', 'tblTempUsageDetail_20' ) end [2025-01-26 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335839', 'tblTempVendorCDR_20' ) start [2025-01-26 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335839', 'tblTempVendorCDR_20' ) end [2025-01-26 17:24:18] Production.INFO: ProcessCDR(1,14335839,1,1,2) [2025-01-26 17:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335839', 'tblTempUsageDetail_20' ) start [2025-01-26 17:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335839', 'tblTempUsageDetail_20' ) end [2025-01-26 17:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:24:21] Production.INFO: ==4940== Releasing lock... [2025-01-26 17:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:24:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-26 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:25:05 [end_date_ymd] => 2025-01-26 17:25:05 [RateCDR] => 1 ) [2025-01-26 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 14:25:05' and `end` < '2025-01-26 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 17:25:21] Production.INFO: count ==2040 [2025-01-26 17:25:21] Production.ERROR: pbx CDR StartTime 2025-01-26 14:25:05 - End Time 2025-01-26 17:25:05 [2025-01-26 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335844', 'tblTempUsageDetail_20' ) start [2025-01-26 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335844', 'tblTempUsageDetail_20' ) end [2025-01-26 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335844', 'tblTempVendorCDR_20' ) start [2025-01-26 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335844', 'tblTempVendorCDR_20' ) end [2025-01-26 17:25:21] Production.INFO: ProcessCDR(1,14335844,1,1,2) [2025-01-26 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335844', 'tblTempUsageDetail_20' ) start [2025-01-26 17:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335844', 'tblTempUsageDetail_20' ) end [2025-01-26 17:25:33] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:25:34] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:25:37] Production.INFO: ==5012== Releasing lock... [2025-01-26 17:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:25:37] Production.INFO: 43 MB #Memory Used# [2025-01-26 17:26:19] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:26:19 [end_date_ymd] => 2025-01-26 17:26:19 [RateCDR] => 1 ) [2025-01-26 17:26:19] 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-01-26 14:26:19' and `end` < '2025-01-26 17:26:19' 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-01-26 17:26:34] Production.INFO: count ==2049 [2025-01-26 17:26:44] Production.ERROR: pbx CDR StartTime 2025-01-26 14:26:19 - End Time 2025-01-26 17:26:19 [2025-01-26 17:26:44] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:26:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335849', 'tblTempUsageDetail_20' ) start [2025-01-26 17:26:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335849', 'tblTempUsageDetail_20' ) end [2025-01-26 17:26:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335849', 'tblTempVendorCDR_20' ) start [2025-01-26 17:26:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335849', 'tblTempVendorCDR_20' ) end [2025-01-26 17:26:44] Production.INFO: ProcessCDR(1,14335849,1,1,2) [2025-01-26 17:26:44] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:26:49] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:26:49] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:27:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:27:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335849', 'tblTempUsageDetail_20' ) start [2025-01-26 17:27:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335849', 'tblTempUsageDetail_20' ) end [2025-01-26 17:27:39] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:27:39] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:27:39] Production.INFO: ==5087== Releasing lock... [2025-01-26 17:27:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:27:39] Production.INFO: 43 MB #Memory Used# [2025-01-26 17:28:20] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:28:20 [end_date_ymd] => 2025-01-26 17:28:20 [RateCDR] => 1 ) [2025-01-26 17:28:20] 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-01-26 14:28:20' and `end` < '2025-01-26 17:28:20' 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-01-26 17:28:39] Production.INFO: count ==2051 [2025-01-26 17:28:40] Production.ERROR: pbx CDR StartTime 2025-01-26 14:28:20 - End Time 2025-01-26 17:28:20 [2025-01-26 17:28:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:28:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335856', 'tblTempUsageDetail_20' ) start [2025-01-26 17:28:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335856', 'tblTempUsageDetail_20' ) end [2025-01-26 17:28:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335856', 'tblTempVendorCDR_20' ) start [2025-01-26 17:28:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335856', 'tblTempVendorCDR_20' ) end [2025-01-26 17:28:40] Production.INFO: ProcessCDR(1,14335856,1,1,2) [2025-01-26 17:28:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:28:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:28:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:28:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:28:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335856', 'tblTempUsageDetail_20' ) start [2025-01-26 17:28:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335856', 'tblTempUsageDetail_20' ) end [2025-01-26 17:28:52] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:28:52] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:28:55] Production.INFO: ==5214== Releasing lock... [2025-01-26 17:28:55] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:28:55] Production.INFO: 43 MB #Memory Used# [2025-01-26 17:29:20] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:29:20 [end_date_ymd] => 2025-01-26 17:29:20 [RateCDR] => 1 ) [2025-01-26 17:29:20] 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-01-26 14:29:20' and `end` < '2025-01-26 17:29:20' 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-01-26 17:29:36] Production.INFO: count ==2048 [2025-01-26 17:29:39] Production.ERROR: pbx CDR StartTime 2025-01-26 14:29:20 - End Time 2025-01-26 17:29:20 [2025-01-26 17:29:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:29:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335861', 'tblTempUsageDetail_20' ) start [2025-01-26 17:29:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335861', 'tblTempUsageDetail_20' ) end [2025-01-26 17:29:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335861', 'tblTempVendorCDR_20' ) start [2025-01-26 17:29:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335861', 'tblTempVendorCDR_20' ) end [2025-01-26 17:29:39] Production.INFO: ProcessCDR(1,14335861,1,1,2) [2025-01-26 17:29:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:29:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:29:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335861', 'tblTempUsageDetail_20' ) start [2025-01-26 17:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335861', 'tblTempUsageDetail_20' ) end [2025-01-26 17:30:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:30:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:30:22] Production.INFO: ==5287== Releasing lock... [2025-01-26 17:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:30:22] Production.INFO: 43 MB #Memory Used# [2025-01-26 17:31:37] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:31:37 [end_date_ymd] => 2025-01-26 17:31:37 [RateCDR] => 1 ) [2025-01-26 17:31:37] 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-01-26 14:31:37' and `end` < '2025-01-26 17:31:37' 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-01-26 17:31:51] Production.INFO: count ==2045 [2025-01-26 17:32:34] Production.ERROR: pbx CDR StartTime 2025-01-26 14:31:37 - End Time 2025-01-26 17:31:37 [2025-01-26 17:32:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335869', 'tblTempUsageDetail_20' ) start [2025-01-26 17:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335869', 'tblTempUsageDetail_20' ) end [2025-01-26 17:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335869', 'tblTempVendorCDR_20' ) start [2025-01-26 17:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335869', 'tblTempVendorCDR_20' ) end [2025-01-26 17:32:34] Production.INFO: ProcessCDR(1,14335869,1,1,2) [2025-01-26 17:32:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:32:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:32:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:33:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:33:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335869', 'tblTempUsageDetail_20' ) start [2025-01-26 17:33:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335869', 'tblTempUsageDetail_20' ) end [2025-01-26 17:33:56] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:33:56] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:33:56] Production.INFO: ==5426== Releasing lock... [2025-01-26 17:33:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:33:56] Production.INFO: 43 MB #Memory Used# [2025-01-26 17:34:41] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:34:41 [end_date_ymd] => 2025-01-26 17:34:41 [RateCDR] => 1 ) [2025-01-26 17:34:41] 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-01-26 14:34:41' and `end` < '2025-01-26 17:34:41' 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-01-26 17:34:54] Production.INFO: count ==2042 [2025-01-26 17:35:22] Production.ERROR: pbx CDR StartTime 2025-01-26 14:34:41 - End Time 2025-01-26 17:34:41 [2025-01-26 17:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335879', 'tblTempUsageDetail_20' ) start [2025-01-26 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335879', 'tblTempUsageDetail_20' ) end [2025-01-26 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335879', 'tblTempVendorCDR_20' ) start [2025-01-26 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335879', 'tblTempVendorCDR_20' ) end [2025-01-26 17:35:22] Production.INFO: ProcessCDR(1,14335879,1,1,2) [2025-01-26 17:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:36:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:36:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335879', 'tblTempUsageDetail_20' ) start [2025-01-26 17:36:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335879', 'tblTempUsageDetail_20' ) end [2025-01-26 17:36:47] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:36:47] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:36:47] Production.INFO: ==5671== Releasing lock... [2025-01-26 17:36:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:36:47] Production.INFO: 43 MB #Memory Used# [2025-01-26 17:37:46] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:37:46 [end_date_ymd] => 2025-01-26 17:37:46 [RateCDR] => 1 ) [2025-01-26 17:37:46] 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-01-26 14:37:46' and `end` < '2025-01-26 17:37:46' 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-01-26 17:37:59] Production.INFO: count ==2033 [2025-01-26 17:38:26] Production.ERROR: pbx CDR StartTime 2025-01-26 14:37:46 - End Time 2025-01-26 17:37:46 [2025-01-26 17:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335890', 'tblTempUsageDetail_20' ) start [2025-01-26 17:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335890', 'tblTempUsageDetail_20' ) end [2025-01-26 17:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335890', 'tblTempVendorCDR_20' ) start [2025-01-26 17:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335890', 'tblTempVendorCDR_20' ) end [2025-01-26 17:38:27] Production.INFO: ProcessCDR(1,14335890,1,1,2) [2025-01-26 17:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:38:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335890', 'tblTempUsageDetail_20' ) start [2025-01-26 17:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335890', 'tblTempUsageDetail_20' ) end [2025-01-26 17:38:33] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:38:33] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:38:33] Production.INFO: ==5885== Releasing lock... [2025-01-26 17:38:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:38:33] Production.INFO: 42.75 MB #Memory Used# [2025-01-26 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:39:05 [end_date_ymd] => 2025-01-26 17:39:05 [RateCDR] => 1 ) [2025-01-26 17:39: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-01-26 14:39:05' and `end` < '2025-01-26 17:39: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-01-26 17:39:19] Production.INFO: count ==2037 [2025-01-26 17:39:19] Production.ERROR: pbx CDR StartTime 2025-01-26 14:39:05 - End Time 2025-01-26 17:39:05 [2025-01-26 17:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335897', 'tblTempUsageDetail_20' ) start [2025-01-26 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335897', 'tblTempUsageDetail_20' ) end [2025-01-26 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335897', 'tblTempVendorCDR_20' ) start [2025-01-26 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335897', 'tblTempVendorCDR_20' ) end [2025-01-26 17:39:19] Production.INFO: ProcessCDR(1,14335897,1,1,2) [2025-01-26 17:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335897', 'tblTempUsageDetail_20' ) start [2025-01-26 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335897', 'tblTempUsageDetail_20' ) end [2025-01-26 17:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:39:23] Production.INFO: ==6107== Releasing lock... [2025-01-26 17:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:39:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-26 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:40:06 [end_date_ymd] => 2025-01-26 17:40:06 [RateCDR] => 1 ) [2025-01-26 17:40: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-01-26 14:40:06' and `end` < '2025-01-26 17:40: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-01-26 17:40:24] Production.INFO: count ==2034 [2025-01-26 17:40:25] Production.ERROR: pbx CDR StartTime 2025-01-26 14:40:06 - End Time 2025-01-26 17:40:06 [2025-01-26 17:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335903', 'tblTempUsageDetail_20' ) start [2025-01-26 17:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335903', 'tblTempUsageDetail_20' ) end [2025-01-26 17:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335903', 'tblTempVendorCDR_20' ) start [2025-01-26 17:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335903', 'tblTempVendorCDR_20' ) end [2025-01-26 17:40:25] Production.INFO: ProcessCDR(1,14335903,1,1,2) [2025-01-26 17:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335903', 'tblTempUsageDetail_20' ) start [2025-01-26 17:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335903', 'tblTempUsageDetail_20' ) end [2025-01-26 17:40:28] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:40:28] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:40:28] Production.INFO: ==6183== Releasing lock... [2025-01-26 17:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:40:28] Production.INFO: 42.75 MB #Memory Used# [2025-01-26 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:41:05 [end_date_ymd] => 2025-01-26 17:41:05 [RateCDR] => 1 ) [2025-01-26 17:41: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-01-26 14:41:05' and `end` < '2025-01-26 17:41: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-01-26 17:41:19] Production.INFO: count ==2074 [2025-01-26 17:41:20] Production.ERROR: pbx CDR StartTime 2025-01-26 14:41:05 - End Time 2025-01-26 17:41:05 [2025-01-26 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335908', 'tblTempUsageDetail_20' ) start [2025-01-26 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335908', 'tblTempUsageDetail_20' ) end [2025-01-26 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335908', 'tblTempVendorCDR_20' ) start [2025-01-26 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335908', 'tblTempVendorCDR_20' ) end [2025-01-26 17:41:20] Production.INFO: ProcessCDR(1,14335908,1,1,2) [2025-01-26 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335908', 'tblTempUsageDetail_20' ) start [2025-01-26 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335908', 'tblTempUsageDetail_20' ) end [2025-01-26 17:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:41:23] Production.INFO: ==6262== Releasing lock... [2025-01-26 17:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:41:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-26 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:42:06 [end_date_ymd] => 2025-01-26 17:42:06 [RateCDR] => 1 ) [2025-01-26 17:42: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-01-26 14:42:06' and `end` < '2025-01-26 17:42: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-01-26 17:42:18] Production.INFO: count ==2074 [2025-01-26 17:42:19] Production.ERROR: pbx CDR StartTime 2025-01-26 14:42:06 - End Time 2025-01-26 17:42:06 [2025-01-26 17:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335913', 'tblTempUsageDetail_20' ) start [2025-01-26 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335913', 'tblTempUsageDetail_20' ) end [2025-01-26 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335913', 'tblTempVendorCDR_20' ) start [2025-01-26 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335913', 'tblTempVendorCDR_20' ) end [2025-01-26 17:42:19] Production.INFO: ProcessCDR(1,14335913,1,1,2) [2025-01-26 17:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335913', 'tblTempUsageDetail_20' ) start [2025-01-26 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335913', 'tblTempUsageDetail_20' ) end [2025-01-26 17:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:42:23] Production.INFO: ==6342== Releasing lock... [2025-01-26 17:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:42:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-26 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:43:05 [end_date_ymd] => 2025-01-26 17:43:05 [RateCDR] => 1 ) [2025-01-26 17:43: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-01-26 14:43:05' and `end` < '2025-01-26 17:43: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-01-26 17:43:19] Production.INFO: count ==2074 [2025-01-26 17:43:19] Production.ERROR: pbx CDR StartTime 2025-01-26 14:43:05 - End Time 2025-01-26 17:43:05 [2025-01-26 17:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335918', 'tblTempUsageDetail_20' ) start [2025-01-26 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335918', 'tblTempUsageDetail_20' ) end [2025-01-26 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335918', 'tblTempVendorCDR_20' ) start [2025-01-26 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335918', 'tblTempVendorCDR_20' ) end [2025-01-26 17:43:19] Production.INFO: ProcessCDR(1,14335918,1,1,2) [2025-01-26 17:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335918', 'tblTempUsageDetail_20' ) start [2025-01-26 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335918', 'tblTempUsageDetail_20' ) end [2025-01-26 17:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:43:24] Production.INFO: ==6417== Releasing lock... [2025-01-26 17:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:43:24] Production.INFO: 43.25 MB #Memory Used# [2025-01-26 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:44:05 [end_date_ymd] => 2025-01-26 17:44:05 [RateCDR] => 1 ) [2025-01-26 17:44: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-01-26 14:44:05' and `end` < '2025-01-26 17:44: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-01-26 17:44:26] Production.INFO: count ==2071 [2025-01-26 17:44:26] Production.ERROR: pbx CDR StartTime 2025-01-26 14:44:05 - End Time 2025-01-26 17:44:05 [2025-01-26 17:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335923', 'tblTempUsageDetail_20' ) start [2025-01-26 17:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335923', 'tblTempUsageDetail_20' ) end [2025-01-26 17:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335923', 'tblTempVendorCDR_20' ) start [2025-01-26 17:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335923', 'tblTempVendorCDR_20' ) end [2025-01-26 17:44:26] Production.INFO: ProcessCDR(1,14335923,1,1,2) [2025-01-26 17:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335923', 'tblTempUsageDetail_20' ) start [2025-01-26 17:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335923', 'tblTempUsageDetail_20' ) end [2025-01-26 17:44:29] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:44:29] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:44:29] Production.INFO: ==6500== Releasing lock... [2025-01-26 17:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:44:29] Production.INFO: 43.25 MB #Memory Used# [2025-01-26 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:45:05 [end_date_ymd] => 2025-01-26 17:45:05 [RateCDR] => 1 ) [2025-01-26 17:45: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-01-26 14:45:05' and `end` < '2025-01-26 17:45: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-01-26 17:45:17] Production.INFO: count ==2070 [2025-01-26 17:45:18] Production.ERROR: pbx CDR StartTime 2025-01-26 14:45:05 - End Time 2025-01-26 17:45:05 [2025-01-26 17:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335928', 'tblTempUsageDetail_20' ) start [2025-01-26 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335928', 'tblTempUsageDetail_20' ) end [2025-01-26 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335928', 'tblTempVendorCDR_20' ) start [2025-01-26 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335928', 'tblTempVendorCDR_20' ) end [2025-01-26 17:45:18] Production.INFO: ProcessCDR(1,14335928,1,1,2) [2025-01-26 17:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335928', 'tblTempUsageDetail_20' ) start [2025-01-26 17:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335928', 'tblTempUsageDetail_20' ) end [2025-01-26 17:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:45:21] Production.INFO: ==6579== Releasing lock... [2025-01-26 17:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:45:21] Production.INFO: 43 MB #Memory Used# [2025-01-26 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:46:06 [end_date_ymd] => 2025-01-26 17:46:06 [RateCDR] => 1 ) [2025-01-26 17:46: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-01-26 14:46:06' and `end` < '2025-01-26 17:46: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-01-26 17:46:19] Production.INFO: count ==2070 [2025-01-26 17:46:20] Production.ERROR: pbx CDR StartTime 2025-01-26 14:46:06 - End Time 2025-01-26 17:46:06 [2025-01-26 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335933', 'tblTempUsageDetail_20' ) start [2025-01-26 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335933', 'tblTempUsageDetail_20' ) end [2025-01-26 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335933', 'tblTempVendorCDR_20' ) start [2025-01-26 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335933', 'tblTempVendorCDR_20' ) end [2025-01-26 17:46:20] Production.INFO: ProcessCDR(1,14335933,1,1,2) [2025-01-26 17:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335933', 'tblTempUsageDetail_20' ) start [2025-01-26 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335933', 'tblTempUsageDetail_20' ) end [2025-01-26 17:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:46:24] Production.INFO: ==6652== Releasing lock... [2025-01-26 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:46:24] Production.INFO: 43 MB #Memory Used# [2025-01-26 17:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:47:04 [end_date_ymd] => 2025-01-26 17:47:04 [RateCDR] => 1 ) [2025-01-26 17:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 14:47:04' and `end` < '2025-01-26 17:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 17:47:17] Production.INFO: count ==2078 [2025-01-26 17:47:18] Production.ERROR: pbx CDR StartTime 2025-01-26 14:47:04 - End Time 2025-01-26 17:47:04 [2025-01-26 17:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335938', 'tblTempUsageDetail_20' ) start [2025-01-26 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335938', 'tblTempUsageDetail_20' ) end [2025-01-26 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335938', 'tblTempVendorCDR_20' ) start [2025-01-26 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335938', 'tblTempVendorCDR_20' ) end [2025-01-26 17:47:18] Production.INFO: ProcessCDR(1,14335938,1,1,2) [2025-01-26 17:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335938', 'tblTempUsageDetail_20' ) start [2025-01-26 17:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335938', 'tblTempUsageDetail_20' ) end [2025-01-26 17:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:47:22] Production.INFO: ==6734== Releasing lock... [2025-01-26 17:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:47:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-26 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:48:06 [end_date_ymd] => 2025-01-26 17:48:06 [RateCDR] => 1 ) [2025-01-26 17:48: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-01-26 14:48:06' and `end` < '2025-01-26 17:48: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-01-26 17:48:21] Production.INFO: count ==2083 [2025-01-26 17:48:22] Production.ERROR: pbx CDR StartTime 2025-01-26 14:48:06 - End Time 2025-01-26 17:48:06 [2025-01-26 17:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335943', 'tblTempUsageDetail_20' ) start [2025-01-26 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335943', 'tblTempUsageDetail_20' ) end [2025-01-26 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335943', 'tblTempVendorCDR_20' ) start [2025-01-26 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335943', 'tblTempVendorCDR_20' ) end [2025-01-26 17:48:22] Production.INFO: ProcessCDR(1,14335943,1,1,2) [2025-01-26 17:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335943', 'tblTempUsageDetail_20' ) start [2025-01-26 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335943', 'tblTempUsageDetail_20' ) end [2025-01-26 17:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:48:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:48:26] Production.INFO: ==6808== Releasing lock... [2025-01-26 17:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:48:26] Production.INFO: 43.25 MB #Memory Used# [2025-01-26 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:49:05 [end_date_ymd] => 2025-01-26 17:49:05 [RateCDR] => 1 ) [2025-01-26 17:49: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-01-26 14:49:05' and `end` < '2025-01-26 17:49: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-01-26 17:49:21] Production.INFO: count ==2078 [2025-01-26 17:49:22] Production.ERROR: pbx CDR StartTime 2025-01-26 14:49:05 - End Time 2025-01-26 17:49:05 [2025-01-26 17:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335948', 'tblTempUsageDetail_20' ) start [2025-01-26 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335948', 'tblTempUsageDetail_20' ) end [2025-01-26 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335948', 'tblTempVendorCDR_20' ) start [2025-01-26 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335948', 'tblTempVendorCDR_20' ) end [2025-01-26 17:49:22] Production.INFO: ProcessCDR(1,14335948,1,1,2) [2025-01-26 17:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335948', 'tblTempUsageDetail_20' ) start [2025-01-26 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335948', 'tblTempUsageDetail_20' ) end [2025-01-26 17:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:49:25] Production.INFO: ==6881== Releasing lock... [2025-01-26 17:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:49:25] Production.INFO: 43.25 MB #Memory Used# [2025-01-26 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:50:06 [end_date_ymd] => 2025-01-26 17:50:06 [RateCDR] => 1 ) [2025-01-26 17:50: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-01-26 14:50:06' and `end` < '2025-01-26 17:50: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-01-26 17:50:26] Production.INFO: count ==2098 [2025-01-26 17:50:26] Production.ERROR: pbx CDR StartTime 2025-01-26 14:50:06 - End Time 2025-01-26 17:50:06 [2025-01-26 17:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335954', 'tblTempUsageDetail_20' ) start [2025-01-26 17:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335954', 'tblTempUsageDetail_20' ) end [2025-01-26 17:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335954', 'tblTempVendorCDR_20' ) start [2025-01-26 17:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335954', 'tblTempVendorCDR_20' ) end [2025-01-26 17:50:26] Production.INFO: ProcessCDR(1,14335954,1,1,2) [2025-01-26 17:50:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335954', 'tblTempUsageDetail_20' ) start [2025-01-26 17:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335954', 'tblTempUsageDetail_20' ) end [2025-01-26 17:50:29] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:50:29] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:50:29] Production.INFO: ==7002== Releasing lock... [2025-01-26 17:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:50:29] Production.INFO: 43.25 MB #Memory Used# [2025-01-26 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:51:05 [end_date_ymd] => 2025-01-26 17:51:05 [RateCDR] => 1 ) [2025-01-26 17:51: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-01-26 14:51:05' and `end` < '2025-01-26 17:51: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-01-26 17:51:21] Production.INFO: count ==2174 [2025-01-26 17:51:21] Production.ERROR: pbx CDR StartTime 2025-01-26 14:51:05 - End Time 2025-01-26 17:51:05 [2025-01-26 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335959', 'tblTempUsageDetail_20' ) start [2025-01-26 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335959', 'tblTempUsageDetail_20' ) end [2025-01-26 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335959', 'tblTempVendorCDR_20' ) start [2025-01-26 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335959', 'tblTempVendorCDR_20' ) end [2025-01-26 17:51:21] Production.INFO: ProcessCDR(1,14335959,1,1,2) [2025-01-26 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335959', 'tblTempUsageDetail_20' ) start [2025-01-26 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335959', 'tblTempUsageDetail_20' ) end [2025-01-26 17:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:51:24] Production.INFO: ==7082== Releasing lock... [2025-01-26 17:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:51:24] Production.INFO: 44 MB #Memory Used# [2025-01-26 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:52:05 [end_date_ymd] => 2025-01-26 17:52:05 [RateCDR] => 1 ) [2025-01-26 17:52: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-01-26 14:52:05' and `end` < '2025-01-26 17:52: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-01-26 17:52:18] Production.INFO: count ==2239 [2025-01-26 17:52:18] Production.ERROR: pbx CDR StartTime 2025-01-26 14:52:05 - End Time 2025-01-26 17:52:05 [2025-01-26 17:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335964', 'tblTempUsageDetail_20' ) start [2025-01-26 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335964', 'tblTempUsageDetail_20' ) end [2025-01-26 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335964', 'tblTempVendorCDR_20' ) start [2025-01-26 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335964', 'tblTempVendorCDR_20' ) end [2025-01-26 17:52:18] Production.INFO: ProcessCDR(1,14335964,1,1,2) [2025-01-26 17:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335964', 'tblTempUsageDetail_20' ) start [2025-01-26 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335964', 'tblTempUsageDetail_20' ) end [2025-01-26 17:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:52:22] Production.INFO: ==7158== Releasing lock... [2025-01-26 17:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:52:22] Production.INFO: 44.25 MB #Memory Used# [2025-01-26 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:53:05 [end_date_ymd] => 2025-01-26 17:53:05 [RateCDR] => 1 ) [2025-01-26 17:53: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-01-26 14:53:05' and `end` < '2025-01-26 17:53: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-01-26 17:53:22] Production.INFO: count ==2305 [2025-01-26 17:53:23] Production.ERROR: pbx CDR StartTime 2025-01-26 14:53:05 - End Time 2025-01-26 17:53:05 [2025-01-26 17:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335969', 'tblTempUsageDetail_20' ) start [2025-01-26 17:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335969', 'tblTempUsageDetail_20' ) end [2025-01-26 17:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335969', 'tblTempVendorCDR_20' ) start [2025-01-26 17:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335969', 'tblTempVendorCDR_20' ) end [2025-01-26 17:53:23] Production.INFO: ProcessCDR(1,14335969,1,1,2) [2025-01-26 17:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335969', 'tblTempUsageDetail_20' ) start [2025-01-26 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335969', 'tblTempUsageDetail_20' ) end [2025-01-26 17:53:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:53:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:53:26] Production.INFO: ==7233== Releasing lock... [2025-01-26 17:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:53:26] Production.INFO: 45.25 MB #Memory Used# [2025-01-26 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:54:05 [end_date_ymd] => 2025-01-26 17:54:05 [RateCDR] => 1 ) [2025-01-26 17:54: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-01-26 14:54:05' and `end` < '2025-01-26 17:54: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-01-26 17:54:18] Production.INFO: count ==2371 [2025-01-26 17:54:19] Production.ERROR: pbx CDR StartTime 2025-01-26 14:54:05 - End Time 2025-01-26 17:54:05 [2025-01-26 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335974', 'tblTempUsageDetail_20' ) start [2025-01-26 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335974', 'tblTempUsageDetail_20' ) end [2025-01-26 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335974', 'tblTempVendorCDR_20' ) start [2025-01-26 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335974', 'tblTempVendorCDR_20' ) end [2025-01-26 17:54:19] Production.INFO: ProcessCDR(1,14335974,1,1,2) [2025-01-26 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335974', 'tblTempUsageDetail_20' ) start [2025-01-26 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335974', 'tblTempUsageDetail_20' ) end [2025-01-26 17:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:54:22] Production.INFO: ==7307== Releasing lock... [2025-01-26 17:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:54:22] Production.INFO: 45.5 MB #Memory Used# [2025-01-26 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:55:05 [end_date_ymd] => 2025-01-26 17:55:05 [RateCDR] => 1 ) [2025-01-26 17:55: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-01-26 14:55:05' and `end` < '2025-01-26 17:55: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-01-26 17:55:26] Production.INFO: count ==2409 [2025-01-26 17:55:26] Production.ERROR: pbx CDR StartTime 2025-01-26 14:55:05 - End Time 2025-01-26 17:55:05 [2025-01-26 17:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335979', 'tblTempUsageDetail_20' ) start [2025-01-26 17:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335979', 'tblTempUsageDetail_20' ) end [2025-01-26 17:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335979', 'tblTempVendorCDR_20' ) start [2025-01-26 17:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335979', 'tblTempVendorCDR_20' ) end [2025-01-26 17:55:26] Production.INFO: ProcessCDR(1,14335979,1,1,2) [2025-01-26 17:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335979', 'tblTempUsageDetail_20' ) start [2025-01-26 17:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335979', 'tblTempUsageDetail_20' ) end [2025-01-26 17:55:30] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:55:30] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:55:30] Production.INFO: ==7385== Releasing lock... [2025-01-26 17:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:55:30] Production.INFO: 46 MB #Memory Used# [2025-01-26 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:56:06 [end_date_ymd] => 2025-01-26 17:56:06 [RateCDR] => 1 ) [2025-01-26 17:56: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-01-26 14:56:06' and `end` < '2025-01-26 17:56: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-01-26 17:56:26] Production.INFO: count ==2472 [2025-01-26 17:56:27] Production.ERROR: pbx CDR StartTime 2025-01-26 14:56:06 - End Time 2025-01-26 17:56:06 [2025-01-26 17:56:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335984', 'tblTempUsageDetail_20' ) start [2025-01-26 17:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335984', 'tblTempUsageDetail_20' ) end [2025-01-26 17:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335984', 'tblTempVendorCDR_20' ) start [2025-01-26 17:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335984', 'tblTempVendorCDR_20' ) end [2025-01-26 17:56:27] Production.INFO: ProcessCDR(1,14335984,1,1,2) [2025-01-26 17:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335984', 'tblTempUsageDetail_20' ) start [2025-01-26 17:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335984', 'tblTempUsageDetail_20' ) end [2025-01-26 17:56:30] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:56:30] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:56:30] Production.INFO: ==7467== Releasing lock... [2025-01-26 17:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:56:30] Production.INFO: 46.5 MB #Memory Used# [2025-01-26 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:57:05 [end_date_ymd] => 2025-01-26 17:57:05 [RateCDR] => 1 ) [2025-01-26 17:57: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-01-26 14:57:05' and `end` < '2025-01-26 17:57: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-01-26 17:57:23] Production.INFO: count ==2538 [2025-01-26 17:57:24] Production.ERROR: pbx CDR StartTime 2025-01-26 14:57:05 - End Time 2025-01-26 17:57:05 [2025-01-26 17:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335989', 'tblTempUsageDetail_20' ) start [2025-01-26 17:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335989', 'tblTempUsageDetail_20' ) end [2025-01-26 17:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335989', 'tblTempVendorCDR_20' ) start [2025-01-26 17:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335989', 'tblTempVendorCDR_20' ) end [2025-01-26 17:57:24] Production.INFO: ProcessCDR(1,14335989,1,1,2) [2025-01-26 17:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335989', 'tblTempUsageDetail_20' ) start [2025-01-26 17:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335989', 'tblTempUsageDetail_20' ) end [2025-01-26 17:57:27] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:57:27] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:57:27] Production.INFO: ==7549== Releasing lock... [2025-01-26 17:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:57:27] Production.INFO: 47 MB #Memory Used# [2025-01-26 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:58:05 [end_date_ymd] => 2025-01-26 17:58:05 [RateCDR] => 1 ) [2025-01-26 17:58: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-01-26 14:58:05' and `end` < '2025-01-26 17:58: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-01-26 17:58:25] Production.INFO: count ==2592 [2025-01-26 17:58:26] Production.ERROR: pbx CDR StartTime 2025-01-26 14:58:05 - End Time 2025-01-26 17:58:05 [2025-01-26 17:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335994', 'tblTempUsageDetail_20' ) start [2025-01-26 17:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335994', 'tblTempUsageDetail_20' ) end [2025-01-26 17:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335994', 'tblTempVendorCDR_20' ) start [2025-01-26 17:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335994', 'tblTempVendorCDR_20' ) end [2025-01-26 17:58:26] Production.INFO: ProcessCDR(1,14335994,1,1,2) [2025-01-26 17:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335994', 'tblTempUsageDetail_20' ) start [2025-01-26 17:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335994', 'tblTempUsageDetail_20' ) end [2025-01-26 17:58:29] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:58:29] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:58:29] Production.INFO: ==7627== Releasing lock... [2025-01-26 17:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:58:29] Production.INFO: 47.5 MB #Memory Used# [2025-01-26 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 14:59:05 [end_date_ymd] => 2025-01-26 17:59:05 [RateCDR] => 1 ) [2025-01-26 17:59: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-01-26 14:59:05' and `end` < '2025-01-26 17:59: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-01-26 17:59:21] Production.INFO: count ==2628 [2025-01-26 17:59:21] Production.ERROR: pbx CDR StartTime 2025-01-26 14:59:05 - End Time 2025-01-26 17:59:05 [2025-01-26 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335999', 'tblTempUsageDetail_20' ) start [2025-01-26 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14335999', 'tblTempUsageDetail_20' ) end [2025-01-26 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335999', 'tblTempVendorCDR_20' ) start [2025-01-26 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14335999', 'tblTempVendorCDR_20' ) end [2025-01-26 17:59:22] Production.INFO: ProcessCDR(1,14335999,1,1,2) [2025-01-26 17:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14335999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14335999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14335999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14335999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335999', 'tblTempUsageDetail_20' ) start [2025-01-26 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14335999', 'tblTempUsageDetail_20' ) end [2025-01-26 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 17:59:25] Production.INFO: ==7707== Releasing lock... [2025-01-26 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 17:59:25] Production.INFO: 48 MB #Memory Used# [2025-01-26 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:00:06 [end_date_ymd] => 2025-01-26 18:00:06 [RateCDR] => 1 ) [2025-01-26 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-01-26 15:00:06' and `end` < '2025-01-26 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-01-26 18:00:19] Production.INFO: count ==2703 [2025-01-26 18:00:20] Production.ERROR: pbx CDR StartTime 2025-01-26 15:00:06 - End Time 2025-01-26 18:00:06 [2025-01-26 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336005', 'tblTempUsageDetail_20' ) start [2025-01-26 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336005', 'tblTempUsageDetail_20' ) end [2025-01-26 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336005', 'tblTempVendorCDR_20' ) start [2025-01-26 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336005', 'tblTempVendorCDR_20' ) end [2025-01-26 18:00:20] Production.INFO: ProcessCDR(1,14336005,1,1,2) [2025-01-26 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336005', 'tblTempUsageDetail_20' ) start [2025-01-26 18:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336005', 'tblTempUsageDetail_20' ) end [2025-01-26 18:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:00:23] Production.INFO: ==7788== Releasing lock... [2025-01-26 18:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:00:23] Production.INFO: 48.25 MB #Memory Used# [2025-01-26 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:01:05 [end_date_ymd] => 2025-01-26 18:01:05 [RateCDR] => 1 ) [2025-01-26 18:01: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-01-26 15:01:05' and `end` < '2025-01-26 18:01: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-01-26 18:01:19] Production.INFO: count ==2788 [2025-01-26 18:01:19] Production.ERROR: pbx CDR StartTime 2025-01-26 15:01:05 - End Time 2025-01-26 18:01:05 [2025-01-26 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336010', 'tblTempUsageDetail_20' ) start [2025-01-26 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336010', 'tblTempUsageDetail_20' ) end [2025-01-26 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336010', 'tblTempVendorCDR_20' ) start [2025-01-26 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336010', 'tblTempVendorCDR_20' ) end [2025-01-26 18:01:19] Production.INFO: ProcessCDR(1,14336010,1,1,2) [2025-01-26 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336010', 'tblTempUsageDetail_20' ) start [2025-01-26 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336010', 'tblTempUsageDetail_20' ) end [2025-01-26 18:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:01:23] Production.INFO: ==7884== Releasing lock... [2025-01-26 18:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:01:23] Production.INFO: 48.75 MB #Memory Used# [2025-01-26 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:02:06 [end_date_ymd] => 2025-01-26 18:02:06 [RateCDR] => 1 ) [2025-01-26 18:02: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-01-26 15:02:06' and `end` < '2025-01-26 18:02: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-01-26 18:02:19] Production.INFO: count ==2851 [2025-01-26 18:02:19] Production.ERROR: pbx CDR StartTime 2025-01-26 15:02:06 - End Time 2025-01-26 18:02:06 [2025-01-26 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336015', 'tblTempUsageDetail_20' ) start [2025-01-26 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336015', 'tblTempUsageDetail_20' ) end [2025-01-26 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336015', 'tblTempVendorCDR_20' ) start [2025-01-26 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336015', 'tblTempVendorCDR_20' ) end [2025-01-26 18:02:19] Production.INFO: ProcessCDR(1,14336015,1,1,2) [2025-01-26 18:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336015', 'tblTempUsageDetail_20' ) start [2025-01-26 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336015', 'tblTempUsageDetail_20' ) end [2025-01-26 18:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:02:23] Production.INFO: ==7967== Releasing lock... [2025-01-26 18:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:02:23] Production.INFO: 49 MB #Memory Used# [2025-01-26 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:03:05 [end_date_ymd] => 2025-01-26 18:03:05 [RateCDR] => 1 ) [2025-01-26 18:03: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-01-26 15:03:05' and `end` < '2025-01-26 18:03: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-01-26 18:03:18] Production.INFO: count ==2921 [2025-01-26 18:03:19] Production.ERROR: pbx CDR StartTime 2025-01-26 15:03:05 - End Time 2025-01-26 18:03:05 [2025-01-26 18:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336020', 'tblTempUsageDetail_20' ) start [2025-01-26 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336020', 'tblTempUsageDetail_20' ) end [2025-01-26 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336020', 'tblTempVendorCDR_20' ) start [2025-01-26 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336020', 'tblTempVendorCDR_20' ) end [2025-01-26 18:03:19] Production.INFO: ProcessCDR(1,14336020,1,1,2) [2025-01-26 18:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336020', 'tblTempUsageDetail_20' ) start [2025-01-26 18:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336020', 'tblTempUsageDetail_20' ) end [2025-01-26 18:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:03:22] Production.INFO: ==8045== Releasing lock... [2025-01-26 18:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:03:22] Production.INFO: 50 MB #Memory Used# [2025-01-26 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:04:06 [end_date_ymd] => 2025-01-26 18:04:06 [RateCDR] => 1 ) [2025-01-26 18:04: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-01-26 15:04:06' and `end` < '2025-01-26 18:04: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-01-26 18:04:19] Production.INFO: count ==2965 [2025-01-26 18:04:20] Production.ERROR: pbx CDR StartTime 2025-01-26 15:04:06 - End Time 2025-01-26 18:04:06 [2025-01-26 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336025', 'tblTempUsageDetail_20' ) start [2025-01-26 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336025', 'tblTempUsageDetail_20' ) end [2025-01-26 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336025', 'tblTempVendorCDR_20' ) start [2025-01-26 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336025', 'tblTempVendorCDR_20' ) end [2025-01-26 18:04:20] Production.INFO: ProcessCDR(1,14336025,1,1,2) [2025-01-26 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336025', 'tblTempUsageDetail_20' ) start [2025-01-26 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336025', 'tblTempUsageDetail_20' ) end [2025-01-26 18:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:04:23] Production.INFO: ==8126== Releasing lock... [2025-01-26 18:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:04:23] Production.INFO: 50.25 MB #Memory Used# [2025-01-26 18:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:05:04 [end_date_ymd] => 2025-01-26 18:05:04 [RateCDR] => 1 ) [2025-01-26 18:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 15:05:04' and `end` < '2025-01-26 18:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 18:05:19] Production.INFO: count ==3038 [2025-01-26 18:05:19] Production.ERROR: pbx CDR StartTime 2025-01-26 15:05:04 - End Time 2025-01-26 18:05:04 [2025-01-26 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336027', 'tblTempUsageDetail_20' ) start [2025-01-26 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336027', 'tblTempUsageDetail_20' ) end [2025-01-26 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336027', 'tblTempVendorCDR_20' ) start [2025-01-26 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336027', 'tblTempVendorCDR_20' ) end [2025-01-26 18:05:20] Production.INFO: ProcessCDR(1,14336027,1,1,2) [2025-01-26 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336027', 'tblTempUsageDetail_20' ) start [2025-01-26 18:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336027', 'tblTempUsageDetail_20' ) end [2025-01-26 18:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:05:22] Production.INFO: ==8250== Releasing lock... [2025-01-26 18:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:05:22] Production.INFO: 50.75 MB #Memory Used# [2025-01-26 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:06:05 [end_date_ymd] => 2025-01-26 18:06:05 [RateCDR] => 1 ) [2025-01-26 18:06: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-01-26 15:06:05' and `end` < '2025-01-26 18:06: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-01-26 18:06:18] Production.INFO: count ==3108 [2025-01-26 18:06:19] Production.ERROR: pbx CDR StartTime 2025-01-26 15:06:05 - End Time 2025-01-26 18:06:05 [2025-01-26 18:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336035', 'tblTempUsageDetail_20' ) start [2025-01-26 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336035', 'tblTempUsageDetail_20' ) end [2025-01-26 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336035', 'tblTempVendorCDR_20' ) start [2025-01-26 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336035', 'tblTempVendorCDR_20' ) end [2025-01-26 18:06:19] Production.INFO: ProcessCDR(1,14336035,1,1,2) [2025-01-26 18:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336035', 'tblTempUsageDetail_20' ) start [2025-01-26 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336035', 'tblTempUsageDetail_20' ) end [2025-01-26 18:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:06:23] Production.INFO: ==8330== Releasing lock... [2025-01-26 18:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:06:23] Production.INFO: 51.5 MB #Memory Used# [2025-01-26 18:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:07:04 [end_date_ymd] => 2025-01-26 18:07:04 [RateCDR] => 1 ) [2025-01-26 18:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 15:07:04' and `end` < '2025-01-26 18:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 18:07:17] Production.INFO: count ==3172 [2025-01-26 18:07:18] Production.ERROR: pbx CDR StartTime 2025-01-26 15:07:04 - End Time 2025-01-26 18:07:04 [2025-01-26 18:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336040', 'tblTempUsageDetail_20' ) start [2025-01-26 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336040', 'tblTempUsageDetail_20' ) end [2025-01-26 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336040', 'tblTempVendorCDR_20' ) start [2025-01-26 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336040', 'tblTempVendorCDR_20' ) end [2025-01-26 18:07:18] Production.INFO: ProcessCDR(1,14336040,1,1,2) [2025-01-26 18:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336040', 'tblTempUsageDetail_20' ) start [2025-01-26 18:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336040', 'tblTempUsageDetail_20' ) end [2025-01-26 18:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:07:21] Production.INFO: ==8411== Releasing lock... [2025-01-26 18:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:07:21] Production.INFO: 51.5 MB #Memory Used# [2025-01-26 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:08:05 [end_date_ymd] => 2025-01-26 18:08:05 [RateCDR] => 1 ) [2025-01-26 18:08: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-01-26 15:08:05' and `end` < '2025-01-26 18:08: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-01-26 18:08:27] Production.INFO: count ==3239 [2025-01-26 18:08:28] Production.ERROR: pbx CDR StartTime 2025-01-26 15:08:05 - End Time 2025-01-26 18:08:05 [2025-01-26 18:08:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336045', 'tblTempUsageDetail_20' ) start [2025-01-26 18:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336045', 'tblTempUsageDetail_20' ) end [2025-01-26 18:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336045', 'tblTempVendorCDR_20' ) start [2025-01-26 18:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336045', 'tblTempVendorCDR_20' ) end [2025-01-26 18:08:28] Production.INFO: ProcessCDR(1,14336045,1,1,2) [2025-01-26 18:08:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336045', 'tblTempUsageDetail_20' ) start [2025-01-26 18:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336045', 'tblTempUsageDetail_20' ) end [2025-01-26 18:08:31] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:08:31] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:08:31] Production.INFO: ==8496== Releasing lock... [2025-01-26 18:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:08:31] Production.INFO: 52.5 MB #Memory Used# [2025-01-26 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:09:05 [end_date_ymd] => 2025-01-26 18:09:05 [RateCDR] => 1 ) [2025-01-26 18:09: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-01-26 15:09:05' and `end` < '2025-01-26 18:09: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-01-26 18:09:18] Production.INFO: count ==3311 [2025-01-26 18:09:19] Production.ERROR: pbx CDR StartTime 2025-01-26 15:09:05 - End Time 2025-01-26 18:09:05 [2025-01-26 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336050', 'tblTempUsageDetail_20' ) start [2025-01-26 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336050', 'tblTempUsageDetail_20' ) end [2025-01-26 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336050', 'tblTempVendorCDR_20' ) start [2025-01-26 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336050', 'tblTempVendorCDR_20' ) end [2025-01-26 18:09:19] Production.INFO: ProcessCDR(1,14336050,1,1,2) [2025-01-26 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336050', 'tblTempUsageDetail_20' ) start [2025-01-26 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336050', 'tblTempUsageDetail_20' ) end [2025-01-26 18:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:09:23] Production.INFO: ==8572== Releasing lock... [2025-01-26 18:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:09:23] Production.INFO: 53.5 MB #Memory Used# [2025-01-26 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:10:06 [end_date_ymd] => 2025-01-26 18:10:06 [RateCDR] => 1 ) [2025-01-26 18:10: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-01-26 15:10:06' and `end` < '2025-01-26 18:10: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-01-26 18:10:23] Production.INFO: count ==3369 [2025-01-26 18:10:24] Production.ERROR: pbx CDR StartTime 2025-01-26 15:10:06 - End Time 2025-01-26 18:10:06 [2025-01-26 18:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336056', 'tblTempUsageDetail_20' ) start [2025-01-26 18:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336056', 'tblTempUsageDetail_20' ) end [2025-01-26 18:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336056', 'tblTempVendorCDR_20' ) start [2025-01-26 18:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336056', 'tblTempVendorCDR_20' ) end [2025-01-26 18:10:24] Production.INFO: ProcessCDR(1,14336056,1,1,2) [2025-01-26 18:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336056', 'tblTempUsageDetail_20' ) start [2025-01-26 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336056', 'tblTempUsageDetail_20' ) end [2025-01-26 18:10:27] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:10:27] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:10:27] Production.INFO: ==8657== Releasing lock... [2025-01-26 18:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:10:27] Production.INFO: 54 MB #Memory Used# [2025-01-26 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:11:05 [end_date_ymd] => 2025-01-26 18:11:05 [RateCDR] => 1 ) [2025-01-26 18:11: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-01-26 15:11:05' and `end` < '2025-01-26 18:11: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-01-26 18:11:24] Production.INFO: count ==3433 [2025-01-26 18:11:25] Production.ERROR: pbx CDR StartTime 2025-01-26 15:11:05 - End Time 2025-01-26 18:11:05 [2025-01-26 18:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336061', 'tblTempUsageDetail_20' ) start [2025-01-26 18:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336061', 'tblTempUsageDetail_20' ) end [2025-01-26 18:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336061', 'tblTempVendorCDR_20' ) start [2025-01-26 18:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336061', 'tblTempVendorCDR_20' ) end [2025-01-26 18:11:25] Production.INFO: ProcessCDR(1,14336061,1,1,2) [2025-01-26 18:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336061', 'tblTempUsageDetail_20' ) start [2025-01-26 18:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336061', 'tblTempUsageDetail_20' ) end [2025-01-26 18:11:30] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:11:30] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:11:30] Production.INFO: ==8737== Releasing lock... [2025-01-26 18:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:11:30] Production.INFO: 53.5 MB #Memory Used# [2025-01-26 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:12:05 [end_date_ymd] => 2025-01-26 18:12:05 [RateCDR] => 1 ) [2025-01-26 18:12: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-01-26 15:12:05' and `end` < '2025-01-26 18:12: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-01-26 18:12:22] Production.INFO: count ==3469 [2025-01-26 18:12:23] Production.ERROR: pbx CDR StartTime 2025-01-26 15:12:05 - End Time 2025-01-26 18:12:05 [2025-01-26 18:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336066', 'tblTempUsageDetail_20' ) start [2025-01-26 18:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336066', 'tblTempUsageDetail_20' ) end [2025-01-26 18:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336066', 'tblTempVendorCDR_20' ) start [2025-01-26 18:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336066', 'tblTempVendorCDR_20' ) end [2025-01-26 18:12:24] Production.INFO: ProcessCDR(1,14336066,1,1,2) [2025-01-26 18:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336066', 'tblTempUsageDetail_20' ) start [2025-01-26 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336066', 'tblTempUsageDetail_20' ) end [2025-01-26 18:12:27] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:12:27] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:12:27] Production.INFO: ==8814== Releasing lock... [2025-01-26 18:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:12:27] Production.INFO: 53.75 MB #Memory Used# [2025-01-26 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:13:05 [end_date_ymd] => 2025-01-26 18:13:05 [RateCDR] => 1 ) [2025-01-26 18:13: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-01-26 15:13:05' and `end` < '2025-01-26 18:13: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-01-26 18:13:25] Production.INFO: count ==3510 [2025-01-26 18:13:26] Production.ERROR: pbx CDR StartTime 2025-01-26 15:13:05 - End Time 2025-01-26 18:13:05 [2025-01-26 18:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336071', 'tblTempUsageDetail_20' ) start [2025-01-26 18:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336071', 'tblTempUsageDetail_20' ) end [2025-01-26 18:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336071', 'tblTempVendorCDR_20' ) start [2025-01-26 18:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336071', 'tblTempVendorCDR_20' ) end [2025-01-26 18:13:26] Production.INFO: ProcessCDR(1,14336071,1,1,2) [2025-01-26 18:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336071', 'tblTempUsageDetail_20' ) start [2025-01-26 18:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336071', 'tblTempUsageDetail_20' ) end [2025-01-26 18:13:30] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:13:30] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:13:30] Production.INFO: ==8907== Releasing lock... [2025-01-26 18:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:13:30] Production.INFO: 54 MB #Memory Used# [2025-01-26 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:14:05 [end_date_ymd] => 2025-01-26 18:14:05 [RateCDR] => 1 ) [2025-01-26 18:14: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-01-26 15:14:05' and `end` < '2025-01-26 18:14: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-01-26 18:14:25] Production.INFO: count ==3548 [2025-01-26 18:14:26] Production.ERROR: pbx CDR StartTime 2025-01-26 15:14:05 - End Time 2025-01-26 18:14:05 [2025-01-26 18:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336076', 'tblTempUsageDetail_20' ) start [2025-01-26 18:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336076', 'tblTempUsageDetail_20' ) end [2025-01-26 18:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336076', 'tblTempVendorCDR_20' ) start [2025-01-26 18:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336076', 'tblTempVendorCDR_20' ) end [2025-01-26 18:14:26] Production.INFO: ProcessCDR(1,14336076,1,1,2) [2025-01-26 18:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336076', 'tblTempUsageDetail_20' ) start [2025-01-26 18:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336076', 'tblTempUsageDetail_20' ) end [2025-01-26 18:14:29] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:14:29] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:14:29] Production.INFO: ==9005== Releasing lock... [2025-01-26 18:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:14:29] Production.INFO: 54.5 MB #Memory Used# [2025-01-26 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:15:05 [end_date_ymd] => 2025-01-26 18:15:05 [RateCDR] => 1 ) [2025-01-26 18:15: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-01-26 15:15:05' and `end` < '2025-01-26 18:15: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-01-26 18:15:24] Production.INFO: count ==3570 [2025-01-26 18:15:25] Production.ERROR: pbx CDR StartTime 2025-01-26 15:15:05 - End Time 2025-01-26 18:15:05 [2025-01-26 18:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336081', 'tblTempUsageDetail_20' ) start [2025-01-26 18:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336081', 'tblTempUsageDetail_20' ) end [2025-01-26 18:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336081', 'tblTempVendorCDR_20' ) start [2025-01-26 18:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336081', 'tblTempVendorCDR_20' ) end [2025-01-26 18:15:25] Production.INFO: ProcessCDR(1,14336081,1,1,2) [2025-01-26 18:15:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336081', 'tblTempUsageDetail_20' ) start [2025-01-26 18:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336081', 'tblTempUsageDetail_20' ) end [2025-01-26 18:15:30] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:15:30] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:15:30] Production.INFO: ==9082== Releasing lock... [2025-01-26 18:15:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:15:30] Production.INFO: 54.75 MB #Memory Used# [2025-01-26 18:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:16:04 [end_date_ymd] => 2025-01-26 18:16:04 [RateCDR] => 1 ) [2025-01-26 18:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 15:16:04' and `end` < '2025-01-26 18:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 18:16:20] Production.INFO: count ==3570 [2025-01-26 18:16:21] Production.ERROR: pbx CDR StartTime 2025-01-26 15:16:04 - End Time 2025-01-26 18:16:04 [2025-01-26 18:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336086', 'tblTempUsageDetail_20' ) start [2025-01-26 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336086', 'tblTempUsageDetail_20' ) end [2025-01-26 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336086', 'tblTempVendorCDR_20' ) start [2025-01-26 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336086', 'tblTempVendorCDR_20' ) end [2025-01-26 18:16:21] Production.INFO: ProcessCDR(1,14336086,1,1,2) [2025-01-26 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336086', 'tblTempUsageDetail_20' ) start [2025-01-26 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336086', 'tblTempUsageDetail_20' ) end [2025-01-26 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:16:24] Production.INFO: ==9160== Releasing lock... [2025-01-26 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:16:24] Production.INFO: 54.75 MB #Memory Used# [2025-01-26 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:17:05 [end_date_ymd] => 2025-01-26 18:17:05 [RateCDR] => 1 ) [2025-01-26 18:17: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-01-26 15:17:05' and `end` < '2025-01-26 18:17: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-01-26 18:17:19] Production.INFO: count ==3569 [2025-01-26 18:17:20] Production.ERROR: pbx CDR StartTime 2025-01-26 15:17:05 - End Time 2025-01-26 18:17:05 [2025-01-26 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336091', 'tblTempUsageDetail_20' ) start [2025-01-26 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336091', 'tblTempUsageDetail_20' ) end [2025-01-26 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336091', 'tblTempVendorCDR_20' ) start [2025-01-26 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336091', 'tblTempVendorCDR_20' ) end [2025-01-26 18:17:20] Production.INFO: ProcessCDR(1,14336091,1,1,2) [2025-01-26 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336091', 'tblTempUsageDetail_20' ) start [2025-01-26 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336091', 'tblTempUsageDetail_20' ) end [2025-01-26 18:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:17:23] Production.INFO: ==9234== Releasing lock... [2025-01-26 18:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:17:23] Production.INFO: 54.5 MB #Memory Used# [2025-01-26 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:18:06 [end_date_ymd] => 2025-01-26 18:18:06 [RateCDR] => 1 ) [2025-01-26 18:18: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-01-26 15:18:06' and `end` < '2025-01-26 18:18: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-01-26 18:18:20] Production.INFO: count ==3569 [2025-01-26 18:18:21] Production.ERROR: pbx CDR StartTime 2025-01-26 15:18:06 - End Time 2025-01-26 18:18:06 [2025-01-26 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336096', 'tblTempUsageDetail_20' ) start [2025-01-26 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336096', 'tblTempUsageDetail_20' ) end [2025-01-26 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336096', 'tblTempVendorCDR_20' ) start [2025-01-26 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336096', 'tblTempVendorCDR_20' ) end [2025-01-26 18:18:21] Production.INFO: ProcessCDR(1,14336096,1,1,2) [2025-01-26 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336096', 'tblTempUsageDetail_20' ) start [2025-01-26 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336096', 'tblTempUsageDetail_20' ) end [2025-01-26 18:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:18:24] Production.INFO: ==9309== Releasing lock... [2025-01-26 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:18:24] Production.INFO: 54.5 MB #Memory Used# [2025-01-26 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:19:05 [end_date_ymd] => 2025-01-26 18:19:05 [RateCDR] => 1 ) [2025-01-26 18:19: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-01-26 15:19:05' and `end` < '2025-01-26 18:19: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-01-26 18:19:22] Production.INFO: count ==3569 [2025-01-26 18:19:23] Production.ERROR: pbx CDR StartTime 2025-01-26 15:19:05 - End Time 2025-01-26 18:19:05 [2025-01-26 18:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336101', 'tblTempUsageDetail_20' ) start [2025-01-26 18:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336101', 'tblTempUsageDetail_20' ) end [2025-01-26 18:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336101', 'tblTempVendorCDR_20' ) start [2025-01-26 18:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336101', 'tblTempVendorCDR_20' ) end [2025-01-26 18:19:23] Production.INFO: ProcessCDR(1,14336101,1,1,2) [2025-01-26 18:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336101', 'tblTempUsageDetail_20' ) start [2025-01-26 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336101', 'tblTempUsageDetail_20' ) end [2025-01-26 18:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:19:26] Production.INFO: ==9385== Releasing lock... [2025-01-26 18:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:19:26] Production.INFO: 54.5 MB #Memory Used# [2025-01-26 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:20:06 [end_date_ymd] => 2025-01-26 18:20:06 [RateCDR] => 1 ) [2025-01-26 18:20: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-01-26 15:20:06' and `end` < '2025-01-26 18:20: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-01-26 18:20:24] Production.INFO: count ==3567 [2025-01-26 18:20:25] Production.ERROR: pbx CDR StartTime 2025-01-26 15:20:06 - End Time 2025-01-26 18:20:06 [2025-01-26 18:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336107', 'tblTempUsageDetail_20' ) start [2025-01-26 18:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336107', 'tblTempUsageDetail_20' ) end [2025-01-26 18:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336107', 'tblTempVendorCDR_20' ) start [2025-01-26 18:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336107', 'tblTempVendorCDR_20' ) end [2025-01-26 18:20:25] Production.INFO: ProcessCDR(1,14336107,1,1,2) [2025-01-26 18:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336107', 'tblTempUsageDetail_20' ) start [2025-01-26 18:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336107', 'tblTempUsageDetail_20' ) end [2025-01-26 18:20:29] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:20:29] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:20:29] Production.INFO: ==9462== Releasing lock... [2025-01-26 18:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:20:29] Production.INFO: 54.75 MB #Memory Used# [2025-01-26 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:21:05 [end_date_ymd] => 2025-01-26 18:21:05 [RateCDR] => 1 ) [2025-01-26 18:21: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-01-26 15:21:05' and `end` < '2025-01-26 18:21: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-01-26 18:21:19] Production.INFO: count ==3644 [2025-01-26 18:21:20] Production.ERROR: pbx CDR StartTime 2025-01-26 15:21:05 - End Time 2025-01-26 18:21:05 [2025-01-26 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336112', 'tblTempUsageDetail_20' ) start [2025-01-26 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336112', 'tblTempUsageDetail_20' ) end [2025-01-26 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336112', 'tblTempVendorCDR_20' ) start [2025-01-26 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336112', 'tblTempVendorCDR_20' ) end [2025-01-26 18:21:20] Production.INFO: ProcessCDR(1,14336112,1,1,2) [2025-01-26 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336112', 'tblTempUsageDetail_20' ) start [2025-01-26 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336112', 'tblTempUsageDetail_20' ) end [2025-01-26 18:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:21:24] Production.INFO: ==9580== Releasing lock... [2025-01-26 18:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:21:24] Production.INFO: 55.25 MB #Memory Used# [2025-01-26 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:22:05 [end_date_ymd] => 2025-01-26 18:22:05 [RateCDR] => 1 ) [2025-01-26 18:22: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-01-26 15:22:05' and `end` < '2025-01-26 18:22: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-01-26 18:22:19] Production.INFO: count ==3649 [2025-01-26 18:22:20] Production.ERROR: pbx CDR StartTime 2025-01-26 15:22:05 - End Time 2025-01-26 18:22:05 [2025-01-26 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336117', 'tblTempUsageDetail_20' ) start [2025-01-26 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336117', 'tblTempUsageDetail_20' ) end [2025-01-26 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336117', 'tblTempVendorCDR_20' ) start [2025-01-26 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336117', 'tblTempVendorCDR_20' ) end [2025-01-26 18:22:20] Production.INFO: ProcessCDR(1,14336117,1,1,2) [2025-01-26 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336117', 'tblTempUsageDetail_20' ) start [2025-01-26 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336117', 'tblTempUsageDetail_20' ) end [2025-01-26 18:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:22:23] Production.INFO: ==9659== Releasing lock... [2025-01-26 18:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:22:23] Production.INFO: 55.5 MB #Memory Used# [2025-01-26 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:23:05 [end_date_ymd] => 2025-01-26 18:23:05 [RateCDR] => 1 ) [2025-01-26 18:23: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-01-26 15:23:05' and `end` < '2025-01-26 18:23: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-01-26 18:23:21] Production.INFO: count ==3647 [2025-01-26 18:23:22] Production.ERROR: pbx CDR StartTime 2025-01-26 15:23:05 - End Time 2025-01-26 18:23:05 [2025-01-26 18:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336122', 'tblTempUsageDetail_20' ) start [2025-01-26 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336122', 'tblTempUsageDetail_20' ) end [2025-01-26 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336122', 'tblTempVendorCDR_20' ) start [2025-01-26 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336122', 'tblTempVendorCDR_20' ) end [2025-01-26 18:23:22] Production.INFO: ProcessCDR(1,14336122,1,1,2) [2025-01-26 18:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336122', 'tblTempUsageDetail_20' ) start [2025-01-26 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336122', 'tblTempUsageDetail_20' ) end [2025-01-26 18:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:23:25] Production.INFO: ==9734== Releasing lock... [2025-01-26 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:23:25] Production.INFO: 55.25 MB #Memory Used# [2025-01-26 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:24:05 [end_date_ymd] => 2025-01-26 18:24:05 [RateCDR] => 1 ) [2025-01-26 18:24: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-01-26 15:24:05' and `end` < '2025-01-26 18:24: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-01-26 18:24:20] Production.INFO: count ==3647 [2025-01-26 18:24:22] Production.ERROR: pbx CDR StartTime 2025-01-26 15:24:05 - End Time 2025-01-26 18:24:05 [2025-01-26 18:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336127', 'tblTempUsageDetail_20' ) start [2025-01-26 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336127', 'tblTempUsageDetail_20' ) end [2025-01-26 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336127', 'tblTempVendorCDR_20' ) start [2025-01-26 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336127', 'tblTempVendorCDR_20' ) end [2025-01-26 18:24:22] Production.INFO: ProcessCDR(1,14336127,1,1,2) [2025-01-26 18:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336127', 'tblTempUsageDetail_20' ) start [2025-01-26 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336127', 'tblTempUsageDetail_20' ) end [2025-01-26 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:24:25] Production.INFO: ==9823== Releasing lock... [2025-01-26 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:24:25] Production.INFO: 55.25 MB #Memory Used# [2025-01-26 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:25:05 [end_date_ymd] => 2025-01-26 18:25:05 [RateCDR] => 1 ) [2025-01-26 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 15:25:05' and `end` < '2025-01-26 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 18:25:24] Production.INFO: count ==3648 [2025-01-26 18:25:25] Production.ERROR: pbx CDR StartTime 2025-01-26 15:25:05 - End Time 2025-01-26 18:25:05 [2025-01-26 18:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336132', 'tblTempUsageDetail_20' ) start [2025-01-26 18:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336132', 'tblTempUsageDetail_20' ) end [2025-01-26 18:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336132', 'tblTempVendorCDR_20' ) start [2025-01-26 18:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336132', 'tblTempVendorCDR_20' ) end [2025-01-26 18:25:25] Production.INFO: ProcessCDR(1,14336132,1,1,2) [2025-01-26 18:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336132', 'tblTempUsageDetail_20' ) start [2025-01-26 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336132', 'tblTempUsageDetail_20' ) end [2025-01-26 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:25:29] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:25:30] Production.INFO: ==9896== Releasing lock... [2025-01-26 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:25:30] Production.INFO: 55.25 MB #Memory Used# [2025-01-26 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:26:05 [end_date_ymd] => 2025-01-26 18:26:05 [RateCDR] => 1 ) [2025-01-26 18:26: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-01-26 15:26:05' and `end` < '2025-01-26 18:26: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-01-26 18:26:20] Production.INFO: count ==3645 [2025-01-26 18:26:21] Production.ERROR: pbx CDR StartTime 2025-01-26 15:26:05 - End Time 2025-01-26 18:26:05 [2025-01-26 18:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336137', 'tblTempUsageDetail_20' ) start [2025-01-26 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336137', 'tblTempUsageDetail_20' ) end [2025-01-26 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336137', 'tblTempVendorCDR_20' ) start [2025-01-26 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336137', 'tblTempVendorCDR_20' ) end [2025-01-26 18:26:21] Production.INFO: ProcessCDR(1,14336137,1,1,2) [2025-01-26 18:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336137', 'tblTempUsageDetail_20' ) start [2025-01-26 18:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336137', 'tblTempUsageDetail_20' ) end [2025-01-26 18:26:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:26:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:26:26] Production.INFO: ==9973== Releasing lock... [2025-01-26 18:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:26:26] Production.INFO: 55.25 MB #Memory Used# [2025-01-26 18:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:27:04 [end_date_ymd] => 2025-01-26 18:27:04 [RateCDR] => 1 ) [2025-01-26 18:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 15:27:04' and `end` < '2025-01-26 18:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 18:27:17] Production.INFO: count ==3648 [2025-01-26 18:27:19] Production.ERROR: pbx CDR StartTime 2025-01-26 15:27:04 - End Time 2025-01-26 18:27:04 [2025-01-26 18:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336142', 'tblTempUsageDetail_20' ) start [2025-01-26 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336142', 'tblTempUsageDetail_20' ) end [2025-01-26 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336142', 'tblTempVendorCDR_20' ) start [2025-01-26 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336142', 'tblTempVendorCDR_20' ) end [2025-01-26 18:27:19] Production.INFO: ProcessCDR(1,14336142,1,1,2) [2025-01-26 18:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336142', 'tblTempUsageDetail_20' ) start [2025-01-26 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336142', 'tblTempUsageDetail_20' ) end [2025-01-26 18:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:27:23] Production.INFO: ==10049== Releasing lock... [2025-01-26 18:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:27:23] Production.INFO: 55.25 MB #Memory Used# [2025-01-26 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:28:05 [end_date_ymd] => 2025-01-26 18:28:05 [RateCDR] => 1 ) [2025-01-26 18:28: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-01-26 15:28:05' and `end` < '2025-01-26 18:28: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-01-26 18:28:20] Production.INFO: count ==3650 [2025-01-26 18:28:22] Production.ERROR: pbx CDR StartTime 2025-01-26 15:28:05 - End Time 2025-01-26 18:28:05 [2025-01-26 18:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336147', 'tblTempUsageDetail_20' ) start [2025-01-26 18:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336147', 'tblTempUsageDetail_20' ) end [2025-01-26 18:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336147', 'tblTempVendorCDR_20' ) start [2025-01-26 18:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336147', 'tblTempVendorCDR_20' ) end [2025-01-26 18:28:22] Production.INFO: ProcessCDR(1,14336147,1,1,2) [2025-01-26 18:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336147', 'tblTempUsageDetail_20' ) start [2025-01-26 18:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336147', 'tblTempUsageDetail_20' ) end [2025-01-26 18:28:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:28:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:28:25] Production.INFO: ==10132== Releasing lock... [2025-01-26 18:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:28:25] Production.INFO: 55.25 MB #Memory Used# [2025-01-26 18:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:29:04 [end_date_ymd] => 2025-01-26 18:29:04 [RateCDR] => 1 ) [2025-01-26 18:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 15:29:04' and `end` < '2025-01-26 18:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 18:29:19] Production.INFO: count ==3650 [2025-01-26 18:29:21] Production.ERROR: pbx CDR StartTime 2025-01-26 15:29:04 - End Time 2025-01-26 18:29:04 [2025-01-26 18:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336152', 'tblTempUsageDetail_20' ) start [2025-01-26 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336152', 'tblTempUsageDetail_20' ) end [2025-01-26 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336152', 'tblTempVendorCDR_20' ) start [2025-01-26 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336152', 'tblTempVendorCDR_20' ) end [2025-01-26 18:29:21] Production.INFO: ProcessCDR(1,14336152,1,1,2) [2025-01-26 18:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336152', 'tblTempUsageDetail_20' ) start [2025-01-26 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336152', 'tblTempUsageDetail_20' ) end [2025-01-26 18:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:29:24] Production.INFO: ==10210== Releasing lock... [2025-01-26 18:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:29:24] Production.INFO: 55.25 MB #Memory Used# [2025-01-26 18:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:30:07 [end_date_ymd] => 2025-01-26 18:30:07 [RateCDR] => 1 ) [2025-01-26 18:30: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-01-26 15:30:07' and `end` < '2025-01-26 18:30: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-01-26 18:30:19] Production.INFO: count ==3648 [2025-01-26 18:30:21] Production.ERROR: pbx CDR StartTime 2025-01-26 15:30:07 - End Time 2025-01-26 18:30:07 [2025-01-26 18:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336158', 'tblTempUsageDetail_20' ) start [2025-01-26 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336158', 'tblTempUsageDetail_20' ) end [2025-01-26 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336158', 'tblTempVendorCDR_20' ) start [2025-01-26 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336158', 'tblTempVendorCDR_20' ) end [2025-01-26 18:30:21] Production.INFO: ProcessCDR(1,14336158,1,1,2) [2025-01-26 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336158', 'tblTempUsageDetail_20' ) start [2025-01-26 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336158', 'tblTempUsageDetail_20' ) end [2025-01-26 18:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:30:24] Production.INFO: ==10292== Releasing lock... [2025-01-26 18:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:30:24] Production.INFO: 55.25 MB #Memory Used# [2025-01-26 18:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:31:04 [end_date_ymd] => 2025-01-26 18:31:04 [RateCDR] => 1 ) [2025-01-26 18:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 15:31:04' and `end` < '2025-01-26 18:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 18:31:18] Production.INFO: count ==3690 [2025-01-26 18:31:19] Production.ERROR: pbx CDR StartTime 2025-01-26 15:31:04 - End Time 2025-01-26 18:31:04 [2025-01-26 18:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336163', 'tblTempUsageDetail_20' ) start [2025-01-26 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336163', 'tblTempUsageDetail_20' ) end [2025-01-26 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336163', 'tblTempVendorCDR_20' ) start [2025-01-26 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336163', 'tblTempVendorCDR_20' ) end [2025-01-26 18:31:19] Production.INFO: ProcessCDR(1,14336163,1,1,2) [2025-01-26 18:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336163', 'tblTempUsageDetail_20' ) start [2025-01-26 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336163', 'tblTempUsageDetail_20' ) end [2025-01-26 18:31:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:31:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:31:24] Production.INFO: ==10370== Releasing lock... [2025-01-26 18:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:31:24] Production.INFO: 55.5 MB #Memory Used# [2025-01-26 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:32:05 [end_date_ymd] => 2025-01-26 18:32:05 [RateCDR] => 1 ) [2025-01-26 18:32: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-01-26 15:32:05' and `end` < '2025-01-26 18:32: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-01-26 18:32:19] Production.INFO: count ==3691 [2025-01-26 18:32:20] Production.ERROR: pbx CDR StartTime 2025-01-26 15:32:05 - End Time 2025-01-26 18:32:05 [2025-01-26 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336168', 'tblTempUsageDetail_20' ) start [2025-01-26 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336168', 'tblTempUsageDetail_20' ) end [2025-01-26 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336168', 'tblTempVendorCDR_20' ) start [2025-01-26 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336168', 'tblTempVendorCDR_20' ) end [2025-01-26 18:32:20] Production.INFO: ProcessCDR(1,14336168,1,1,2) [2025-01-26 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336168', 'tblTempUsageDetail_20' ) start [2025-01-26 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336168', 'tblTempUsageDetail_20' ) end [2025-01-26 18:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:32:24] Production.INFO: ==10452== Releasing lock... [2025-01-26 18:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:32:24] Production.INFO: 55.75 MB #Memory Used# [2025-01-26 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:33:05 [end_date_ymd] => 2025-01-26 18:33:05 [RateCDR] => 1 ) [2025-01-26 18:33: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-01-26 15:33:05' and `end` < '2025-01-26 18:33: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-01-26 18:33:18] Production.INFO: count ==3692 [2025-01-26 18:33:20] Production.ERROR: pbx CDR StartTime 2025-01-26 15:33:05 - End Time 2025-01-26 18:33:05 [2025-01-26 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336173', 'tblTempUsageDetail_20' ) start [2025-01-26 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336173', 'tblTempUsageDetail_20' ) end [2025-01-26 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336173', 'tblTempVendorCDR_20' ) start [2025-01-26 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336173', 'tblTempVendorCDR_20' ) end [2025-01-26 18:33:20] Production.INFO: ProcessCDR(1,14336173,1,1,2) [2025-01-26 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336173', 'tblTempUsageDetail_20' ) start [2025-01-26 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336173', 'tblTempUsageDetail_20' ) end [2025-01-26 18:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:33:23] Production.INFO: ==10527== Releasing lock... [2025-01-26 18:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:33:23] Production.INFO: 55.5 MB #Memory Used# [2025-01-26 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:34:05 [end_date_ymd] => 2025-01-26 18:34:05 [RateCDR] => 1 ) [2025-01-26 18:34: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-01-26 15:34:05' and `end` < '2025-01-26 18:34: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-01-26 18:34:18] Production.INFO: count ==3694 [2025-01-26 18:34:19] Production.ERROR: pbx CDR StartTime 2025-01-26 15:34:05 - End Time 2025-01-26 18:34:05 [2025-01-26 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336178', 'tblTempUsageDetail_20' ) start [2025-01-26 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336178', 'tblTempUsageDetail_20' ) end [2025-01-26 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336178', 'tblTempVendorCDR_20' ) start [2025-01-26 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336178', 'tblTempVendorCDR_20' ) end [2025-01-26 18:34:19] Production.INFO: ProcessCDR(1,14336178,1,1,2) [2025-01-26 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336178', 'tblTempUsageDetail_20' ) start [2025-01-26 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336178', 'tblTempUsageDetail_20' ) end [2025-01-26 18:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:34:23] Production.INFO: ==10615== Releasing lock... [2025-01-26 18:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:34:23] Production.INFO: 55.5 MB #Memory Used# [2025-01-26 18:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:35:06 [end_date_ymd] => 2025-01-26 18:35:06 [RateCDR] => 1 ) [2025-01-26 18:35: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-01-26 15:35:06' and `end` < '2025-01-26 18:35: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-01-26 18:35:21] Production.INFO: count ==3695 [2025-01-26 18:35:22] Production.ERROR: pbx CDR StartTime 2025-01-26 15:35:06 - End Time 2025-01-26 18:35:06 [2025-01-26 18:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336183', 'tblTempUsageDetail_20' ) start [2025-01-26 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336183', 'tblTempUsageDetail_20' ) end [2025-01-26 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336183', 'tblTempVendorCDR_20' ) start [2025-01-26 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336183', 'tblTempVendorCDR_20' ) end [2025-01-26 18:35:22] Production.INFO: ProcessCDR(1,14336183,1,1,2) [2025-01-26 18:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336183', 'tblTempUsageDetail_20' ) start [2025-01-26 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336183', 'tblTempUsageDetail_20' ) end [2025-01-26 18:35:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:35:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:35:26] Production.INFO: ==10690== Releasing lock... [2025-01-26 18:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:35:26] Production.INFO: 55.5 MB #Memory Used# [2025-01-26 18:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:36:04 [end_date_ymd] => 2025-01-26 18:36:04 [RateCDR] => 1 ) [2025-01-26 18:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 15:36:04' and `end` < '2025-01-26 18:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 18:36:21] Production.INFO: count ==3698 [2025-01-26 18:36:22] Production.ERROR: pbx CDR StartTime 2025-01-26 15:36:04 - End Time 2025-01-26 18:36:04 [2025-01-26 18:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336188', 'tblTempUsageDetail_20' ) start [2025-01-26 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336188', 'tblTempUsageDetail_20' ) end [2025-01-26 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336188', 'tblTempVendorCDR_20' ) start [2025-01-26 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336188', 'tblTempVendorCDR_20' ) end [2025-01-26 18:36:22] Production.INFO: ProcessCDR(1,14336188,1,1,2) [2025-01-26 18:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336188', 'tblTempUsageDetail_20' ) start [2025-01-26 18:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336188', 'tblTempUsageDetail_20' ) end [2025-01-26 18:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:36:27] Production.INFO: ==10813== Releasing lock... [2025-01-26 18:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:36:27] Production.INFO: 55.75 MB #Memory Used# [2025-01-26 18:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:37:06 [end_date_ymd] => 2025-01-26 18:37:06 [RateCDR] => 1 ) [2025-01-26 18:37: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-01-26 15:37:06' and `end` < '2025-01-26 18:37: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-01-26 18:37:21] Production.INFO: count ==3694 [2025-01-26 18:37:22] Production.ERROR: pbx CDR StartTime 2025-01-26 15:37:06 - End Time 2025-01-26 18:37:06 [2025-01-26 18:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336193', 'tblTempUsageDetail_20' ) start [2025-01-26 18:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336193', 'tblTempUsageDetail_20' ) end [2025-01-26 18:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336193', 'tblTempVendorCDR_20' ) start [2025-01-26 18:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336193', 'tblTempVendorCDR_20' ) end [2025-01-26 18:37:22] Production.INFO: ProcessCDR(1,14336193,1,1,2) [2025-01-26 18:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336193', 'tblTempUsageDetail_20' ) start [2025-01-26 18:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336193', 'tblTempUsageDetail_20' ) end [2025-01-26 18:37:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:37:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:37:26] Production.INFO: ==10895== Releasing lock... [2025-01-26 18:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:37:26] Production.INFO: 55.75 MB #Memory Used# [2025-01-26 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:38:05 [end_date_ymd] => 2025-01-26 18:38:05 [RateCDR] => 1 ) [2025-01-26 18:38: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-01-26 15:38:05' and `end` < '2025-01-26 18:38: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-01-26 18:38:19] Production.INFO: count ==3693 [2025-01-26 18:38:20] Production.ERROR: pbx CDR StartTime 2025-01-26 15:38:05 - End Time 2025-01-26 18:38:05 [2025-01-26 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336198', 'tblTempUsageDetail_20' ) start [2025-01-26 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336198', 'tblTempUsageDetail_20' ) end [2025-01-26 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336198', 'tblTempVendorCDR_20' ) start [2025-01-26 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336198', 'tblTempVendorCDR_20' ) end [2025-01-26 18:38:20] Production.INFO: ProcessCDR(1,14336198,1,1,2) [2025-01-26 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336198', 'tblTempUsageDetail_20' ) start [2025-01-26 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336198', 'tblTempUsageDetail_20' ) end [2025-01-26 18:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:38:23] Production.INFO: ==10977== Releasing lock... [2025-01-26 18:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:38:23] Production.INFO: 55.5 MB #Memory Used# [2025-01-26 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:39:05 [end_date_ymd] => 2025-01-26 18:39:05 [RateCDR] => 1 ) [2025-01-26 18:39: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-01-26 15:39:05' and `end` < '2025-01-26 18:39: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-01-26 18:39:21] Production.INFO: count ==3689 [2025-01-26 18:39:22] Production.ERROR: pbx CDR StartTime 2025-01-26 15:39:05 - End Time 2025-01-26 18:39:05 [2025-01-26 18:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336203', 'tblTempUsageDetail_20' ) start [2025-01-26 18:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336203', 'tblTempUsageDetail_20' ) end [2025-01-26 18:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336203', 'tblTempVendorCDR_20' ) start [2025-01-26 18:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336203', 'tblTempVendorCDR_20' ) end [2025-01-26 18:39:22] Production.INFO: ProcessCDR(1,14336203,1,1,2) [2025-01-26 18:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336203', 'tblTempUsageDetail_20' ) start [2025-01-26 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336203', 'tblTempUsageDetail_20' ) end [2025-01-26 18:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:39:26] Production.INFO: ==11056== Releasing lock... [2025-01-26 18:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:39:26] Production.INFO: 55.75 MB #Memory Used# [2025-01-26 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:40:05 [end_date_ymd] => 2025-01-26 18:40:05 [RateCDR] => 1 ) [2025-01-26 18:40: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-01-26 15:40:05' and `end` < '2025-01-26 18:40: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-01-26 18:40:22] Production.INFO: count ==3692 [2025-01-26 18:40:23] Production.ERROR: pbx CDR StartTime 2025-01-26 15:40:05 - End Time 2025-01-26 18:40:05 [2025-01-26 18:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336208', 'tblTempUsageDetail_20' ) start [2025-01-26 18:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336208', 'tblTempUsageDetail_20' ) end [2025-01-26 18:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336208', 'tblTempVendorCDR_20' ) start [2025-01-26 18:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336208', 'tblTempVendorCDR_20' ) end [2025-01-26 18:40:23] Production.INFO: ProcessCDR(1,14336208,1,1,2) [2025-01-26 18:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336208', 'tblTempUsageDetail_20' ) start [2025-01-26 18:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336208', 'tblTempUsageDetail_20' ) end [2025-01-26 18:40:27] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:40:27] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:40:27] Production.INFO: ==11136== Releasing lock... [2025-01-26 18:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:40:27] Production.INFO: 55.75 MB #Memory Used# [2025-01-26 18:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:41:04 [end_date_ymd] => 2025-01-26 18:41:04 [RateCDR] => 1 ) [2025-01-26 18:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 15:41:04' and `end` < '2025-01-26 18:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 18:41:18] Production.INFO: count ==3746 [2025-01-26 18:41:19] Production.ERROR: pbx CDR StartTime 2025-01-26 15:41:04 - End Time 2025-01-26 18:41:04 [2025-01-26 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336214', 'tblTempUsageDetail_20' ) start [2025-01-26 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336214', 'tblTempUsageDetail_20' ) end [2025-01-26 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336214', 'tblTempVendorCDR_20' ) start [2025-01-26 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336214', 'tblTempVendorCDR_20' ) end [2025-01-26 18:41:19] Production.INFO: ProcessCDR(1,14336214,1,1,2) [2025-01-26 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336214', 'tblTempUsageDetail_20' ) start [2025-01-26 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336214', 'tblTempUsageDetail_20' ) end [2025-01-26 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:41:23] Production.INFO: ==11216== Releasing lock... [2025-01-26 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:41:23] Production.INFO: 55.75 MB #Memory Used# [2025-01-26 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:42:06 [end_date_ymd] => 2025-01-26 18:42:06 [RateCDR] => 1 ) [2025-01-26 18:42: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-01-26 15:42:06' and `end` < '2025-01-26 18:42: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-01-26 18:42:20] Production.INFO: count ==3750 [2025-01-26 18:42:21] Production.ERROR: pbx CDR StartTime 2025-01-26 15:42:06 - End Time 2025-01-26 18:42:06 [2025-01-26 18:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336219', 'tblTempUsageDetail_20' ) start [2025-01-26 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336219', 'tblTempUsageDetail_20' ) end [2025-01-26 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336219', 'tblTempVendorCDR_20' ) start [2025-01-26 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336219', 'tblTempVendorCDR_20' ) end [2025-01-26 18:42:21] Production.INFO: ProcessCDR(1,14336219,1,1,2) [2025-01-26 18:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336219', 'tblTempUsageDetail_20' ) start [2025-01-26 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336219', 'tblTempUsageDetail_20' ) end [2025-01-26 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:42:24] Production.INFO: ==11303== Releasing lock... [2025-01-26 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:42:24] Production.INFO: 56.25 MB #Memory Used# [2025-01-26 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:43:05 [end_date_ymd] => 2025-01-26 18:43:05 [RateCDR] => 1 ) [2025-01-26 18:43: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-01-26 15:43:05' and `end` < '2025-01-26 18:43: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-01-26 18:43:17] Production.INFO: count ==3744 [2025-01-26 18:43:19] Production.ERROR: pbx CDR StartTime 2025-01-26 15:43:05 - End Time 2025-01-26 18:43:05 [2025-01-26 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336224', 'tblTempUsageDetail_20' ) start [2025-01-26 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336224', 'tblTempUsageDetail_20' ) end [2025-01-26 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336224', 'tblTempVendorCDR_20' ) start [2025-01-26 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336224', 'tblTempVendorCDR_20' ) end [2025-01-26 18:43:19] Production.INFO: ProcessCDR(1,14336224,1,1,2) [2025-01-26 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336224', 'tblTempUsageDetail_20' ) start [2025-01-26 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336224', 'tblTempUsageDetail_20' ) end [2025-01-26 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:43:23] Production.INFO: ==11386== Releasing lock... [2025-01-26 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:43:23] Production.INFO: 55.75 MB #Memory Used# [2025-01-26 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:44:05 [end_date_ymd] => 2025-01-26 18:44:05 [RateCDR] => 1 ) [2025-01-26 18:44: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-01-26 15:44:05' and `end` < '2025-01-26 18:44: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-01-26 18:44:18] Production.INFO: count ==3738 [2025-01-26 18:44:19] Production.ERROR: pbx CDR StartTime 2025-01-26 15:44:05 - End Time 2025-01-26 18:44:05 [2025-01-26 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336229', 'tblTempUsageDetail_20' ) start [2025-01-26 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336229', 'tblTempUsageDetail_20' ) end [2025-01-26 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336229', 'tblTempVendorCDR_20' ) start [2025-01-26 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336229', 'tblTempVendorCDR_20' ) end [2025-01-26 18:44:19] Production.INFO: ProcessCDR(1,14336229,1,1,2) [2025-01-26 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336229', 'tblTempUsageDetail_20' ) start [2025-01-26 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336229', 'tblTempUsageDetail_20' ) end [2025-01-26 18:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:44:23] Production.INFO: ==11465== Releasing lock... [2025-01-26 18:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:44:23] Production.INFO: 55.75 MB #Memory Used# [2025-01-26 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:45:05 [end_date_ymd] => 2025-01-26 18:45:05 [RateCDR] => 1 ) [2025-01-26 18:45: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-01-26 15:45:05' and `end` < '2025-01-26 18:45: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-01-26 18:45:18] Production.INFO: count ==3737 [2025-01-26 18:45:19] Production.ERROR: pbx CDR StartTime 2025-01-26 15:45:05 - End Time 2025-01-26 18:45:05 [2025-01-26 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336234', 'tblTempUsageDetail_20' ) start [2025-01-26 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336234', 'tblTempUsageDetail_20' ) end [2025-01-26 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336234', 'tblTempVendorCDR_20' ) start [2025-01-26 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336234', 'tblTempVendorCDR_20' ) end [2025-01-26 18:45:19] Production.INFO: ProcessCDR(1,14336234,1,1,2) [2025-01-26 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336234', 'tblTempUsageDetail_20' ) start [2025-01-26 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336234', 'tblTempUsageDetail_20' ) end [2025-01-26 18:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:45:22] Production.INFO: ==11546== Releasing lock... [2025-01-26 18:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:45:22] Production.INFO: 55.75 MB #Memory Used# [2025-01-26 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:46:05 [end_date_ymd] => 2025-01-26 18:46:05 [RateCDR] => 1 ) [2025-01-26 18:46: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-01-26 15:46:05' and `end` < '2025-01-26 18:46: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-01-26 18:46:19] Production.INFO: count ==3741 [2025-01-26 18:46:20] Production.ERROR: pbx CDR StartTime 2025-01-26 15:46:05 - End Time 2025-01-26 18:46:05 [2025-01-26 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336239', 'tblTempUsageDetail_20' ) start [2025-01-26 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336239', 'tblTempUsageDetail_20' ) end [2025-01-26 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336239', 'tblTempVendorCDR_20' ) start [2025-01-26 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336239', 'tblTempVendorCDR_20' ) end [2025-01-26 18:46:20] Production.INFO: ProcessCDR(1,14336239,1,1,2) [2025-01-26 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336239', 'tblTempUsageDetail_20' ) start [2025-01-26 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336239', 'tblTempUsageDetail_20' ) end [2025-01-26 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:46:24] Production.INFO: ==11629== Releasing lock... [2025-01-26 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:46:24] Production.INFO: 56 MB #Memory Used# [2025-01-26 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:47:05 [end_date_ymd] => 2025-01-26 18:47:05 [RateCDR] => 1 ) [2025-01-26 18:47: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-01-26 15:47:05' and `end` < '2025-01-26 18:47: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-01-26 18:47:21] Production.INFO: count ==3747 [2025-01-26 18:47:22] Production.ERROR: pbx CDR StartTime 2025-01-26 15:47:05 - End Time 2025-01-26 18:47:05 [2025-01-26 18:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336244', 'tblTempUsageDetail_20' ) start [2025-01-26 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336244', 'tblTempUsageDetail_20' ) end [2025-01-26 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336244', 'tblTempVendorCDR_20' ) start [2025-01-26 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336244', 'tblTempVendorCDR_20' ) end [2025-01-26 18:47:22] Production.INFO: ProcessCDR(1,14336244,1,1,2) [2025-01-26 18:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336244', 'tblTempUsageDetail_20' ) start [2025-01-26 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336244', 'tblTempUsageDetail_20' ) end [2025-01-26 18:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:47:26] Production.INFO: ==11706== Releasing lock... [2025-01-26 18:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:47:26] Production.INFO: 56 MB #Memory Used# [2025-01-26 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:48:05 [end_date_ymd] => 2025-01-26 18:48:05 [RateCDR] => 1 ) [2025-01-26 18:48: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-01-26 15:48:05' and `end` < '2025-01-26 18:48: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-01-26 18:48:20] Production.INFO: count ==3743 [2025-01-26 18:48:21] Production.ERROR: pbx CDR StartTime 2025-01-26 15:48:05 - End Time 2025-01-26 18:48:05 [2025-01-26 18:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336249', 'tblTempUsageDetail_20' ) start [2025-01-26 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336249', 'tblTempUsageDetail_20' ) end [2025-01-26 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336249', 'tblTempVendorCDR_20' ) start [2025-01-26 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336249', 'tblTempVendorCDR_20' ) end [2025-01-26 18:48:21] Production.INFO: ProcessCDR(1,14336249,1,1,2) [2025-01-26 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336249', 'tblTempUsageDetail_20' ) start [2025-01-26 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336249', 'tblTempUsageDetail_20' ) end [2025-01-26 18:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:48:25] Production.INFO: ==11788== Releasing lock... [2025-01-26 18:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:48:25] Production.INFO: 56 MB #Memory Used# [2025-01-26 18:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:49:04 [end_date_ymd] => 2025-01-26 18:49:04 [RateCDR] => 1 ) [2025-01-26 18:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 15:49:04' and `end` < '2025-01-26 18:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 18:49:19] Production.INFO: count ==3746 [2025-01-26 18:49:20] Production.ERROR: pbx CDR StartTime 2025-01-26 15:49:04 - End Time 2025-01-26 18:49:04 [2025-01-26 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336254', 'tblTempUsageDetail_20' ) start [2025-01-26 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336254', 'tblTempUsageDetail_20' ) end [2025-01-26 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336254', 'tblTempVendorCDR_20' ) start [2025-01-26 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336254', 'tblTempVendorCDR_20' ) end [2025-01-26 18:49:20] Production.INFO: ProcessCDR(1,14336254,1,1,2) [2025-01-26 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336254', 'tblTempUsageDetail_20' ) start [2025-01-26 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336254', 'tblTempUsageDetail_20' ) end [2025-01-26 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:49:24] Production.INFO: ==11869== Releasing lock... [2025-01-26 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:49:24] Production.INFO: 55.75 MB #Memory Used# [2025-01-26 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:50:06 [end_date_ymd] => 2025-01-26 18:50:06 [RateCDR] => 1 ) [2025-01-26 18:50: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-01-26 15:50:06' and `end` < '2025-01-26 18:50: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-01-26 18:50:20] Production.INFO: count ==3745 [2025-01-26 18:50:21] Production.ERROR: pbx CDR StartTime 2025-01-26 15:50:06 - End Time 2025-01-26 18:50:06 [2025-01-26 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336260', 'tblTempUsageDetail_20' ) start [2025-01-26 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336260', 'tblTempUsageDetail_20' ) end [2025-01-26 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336260', 'tblTempVendorCDR_20' ) start [2025-01-26 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336260', 'tblTempVendorCDR_20' ) end [2025-01-26 18:50:22] Production.INFO: ProcessCDR(1,14336260,1,1,2) [2025-01-26 18:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336260', 'tblTempUsageDetail_20' ) start [2025-01-26 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336260', 'tblTempUsageDetail_20' ) end [2025-01-26 18:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:50:25] Production.INFO: ==11952== Releasing lock... [2025-01-26 18:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:50:25] Production.INFO: 55.75 MB #Memory Used# [2025-01-26 18:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:51:04 [end_date_ymd] => 2025-01-26 18:51:04 [RateCDR] => 1 ) [2025-01-26 18:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 15:51:04' and `end` < '2025-01-26 18:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 18:51:17] Production.INFO: count ==3773 [2025-01-26 18:51:19] Production.ERROR: pbx CDR StartTime 2025-01-26 15:51:04 - End Time 2025-01-26 18:51:04 [2025-01-26 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336265', 'tblTempUsageDetail_20' ) start [2025-01-26 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336265', 'tblTempUsageDetail_20' ) end [2025-01-26 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336265', 'tblTempVendorCDR_20' ) start [2025-01-26 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336265', 'tblTempVendorCDR_20' ) end [2025-01-26 18:51:19] Production.INFO: ProcessCDR(1,14336265,1,1,2) [2025-01-26 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336265', 'tblTempUsageDetail_20' ) start [2025-01-26 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336265', 'tblTempUsageDetail_20' ) end [2025-01-26 18:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:51:22] Production.INFO: ==12033== Releasing lock... [2025-01-26 18:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:51:22] Production.INFO: 56 MB #Memory Used# [2025-01-26 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:52:05 [end_date_ymd] => 2025-01-26 18:52:05 [RateCDR] => 1 ) [2025-01-26 18:52: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-01-26 15:52:05' and `end` < '2025-01-26 18:52: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-01-26 18:52:18] Production.INFO: count ==3770 [2025-01-26 18:52:19] Production.ERROR: pbx CDR StartTime 2025-01-26 15:52:05 - End Time 2025-01-26 18:52:05 [2025-01-26 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336270', 'tblTempUsageDetail_20' ) start [2025-01-26 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336270', 'tblTempUsageDetail_20' ) end [2025-01-26 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336270', 'tblTempVendorCDR_20' ) start [2025-01-26 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336270', 'tblTempVendorCDR_20' ) end [2025-01-26 18:52:19] Production.INFO: ProcessCDR(1,14336270,1,1,2) [2025-01-26 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336270', 'tblTempUsageDetail_20' ) start [2025-01-26 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336270', 'tblTempUsageDetail_20' ) end [2025-01-26 18:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:52:23] Production.INFO: ==12148== Releasing lock... [2025-01-26 18:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:52:23] Production.INFO: 56.25 MB #Memory Used# [2025-01-26 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:53:04 [end_date_ymd] => 2025-01-26 18:53:04 [RateCDR] => 1 ) [2025-01-26 18:53: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-01-26 15:53:04' and `end` < '2025-01-26 18:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 18:53:18] Production.INFO: count ==3771 [2025-01-26 18:53:19] Production.ERROR: pbx CDR StartTime 2025-01-26 15:53:04 - End Time 2025-01-26 18:53:04 [2025-01-26 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336275', 'tblTempUsageDetail_20' ) start [2025-01-26 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336275', 'tblTempUsageDetail_20' ) end [2025-01-26 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336275', 'tblTempVendorCDR_20' ) start [2025-01-26 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336275', 'tblTempVendorCDR_20' ) end [2025-01-26 18:53:19] Production.INFO: ProcessCDR(1,14336275,1,1,2) [2025-01-26 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336275', 'tblTempUsageDetail_20' ) start [2025-01-26 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336275', 'tblTempUsageDetail_20' ) end [2025-01-26 18:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:53:22] Production.INFO: ==12228== Releasing lock... [2025-01-26 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:53:22] Production.INFO: 56 MB #Memory Used# [2025-01-26 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:54:05 [end_date_ymd] => 2025-01-26 18:54:05 [RateCDR] => 1 ) [2025-01-26 18:54: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-01-26 15:54:05' and `end` < '2025-01-26 18:54: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-01-26 18:54:18] Production.INFO: count ==3766 [2025-01-26 18:54:20] Production.ERROR: pbx CDR StartTime 2025-01-26 15:54:05 - End Time 2025-01-26 18:54:05 [2025-01-26 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336280', 'tblTempUsageDetail_20' ) start [2025-01-26 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336280', 'tblTempUsageDetail_20' ) end [2025-01-26 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336280', 'tblTempVendorCDR_20' ) start [2025-01-26 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336280', 'tblTempVendorCDR_20' ) end [2025-01-26 18:54:20] Production.INFO: ProcessCDR(1,14336280,1,1,2) [2025-01-26 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336280', 'tblTempUsageDetail_20' ) start [2025-01-26 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336280', 'tblTempUsageDetail_20' ) end [2025-01-26 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:54:23] Production.INFO: ==12306== Releasing lock... [2025-01-26 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:54:23] Production.INFO: 56.25 MB #Memory Used# [2025-01-26 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:55:06 [end_date_ymd] => 2025-01-26 18:55:06 [RateCDR] => 1 ) [2025-01-26 18:55: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-01-26 15:55:06' and `end` < '2025-01-26 18:55: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-01-26 18:55:19] Production.INFO: count ==3764 [2025-01-26 18:55:20] Production.ERROR: pbx CDR StartTime 2025-01-26 15:55:06 - End Time 2025-01-26 18:55:06 [2025-01-26 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336285', 'tblTempUsageDetail_20' ) start [2025-01-26 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336285', 'tblTempUsageDetail_20' ) end [2025-01-26 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336285', 'tblTempVendorCDR_20' ) start [2025-01-26 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336285', 'tblTempVendorCDR_20' ) end [2025-01-26 18:55:20] Production.INFO: ProcessCDR(1,14336285,1,1,2) [2025-01-26 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336285', 'tblTempUsageDetail_20' ) start [2025-01-26 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336285', 'tblTempUsageDetail_20' ) end [2025-01-26 18:55:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:55:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:55:25] Production.INFO: ==12382== Releasing lock... [2025-01-26 18:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:55:25] Production.INFO: 56 MB #Memory Used# [2025-01-26 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:56:05 [end_date_ymd] => 2025-01-26 18:56:05 [RateCDR] => 1 ) [2025-01-26 18:56: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-01-26 15:56:05' and `end` < '2025-01-26 18:56: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-01-26 18:56:20] Production.INFO: count ==3765 [2025-01-26 18:56:22] Production.ERROR: pbx CDR StartTime 2025-01-26 15:56:05 - End Time 2025-01-26 18:56:05 [2025-01-26 18:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336290', 'tblTempUsageDetail_20' ) start [2025-01-26 18:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336290', 'tblTempUsageDetail_20' ) end [2025-01-26 18:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336290', 'tblTempVendorCDR_20' ) start [2025-01-26 18:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336290', 'tblTempVendorCDR_20' ) end [2025-01-26 18:56:22] Production.INFO: ProcessCDR(1,14336290,1,1,2) [2025-01-26 18:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336290', 'tblTempUsageDetail_20' ) start [2025-01-26 18:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336290', 'tblTempUsageDetail_20' ) end [2025-01-26 18:56:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:56:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:56:26] Production.INFO: ==12465== Releasing lock... [2025-01-26 18:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:56:26] Production.INFO: 56.25 MB #Memory Used# [2025-01-26 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:57:05 [end_date_ymd] => 2025-01-26 18:57:05 [RateCDR] => 1 ) [2025-01-26 18:57: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-01-26 15:57:05' and `end` < '2025-01-26 18:57: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-01-26 18:57:22] Production.INFO: count ==3797 [2025-01-26 18:57:23] Production.ERROR: pbx CDR StartTime 2025-01-26 15:57:05 - End Time 2025-01-26 18:57:05 [2025-01-26 18:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336295', 'tblTempUsageDetail_20' ) start [2025-01-26 18:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336295', 'tblTempUsageDetail_20' ) end [2025-01-26 18:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336295', 'tblTempVendorCDR_20' ) start [2025-01-26 18:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336295', 'tblTempVendorCDR_20' ) end [2025-01-26 18:57:23] Production.INFO: ProcessCDR(1,14336295,1,1,2) [2025-01-26 18:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336295', 'tblTempUsageDetail_20' ) start [2025-01-26 18:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336295', 'tblTempUsageDetail_20' ) end [2025-01-26 18:57:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:57:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:57:26] Production.INFO: ==12546== Releasing lock... [2025-01-26 18:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:57:26] Production.INFO: 56.25 MB #Memory Used# [2025-01-26 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:58:05 [end_date_ymd] => 2025-01-26 18:58:05 [RateCDR] => 1 ) [2025-01-26 18:58: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-01-26 15:58:05' and `end` < '2025-01-26 18:58: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-01-26 18:58:18] Production.INFO: count ==3831 [2025-01-26 18:58:19] Production.ERROR: pbx CDR StartTime 2025-01-26 15:58:05 - End Time 2025-01-26 18:58:05 [2025-01-26 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336300', 'tblTempUsageDetail_20' ) start [2025-01-26 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336300', 'tblTempUsageDetail_20' ) end [2025-01-26 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336300', 'tblTempVendorCDR_20' ) start [2025-01-26 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336300', 'tblTempVendorCDR_20' ) end [2025-01-26 18:58:19] Production.INFO: ProcessCDR(1,14336300,1,1,2) [2025-01-26 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336300', 'tblTempUsageDetail_20' ) start [2025-01-26 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336300', 'tblTempUsageDetail_20' ) end [2025-01-26 18:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:58:22] Production.INFO: ==12623== Releasing lock... [2025-01-26 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:58:22] Production.INFO: 56.5 MB #Memory Used# [2025-01-26 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 15:59:05 [end_date_ymd] => 2025-01-26 18:59:05 [RateCDR] => 1 ) [2025-01-26 18:59: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-01-26 15:59:05' and `end` < '2025-01-26 18:59: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-01-26 18:59:18] Production.INFO: count ==3873 [2025-01-26 18:59:19] Production.ERROR: pbx CDR StartTime 2025-01-26 15:59:05 - End Time 2025-01-26 18:59:05 [2025-01-26 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336305', 'tblTempUsageDetail_20' ) start [2025-01-26 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336305', 'tblTempUsageDetail_20' ) end [2025-01-26 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336305', 'tblTempVendorCDR_20' ) start [2025-01-26 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336305', 'tblTempVendorCDR_20' ) end [2025-01-26 18:59:19] Production.INFO: ProcessCDR(1,14336305,1,1,2) [2025-01-26 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336305', 'tblTempUsageDetail_20' ) start [2025-01-26 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336305', 'tblTempUsageDetail_20' ) end [2025-01-26 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 18:59:23] Production.INFO: ==12700== Releasing lock... [2025-01-26 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 18:59:23] Production.INFO: 57.25 MB #Memory Used# [2025-01-26 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:00:06 [end_date_ymd] => 2025-01-26 19:00:06 [RateCDR] => 1 ) [2025-01-26 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-01-26 16:00:06' and `end` < '2025-01-26 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-01-26 19:00:20] Production.INFO: count ==3934 [2025-01-26 19:00:21] Production.ERROR: pbx CDR StartTime 2025-01-26 16:00:06 - End Time 2025-01-26 19:00:06 [2025-01-26 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336310', 'tblTempUsageDetail_20' ) start [2025-01-26 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336310', 'tblTempUsageDetail_20' ) end [2025-01-26 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336310', 'tblTempVendorCDR_20' ) start [2025-01-26 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336310', 'tblTempVendorCDR_20' ) end [2025-01-26 19:00:21] Production.INFO: ProcessCDR(1,14336310,1,1,2) [2025-01-26 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336310', 'tblTempUsageDetail_20' ) start [2025-01-26 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336310', 'tblTempUsageDetail_20' ) end [2025-01-26 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:00:25] Production.INFO: ==12781== Releasing lock... [2025-01-26 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:00:25] Production.INFO: 57.25 MB #Memory Used# [2025-01-26 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:01:05 [end_date_ymd] => 2025-01-26 19:01:05 [RateCDR] => 1 ) [2025-01-26 19:01: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-01-26 16:01:05' and `end` < '2025-01-26 19:01: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-01-26 19:01:19] Production.INFO: count ==4026 [2025-01-26 19:01:20] Production.ERROR: pbx CDR StartTime 2025-01-26 16:01:05 - End Time 2025-01-26 19:01:05 [2025-01-26 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336316', 'tblTempUsageDetail_20' ) start [2025-01-26 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336316', 'tblTempUsageDetail_20' ) end [2025-01-26 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336316', 'tblTempVendorCDR_20' ) start [2025-01-26 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336316', 'tblTempVendorCDR_20' ) end [2025-01-26 19:01:20] Production.INFO: ProcessCDR(1,14336316,1,1,2) [2025-01-26 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336316', 'tblTempUsageDetail_20' ) start [2025-01-26 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336316', 'tblTempUsageDetail_20' ) end [2025-01-26 19:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:01:23] Production.INFO: ==12952== Releasing lock... [2025-01-26 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:01:23] Production.INFO: 58 MB #Memory Used# [2025-01-26 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:02:05 [end_date_ymd] => 2025-01-26 19:02:05 [RateCDR] => 1 ) [2025-01-26 19:02: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-01-26 16:02:05' and `end` < '2025-01-26 19:02: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-01-26 19:02:19] Production.INFO: count ==4087 [2025-01-26 19:02:20] Production.ERROR: pbx CDR StartTime 2025-01-26 16:02:05 - End Time 2025-01-26 19:02:05 [2025-01-26 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336321', 'tblTempUsageDetail_20' ) start [2025-01-26 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336321', 'tblTempUsageDetail_20' ) end [2025-01-26 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336321', 'tblTempVendorCDR_20' ) start [2025-01-26 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336321', 'tblTempVendorCDR_20' ) end [2025-01-26 19:02:20] Production.INFO: ProcessCDR(1,14336321,1,1,2) [2025-01-26 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336321', 'tblTempUsageDetail_20' ) start [2025-01-26 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336321', 'tblTempUsageDetail_20' ) end [2025-01-26 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:02:24] Production.INFO: ==13027== Releasing lock... [2025-01-26 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:02:24] Production.INFO: 58.5 MB #Memory Used# [2025-01-26 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:03:05 [end_date_ymd] => 2025-01-26 19:03:05 [RateCDR] => 1 ) [2025-01-26 19:03: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-01-26 16:03:05' and `end` < '2025-01-26 19:03: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-01-26 19:03:19] Production.INFO: count ==4154 [2025-01-26 19:03:20] Production.ERROR: pbx CDR StartTime 2025-01-26 16:03:05 - End Time 2025-01-26 19:03:05 [2025-01-26 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336326', 'tblTempUsageDetail_20' ) start [2025-01-26 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336326', 'tblTempUsageDetail_20' ) end [2025-01-26 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336326', 'tblTempVendorCDR_20' ) start [2025-01-26 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336326', 'tblTempVendorCDR_20' ) end [2025-01-26 19:03:20] Production.INFO: ProcessCDR(1,14336326,1,1,2) [2025-01-26 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336326', 'tblTempUsageDetail_20' ) start [2025-01-26 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336326', 'tblTempUsageDetail_20' ) end [2025-01-26 19:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:03:24] Production.INFO: ==13110== Releasing lock... [2025-01-26 19:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:03:24] Production.INFO: 59 MB #Memory Used# [2025-01-26 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:04:05 [end_date_ymd] => 2025-01-26 19:04:05 [RateCDR] => 1 ) [2025-01-26 19:04: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-01-26 16:04:05' and `end` < '2025-01-26 19:04: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-01-26 19:04:24] Production.INFO: count ==4194 [2025-01-26 19:04:25] Production.ERROR: pbx CDR StartTime 2025-01-26 16:04:05 - End Time 2025-01-26 19:04:05 [2025-01-26 19:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336331', 'tblTempUsageDetail_20' ) start [2025-01-26 19:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336331', 'tblTempUsageDetail_20' ) end [2025-01-26 19:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336331', 'tblTempVendorCDR_20' ) start [2025-01-26 19:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336331', 'tblTempVendorCDR_20' ) end [2025-01-26 19:04:25] Production.INFO: ProcessCDR(1,14336331,1,1,2) [2025-01-26 19:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336331', 'tblTempUsageDetail_20' ) start [2025-01-26 19:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336331', 'tblTempUsageDetail_20' ) end [2025-01-26 19:04:29] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:04:29] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:04:29] Production.INFO: ==13191== Releasing lock... [2025-01-26 19:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:04:29] Production.INFO: 59.25 MB #Memory Used# [2025-01-26 19:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:05:06 [end_date_ymd] => 2025-01-26 19:05:06 [RateCDR] => 1 ) [2025-01-26 19:05: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-01-26 16:05:06' and `end` < '2025-01-26 19:05: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-01-26 19:05:24] Production.INFO: count ==4236 [2025-01-26 19:05:25] Production.ERROR: pbx CDR StartTime 2025-01-26 16:05:06 - End Time 2025-01-26 19:05:06 [2025-01-26 19:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336336', 'tblTempUsageDetail_20' ) start [2025-01-26 19:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336336', 'tblTempUsageDetail_20' ) end [2025-01-26 19:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336336', 'tblTempVendorCDR_20' ) start [2025-01-26 19:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336336', 'tblTempVendorCDR_20' ) end [2025-01-26 19:05:25] Production.INFO: ProcessCDR(1,14336336,1,1,2) [2025-01-26 19:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336336', 'tblTempUsageDetail_20' ) start [2025-01-26 19:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336336', 'tblTempUsageDetail_20' ) end [2025-01-26 19:05:29] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:05:29] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:05:29] Production.INFO: ==13346== Releasing lock... [2025-01-26 19:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:05:29] Production.INFO: 59.5 MB #Memory Used# [2025-01-26 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:06:05 [end_date_ymd] => 2025-01-26 19:06:05 [RateCDR] => 1 ) [2025-01-26 19:06: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-01-26 16:06:05' and `end` < '2025-01-26 19:06: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-01-26 19:06:18] Production.INFO: count ==4289 [2025-01-26 19:06:20] Production.ERROR: pbx CDR StartTime 2025-01-26 16:06:05 - End Time 2025-01-26 19:06:05 [2025-01-26 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336341', 'tblTempUsageDetail_20' ) start [2025-01-26 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336341', 'tblTempUsageDetail_20' ) end [2025-01-26 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336341', 'tblTempVendorCDR_20' ) start [2025-01-26 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336341', 'tblTempVendorCDR_20' ) end [2025-01-26 19:06:20] Production.INFO: ProcessCDR(1,14336341,1,1,2) [2025-01-26 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336341', 'tblTempUsageDetail_20' ) start [2025-01-26 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336341', 'tblTempUsageDetail_20' ) end [2025-01-26 19:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:06:25] Production.INFO: ==13424== Releasing lock... [2025-01-26 19:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:06:25] Production.INFO: 60 MB #Memory Used# [2025-01-26 19:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:07:06 [end_date_ymd] => 2025-01-26 19:07:06 [RateCDR] => 1 ) [2025-01-26 19:07: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-01-26 16:07:06' and `end` < '2025-01-26 19:07: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-01-26 19:07:20] Production.INFO: count ==4316 [2025-01-26 19:07:21] Production.ERROR: pbx CDR StartTime 2025-01-26 16:07:06 - End Time 2025-01-26 19:07:06 [2025-01-26 19:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336346', 'tblTempUsageDetail_20' ) start [2025-01-26 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336346', 'tblTempUsageDetail_20' ) end [2025-01-26 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336346', 'tblTempVendorCDR_20' ) start [2025-01-26 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336346', 'tblTempVendorCDR_20' ) end [2025-01-26 19:07:21] Production.INFO: ProcessCDR(1,14336346,1,1,2) [2025-01-26 19:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336346', 'tblTempUsageDetail_20' ) start [2025-01-26 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336346', 'tblTempUsageDetail_20' ) end [2025-01-26 19:07:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:07:25] Production.INFO: ==13536== Releasing lock... [2025-01-26 19:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:07:25] Production.INFO: 60.25 MB #Memory Used# [2025-01-26 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:08:05 [end_date_ymd] => 2025-01-26 19:08:05 [RateCDR] => 1 ) [2025-01-26 19:08: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-01-26 16:08:05' and `end` < '2025-01-26 19:08: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-01-26 19:08:23] Production.INFO: count ==4357 [2025-01-26 19:08:24] Production.ERROR: pbx CDR StartTime 2025-01-26 16:08:05 - End Time 2025-01-26 19:08:05 [2025-01-26 19:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336351', 'tblTempUsageDetail_20' ) start [2025-01-26 19:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336351', 'tblTempUsageDetail_20' ) end [2025-01-26 19:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336351', 'tblTempVendorCDR_20' ) start [2025-01-26 19:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336351', 'tblTempVendorCDR_20' ) end [2025-01-26 19:08:24] Production.INFO: ProcessCDR(1,14336351,1,1,2) [2025-01-26 19:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336351', 'tblTempUsageDetail_20' ) start [2025-01-26 19:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336351', 'tblTempUsageDetail_20' ) end [2025-01-26 19:08:28] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:08:28] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:08:28] Production.INFO: ==13693== Releasing lock... [2025-01-26 19:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:08:28] Production.INFO: 60.5 MB #Memory Used# [2025-01-26 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:09:05 [end_date_ymd] => 2025-01-26 19:09:05 [RateCDR] => 1 ) [2025-01-26 19:09: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-01-26 16:09:05' and `end` < '2025-01-26 19:09: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-01-26 19:09:22] Production.INFO: count ==4391 [2025-01-26 19:09:24] Production.ERROR: pbx CDR StartTime 2025-01-26 16:09:05 - End Time 2025-01-26 19:09:05 [2025-01-26 19:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336356', 'tblTempUsageDetail_20' ) start [2025-01-26 19:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336356', 'tblTempUsageDetail_20' ) end [2025-01-26 19:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336356', 'tblTempVendorCDR_20' ) start [2025-01-26 19:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336356', 'tblTempVendorCDR_20' ) end [2025-01-26 19:09:24] Production.INFO: ProcessCDR(1,14336356,1,1,2) [2025-01-26 19:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336356', 'tblTempUsageDetail_20' ) start [2025-01-26 19:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336356', 'tblTempUsageDetail_20' ) end [2025-01-26 19:09:27] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:09:27] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:09:27] Production.INFO: ==13770== Releasing lock... [2025-01-26 19:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:09:27] Production.INFO: 60.75 MB #Memory Used# [2025-01-26 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:10:06 [end_date_ymd] => 2025-01-26 19:10:06 [RateCDR] => 1 ) [2025-01-26 19:10: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-01-26 16:10:06' and `end` < '2025-01-26 19:10: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-01-26 19:10:25] Production.INFO: count ==4434 [2025-01-26 19:10:26] Production.ERROR: pbx CDR StartTime 2025-01-26 16:10:06 - End Time 2025-01-26 19:10:06 [2025-01-26 19:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336362', 'tblTempUsageDetail_20' ) start [2025-01-26 19:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336362', 'tblTempUsageDetail_20' ) end [2025-01-26 19:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336362', 'tblTempVendorCDR_20' ) start [2025-01-26 19:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336362', 'tblTempVendorCDR_20' ) end [2025-01-26 19:10:27] Production.INFO: ProcessCDR(1,14336362,1,1,2) [2025-01-26 19:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336362', 'tblTempUsageDetail_20' ) start [2025-01-26 19:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336362', 'tblTempUsageDetail_20' ) end [2025-01-26 19:10:30] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:10:30] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:10:30] Production.INFO: ==13844== Releasing lock... [2025-01-26 19:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:10:30] Production.INFO: 61 MB #Memory Used# [2025-01-26 19:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:11:06 [end_date_ymd] => 2025-01-26 19:11:06 [RateCDR] => 1 ) [2025-01-26 19:11: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-01-26 16:11:06' and `end` < '2025-01-26 19:11: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-01-26 19:11:19] Production.INFO: count ==4482 [2025-01-26 19:11:20] Production.ERROR: pbx CDR StartTime 2025-01-26 16:11:06 - End Time 2025-01-26 19:11:06 [2025-01-26 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336367', 'tblTempUsageDetail_20' ) start [2025-01-26 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336367', 'tblTempUsageDetail_20' ) end [2025-01-26 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336367', 'tblTempVendorCDR_20' ) start [2025-01-26 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336367', 'tblTempVendorCDR_20' ) end [2025-01-26 19:11:20] Production.INFO: ProcessCDR(1,14336367,1,1,2) [2025-01-26 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336367', 'tblTempUsageDetail_20' ) start [2025-01-26 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336367', 'tblTempUsageDetail_20' ) end [2025-01-26 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:11:23] Production.INFO: ==13930== Releasing lock... [2025-01-26 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:11:23] Production.INFO: 61.5 MB #Memory Used# [2025-01-26 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:12:05 [end_date_ymd] => 2025-01-26 19:12:05 [RateCDR] => 1 ) [2025-01-26 19:12: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-01-26 16:12:05' and `end` < '2025-01-26 19:12: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-01-26 19:12:18] Production.INFO: count ==4521 [2025-01-26 19:12:20] Production.ERROR: pbx CDR StartTime 2025-01-26 16:12:05 - End Time 2025-01-26 19:12:05 [2025-01-26 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336372', 'tblTempUsageDetail_20' ) start [2025-01-26 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336372', 'tblTempUsageDetail_20' ) end [2025-01-26 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336372', 'tblTempVendorCDR_20' ) start [2025-01-26 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336372', 'tblTempVendorCDR_20' ) end [2025-01-26 19:12:20] Production.INFO: ProcessCDR(1,14336372,1,1,2) [2025-01-26 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336372', 'tblTempUsageDetail_20' ) start [2025-01-26 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336372', 'tblTempUsageDetail_20' ) end [2025-01-26 19:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:12:25] Production.INFO: ==14081== Releasing lock... [2025-01-26 19:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:12:25] Production.INFO: 61.75 MB #Memory Used# [2025-01-26 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:13:05 [end_date_ymd] => 2025-01-26 19:13:05 [RateCDR] => 1 ) [2025-01-26 19:13: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-01-26 16:13:05' and `end` < '2025-01-26 19:13: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-01-26 19:13:18] Production.INFO: count ==4558 [2025-01-26 19:13:20] Production.ERROR: pbx CDR StartTime 2025-01-26 16:13:05 - End Time 2025-01-26 19:13:05 [2025-01-26 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336377', 'tblTempUsageDetail_20' ) start [2025-01-26 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336377', 'tblTempUsageDetail_20' ) end [2025-01-26 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336377', 'tblTempVendorCDR_20' ) start [2025-01-26 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336377', 'tblTempVendorCDR_20' ) end [2025-01-26 19:13:20] Production.INFO: ProcessCDR(1,14336377,1,1,2) [2025-01-26 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336377', 'tblTempUsageDetail_20' ) start [2025-01-26 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336377', 'tblTempUsageDetail_20' ) end [2025-01-26 19:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:13:25] Production.INFO: ==14161== Releasing lock... [2025-01-26 19:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:13:25] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:14:06 [end_date_ymd] => 2025-01-26 19:14:06 [RateCDR] => 1 ) [2025-01-26 19:14: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-01-26 16:14:06' and `end` < '2025-01-26 19:14: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-01-26 19:14:24] Production.INFO: count ==4576 [2025-01-26 19:14:25] Production.ERROR: pbx CDR StartTime 2025-01-26 16:14:06 - End Time 2025-01-26 19:14:06 [2025-01-26 19:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336382', 'tblTempUsageDetail_20' ) start [2025-01-26 19:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336382', 'tblTempUsageDetail_20' ) end [2025-01-26 19:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336382', 'tblTempVendorCDR_20' ) start [2025-01-26 19:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336382', 'tblTempVendorCDR_20' ) end [2025-01-26 19:14:25] Production.INFO: ProcessCDR(1,14336382,1,1,2) [2025-01-26 19:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336382', 'tblTempUsageDetail_20' ) start [2025-01-26 19:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336382', 'tblTempUsageDetail_20' ) end [2025-01-26 19:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:14:30] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:14:30] Production.INFO: ==14239== Releasing lock... [2025-01-26 19:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:14:30] Production.INFO: 62.25 MB #Memory Used# [2025-01-26 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:15:05 [end_date_ymd] => 2025-01-26 19:15:05 [RateCDR] => 1 ) [2025-01-26 19:15: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-01-26 16:15:05' and `end` < '2025-01-26 19:15: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-01-26 19:15:25] Production.INFO: count ==4580 [2025-01-26 19:15:26] Production.ERROR: pbx CDR StartTime 2025-01-26 16:15:05 - End Time 2025-01-26 19:15:05 [2025-01-26 19:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336387', 'tblTempUsageDetail_20' ) start [2025-01-26 19:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336387', 'tblTempUsageDetail_20' ) end [2025-01-26 19:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336387', 'tblTempVendorCDR_20' ) start [2025-01-26 19:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336387', 'tblTempVendorCDR_20' ) end [2025-01-26 19:15:26] Production.INFO: ProcessCDR(1,14336387,1,1,2) [2025-01-26 19:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336387', 'tblTempUsageDetail_20' ) start [2025-01-26 19:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336387', 'tblTempUsageDetail_20' ) end [2025-01-26 19:15:31] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:15:31] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:15:31] Production.INFO: ==14395== Releasing lock... [2025-01-26 19:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:15:31] Production.INFO: 62.25 MB #Memory Used# [2025-01-26 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:16:05 [end_date_ymd] => 2025-01-26 19:16:05 [RateCDR] => 1 ) [2025-01-26 19:16: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-01-26 16:16:05' and `end` < '2025-01-26 19:16: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-01-26 19:16:20] Production.INFO: count ==4576 [2025-01-26 19:16:22] Production.ERROR: pbx CDR StartTime 2025-01-26 16:16:05 - End Time 2025-01-26 19:16:05 [2025-01-26 19:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336392', 'tblTempUsageDetail_20' ) start [2025-01-26 19:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336392', 'tblTempUsageDetail_20' ) end [2025-01-26 19:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336392', 'tblTempVendorCDR_20' ) start [2025-01-26 19:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336392', 'tblTempVendorCDR_20' ) end [2025-01-26 19:16:22] Production.INFO: ProcessCDR(1,14336392,1,1,2) [2025-01-26 19:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336392', 'tblTempUsageDetail_20' ) start [2025-01-26 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336392', 'tblTempUsageDetail_20' ) end [2025-01-26 19:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:16:25] Production.INFO: ==14478== Releasing lock... [2025-01-26 19:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:16:25] Production.INFO: 62.25 MB #Memory Used# [2025-01-26 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:17:05 [end_date_ymd] => 2025-01-26 19:17:05 [RateCDR] => 1 ) [2025-01-26 19:17: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-01-26 16:17:05' and `end` < '2025-01-26 19:17: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-01-26 19:17:20] Production.INFO: count ==4578 [2025-01-26 19:17:21] Production.ERROR: pbx CDR StartTime 2025-01-26 16:17:05 - End Time 2025-01-26 19:17:05 [2025-01-26 19:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336397', 'tblTempUsageDetail_20' ) start [2025-01-26 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336397', 'tblTempUsageDetail_20' ) end [2025-01-26 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336397', 'tblTempVendorCDR_20' ) start [2025-01-26 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336397', 'tblTempVendorCDR_20' ) end [2025-01-26 19:17:21] Production.INFO: ProcessCDR(1,14336397,1,1,2) [2025-01-26 19:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336397', 'tblTempUsageDetail_20' ) start [2025-01-26 19:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336397', 'tblTempUsageDetail_20' ) end [2025-01-26 19:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:17:25] Production.INFO: ==14553== Releasing lock... [2025-01-26 19:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:17:25] Production.INFO: 62.25 MB #Memory Used# [2025-01-26 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:18:05 [end_date_ymd] => 2025-01-26 19:18:05 [RateCDR] => 1 ) [2025-01-26 19:18: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-01-26 16:18:05' and `end` < '2025-01-26 19:18: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-01-26 19:18:18] Production.INFO: count ==4574 [2025-01-26 19:18:20] Production.ERROR: pbx CDR StartTime 2025-01-26 16:18:05 - End Time 2025-01-26 19:18:05 [2025-01-26 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336402', 'tblTempUsageDetail_20' ) start [2025-01-26 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336402', 'tblTempUsageDetail_20' ) end [2025-01-26 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336402', 'tblTempVendorCDR_20' ) start [2025-01-26 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336402', 'tblTempVendorCDR_20' ) end [2025-01-26 19:18:20] Production.INFO: ProcessCDR(1,14336402,1,1,2) [2025-01-26 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336402', 'tblTempUsageDetail_20' ) start [2025-01-26 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336402', 'tblTempUsageDetail_20' ) end [2025-01-26 19:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:18:25] Production.INFO: ==14630== Releasing lock... [2025-01-26 19:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:18:25] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:19:05 [end_date_ymd] => 2025-01-26 19:19:05 [RateCDR] => 1 ) [2025-01-26 19:19: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-01-26 16:19:05' and `end` < '2025-01-26 19:19: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-01-26 19:19:18] Production.INFO: count ==4574 [2025-01-26 19:19:19] Production.ERROR: pbx CDR StartTime 2025-01-26 16:19:05 - End Time 2025-01-26 19:19:05 [2025-01-26 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336407', 'tblTempUsageDetail_20' ) start [2025-01-26 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336407', 'tblTempUsageDetail_20' ) end [2025-01-26 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336407', 'tblTempVendorCDR_20' ) start [2025-01-26 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336407', 'tblTempVendorCDR_20' ) end [2025-01-26 19:19:19] Production.INFO: ProcessCDR(1,14336407,1,1,2) [2025-01-26 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336407', 'tblTempUsageDetail_20' ) start [2025-01-26 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336407', 'tblTempUsageDetail_20' ) end [2025-01-26 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:19:23] Production.INFO: ==14707== Releasing lock... [2025-01-26 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:19:23] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:20:06 [end_date_ymd] => 2025-01-26 19:20:06 [RateCDR] => 1 ) [2025-01-26 19:20: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-01-26 16:20:06' and `end` < '2025-01-26 19:20: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-01-26 19:20:19] Production.INFO: count ==4573 [2025-01-26 19:20:20] Production.ERROR: pbx CDR StartTime 2025-01-26 16:20:06 - End Time 2025-01-26 19:20:06 [2025-01-26 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336413', 'tblTempUsageDetail_20' ) start [2025-01-26 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336413', 'tblTempUsageDetail_20' ) end [2025-01-26 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336413', 'tblTempVendorCDR_20' ) start [2025-01-26 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336413', 'tblTempVendorCDR_20' ) end [2025-01-26 19:20:20] Production.INFO: ProcessCDR(1,14336413,1,1,2) [2025-01-26 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336413', 'tblTempUsageDetail_20' ) start [2025-01-26 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336413', 'tblTempUsageDetail_20' ) end [2025-01-26 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:20:24] Production.INFO: ==14791== Releasing lock... [2025-01-26 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:20:24] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:21:05 [end_date_ymd] => 2025-01-26 19:21:05 [RateCDR] => 1 ) [2025-01-26 19:21: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-01-26 16:21:05' and `end` < '2025-01-26 19:21: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-01-26 19:21:20] Production.INFO: count ==4547 [2025-01-26 19:21:21] Production.ERROR: pbx CDR StartTime 2025-01-26 16:21:05 - End Time 2025-01-26 19:21:05 [2025-01-26 19:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336418', 'tblTempUsageDetail_20' ) start [2025-01-26 19:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336418', 'tblTempUsageDetail_20' ) end [2025-01-26 19:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336418', 'tblTempVendorCDR_20' ) start [2025-01-26 19:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336418', 'tblTempVendorCDR_20' ) end [2025-01-26 19:21:22] Production.INFO: ProcessCDR(1,14336418,1,1,2) [2025-01-26 19:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336418', 'tblTempUsageDetail_20' ) start [2025-01-26 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336418', 'tblTempUsageDetail_20' ) end [2025-01-26 19:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:21:25] Production.INFO: ==14866== Releasing lock... [2025-01-26 19:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:21:25] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:22:05 [end_date_ymd] => 2025-01-26 19:22:05 [RateCDR] => 1 ) [2025-01-26 19:22: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-01-26 16:22:05' and `end` < '2025-01-26 19:22: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-01-26 19:22:19] Production.INFO: count ==4551 [2025-01-26 19:22:20] Production.ERROR: pbx CDR StartTime 2025-01-26 16:22:05 - End Time 2025-01-26 19:22:05 [2025-01-26 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336423', 'tblTempUsageDetail_20' ) start [2025-01-26 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336423', 'tblTempUsageDetail_20' ) end [2025-01-26 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336423', 'tblTempVendorCDR_20' ) start [2025-01-26 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336423', 'tblTempVendorCDR_20' ) end [2025-01-26 19:22:21] Production.INFO: ProcessCDR(1,14336423,1,1,2) [2025-01-26 19:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336423', 'tblTempUsageDetail_20' ) start [2025-01-26 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336423', 'tblTempUsageDetail_20' ) end [2025-01-26 19:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:22:25] Production.INFO: ==14949== Releasing lock... [2025-01-26 19:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:22:25] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:23:05 [end_date_ymd] => 2025-01-26 19:23:05 [RateCDR] => 1 ) [2025-01-26 19:23: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-01-26 16:23:05' and `end` < '2025-01-26 19:23: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-01-26 19:23:20] Production.INFO: count ==4552 [2025-01-26 19:23:21] Production.ERROR: pbx CDR StartTime 2025-01-26 16:23:05 - End Time 2025-01-26 19:23:05 [2025-01-26 19:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336428', 'tblTempUsageDetail_20' ) start [2025-01-26 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336428', 'tblTempUsageDetail_20' ) end [2025-01-26 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336428', 'tblTempVendorCDR_20' ) start [2025-01-26 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336428', 'tblTempVendorCDR_20' ) end [2025-01-26 19:23:21] Production.INFO: ProcessCDR(1,14336428,1,1,2) [2025-01-26 19:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336428', 'tblTempUsageDetail_20' ) start [2025-01-26 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336428', 'tblTempUsageDetail_20' ) end [2025-01-26 19:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:23:25] Production.INFO: ==15067== Releasing lock... [2025-01-26 19:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:23:25] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:24:05 [end_date_ymd] => 2025-01-26 19:24:05 [RateCDR] => 1 ) [2025-01-26 19:24: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-01-26 16:24:05' and `end` < '2025-01-26 19:24: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-01-26 19:24:20] Production.INFO: count ==4552 [2025-01-26 19:24:22] Production.ERROR: pbx CDR StartTime 2025-01-26 16:24:05 - End Time 2025-01-26 19:24:05 [2025-01-26 19:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336433', 'tblTempUsageDetail_20' ) start [2025-01-26 19:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336433', 'tblTempUsageDetail_20' ) end [2025-01-26 19:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336433', 'tblTempVendorCDR_20' ) start [2025-01-26 19:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336433', 'tblTempVendorCDR_20' ) end [2025-01-26 19:24:22] Production.INFO: ProcessCDR(1,14336433,1,1,2) [2025-01-26 19:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336433', 'tblTempUsageDetail_20' ) start [2025-01-26 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336433', 'tblTempUsageDetail_20' ) end [2025-01-26 19:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:24:25] Production.INFO: ==15140== Releasing lock... [2025-01-26 19:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:24:25] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:25:06 [end_date_ymd] => 2025-01-26 19:25:06 [RateCDR] => 1 ) [2025-01-26 19:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 16:25:06' and `end` < '2025-01-26 19:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 19:25:19] Production.INFO: count ==4551 [2025-01-26 19:25:20] Production.ERROR: pbx CDR StartTime 2025-01-26 16:25:06 - End Time 2025-01-26 19:25:06 [2025-01-26 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336438', 'tblTempUsageDetail_20' ) start [2025-01-26 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336438', 'tblTempUsageDetail_20' ) end [2025-01-26 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336438', 'tblTempVendorCDR_20' ) start [2025-01-26 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336438', 'tblTempVendorCDR_20' ) end [2025-01-26 19:25:20] Production.INFO: ProcessCDR(1,14336438,1,1,2) [2025-01-26 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336438', 'tblTempUsageDetail_20' ) start [2025-01-26 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336438', 'tblTempUsageDetail_20' ) end [2025-01-26 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:25:24] Production.INFO: ==15224== Releasing lock... [2025-01-26 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:25:24] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:26:05 [end_date_ymd] => 2025-01-26 19:26:05 [RateCDR] => 1 ) [2025-01-26 19:26: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-01-26 16:26:05' and `end` < '2025-01-26 19:26: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-01-26 19:26:18] Production.INFO: count ==4547 [2025-01-26 19:26:19] Production.ERROR: pbx CDR StartTime 2025-01-26 16:26:05 - End Time 2025-01-26 19:26:05 [2025-01-26 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336443', 'tblTempUsageDetail_20' ) start [2025-01-26 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336443', 'tblTempUsageDetail_20' ) end [2025-01-26 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336443', 'tblTempVendorCDR_20' ) start [2025-01-26 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336443', 'tblTempVendorCDR_20' ) end [2025-01-26 19:26:19] Production.INFO: ProcessCDR(1,14336443,1,1,2) [2025-01-26 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336443', 'tblTempUsageDetail_20' ) start [2025-01-26 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336443', 'tblTempUsageDetail_20' ) end [2025-01-26 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:26:23] Production.INFO: ==15305== Releasing lock... [2025-01-26 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:26:23] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:27:05 [end_date_ymd] => 2025-01-26 19:27:05 [RateCDR] => 1 ) [2025-01-26 19:27: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-01-26 16:27:05' and `end` < '2025-01-26 19:27: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-01-26 19:27:18] Production.INFO: count ==4545 [2025-01-26 19:27:20] Production.ERROR: pbx CDR StartTime 2025-01-26 16:27:05 - End Time 2025-01-26 19:27:05 [2025-01-26 19:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336448', 'tblTempUsageDetail_20' ) start [2025-01-26 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336448', 'tblTempUsageDetail_20' ) end [2025-01-26 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336448', 'tblTempVendorCDR_20' ) start [2025-01-26 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336448', 'tblTempVendorCDR_20' ) end [2025-01-26 19:27:20] Production.INFO: ProcessCDR(1,14336448,1,1,2) [2025-01-26 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336448', 'tblTempUsageDetail_20' ) start [2025-01-26 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336448', 'tblTempUsageDetail_20' ) end [2025-01-26 19:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:27:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:27:25] Production.INFO: ==15378== Releasing lock... [2025-01-26 19:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:27:25] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:28:05 [end_date_ymd] => 2025-01-26 19:28:05 [RateCDR] => 1 ) [2025-01-26 19:28: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-01-26 16:28:05' and `end` < '2025-01-26 19:28: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-01-26 19:28:18] Production.INFO: count ==4545 [2025-01-26 19:28:19] Production.ERROR: pbx CDR StartTime 2025-01-26 16:28:05 - End Time 2025-01-26 19:28:05 [2025-01-26 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336453', 'tblTempUsageDetail_20' ) start [2025-01-26 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336453', 'tblTempUsageDetail_20' ) end [2025-01-26 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336453', 'tblTempVendorCDR_20' ) start [2025-01-26 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336453', 'tblTempVendorCDR_20' ) end [2025-01-26 19:28:20] Production.INFO: ProcessCDR(1,14336453,1,1,2) [2025-01-26 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336453', 'tblTempUsageDetail_20' ) start [2025-01-26 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336453', 'tblTempUsageDetail_20' ) end [2025-01-26 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:28:23] Production.INFO: ==15458== Releasing lock... [2025-01-26 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:28:23] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:29:06 [end_date_ymd] => 2025-01-26 19:29:06 [RateCDR] => 1 ) [2025-01-26 19:29: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-01-26 16:29:06' and `end` < '2025-01-26 19:29: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-01-26 19:29:20] Production.INFO: count ==4544 [2025-01-26 19:29:22] Production.ERROR: pbx CDR StartTime 2025-01-26 16:29:06 - End Time 2025-01-26 19:29:06 [2025-01-26 19:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336458', 'tblTempUsageDetail_20' ) start [2025-01-26 19:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336458', 'tblTempUsageDetail_20' ) end [2025-01-26 19:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336458', 'tblTempVendorCDR_20' ) start [2025-01-26 19:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336458', 'tblTempVendorCDR_20' ) end [2025-01-26 19:29:22] Production.INFO: ProcessCDR(1,14336458,1,1,2) [2025-01-26 19:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336458', 'tblTempUsageDetail_20' ) start [2025-01-26 19:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336458', 'tblTempUsageDetail_20' ) end [2025-01-26 19:29:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:29:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:29:25] Production.INFO: ==15533== Releasing lock... [2025-01-26 19:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:29:25] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:30:05 [end_date_ymd] => 2025-01-26 19:30:05 [RateCDR] => 1 ) [2025-01-26 19:30: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-01-26 16:30:05' and `end` < '2025-01-26 19:30: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-01-26 19:30:19] Production.INFO: count ==4544 [2025-01-26 19:30:21] Production.ERROR: pbx CDR StartTime 2025-01-26 16:30:05 - End Time 2025-01-26 19:30:05 [2025-01-26 19:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336464', 'tblTempUsageDetail_20' ) start [2025-01-26 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336464', 'tblTempUsageDetail_20' ) end [2025-01-26 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336464', 'tblTempVendorCDR_20' ) start [2025-01-26 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336464', 'tblTempVendorCDR_20' ) end [2025-01-26 19:30:21] Production.INFO: ProcessCDR(1,14336464,1,1,2) [2025-01-26 19:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336464', 'tblTempUsageDetail_20' ) start [2025-01-26 19:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336464', 'tblTempUsageDetail_20' ) end [2025-01-26 19:30:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:30:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:30:26] Production.INFO: ==15615== Releasing lock... [2025-01-26 19:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:30:26] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:31:05 [end_date_ymd] => 2025-01-26 19:31:05 [RateCDR] => 1 ) [2025-01-26 19:31: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-01-26 16:31:05' and `end` < '2025-01-26 19:31: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-01-26 19:31:20] Production.INFO: count ==4552 [2025-01-26 19:31:21] Production.ERROR: pbx CDR StartTime 2025-01-26 16:31:05 - End Time 2025-01-26 19:31:05 [2025-01-26 19:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336469', 'tblTempUsageDetail_20' ) start [2025-01-26 19:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336469', 'tblTempUsageDetail_20' ) end [2025-01-26 19:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336469', 'tblTempVendorCDR_20' ) start [2025-01-26 19:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336469', 'tblTempVendorCDR_20' ) end [2025-01-26 19:31:22] Production.INFO: ProcessCDR(1,14336469,1,1,2) [2025-01-26 19:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336469', 'tblTempUsageDetail_20' ) start [2025-01-26 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336469', 'tblTempUsageDetail_20' ) end [2025-01-26 19:31:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:31:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:31:25] Production.INFO: ==15693== Releasing lock... [2025-01-26 19:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:31:25] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:32:05 [end_date_ymd] => 2025-01-26 19:32:05 [RateCDR] => 1 ) [2025-01-26 19:32: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-01-26 16:32:05' and `end` < '2025-01-26 19:32: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-01-26 19:32:20] Production.INFO: count ==4551 [2025-01-26 19:32:22] Production.ERROR: pbx CDR StartTime 2025-01-26 16:32:05 - End Time 2025-01-26 19:32:05 [2025-01-26 19:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336474', 'tblTempUsageDetail_20' ) start [2025-01-26 19:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336474', 'tblTempUsageDetail_20' ) end [2025-01-26 19:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336474', 'tblTempVendorCDR_20' ) start [2025-01-26 19:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336474', 'tblTempVendorCDR_20' ) end [2025-01-26 19:32:22] Production.INFO: ProcessCDR(1,14336474,1,1,2) [2025-01-26 19:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336474', 'tblTempUsageDetail_20' ) start [2025-01-26 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336474', 'tblTempUsageDetail_20' ) end [2025-01-26 19:32:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:32:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:32:25] Production.INFO: ==15768== Releasing lock... [2025-01-26 19:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:32:25] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:33:05 [end_date_ymd] => 2025-01-26 19:33:05 [RateCDR] => 1 ) [2025-01-26 19:33: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-01-26 16:33:05' and `end` < '2025-01-26 19:33: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-01-26 19:33:18] Production.INFO: count ==4559 [2025-01-26 19:33:19] Production.ERROR: pbx CDR StartTime 2025-01-26 16:33:05 - End Time 2025-01-26 19:33:05 [2025-01-26 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336479', 'tblTempUsageDetail_20' ) start [2025-01-26 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336479', 'tblTempUsageDetail_20' ) end [2025-01-26 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336479', 'tblTempVendorCDR_20' ) start [2025-01-26 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336479', 'tblTempVendorCDR_20' ) end [2025-01-26 19:33:19] Production.INFO: ProcessCDR(1,14336479,1,1,2) [2025-01-26 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336479', 'tblTempUsageDetail_20' ) start [2025-01-26 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336479', 'tblTempUsageDetail_20' ) end [2025-01-26 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:33:23] Production.INFO: ==15845== Releasing lock... [2025-01-26 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:33:23] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:34:06 [end_date_ymd] => 2025-01-26 19:34:06 [RateCDR] => 1 ) [2025-01-26 19:34: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-01-26 16:34:06' and `end` < '2025-01-26 19:34: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-01-26 19:34:19] Production.INFO: count ==4557 [2025-01-26 19:34:20] Production.ERROR: pbx CDR StartTime 2025-01-26 16:34:06 - End Time 2025-01-26 19:34:06 [2025-01-26 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336484', 'tblTempUsageDetail_20' ) start [2025-01-26 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336484', 'tblTempUsageDetail_20' ) end [2025-01-26 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336484', 'tblTempVendorCDR_20' ) start [2025-01-26 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336484', 'tblTempVendorCDR_20' ) end [2025-01-26 19:34:20] Production.INFO: ProcessCDR(1,14336484,1,1,2) [2025-01-26 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336484', 'tblTempUsageDetail_20' ) start [2025-01-26 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336484', 'tblTempUsageDetail_20' ) end [2025-01-26 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:34:23] Production.INFO: ==15925== Releasing lock... [2025-01-26 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:34:23] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:35:05 [end_date_ymd] => 2025-01-26 19:35:05 [RateCDR] => 1 ) [2025-01-26 19:35: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-01-26 16:35:05' and `end` < '2025-01-26 19:35: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-01-26 19:35:21] Production.INFO: count ==4556 [2025-01-26 19:35:23] Production.ERROR: pbx CDR StartTime 2025-01-26 16:35:05 - End Time 2025-01-26 19:35:05 [2025-01-26 19:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336489', 'tblTempUsageDetail_20' ) start [2025-01-26 19:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336489', 'tblTempUsageDetail_20' ) end [2025-01-26 19:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336489', 'tblTempVendorCDR_20' ) start [2025-01-26 19:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336489', 'tblTempVendorCDR_20' ) end [2025-01-26 19:35:23] Production.INFO: ProcessCDR(1,14336489,1,1,2) [2025-01-26 19:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336489', 'tblTempUsageDetail_20' ) start [2025-01-26 19:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336489', 'tblTempUsageDetail_20' ) end [2025-01-26 19:35:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:35:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:35:26] Production.INFO: ==15999== Releasing lock... [2025-01-26 19:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:35:26] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:36:05 [end_date_ymd] => 2025-01-26 19:36:05 [RateCDR] => 1 ) [2025-01-26 19:36: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-01-26 16:36:05' and `end` < '2025-01-26 19:36: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-01-26 19:36:20] Production.INFO: count ==4561 [2025-01-26 19:36:22] Production.ERROR: pbx CDR StartTime 2025-01-26 16:36:05 - End Time 2025-01-26 19:36:05 [2025-01-26 19:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336494', 'tblTempUsageDetail_20' ) start [2025-01-26 19:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336494', 'tblTempUsageDetail_20' ) end [2025-01-26 19:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336494', 'tblTempVendorCDR_20' ) start [2025-01-26 19:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336494', 'tblTempVendorCDR_20' ) end [2025-01-26 19:36:22] Production.INFO: ProcessCDR(1,14336494,1,1,2) [2025-01-26 19:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336494', 'tblTempUsageDetail_20' ) start [2025-01-26 19:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336494', 'tblTempUsageDetail_20' ) end [2025-01-26 19:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:36:27] Production.INFO: ==16075== Releasing lock... [2025-01-26 19:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:36:27] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:37:04 [end_date_ymd] => 2025-01-26 19:37:04 [RateCDR] => 1 ) [2025-01-26 19:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 16:37:04' and `end` < '2025-01-26 19:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 19:37:19] Production.INFO: count ==4561 [2025-01-26 19:37:21] Production.ERROR: pbx CDR StartTime 2025-01-26 16:37:04 - End Time 2025-01-26 19:37:04 [2025-01-26 19:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336499', 'tblTempUsageDetail_20' ) start [2025-01-26 19:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336499', 'tblTempUsageDetail_20' ) end [2025-01-26 19:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336499', 'tblTempVendorCDR_20' ) start [2025-01-26 19:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336499', 'tblTempVendorCDR_20' ) end [2025-01-26 19:37:21] Production.INFO: ProcessCDR(1,14336499,1,1,2) [2025-01-26 19:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336499', 'tblTempUsageDetail_20' ) start [2025-01-26 19:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336499', 'tblTempUsageDetail_20' ) end [2025-01-26 19:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:37:25] Production.INFO: ==16149== Releasing lock... [2025-01-26 19:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:37:25] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:38:05 [end_date_ymd] => 2025-01-26 19:38:05 [RateCDR] => 1 ) [2025-01-26 19:38: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-01-26 16:38:05' and `end` < '2025-01-26 19:38: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-01-26 19:38:18] Production.INFO: count ==4561 [2025-01-26 19:38:20] Production.ERROR: pbx CDR StartTime 2025-01-26 16:38:05 - End Time 2025-01-26 19:38:05 [2025-01-26 19:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336504', 'tblTempUsageDetail_20' ) start [2025-01-26 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336504', 'tblTempUsageDetail_20' ) end [2025-01-26 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336504', 'tblTempVendorCDR_20' ) start [2025-01-26 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336504', 'tblTempVendorCDR_20' ) end [2025-01-26 19:38:20] Production.INFO: ProcessCDR(1,14336504,1,1,2) [2025-01-26 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336504', 'tblTempUsageDetail_20' ) start [2025-01-26 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336504', 'tblTempUsageDetail_20' ) end [2025-01-26 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:38:23] Production.INFO: ==16267== Releasing lock... [2025-01-26 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:38:23] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:39:04 [end_date_ymd] => 2025-01-26 19:39:04 [RateCDR] => 1 ) [2025-01-26 19:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 16:39:04' and `end` < '2025-01-26 19:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 19:39:18] Production.INFO: count ==4557 [2025-01-26 19:39:19] Production.ERROR: pbx CDR StartTime 2025-01-26 16:39:04 - End Time 2025-01-26 19:39:04 [2025-01-26 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336509', 'tblTempUsageDetail_20' ) start [2025-01-26 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336509', 'tblTempUsageDetail_20' ) end [2025-01-26 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336509', 'tblTempVendorCDR_20' ) start [2025-01-26 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336509', 'tblTempVendorCDR_20' ) end [2025-01-26 19:39:20] Production.INFO: ProcessCDR(1,14336509,1,1,2) [2025-01-26 19:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336509', 'tblTempUsageDetail_20' ) start [2025-01-26 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336509', 'tblTempUsageDetail_20' ) end [2025-01-26 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:39:23] Production.INFO: ==16344== Releasing lock... [2025-01-26 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:39:23] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:40:05 [end_date_ymd] => 2025-01-26 19:40:05 [RateCDR] => 1 ) [2025-01-26 19:40: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-01-26 16:40:05' and `end` < '2025-01-26 19:40: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-01-26 19:40:18] Production.INFO: count ==4558 [2025-01-26 19:40:20] Production.ERROR: pbx CDR StartTime 2025-01-26 16:40:05 - End Time 2025-01-26 19:40:05 [2025-01-26 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336515', 'tblTempUsageDetail_20' ) start [2025-01-26 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336515', 'tblTempUsageDetail_20' ) end [2025-01-26 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336515', 'tblTempVendorCDR_20' ) start [2025-01-26 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336515', 'tblTempVendorCDR_20' ) end [2025-01-26 19:40:20] Production.INFO: ProcessCDR(1,14336515,1,1,2) [2025-01-26 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336515', 'tblTempUsageDetail_20' ) start [2025-01-26 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336515', 'tblTempUsageDetail_20' ) end [2025-01-26 19:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:40:25] Production.INFO: ==16427== Releasing lock... [2025-01-26 19:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:40:25] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:41:05 [end_date_ymd] => 2025-01-26 19:41:05 [RateCDR] => 1 ) [2025-01-26 19:41: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-01-26 16:41:05' and `end` < '2025-01-26 19:41: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-01-26 19:41:18] Production.INFO: count ==4542 [2025-01-26 19:41:19] Production.ERROR: pbx CDR StartTime 2025-01-26 16:41:05 - End Time 2025-01-26 19:41:05 [2025-01-26 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336520', 'tblTempUsageDetail_20' ) start [2025-01-26 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336520', 'tblTempUsageDetail_20' ) end [2025-01-26 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336520', 'tblTempVendorCDR_20' ) start [2025-01-26 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336520', 'tblTempVendorCDR_20' ) end [2025-01-26 19:41:19] Production.INFO: ProcessCDR(1,14336520,1,1,2) [2025-01-26 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336520', 'tblTempUsageDetail_20' ) start [2025-01-26 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336520', 'tblTempUsageDetail_20' ) end [2025-01-26 19:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:41:24] Production.INFO: ==16512== Releasing lock... [2025-01-26 19:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:41:24] Production.INFO: 61.75 MB #Memory Used# [2025-01-26 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:42:05 [end_date_ymd] => 2025-01-26 19:42:05 [RateCDR] => 1 ) [2025-01-26 19:42: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-01-26 16:42:05' and `end` < '2025-01-26 19:42: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-01-26 19:42:19] Production.INFO: count ==4544 [2025-01-26 19:42:21] Production.ERROR: pbx CDR StartTime 2025-01-26 16:42:05 - End Time 2025-01-26 19:42:05 [2025-01-26 19:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336525', 'tblTempUsageDetail_20' ) start [2025-01-26 19:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336525', 'tblTempUsageDetail_20' ) end [2025-01-26 19:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336525', 'tblTempVendorCDR_20' ) start [2025-01-26 19:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336525', 'tblTempVendorCDR_20' ) end [2025-01-26 19:42:21] Production.INFO: ProcessCDR(1,14336525,1,1,2) [2025-01-26 19:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336525', 'tblTempUsageDetail_20' ) start [2025-01-26 19:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336525', 'tblTempUsageDetail_20' ) end [2025-01-26 19:42:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:42:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:42:26] Production.INFO: ==16586== Releasing lock... [2025-01-26 19:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:42:26] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:43:05 [end_date_ymd] => 2025-01-26 19:43:05 [RateCDR] => 1 ) [2025-01-26 19:43: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-01-26 16:43:05' and `end` < '2025-01-26 19:43: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-01-26 19:43:18] Production.INFO: count ==4541 [2025-01-26 19:43:19] Production.ERROR: pbx CDR StartTime 2025-01-26 16:43:05 - End Time 2025-01-26 19:43:05 [2025-01-26 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336530', 'tblTempUsageDetail_20' ) start [2025-01-26 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336530', 'tblTempUsageDetail_20' ) end [2025-01-26 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336530', 'tblTempVendorCDR_20' ) start [2025-01-26 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336530', 'tblTempVendorCDR_20' ) end [2025-01-26 19:43:19] Production.INFO: ProcessCDR(1,14336530,1,1,2) [2025-01-26 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336530', 'tblTempUsageDetail_20' ) start [2025-01-26 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336530', 'tblTempUsageDetail_20' ) end [2025-01-26 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:43:22] Production.INFO: ==16663== Releasing lock... [2025-01-26 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:43:22] Production.INFO: 61.75 MB #Memory Used# [2025-01-26 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:44:05 [end_date_ymd] => 2025-01-26 19:44:05 [RateCDR] => 1 ) [2025-01-26 19:44: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-01-26 16:44:05' and `end` < '2025-01-26 19:44: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-01-26 19:44:19] Production.INFO: count ==4541 [2025-01-26 19:44:21] Production.ERROR: pbx CDR StartTime 2025-01-26 16:44:05 - End Time 2025-01-26 19:44:05 [2025-01-26 19:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336535', 'tblTempUsageDetail_20' ) start [2025-01-26 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336535', 'tblTempUsageDetail_20' ) end [2025-01-26 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336535', 'tblTempVendorCDR_20' ) start [2025-01-26 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336535', 'tblTempVendorCDR_20' ) end [2025-01-26 19:44:21] Production.INFO: ProcessCDR(1,14336535,1,1,2) [2025-01-26 19:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336535', 'tblTempUsageDetail_20' ) start [2025-01-26 19:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336535', 'tblTempUsageDetail_20' ) end [2025-01-26 19:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:44:25] Production.INFO: ==16739== Releasing lock... [2025-01-26 19:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:44:25] Production.INFO: 61.75 MB #Memory Used# [2025-01-26 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:45:05 [end_date_ymd] => 2025-01-26 19:45:05 [RateCDR] => 1 ) [2025-01-26 19:45: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-01-26 16:45:05' and `end` < '2025-01-26 19:45: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-01-26 19:45:18] Production.INFO: count ==4547 [2025-01-26 19:45:20] Production.ERROR: pbx CDR StartTime 2025-01-26 16:45:05 - End Time 2025-01-26 19:45:05 [2025-01-26 19:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336540', 'tblTempUsageDetail_20' ) start [2025-01-26 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336540', 'tblTempUsageDetail_20' ) end [2025-01-26 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336540', 'tblTempVendorCDR_20' ) start [2025-01-26 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336540', 'tblTempVendorCDR_20' ) end [2025-01-26 19:45:20] Production.INFO: ProcessCDR(1,14336540,1,1,2) [2025-01-26 19:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336540', 'tblTempUsageDetail_20' ) start [2025-01-26 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336540', 'tblTempUsageDetail_20' ) end [2025-01-26 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:45:24] Production.INFO: ==16817== Releasing lock... [2025-01-26 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:45:24] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:46:05 [end_date_ymd] => 2025-01-26 19:46:05 [RateCDR] => 1 ) [2025-01-26 19:46: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-01-26 16:46:05' and `end` < '2025-01-26 19:46: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-01-26 19:46:18] Production.INFO: count ==4547 [2025-01-26 19:46:20] Production.ERROR: pbx CDR StartTime 2025-01-26 16:46:05 - End Time 2025-01-26 19:46:05 [2025-01-26 19:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336545', 'tblTempUsageDetail_20' ) start [2025-01-26 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336545', 'tblTempUsageDetail_20' ) end [2025-01-26 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336545', 'tblTempVendorCDR_20' ) start [2025-01-26 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336545', 'tblTempVendorCDR_20' ) end [2025-01-26 19:46:20] Production.INFO: ProcessCDR(1,14336545,1,1,2) [2025-01-26 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336545', 'tblTempUsageDetail_20' ) start [2025-01-26 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336545', 'tblTempUsageDetail_20' ) end [2025-01-26 19:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:46:24] Production.INFO: ==16893== Releasing lock... [2025-01-26 19:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:46:24] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:47:05 [end_date_ymd] => 2025-01-26 19:47:05 [RateCDR] => 1 ) [2025-01-26 19:47: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-01-26 16:47:05' and `end` < '2025-01-26 19:47: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-01-26 19:47:19] Production.INFO: count ==4538 [2025-01-26 19:47:20] Production.ERROR: pbx CDR StartTime 2025-01-26 16:47:05 - End Time 2025-01-26 19:47:05 [2025-01-26 19:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336550', 'tblTempUsageDetail_20' ) start [2025-01-26 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336550', 'tblTempUsageDetail_20' ) end [2025-01-26 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336550', 'tblTempVendorCDR_20' ) start [2025-01-26 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336550', 'tblTempVendorCDR_20' ) end [2025-01-26 19:47:20] Production.INFO: ProcessCDR(1,14336550,1,1,2) [2025-01-26 19:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336550', 'tblTempUsageDetail_20' ) start [2025-01-26 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336550', 'tblTempUsageDetail_20' ) end [2025-01-26 19:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:47:24] Production.INFO: ==16969== Releasing lock... [2025-01-26 19:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:47:24] Production.INFO: 61.75 MB #Memory Used# [2025-01-26 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:48:05 [end_date_ymd] => 2025-01-26 19:48:05 [RateCDR] => 1 ) [2025-01-26 19:48: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-01-26 16:48:05' and `end` < '2025-01-26 19:48: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-01-26 19:48:18] Production.INFO: count ==4542 [2025-01-26 19:48:20] Production.ERROR: pbx CDR StartTime 2025-01-26 16:48:05 - End Time 2025-01-26 19:48:05 [2025-01-26 19:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336555', 'tblTempUsageDetail_20' ) start [2025-01-26 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336555', 'tblTempUsageDetail_20' ) end [2025-01-26 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336555', 'tblTempVendorCDR_20' ) start [2025-01-26 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336555', 'tblTempVendorCDR_20' ) end [2025-01-26 19:48:20] Production.INFO: ProcessCDR(1,14336555,1,1,2) [2025-01-26 19:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336555', 'tblTempUsageDetail_20' ) start [2025-01-26 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336555', 'tblTempUsageDetail_20' ) end [2025-01-26 19:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:48:24] Production.INFO: ==17045== Releasing lock... [2025-01-26 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:48:24] Production.INFO: 62 MB #Memory Used# [2025-01-26 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:49:05 [end_date_ymd] => 2025-01-26 19:49:05 [RateCDR] => 1 ) [2025-01-26 19:49: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-01-26 16:49:05' and `end` < '2025-01-26 19:49: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-01-26 19:49:20] Production.INFO: count ==4541 [2025-01-26 19:49:21] Production.ERROR: pbx CDR StartTime 2025-01-26 16:49:05 - End Time 2025-01-26 19:49:05 [2025-01-26 19:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336560', 'tblTempUsageDetail_20' ) start [2025-01-26 19:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336560', 'tblTempUsageDetail_20' ) end [2025-01-26 19:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336560', 'tblTempVendorCDR_20' ) start [2025-01-26 19:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336560', 'tblTempVendorCDR_20' ) end [2025-01-26 19:49:21] Production.INFO: ProcessCDR(1,14336560,1,1,2) [2025-01-26 19:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336560', 'tblTempUsageDetail_20' ) start [2025-01-26 19:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336560', 'tblTempUsageDetail_20' ) end [2025-01-26 19:49:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:49:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:49:26] Production.INFO: ==17119== Releasing lock... [2025-01-26 19:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:49:26] Production.INFO: 61.75 MB #Memory Used# [2025-01-26 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:50:06 [end_date_ymd] => 2025-01-26 19:50:06 [RateCDR] => 1 ) [2025-01-26 19:50: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-01-26 16:50:06' and `end` < '2025-01-26 19:50: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-01-26 19:50:19] Production.INFO: count ==4541 [2025-01-26 19:50:20] Production.ERROR: pbx CDR StartTime 2025-01-26 16:50:06 - End Time 2025-01-26 19:50:06 [2025-01-26 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336566', 'tblTempUsageDetail_20' ) start [2025-01-26 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336566', 'tblTempUsageDetail_20' ) end [2025-01-26 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336566', 'tblTempVendorCDR_20' ) start [2025-01-26 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336566', 'tblTempVendorCDR_20' ) end [2025-01-26 19:50:20] Production.INFO: ProcessCDR(1,14336566,1,1,2) [2025-01-26 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336566', 'tblTempUsageDetail_20' ) start [2025-01-26 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336566', 'tblTempUsageDetail_20' ) end [2025-01-26 19:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:50:25] Production.INFO: ==17193== Releasing lock... [2025-01-26 19:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:50:25] Production.INFO: 61.75 MB #Memory Used# [2025-01-26 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:51:05 [end_date_ymd] => 2025-01-26 19:51:05 [RateCDR] => 1 ) [2025-01-26 19:51: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-01-26 16:51:05' and `end` < '2025-01-26 19:51: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-01-26 19:51:18] Production.INFO: count ==4523 [2025-01-26 19:51:19] Production.ERROR: pbx CDR StartTime 2025-01-26 16:51:05 - End Time 2025-01-26 19:51:05 [2025-01-26 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336571', 'tblTempUsageDetail_20' ) start [2025-01-26 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336571', 'tblTempUsageDetail_20' ) end [2025-01-26 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336571', 'tblTempVendorCDR_20' ) start [2025-01-26 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336571', 'tblTempVendorCDR_20' ) end [2025-01-26 19:51:20] Production.INFO: ProcessCDR(1,14336571,1,1,2) [2025-01-26 19:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336571', 'tblTempUsageDetail_20' ) start [2025-01-26 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336571', 'tblTempUsageDetail_20' ) end [2025-01-26 19:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:51:24] Production.INFO: ==17273== Releasing lock... [2025-01-26 19:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:51:24] Production.INFO: 61.75 MB #Memory Used# [2025-01-26 19:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:52:04 [end_date_ymd] => 2025-01-26 19:52:04 [RateCDR] => 1 ) [2025-01-26 19:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 16:52:04' and `end` < '2025-01-26 19:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 19:52:17] Production.INFO: count ==4526 [2025-01-26 19:52:19] Production.ERROR: pbx CDR StartTime 2025-01-26 16:52:04 - End Time 2025-01-26 19:52:04 [2025-01-26 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336575', 'tblTempUsageDetail_20' ) start [2025-01-26 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336575', 'tblTempUsageDetail_20' ) end [2025-01-26 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336575', 'tblTempVendorCDR_20' ) start [2025-01-26 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336575', 'tblTempVendorCDR_20' ) end [2025-01-26 19:52:19] Production.INFO: ProcessCDR(1,14336575,1,1,2) [2025-01-26 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336575', 'tblTempUsageDetail_20' ) start [2025-01-26 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336575', 'tblTempUsageDetail_20' ) end [2025-01-26 19:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:52:23] Production.INFO: ==17346== Releasing lock... [2025-01-26 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:52:23] Production.INFO: 61.75 MB #Memory Used# [2025-01-26 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:53:05 [end_date_ymd] => 2025-01-26 19:53:05 [RateCDR] => 1 ) [2025-01-26 19:53: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-01-26 16:53:05' and `end` < '2025-01-26 19:53: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-01-26 19:53:19] Production.INFO: count ==4533 [2025-01-26 19:53:20] Production.ERROR: pbx CDR StartTime 2025-01-26 16:53:05 - End Time 2025-01-26 19:53:05 [2025-01-26 19:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336581', 'tblTempUsageDetail_20' ) start [2025-01-26 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336581', 'tblTempUsageDetail_20' ) end [2025-01-26 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336581', 'tblTempVendorCDR_20' ) start [2025-01-26 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336581', 'tblTempVendorCDR_20' ) end [2025-01-26 19:53:20] Production.INFO: ProcessCDR(1,14336581,1,1,2) [2025-01-26 19:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336581', 'tblTempUsageDetail_20' ) start [2025-01-26 19:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336581', 'tblTempUsageDetail_20' ) end [2025-01-26 19:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:53:25] Production.INFO: ==17425== Releasing lock... [2025-01-26 19:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:53:25] Production.INFO: 61.75 MB #Memory Used# [2025-01-26 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:54:05 [end_date_ymd] => 2025-01-26 19:54:05 [RateCDR] => 1 ) [2025-01-26 19:54: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-01-26 16:54:05' and `end` < '2025-01-26 19:54: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-01-26 19:54:20] Production.INFO: count ==4531 [2025-01-26 19:54:21] Production.ERROR: pbx CDR StartTime 2025-01-26 16:54:05 - End Time 2025-01-26 19:54:05 [2025-01-26 19:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336586', 'tblTempUsageDetail_20' ) start [2025-01-26 19:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336586', 'tblTempUsageDetail_20' ) end [2025-01-26 19:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336586', 'tblTempVendorCDR_20' ) start [2025-01-26 19:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336586', 'tblTempVendorCDR_20' ) end [2025-01-26 19:54:21] Production.INFO: ProcessCDR(1,14336586,1,1,2) [2025-01-26 19:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336586', 'tblTempUsageDetail_20' ) start [2025-01-26 19:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336586', 'tblTempUsageDetail_20' ) end [2025-01-26 19:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:54:25] Production.INFO: ==17541== Releasing lock... [2025-01-26 19:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:54:25] Production.INFO: 61.75 MB #Memory Used# [2025-01-26 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:55:05 [end_date_ymd] => 2025-01-26 19:55:05 [RateCDR] => 1 ) [2025-01-26 19:55: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-01-26 16:55:05' and `end` < '2025-01-26 19:55: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-01-26 19:55:21] Production.INFO: count ==4530 [2025-01-26 19:55:22] Production.ERROR: pbx CDR StartTime 2025-01-26 16:55:05 - End Time 2025-01-26 19:55:05 [2025-01-26 19:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336591', 'tblTempUsageDetail_20' ) start [2025-01-26 19:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336591', 'tblTempUsageDetail_20' ) end [2025-01-26 19:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336591', 'tblTempVendorCDR_20' ) start [2025-01-26 19:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336591', 'tblTempVendorCDR_20' ) end [2025-01-26 19:55:22] Production.INFO: ProcessCDR(1,14336591,1,1,2) [2025-01-26 19:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336591', 'tblTempUsageDetail_20' ) start [2025-01-26 19:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336591', 'tblTempUsageDetail_20' ) end [2025-01-26 19:55:27] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:55:27] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:55:27] Production.INFO: ==17618== Releasing lock... [2025-01-26 19:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:55:27] Production.INFO: 61.75 MB #Memory Used# [2025-01-26 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:56:05 [end_date_ymd] => 2025-01-26 19:56:05 [RateCDR] => 1 ) [2025-01-26 19:56: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-01-26 16:56:05' and `end` < '2025-01-26 19:56: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-01-26 19:56:19] Production.INFO: count ==4529 [2025-01-26 19:56:21] Production.ERROR: pbx CDR StartTime 2025-01-26 16:56:05 - End Time 2025-01-26 19:56:05 [2025-01-26 19:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336596', 'tblTempUsageDetail_20' ) start [2025-01-26 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336596', 'tblTempUsageDetail_20' ) end [2025-01-26 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336596', 'tblTempVendorCDR_20' ) start [2025-01-26 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336596', 'tblTempVendorCDR_20' ) end [2025-01-26 19:56:21] Production.INFO: ProcessCDR(1,14336596,1,1,2) [2025-01-26 19:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336596', 'tblTempUsageDetail_20' ) start [2025-01-26 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336596', 'tblTempUsageDetail_20' ) end [2025-01-26 19:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:56:24] Production.INFO: ==17692== Releasing lock... [2025-01-26 19:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:56:24] Production.INFO: 61.75 MB #Memory Used# [2025-01-26 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:57:05 [end_date_ymd] => 2025-01-26 19:57:05 [RateCDR] => 1 ) [2025-01-26 19:57: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-01-26 16:57:05' and `end` < '2025-01-26 19:57: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-01-26 19:57:17] Production.INFO: count ==4528 [2025-01-26 19:57:19] Production.ERROR: pbx CDR StartTime 2025-01-26 16:57:05 - End Time 2025-01-26 19:57:05 [2025-01-26 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336601', 'tblTempUsageDetail_20' ) start [2025-01-26 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336601', 'tblTempUsageDetail_20' ) end [2025-01-26 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336601', 'tblTempVendorCDR_20' ) start [2025-01-26 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336601', 'tblTempVendorCDR_20' ) end [2025-01-26 19:57:19] Production.INFO: ProcessCDR(1,14336601,1,1,2) [2025-01-26 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336601', 'tblTempUsageDetail_20' ) start [2025-01-26 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336601', 'tblTempUsageDetail_20' ) end [2025-01-26 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:57:22] Production.INFO: ==17774== Releasing lock... [2025-01-26 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:57:22] Production.INFO: 61.75 MB #Memory Used# [2025-01-26 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:58:05 [end_date_ymd] => 2025-01-26 19:58:05 [RateCDR] => 1 ) [2025-01-26 19:58: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-01-26 16:58:05' and `end` < '2025-01-26 19:58: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-01-26 19:58:18] Production.INFO: count ==4534 [2025-01-26 19:58:20] Production.ERROR: pbx CDR StartTime 2025-01-26 16:58:05 - End Time 2025-01-26 19:58:05 [2025-01-26 19:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336606', 'tblTempUsageDetail_20' ) start [2025-01-26 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336606', 'tblTempUsageDetail_20' ) end [2025-01-26 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336606', 'tblTempVendorCDR_20' ) start [2025-01-26 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336606', 'tblTempVendorCDR_20' ) end [2025-01-26 19:58:20] Production.INFO: ProcessCDR(1,14336606,1,1,2) [2025-01-26 19:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336606', 'tblTempUsageDetail_20' ) start [2025-01-26 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336606', 'tblTempUsageDetail_20' ) end [2025-01-26 19:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:58:24] Production.INFO: ==17844== Releasing lock... [2025-01-26 19:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:58:24] Production.INFO: 61.75 MB #Memory Used# [2025-01-26 19:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 16:59:04 [end_date_ymd] => 2025-01-26 19:59:04 [RateCDR] => 1 ) [2025-01-26 19:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 16:59:04' and `end` < '2025-01-26 19:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 19:59:17] Production.INFO: count ==4531 [2025-01-26 19:59:19] Production.ERROR: pbx CDR StartTime 2025-01-26 16:59:04 - End Time 2025-01-26 19:59:04 [2025-01-26 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336610', 'tblTempUsageDetail_20' ) start [2025-01-26 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336610', 'tblTempUsageDetail_20' ) end [2025-01-26 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336610', 'tblTempVendorCDR_20' ) start [2025-01-26 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336610', 'tblTempVendorCDR_20' ) end [2025-01-26 19:59:19] Production.INFO: ProcessCDR(1,14336610,1,1,2) [2025-01-26 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336610', 'tblTempUsageDetail_20' ) start [2025-01-26 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336610', 'tblTempUsageDetail_20' ) end [2025-01-26 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 19:59:22] Production.INFO: ==17919== Releasing lock... [2025-01-26 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 19:59:22] Production.INFO: 61.75 MB #Memory Used# [2025-01-26 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:00:06 [end_date_ymd] => 2025-01-26 20:00:06 [RateCDR] => 1 ) [2025-01-26 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-01-26 17:00:06' and `end` < '2025-01-26 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-01-26 20:00:21] Production.INFO: count ==4532 [2025-01-26 20:00:23] Production.ERROR: pbx CDR StartTime 2025-01-26 17:00:06 - End Time 2025-01-26 20:00:06 [2025-01-26 20:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336617', 'tblTempUsageDetail_20' ) start [2025-01-26 20:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336617', 'tblTempUsageDetail_20' ) end [2025-01-26 20:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336617', 'tblTempVendorCDR_20' ) start [2025-01-26 20:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336617', 'tblTempVendorCDR_20' ) end [2025-01-26 20:00:23] Production.INFO: ProcessCDR(1,14336617,1,1,2) [2025-01-26 20:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336617', 'tblTempUsageDetail_20' ) start [2025-01-26 20:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336617', 'tblTempUsageDetail_20' ) end [2025-01-26 20:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:00:26] Production.INFO: ==17997== Releasing lock... [2025-01-26 20:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:00:26] Production.INFO: 61.75 MB #Memory Used# [2025-01-26 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:01:05 [end_date_ymd] => 2025-01-26 20:01:05 [RateCDR] => 1 ) [2025-01-26 20:01: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-01-26 17:01:05' and `end` < '2025-01-26 20:01: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-01-26 20:01:18] Production.INFO: count ==4477 [2025-01-26 20:01:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:01:05 - End Time 2025-01-26 20:01:05 [2025-01-26 20:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336622', 'tblTempUsageDetail_20' ) start [2025-01-26 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336622', 'tblTempUsageDetail_20' ) end [2025-01-26 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336622', 'tblTempVendorCDR_20' ) start [2025-01-26 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336622', 'tblTempVendorCDR_20' ) end [2025-01-26 20:01:20] Production.INFO: ProcessCDR(1,14336622,1,1,2) [2025-01-26 20:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336622', 'tblTempUsageDetail_20' ) start [2025-01-26 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336622', 'tblTempUsageDetail_20' ) end [2025-01-26 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:01:23] Production.INFO: ==18127== Releasing lock... [2025-01-26 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:01:23] Production.INFO: 61.5 MB #Memory Used# [2025-01-26 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:02:05 [end_date_ymd] => 2025-01-26 20:02:05 [RateCDR] => 1 ) [2025-01-26 20:02: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-01-26 17:02:05' and `end` < '2025-01-26 20:02: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-01-26 20:02:19] Production.INFO: count ==4466 [2025-01-26 20:02:21] Production.ERROR: pbx CDR StartTime 2025-01-26 17:02:05 - End Time 2025-01-26 20:02:05 [2025-01-26 20:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336627', 'tblTempUsageDetail_20' ) start [2025-01-26 20:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336627', 'tblTempUsageDetail_20' ) end [2025-01-26 20:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336627', 'tblTempVendorCDR_20' ) start [2025-01-26 20:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336627', 'tblTempVendorCDR_20' ) end [2025-01-26 20:02:21] Production.INFO: ProcessCDR(1,14336627,1,1,2) [2025-01-26 20:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336627', 'tblTempUsageDetail_20' ) start [2025-01-26 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336627', 'tblTempUsageDetail_20' ) end [2025-01-26 20:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:02:24] Production.INFO: ==18205== Releasing lock... [2025-01-26 20:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:02:24] Production.INFO: 61.25 MB #Memory Used# [2025-01-26 20:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:03:06 [end_date_ymd] => 2025-01-26 20:03:06 [RateCDR] => 1 ) [2025-01-26 20:03: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-01-26 17:03:06' and `end` < '2025-01-26 20:03: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-01-26 20:03:19] Production.INFO: count ==4455 [2025-01-26 20:03:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:03:06 - End Time 2025-01-26 20:03:06 [2025-01-26 20:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336632', 'tblTempUsageDetail_20' ) start [2025-01-26 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336632', 'tblTempUsageDetail_20' ) end [2025-01-26 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336632', 'tblTempVendorCDR_20' ) start [2025-01-26 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336632', 'tblTempVendorCDR_20' ) end [2025-01-26 20:03:20] Production.INFO: ProcessCDR(1,14336632,1,1,2) [2025-01-26 20:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336632', 'tblTempUsageDetail_20' ) start [2025-01-26 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336632', 'tblTempUsageDetail_20' ) end [2025-01-26 20:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:03:24] Production.INFO: ==18279== Releasing lock... [2025-01-26 20:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:03:24] Production.INFO: 61.25 MB #Memory Used# [2025-01-26 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:04:05 [end_date_ymd] => 2025-01-26 20:04:05 [RateCDR] => 1 ) [2025-01-26 20:04: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-01-26 17:04:05' and `end` < '2025-01-26 20:04: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-01-26 20:04:20] Production.INFO: count ==4455 [2025-01-26 20:04:22] Production.ERROR: pbx CDR StartTime 2025-01-26 17:04:05 - End Time 2025-01-26 20:04:05 [2025-01-26 20:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336637', 'tblTempUsageDetail_20' ) start [2025-01-26 20:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336637', 'tblTempUsageDetail_20' ) end [2025-01-26 20:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336637', 'tblTempVendorCDR_20' ) start [2025-01-26 20:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336637', 'tblTempVendorCDR_20' ) end [2025-01-26 20:04:22] Production.INFO: ProcessCDR(1,14336637,1,1,2) [2025-01-26 20:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336637', 'tblTempUsageDetail_20' ) start [2025-01-26 20:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336637', 'tblTempUsageDetail_20' ) end [2025-01-26 20:04:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:04:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:04:26] Production.INFO: ==18354== Releasing lock... [2025-01-26 20:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:04:26] Production.INFO: 61.25 MB #Memory Used# [2025-01-26 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:05:05 [end_date_ymd] => 2025-01-26 20:05:05 [RateCDR] => 1 ) [2025-01-26 20:05: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-01-26 17:05:05' and `end` < '2025-01-26 20:05: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-01-26 20:05:18] Production.INFO: count ==4452 [2025-01-26 20:05:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:05:05 - End Time 2025-01-26 20:05:05 [2025-01-26 20:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336642', 'tblTempUsageDetail_20' ) start [2025-01-26 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336642', 'tblTempUsageDetail_20' ) end [2025-01-26 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336642', 'tblTempVendorCDR_20' ) start [2025-01-26 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336642', 'tblTempVendorCDR_20' ) end [2025-01-26 20:05:20] Production.INFO: ProcessCDR(1,14336642,1,1,2) [2025-01-26 20:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336642', 'tblTempUsageDetail_20' ) start [2025-01-26 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336642', 'tblTempUsageDetail_20' ) end [2025-01-26 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:05:23] Production.INFO: ==18427== Releasing lock... [2025-01-26 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:05:23] Production.INFO: 61.25 MB #Memory Used# [2025-01-26 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:06:05 [end_date_ymd] => 2025-01-26 20:06:05 [RateCDR] => 1 ) [2025-01-26 20:06: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-01-26 17:06:05' and `end` < '2025-01-26 20:06: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-01-26 20:06:19] Production.INFO: count ==4450 [2025-01-26 20:06:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:06:05 - End Time 2025-01-26 20:06:05 [2025-01-26 20:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336647', 'tblTempUsageDetail_20' ) start [2025-01-26 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336647', 'tblTempUsageDetail_20' ) end [2025-01-26 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336647', 'tblTempVendorCDR_20' ) start [2025-01-26 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336647', 'tblTempVendorCDR_20' ) end [2025-01-26 20:06:20] Production.INFO: ProcessCDR(1,14336647,1,1,2) [2025-01-26 20:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336647', 'tblTempUsageDetail_20' ) start [2025-01-26 20:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336647', 'tblTempUsageDetail_20' ) end [2025-01-26 20:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:06:24] Production.INFO: ==18502== Releasing lock... [2025-01-26 20:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:06:24] Production.INFO: 61.25 MB #Memory Used# [2025-01-26 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:07:05 [end_date_ymd] => 2025-01-26 20:07:05 [RateCDR] => 1 ) [2025-01-26 20:07: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-01-26 17:07:05' and `end` < '2025-01-26 20:07: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-01-26 20:07:18] Production.INFO: count ==4451 [2025-01-26 20:07:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:07:05 - End Time 2025-01-26 20:07:05 [2025-01-26 20:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336652', 'tblTempUsageDetail_20' ) start [2025-01-26 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336652', 'tblTempUsageDetail_20' ) end [2025-01-26 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336652', 'tblTempVendorCDR_20' ) start [2025-01-26 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336652', 'tblTempVendorCDR_20' ) end [2025-01-26 20:07:20] Production.INFO: ProcessCDR(1,14336652,1,1,2) [2025-01-26 20:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336652', 'tblTempUsageDetail_20' ) start [2025-01-26 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336652', 'tblTempUsageDetail_20' ) end [2025-01-26 20:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:07:24] Production.INFO: ==18573== Releasing lock... [2025-01-26 20:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:07:24] Production.INFO: 61.25 MB #Memory Used# [2025-01-26 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:08:05 [end_date_ymd] => 2025-01-26 20:08:05 [RateCDR] => 1 ) [2025-01-26 20:08: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-01-26 17:08:05' and `end` < '2025-01-26 20:08: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-01-26 20:08:18] Production.INFO: count ==4454 [2025-01-26 20:08:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:08:05 - End Time 2025-01-26 20:08:05 [2025-01-26 20:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336657', 'tblTempUsageDetail_20' ) start [2025-01-26 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336657', 'tblTempUsageDetail_20' ) end [2025-01-26 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336657', 'tblTempVendorCDR_20' ) start [2025-01-26 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336657', 'tblTempVendorCDR_20' ) end [2025-01-26 20:08:20] Production.INFO: ProcessCDR(1,14336657,1,1,2) [2025-01-26 20:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336657', 'tblTempUsageDetail_20' ) start [2025-01-26 20:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336657', 'tblTempUsageDetail_20' ) end [2025-01-26 20:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:08:25] Production.INFO: ==18654== Releasing lock... [2025-01-26 20:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:08:25] Production.INFO: 61.25 MB #Memory Used# [2025-01-26 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:09:05 [end_date_ymd] => 2025-01-26 20:09:05 [RateCDR] => 1 ) [2025-01-26 20:09: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-01-26 17:09:05' and `end` < '2025-01-26 20:09: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-01-26 20:09:19] Production.INFO: count ==4455 [2025-01-26 20:09:21] Production.ERROR: pbx CDR StartTime 2025-01-26 17:09:05 - End Time 2025-01-26 20:09:05 [2025-01-26 20:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336662', 'tblTempUsageDetail_20' ) start [2025-01-26 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336662', 'tblTempUsageDetail_20' ) end [2025-01-26 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336662', 'tblTempVendorCDR_20' ) start [2025-01-26 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336662', 'tblTempVendorCDR_20' ) end [2025-01-26 20:09:21] Production.INFO: ProcessCDR(1,14336662,1,1,2) [2025-01-26 20:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336662', 'tblTempUsageDetail_20' ) start [2025-01-26 20:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336662', 'tblTempUsageDetail_20' ) end [2025-01-26 20:09:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:09:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:09:26] Production.INFO: ==18767== Releasing lock... [2025-01-26 20:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:09:26] Production.INFO: 61.25 MB #Memory Used# [2025-01-26 20:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:10:07 [end_date_ymd] => 2025-01-26 20:10:07 [RateCDR] => 1 ) [2025-01-26 20:10: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-01-26 17:10:07' and `end` < '2025-01-26 20:10: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-01-26 20:10:20] Production.INFO: count ==4452 [2025-01-26 20:10:22] Production.ERROR: pbx CDR StartTime 2025-01-26 17:10:07 - End Time 2025-01-26 20:10:07 [2025-01-26 20:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336668', 'tblTempUsageDetail_20' ) start [2025-01-26 20:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336668', 'tblTempUsageDetail_20' ) end [2025-01-26 20:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336668', 'tblTempVendorCDR_20' ) start [2025-01-26 20:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336668', 'tblTempVendorCDR_20' ) end [2025-01-26 20:10:22] Production.INFO: ProcessCDR(1,14336668,1,1,2) [2025-01-26 20:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336668', 'tblTempUsageDetail_20' ) start [2025-01-26 20:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336668', 'tblTempUsageDetail_20' ) end [2025-01-26 20:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:10:25] Production.INFO: ==18842== Releasing lock... [2025-01-26 20:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:10:25] Production.INFO: 61.25 MB #Memory Used# [2025-01-26 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:11:05 [end_date_ymd] => 2025-01-26 20:11:05 [RateCDR] => 1 ) [2025-01-26 20:11: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-01-26 17:11:05' and `end` < '2025-01-26 20:11: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-01-26 20:11:18] Production.INFO: count ==4378 [2025-01-26 20:11:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:11:05 - End Time 2025-01-26 20:11:05 [2025-01-26 20:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336673', 'tblTempUsageDetail_20' ) start [2025-01-26 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336673', 'tblTempUsageDetail_20' ) end [2025-01-26 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336673', 'tblTempVendorCDR_20' ) start [2025-01-26 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336673', 'tblTempVendorCDR_20' ) end [2025-01-26 20:11:20] Production.INFO: ProcessCDR(1,14336673,1,1,2) [2025-01-26 20:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336673', 'tblTempUsageDetail_20' ) start [2025-01-26 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336673', 'tblTempUsageDetail_20' ) end [2025-01-26 20:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:11:24] Production.INFO: ==18918== Releasing lock... [2025-01-26 20:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:11:24] Production.INFO: 60.75 MB #Memory Used# [2025-01-26 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:12:06 [end_date_ymd] => 2025-01-26 20:12:06 [RateCDR] => 1 ) [2025-01-26 20:12: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-01-26 17:12:06' and `end` < '2025-01-26 20:12: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-01-26 20:12:19] Production.INFO: count ==4377 [2025-01-26 20:12:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:12:06 - End Time 2025-01-26 20:12:06 [2025-01-26 20:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336678', 'tblTempUsageDetail_20' ) start [2025-01-26 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336678', 'tblTempUsageDetail_20' ) end [2025-01-26 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336678', 'tblTempVendorCDR_20' ) start [2025-01-26 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336678', 'tblTempVendorCDR_20' ) end [2025-01-26 20:12:20] Production.INFO: ProcessCDR(1,14336678,1,1,2) [2025-01-26 20:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336678', 'tblTempUsageDetail_20' ) start [2025-01-26 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336678', 'tblTempUsageDetail_20' ) end [2025-01-26 20:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:12:24] Production.INFO: ==18991== Releasing lock... [2025-01-26 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:12:24] Production.INFO: 60.75 MB #Memory Used# [2025-01-26 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:13:05 [end_date_ymd] => 2025-01-26 20:13:05 [RateCDR] => 1 ) [2025-01-26 20:13: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-01-26 17:13:05' and `end` < '2025-01-26 20:13: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-01-26 20:13:19] Production.INFO: count ==4374 [2025-01-26 20:13:21] Production.ERROR: pbx CDR StartTime 2025-01-26 17:13:05 - End Time 2025-01-26 20:13:05 [2025-01-26 20:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336683', 'tblTempUsageDetail_20' ) start [2025-01-26 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336683', 'tblTempUsageDetail_20' ) end [2025-01-26 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336683', 'tblTempVendorCDR_20' ) start [2025-01-26 20:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336683', 'tblTempVendorCDR_20' ) end [2025-01-26 20:13:21] Production.INFO: ProcessCDR(1,14336683,1,1,2) [2025-01-26 20:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336683', 'tblTempUsageDetail_20' ) start [2025-01-26 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336683', 'tblTempUsageDetail_20' ) end [2025-01-26 20:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:13:24] Production.INFO: ==19065== Releasing lock... [2025-01-26 20:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:13:24] Production.INFO: 60.5 MB #Memory Used# [2025-01-26 20:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:14:06 [end_date_ymd] => 2025-01-26 20:14:06 [RateCDR] => 1 ) [2025-01-26 20:14: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-01-26 17:14:06' and `end` < '2025-01-26 20:14: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-01-26 20:14:19] Production.INFO: count ==4369 [2025-01-26 20:14:21] Production.ERROR: pbx CDR StartTime 2025-01-26 17:14:06 - End Time 2025-01-26 20:14:06 [2025-01-26 20:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336688', 'tblTempUsageDetail_20' ) start [2025-01-26 20:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336688', 'tblTempUsageDetail_20' ) end [2025-01-26 20:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336688', 'tblTempVendorCDR_20' ) start [2025-01-26 20:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336688', 'tblTempVendorCDR_20' ) end [2025-01-26 20:14:21] Production.INFO: ProcessCDR(1,14336688,1,1,2) [2025-01-26 20:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336688', 'tblTempUsageDetail_20' ) start [2025-01-26 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336688', 'tblTempUsageDetail_20' ) end [2025-01-26 20:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:14:24] Production.INFO: ==19140== Releasing lock... [2025-01-26 20:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:14:24] Production.INFO: 60.5 MB #Memory Used# [2025-01-26 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:15:05 [end_date_ymd] => 2025-01-26 20:15:05 [RateCDR] => 1 ) [2025-01-26 20:15: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-01-26 17:15:05' and `end` < '2025-01-26 20:15: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-01-26 20:15:18] Production.INFO: count ==4373 [2025-01-26 20:15:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:15:05 - End Time 2025-01-26 20:15:05 [2025-01-26 20:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336693', 'tblTempUsageDetail_20' ) start [2025-01-26 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336693', 'tblTempUsageDetail_20' ) end [2025-01-26 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336693', 'tblTempVendorCDR_20' ) start [2025-01-26 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336693', 'tblTempVendorCDR_20' ) end [2025-01-26 20:15:20] Production.INFO: ProcessCDR(1,14336693,1,1,2) [2025-01-26 20:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336693', 'tblTempUsageDetail_20' ) start [2025-01-26 20:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336693', 'tblTempUsageDetail_20' ) end [2025-01-26 20:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:15:25] Production.INFO: ==19209== Releasing lock... [2025-01-26 20:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:15:25] Production.INFO: 60.5 MB #Memory Used# [2025-01-26 20:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:16:06 [end_date_ymd] => 2025-01-26 20:16:06 [RateCDR] => 1 ) [2025-01-26 20:16: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-01-26 17:16:06' and `end` < '2025-01-26 20:16: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-01-26 20:16:19] Production.INFO: count ==4367 [2025-01-26 20:16:21] Production.ERROR: pbx CDR StartTime 2025-01-26 17:16:06 - End Time 2025-01-26 20:16:06 [2025-01-26 20:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336698', 'tblTempUsageDetail_20' ) start [2025-01-26 20:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336698', 'tblTempUsageDetail_20' ) end [2025-01-26 20:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336698', 'tblTempVendorCDR_20' ) start [2025-01-26 20:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336698', 'tblTempVendorCDR_20' ) end [2025-01-26 20:16:21] Production.INFO: ProcessCDR(1,14336698,1,1,2) [2025-01-26 20:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336698', 'tblTempUsageDetail_20' ) start [2025-01-26 20:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336698', 'tblTempUsageDetail_20' ) end [2025-01-26 20:16:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:16:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:16:26] Production.INFO: ==19286== Releasing lock... [2025-01-26 20:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:16:26] Production.INFO: 60.5 MB #Memory Used# [2025-01-26 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:17:05 [end_date_ymd] => 2025-01-26 20:17:05 [RateCDR] => 1 ) [2025-01-26 20:17: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-01-26 17:17:05' and `end` < '2025-01-26 20:17: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-01-26 20:17:18] Production.INFO: count ==4357 [2025-01-26 20:17:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:17:05 - End Time 2025-01-26 20:17:05 [2025-01-26 20:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336703', 'tblTempUsageDetail_20' ) start [2025-01-26 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336703', 'tblTempUsageDetail_20' ) end [2025-01-26 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336703', 'tblTempVendorCDR_20' ) start [2025-01-26 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336703', 'tblTempVendorCDR_20' ) end [2025-01-26 20:17:20] Production.INFO: ProcessCDR(1,14336703,1,1,2) [2025-01-26 20:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336703', 'tblTempUsageDetail_20' ) start [2025-01-26 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336703', 'tblTempUsageDetail_20' ) end [2025-01-26 20:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:17:24] Production.INFO: ==19357== Releasing lock... [2025-01-26 20:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:17:24] Production.INFO: 60.5 MB #Memory Used# [2025-01-26 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:18:05 [end_date_ymd] => 2025-01-26 20:18:05 [RateCDR] => 1 ) [2025-01-26 20:18: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-01-26 17:18:05' and `end` < '2025-01-26 20:18: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-01-26 20:18:19] Production.INFO: count ==4357 [2025-01-26 20:18:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:18:05 - End Time 2025-01-26 20:18:05 [2025-01-26 20:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336708', 'tblTempUsageDetail_20' ) start [2025-01-26 20:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336708', 'tblTempUsageDetail_20' ) end [2025-01-26 20:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336708', 'tblTempVendorCDR_20' ) start [2025-01-26 20:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336708', 'tblTempVendorCDR_20' ) end [2025-01-26 20:18:21] Production.INFO: ProcessCDR(1,14336708,1,1,2) [2025-01-26 20:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336708', 'tblTempUsageDetail_20' ) start [2025-01-26 20:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336708', 'tblTempUsageDetail_20' ) end [2025-01-26 20:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:18:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:18:26] Production.INFO: ==19441== Releasing lock... [2025-01-26 20:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:18:26] Production.INFO: 60.5 MB #Memory Used# [2025-01-26 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:19:04 [end_date_ymd] => 2025-01-26 20:19:04 [RateCDR] => 1 ) [2025-01-26 20:19: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-01-26 17:19:04' and `end` < '2025-01-26 20:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 20:19:18] Production.INFO: count ==4355 [2025-01-26 20:19:19] Production.ERROR: pbx CDR StartTime 2025-01-26 17:19:04 - End Time 2025-01-26 20:19:04 [2025-01-26 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336709', 'tblTempUsageDetail_20' ) start [2025-01-26 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336709', 'tblTempUsageDetail_20' ) end [2025-01-26 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336709', 'tblTempVendorCDR_20' ) start [2025-01-26 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336709', 'tblTempVendorCDR_20' ) end [2025-01-26 20:19:20] Production.INFO: ProcessCDR(1,14336709,1,1,2) [2025-01-26 20:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336709', 'tblTempUsageDetail_20' ) start [2025-01-26 20:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336709', 'tblTempUsageDetail_20' ) end [2025-01-26 20:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:19:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:19:25] Production.INFO: ==19513== Releasing lock... [2025-01-26 20:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:19:25] Production.INFO: 60.5 MB #Memory Used# [2025-01-26 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:20:06 [end_date_ymd] => 2025-01-26 20:20:06 [RateCDR] => 1 ) [2025-01-26 20:20: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-01-26 17:20:06' and `end` < '2025-01-26 20:20: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-01-26 20:20:19] Production.INFO: count ==4355 [2025-01-26 20:20:21] Production.ERROR: pbx CDR StartTime 2025-01-26 17:20:06 - End Time 2025-01-26 20:20:06 [2025-01-26 20:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336719', 'tblTempUsageDetail_20' ) start [2025-01-26 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336719', 'tblTempUsageDetail_20' ) end [2025-01-26 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336719', 'tblTempVendorCDR_20' ) start [2025-01-26 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336719', 'tblTempVendorCDR_20' ) end [2025-01-26 20:20:21] Production.INFO: ProcessCDR(1,14336719,1,1,2) [2025-01-26 20:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336719', 'tblTempUsageDetail_20' ) start [2025-01-26 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336719', 'tblTempUsageDetail_20' ) end [2025-01-26 20:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:20:25] Production.INFO: ==19596== Releasing lock... [2025-01-26 20:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:20:25] Production.INFO: 60.5 MB #Memory Used# [2025-01-26 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:21:05 [end_date_ymd] => 2025-01-26 20:21:05 [RateCDR] => 1 ) [2025-01-26 20:21: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-01-26 17:21:05' and `end` < '2025-01-26 20:21: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-01-26 20:21:19] Production.INFO: count ==4268 [2025-01-26 20:21:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:21:05 - End Time 2025-01-26 20:21:05 [2025-01-26 20:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336724', 'tblTempUsageDetail_20' ) start [2025-01-26 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336724', 'tblTempUsageDetail_20' ) end [2025-01-26 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336724', 'tblTempVendorCDR_20' ) start [2025-01-26 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336724', 'tblTempVendorCDR_20' ) end [2025-01-26 20:21:20] Production.INFO: ProcessCDR(1,14336724,1,1,2) [2025-01-26 20:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336724', 'tblTempUsageDetail_20' ) start [2025-01-26 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336724', 'tblTempUsageDetail_20' ) end [2025-01-26 20:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:21:24] Production.INFO: ==19666== Releasing lock... [2025-01-26 20:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:21:24] Production.INFO: 59.75 MB #Memory Used# [2025-01-26 20:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:22:06 [end_date_ymd] => 2025-01-26 20:22:06 [RateCDR] => 1 ) [2025-01-26 20:22: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-01-26 17:22:06' and `end` < '2025-01-26 20:22: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-01-26 20:22:19] Production.INFO: count ==4267 [2025-01-26 20:22:21] Production.ERROR: pbx CDR StartTime 2025-01-26 17:22:06 - End Time 2025-01-26 20:22:06 [2025-01-26 20:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336729', 'tblTempUsageDetail_20' ) start [2025-01-26 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336729', 'tblTempUsageDetail_20' ) end [2025-01-26 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336729', 'tblTempVendorCDR_20' ) start [2025-01-26 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336729', 'tblTempVendorCDR_20' ) end [2025-01-26 20:22:21] Production.INFO: ProcessCDR(1,14336729,1,1,2) [2025-01-26 20:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336729', 'tblTempUsageDetail_20' ) start [2025-01-26 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336729', 'tblTempUsageDetail_20' ) end [2025-01-26 20:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:22:24] Production.INFO: ==19743== Releasing lock... [2025-01-26 20:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:22:24] Production.INFO: 59.75 MB #Memory Used# [2025-01-26 20:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:23:06 [end_date_ymd] => 2025-01-26 20:23:06 [RateCDR] => 1 ) [2025-01-26 20:23: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-01-26 17:23:06' and `end` < '2025-01-26 20:23: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-01-26 20:23:19] Production.INFO: count ==4260 [2025-01-26 20:23:21] Production.ERROR: pbx CDR StartTime 2025-01-26 17:23:06 - End Time 2025-01-26 20:23:06 [2025-01-26 20:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336734', 'tblTempUsageDetail_20' ) start [2025-01-26 20:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336734', 'tblTempUsageDetail_20' ) end [2025-01-26 20:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336734', 'tblTempVendorCDR_20' ) start [2025-01-26 20:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336734', 'tblTempVendorCDR_20' ) end [2025-01-26 20:23:21] Production.INFO: ProcessCDR(1,14336734,1,1,2) [2025-01-26 20:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336734', 'tblTempUsageDetail_20' ) start [2025-01-26 20:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336734', 'tblTempUsageDetail_20' ) end [2025-01-26 20:23:26] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:23:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:23:26] Production.INFO: ==19814== Releasing lock... [2025-01-26 20:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:23:26] Production.INFO: 59.75 MB #Memory Used# [2025-01-26 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:24:06 [end_date_ymd] => 2025-01-26 20:24:06 [RateCDR] => 1 ) [2025-01-26 20:24: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-01-26 17:24:06' and `end` < '2025-01-26 20:24: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-01-26 20:24:18] Production.INFO: count ==4248 [2025-01-26 20:24:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:24:06 - End Time 2025-01-26 20:24:06 [2025-01-26 20:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336739', 'tblTempUsageDetail_20' ) start [2025-01-26 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336739', 'tblTempUsageDetail_20' ) end [2025-01-26 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336739', 'tblTempVendorCDR_20' ) start [2025-01-26 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336739', 'tblTempVendorCDR_20' ) end [2025-01-26 20:24:20] Production.INFO: ProcessCDR(1,14336739,1,1,2) [2025-01-26 20:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336739', 'tblTempUsageDetail_20' ) start [2025-01-26 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336739', 'tblTempUsageDetail_20' ) end [2025-01-26 20:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:24:24] Production.INFO: ==19924== Releasing lock... [2025-01-26 20:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:24:24] Production.INFO: 59.75 MB #Memory Used# [2025-01-26 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:25:06 [end_date_ymd] => 2025-01-26 20:25:06 [RateCDR] => 1 ) [2025-01-26 20:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 17:25:06' and `end` < '2025-01-26 20:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 20:25:19] Production.INFO: count ==4245 [2025-01-26 20:25:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:25:06 - End Time 2025-01-26 20:25:06 [2025-01-26 20:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336744', 'tblTempUsageDetail_20' ) start [2025-01-26 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336744', 'tblTempUsageDetail_20' ) end [2025-01-26 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336744', 'tblTempVendorCDR_20' ) start [2025-01-26 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336744', 'tblTempVendorCDR_20' ) end [2025-01-26 20:25:20] Production.INFO: ProcessCDR(1,14336744,1,1,2) [2025-01-26 20:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336744', 'tblTempUsageDetail_20' ) start [2025-01-26 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336744', 'tblTempUsageDetail_20' ) end [2025-01-26 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:25:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:25:25] Production.INFO: ==19998== Releasing lock... [2025-01-26 20:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:25:25] Production.INFO: 59.75 MB #Memory Used# [2025-01-26 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:26:05 [end_date_ymd] => 2025-01-26 20:26:05 [RateCDR] => 1 ) [2025-01-26 20:26: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-01-26 17:26:05' and `end` < '2025-01-26 20:26: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-01-26 20:26:18] Production.INFO: count ==4235 [2025-01-26 20:26:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:26:05 - End Time 2025-01-26 20:26:05 [2025-01-26 20:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336749', 'tblTempUsageDetail_20' ) start [2025-01-26 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336749', 'tblTempUsageDetail_20' ) end [2025-01-26 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336749', 'tblTempVendorCDR_20' ) start [2025-01-26 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336749', 'tblTempVendorCDR_20' ) end [2025-01-26 20:26:20] Production.INFO: ProcessCDR(1,14336749,1,1,2) [2025-01-26 20:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336749', 'tblTempUsageDetail_20' ) start [2025-01-26 20:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336749', 'tblTempUsageDetail_20' ) end [2025-01-26 20:26:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:26:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:26:25] Production.INFO: ==20069== Releasing lock... [2025-01-26 20:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:26:25] Production.INFO: 59.5 MB #Memory Used# [2025-01-26 20:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:27:06 [end_date_ymd] => 2025-01-26 20:27:06 [RateCDR] => 1 ) [2025-01-26 20:27: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-01-26 17:27:06' and `end` < '2025-01-26 20:27: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-01-26 20:27:19] Production.INFO: count ==4228 [2025-01-26 20:27:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:27:06 - End Time 2025-01-26 20:27:06 [2025-01-26 20:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336754', 'tblTempUsageDetail_20' ) start [2025-01-26 20:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336754', 'tblTempUsageDetail_20' ) end [2025-01-26 20:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336754', 'tblTempVendorCDR_20' ) start [2025-01-26 20:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336754', 'tblTempVendorCDR_20' ) end [2025-01-26 20:27:21] Production.INFO: ProcessCDR(1,14336754,1,1,2) [2025-01-26 20:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336754', 'tblTempUsageDetail_20' ) start [2025-01-26 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336754', 'tblTempUsageDetail_20' ) end [2025-01-26 20:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:27:24] Production.INFO: ==20141== Releasing lock... [2025-01-26 20:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:27:24] Production.INFO: 59.5 MB #Memory Used# [2025-01-26 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:28:05 [end_date_ymd] => 2025-01-26 20:28:05 [RateCDR] => 1 ) [2025-01-26 20:28: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-01-26 17:28:05' and `end` < '2025-01-26 20:28: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-01-26 20:28:19] Production.INFO: count ==4228 [2025-01-26 20:28:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:28:05 - End Time 2025-01-26 20:28:05 [2025-01-26 20:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336759', 'tblTempUsageDetail_20' ) start [2025-01-26 20:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336759', 'tblTempUsageDetail_20' ) end [2025-01-26 20:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336759', 'tblTempVendorCDR_20' ) start [2025-01-26 20:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336759', 'tblTempVendorCDR_20' ) end [2025-01-26 20:28:21] Production.INFO: ProcessCDR(1,14336759,1,1,2) [2025-01-26 20:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336759', 'tblTempUsageDetail_20' ) start [2025-01-26 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336759', 'tblTempUsageDetail_20' ) end [2025-01-26 20:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:28:24] Production.INFO: ==20211== Releasing lock... [2025-01-26 20:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:28:24] Production.INFO: 59.5 MB #Memory Used# [2025-01-26 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:29:06 [end_date_ymd] => 2025-01-26 20:29:06 [RateCDR] => 1 ) [2025-01-26 20:29: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-01-26 17:29:06' and `end` < '2025-01-26 20:29: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-01-26 20:29:19] Production.INFO: count ==4229 [2025-01-26 20:29:21] Production.ERROR: pbx CDR StartTime 2025-01-26 17:29:06 - End Time 2025-01-26 20:29:06 [2025-01-26 20:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336764', 'tblTempUsageDetail_20' ) start [2025-01-26 20:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336764', 'tblTempUsageDetail_20' ) end [2025-01-26 20:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336764', 'tblTempVendorCDR_20' ) start [2025-01-26 20:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336764', 'tblTempVendorCDR_20' ) end [2025-01-26 20:29:21] Production.INFO: ProcessCDR(1,14336764,1,1,2) [2025-01-26 20:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336764', 'tblTempUsageDetail_20' ) start [2025-01-26 20:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336764', 'tblTempUsageDetail_20' ) end [2025-01-26 20:29:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:29:26] Production.INFO: ==20282== Releasing lock... [2025-01-26 20:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:29:26] Production.INFO: 59.5 MB #Memory Used# [2025-01-26 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:30:06 [end_date_ymd] => 2025-01-26 20:30:06 [RateCDR] => 1 ) [2025-01-26 20:30: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-01-26 17:30:06' and `end` < '2025-01-26 20:30: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-01-26 20:30:19] Production.INFO: count ==4233 [2025-01-26 20:30:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:30:06 - End Time 2025-01-26 20:30:06 [2025-01-26 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336769', 'tblTempUsageDetail_20' ) start [2025-01-26 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336769', 'tblTempUsageDetail_20' ) end [2025-01-26 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336769', 'tblTempVendorCDR_20' ) start [2025-01-26 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336769', 'tblTempVendorCDR_20' ) end [2025-01-26 20:30:20] Production.INFO: ProcessCDR(1,14336769,1,1,2) [2025-01-26 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336769', 'tblTempUsageDetail_20' ) start [2025-01-26 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336769', 'tblTempUsageDetail_20' ) end [2025-01-26 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:30:24] Production.INFO: ==20355== Releasing lock... [2025-01-26 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:30:24] Production.INFO: 59.5 MB #Memory Used# [2025-01-26 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:31:05 [end_date_ymd] => 2025-01-26 20:31:05 [RateCDR] => 1 ) [2025-01-26 20:31: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-01-26 17:31:05' and `end` < '2025-01-26 20:31: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-01-26 20:31:18] Production.INFO: count ==4197 [2025-01-26 20:31:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:31:05 - End Time 2025-01-26 20:31:05 [2025-01-26 20:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336775', 'tblTempUsageDetail_20' ) start [2025-01-26 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336775', 'tblTempUsageDetail_20' ) end [2025-01-26 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336775', 'tblTempVendorCDR_20' ) start [2025-01-26 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336775', 'tblTempVendorCDR_20' ) end [2025-01-26 20:31:20] Production.INFO: ProcessCDR(1,14336775,1,1,2) [2025-01-26 20:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336775', 'tblTempUsageDetail_20' ) start [2025-01-26 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336775', 'tblTempUsageDetail_20' ) end [2025-01-26 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:31:23] Production.INFO: ==20428== Releasing lock... [2025-01-26 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:31:23] Production.INFO: 59.25 MB #Memory Used# [2025-01-26 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:32:05 [end_date_ymd] => 2025-01-26 20:32:05 [RateCDR] => 1 ) [2025-01-26 20:32: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-01-26 17:32:05' and `end` < '2025-01-26 20:32: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-01-26 20:32:19] Production.INFO: count ==4188 [2025-01-26 20:32:21] Production.ERROR: pbx CDR StartTime 2025-01-26 17:32:05 - End Time 2025-01-26 20:32:05 [2025-01-26 20:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336780', 'tblTempUsageDetail_20' ) start [2025-01-26 20:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336780', 'tblTempUsageDetail_20' ) end [2025-01-26 20:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336780', 'tblTempVendorCDR_20' ) start [2025-01-26 20:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336780', 'tblTempVendorCDR_20' ) end [2025-01-26 20:32:21] Production.INFO: ProcessCDR(1,14336780,1,1,2) [2025-01-26 20:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336780', 'tblTempUsageDetail_20' ) start [2025-01-26 20:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336780', 'tblTempUsageDetail_20' ) end [2025-01-26 20:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:32:24] Production.INFO: ==20502== Releasing lock... [2025-01-26 20:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:32:24] Production.INFO: 59.25 MB #Memory Used# [2025-01-26 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:33:05 [end_date_ymd] => 2025-01-26 20:33:05 [RateCDR] => 1 ) [2025-01-26 20:33: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-01-26 17:33:05' and `end` < '2025-01-26 20:33: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-01-26 20:33:19] Production.INFO: count ==4187 [2025-01-26 20:33:21] Production.ERROR: pbx CDR StartTime 2025-01-26 17:33:05 - End Time 2025-01-26 20:33:05 [2025-01-26 20:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336785', 'tblTempUsageDetail_20' ) start [2025-01-26 20:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336785', 'tblTempUsageDetail_20' ) end [2025-01-26 20:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336785', 'tblTempVendorCDR_20' ) start [2025-01-26 20:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336785', 'tblTempVendorCDR_20' ) end [2025-01-26 20:33:21] Production.INFO: ProcessCDR(1,14336785,1,1,2) [2025-01-26 20:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336785', 'tblTempUsageDetail_20' ) start [2025-01-26 20:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336785', 'tblTempUsageDetail_20' ) end [2025-01-26 20:33:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:33:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:33:25] Production.INFO: ==20573== Releasing lock... [2025-01-26 20:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:33:25] Production.INFO: 59.25 MB #Memory Used# [2025-01-26 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:34:06 [end_date_ymd] => 2025-01-26 20:34:06 [RateCDR] => 1 ) [2025-01-26 20:34: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-01-26 17:34:06' and `end` < '2025-01-26 20:34: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-01-26 20:34:19] Production.INFO: count ==4188 [2025-01-26 20:34:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:34:06 - End Time 2025-01-26 20:34:06 [2025-01-26 20:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336790', 'tblTempUsageDetail_20' ) start [2025-01-26 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336790', 'tblTempUsageDetail_20' ) end [2025-01-26 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336790', 'tblTempVendorCDR_20' ) start [2025-01-26 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336790', 'tblTempVendorCDR_20' ) end [2025-01-26 20:34:20] Production.INFO: ProcessCDR(1,14336790,1,1,2) [2025-01-26 20:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336790', 'tblTempUsageDetail_20' ) start [2025-01-26 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336790', 'tblTempUsageDetail_20' ) end [2025-01-26 20:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:34:24] Production.INFO: ==20646== Releasing lock... [2025-01-26 20:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:34:24] Production.INFO: 59.25 MB #Memory Used# [2025-01-26 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:35:05 [end_date_ymd] => 2025-01-26 20:35:05 [RateCDR] => 1 ) [2025-01-26 20:35: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-01-26 17:35:05' and `end` < '2025-01-26 20:35: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-01-26 20:35:19] Production.INFO: count ==4188 [2025-01-26 20:35:21] Production.ERROR: pbx CDR StartTime 2025-01-26 17:35:05 - End Time 2025-01-26 20:35:05 [2025-01-26 20:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336795', 'tblTempUsageDetail_20' ) start [2025-01-26 20:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336795', 'tblTempUsageDetail_20' ) end [2025-01-26 20:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336795', 'tblTempVendorCDR_20' ) start [2025-01-26 20:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336795', 'tblTempVendorCDR_20' ) end [2025-01-26 20:35:21] Production.INFO: ProcessCDR(1,14336795,1,1,2) [2025-01-26 20:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336795', 'tblTempUsageDetail_20' ) start [2025-01-26 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336795', 'tblTempUsageDetail_20' ) end [2025-01-26 20:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:35:24] Production.INFO: ==20717== Releasing lock... [2025-01-26 20:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:35:24] Production.INFO: 59.25 MB #Memory Used# [2025-01-26 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:36:05 [end_date_ymd] => 2025-01-26 20:36:05 [RateCDR] => 1 ) [2025-01-26 20:36: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-01-26 17:36:05' and `end` < '2025-01-26 20:36: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-01-26 20:36:18] Production.INFO: count ==4187 [2025-01-26 20:36:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:36:05 - End Time 2025-01-26 20:36:05 [2025-01-26 20:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336800', 'tblTempUsageDetail_20' ) start [2025-01-26 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336800', 'tblTempUsageDetail_20' ) end [2025-01-26 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336800', 'tblTempVendorCDR_20' ) start [2025-01-26 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336800', 'tblTempVendorCDR_20' ) end [2025-01-26 20:36:20] Production.INFO: ProcessCDR(1,14336800,1,1,2) [2025-01-26 20:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336800', 'tblTempUsageDetail_20' ) start [2025-01-26 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336800', 'tblTempUsageDetail_20' ) end [2025-01-26 20:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:36:23] Production.INFO: ==20790== Releasing lock... [2025-01-26 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:36:23] Production.INFO: 59.25 MB #Memory Used# [2025-01-26 20:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:37:06 [end_date_ymd] => 2025-01-26 20:37:06 [RateCDR] => 1 ) [2025-01-26 20:37: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-01-26 17:37:06' and `end` < '2025-01-26 20:37: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-01-26 20:37:19] Production.INFO: count ==4183 [2025-01-26 20:37:21] Production.ERROR: pbx CDR StartTime 2025-01-26 17:37:06 - End Time 2025-01-26 20:37:06 [2025-01-26 20:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336805', 'tblTempUsageDetail_20' ) start [2025-01-26 20:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336805', 'tblTempUsageDetail_20' ) end [2025-01-26 20:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336805', 'tblTempVendorCDR_20' ) start [2025-01-26 20:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336805', 'tblTempVendorCDR_20' ) end [2025-01-26 20:37:21] Production.INFO: ProcessCDR(1,14336805,1,1,2) [2025-01-26 20:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336805', 'tblTempUsageDetail_20' ) start [2025-01-26 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336805', 'tblTempUsageDetail_20' ) end [2025-01-26 20:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:37:24] Production.INFO: ==20861== Releasing lock... [2025-01-26 20:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:37:24] Production.INFO: 59.25 MB #Memory Used# [2025-01-26 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:38:05 [end_date_ymd] => 2025-01-26 20:38:05 [RateCDR] => 1 ) [2025-01-26 20:38: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-01-26 17:38:05' and `end` < '2025-01-26 20:38: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-01-26 20:38:19] Production.INFO: count ==4183 [2025-01-26 20:38:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:38:05 - End Time 2025-01-26 20:38:05 [2025-01-26 20:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336810', 'tblTempUsageDetail_20' ) start [2025-01-26 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336810', 'tblTempUsageDetail_20' ) end [2025-01-26 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336810', 'tblTempVendorCDR_20' ) start [2025-01-26 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336810', 'tblTempVendorCDR_20' ) end [2025-01-26 20:38:20] Production.INFO: ProcessCDR(1,14336810,1,1,2) [2025-01-26 20:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336810', 'tblTempUsageDetail_20' ) start [2025-01-26 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336810', 'tblTempUsageDetail_20' ) end [2025-01-26 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:38:24] Production.INFO: ==20932== Releasing lock... [2025-01-26 20:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:38:24] Production.INFO: 59.25 MB #Memory Used# [2025-01-26 20:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:39:06 [end_date_ymd] => 2025-01-26 20:39:06 [RateCDR] => 1 ) [2025-01-26 20:39: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-01-26 17:39:06' and `end` < '2025-01-26 20:39: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-01-26 20:39:19] Production.INFO: count ==4183 [2025-01-26 20:39:21] Production.ERROR: pbx CDR StartTime 2025-01-26 17:39:06 - End Time 2025-01-26 20:39:06 [2025-01-26 20:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336815', 'tblTempUsageDetail_20' ) start [2025-01-26 20:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336815', 'tblTempUsageDetail_20' ) end [2025-01-26 20:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336815', 'tblTempVendorCDR_20' ) start [2025-01-26 20:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336815', 'tblTempVendorCDR_20' ) end [2025-01-26 20:39:21] Production.INFO: ProcessCDR(1,14336815,1,1,2) [2025-01-26 20:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336815', 'tblTempUsageDetail_20' ) start [2025-01-26 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336815', 'tblTempUsageDetail_20' ) end [2025-01-26 20:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:39:24] Production.INFO: ==21006== Releasing lock... [2025-01-26 20:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:39:24] Production.INFO: 59.25 MB #Memory Used# [2025-01-26 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:40:06 [end_date_ymd] => 2025-01-26 20:40:06 [RateCDR] => 1 ) [2025-01-26 20:40: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-01-26 17:40:06' and `end` < '2025-01-26 20:40: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-01-26 20:40:19] Production.INFO: count ==4185 [2025-01-26 20:40:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:40:06 - End Time 2025-01-26 20:40:06 [2025-01-26 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336821', 'tblTempUsageDetail_20' ) start [2025-01-26 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336821', 'tblTempUsageDetail_20' ) end [2025-01-26 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336821', 'tblTempVendorCDR_20' ) start [2025-01-26 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336821', 'tblTempVendorCDR_20' ) end [2025-01-26 20:40:20] Production.INFO: ProcessCDR(1,14336821,1,1,2) [2025-01-26 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336821', 'tblTempUsageDetail_20' ) start [2025-01-26 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336821', 'tblTempUsageDetail_20' ) end [2025-01-26 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:40:23] Production.INFO: ==21123== Releasing lock... [2025-01-26 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:40:23] Production.INFO: 59.25 MB #Memory Used# [2025-01-26 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:41:05 [end_date_ymd] => 2025-01-26 20:41:05 [RateCDR] => 1 ) [2025-01-26 20:41: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-01-26 17:41:05' and `end` < '2025-01-26 20:41: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-01-26 20:41:18] Production.INFO: count ==4167 [2025-01-26 20:41:19] Production.ERROR: pbx CDR StartTime 2025-01-26 17:41:05 - End Time 2025-01-26 20:41:05 [2025-01-26 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336826', 'tblTempUsageDetail_20' ) start [2025-01-26 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336826', 'tblTempUsageDetail_20' ) end [2025-01-26 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336826', 'tblTempVendorCDR_20' ) start [2025-01-26 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336826', 'tblTempVendorCDR_20' ) end [2025-01-26 20:41:19] Production.INFO: ProcessCDR(1,14336826,1,1,2) [2025-01-26 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336826', 'tblTempUsageDetail_20' ) start [2025-01-26 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336826', 'tblTempUsageDetail_20' ) end [2025-01-26 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:41:22] Production.INFO: ==21196== Releasing lock... [2025-01-26 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:41:22] Production.INFO: 59 MB #Memory Used# [2025-01-26 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:42:05 [end_date_ymd] => 2025-01-26 20:42:05 [RateCDR] => 1 ) [2025-01-26 20:42: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-01-26 17:42:05' and `end` < '2025-01-26 20:42: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-01-26 20:42:18] Production.INFO: count ==4163 [2025-01-26 20:42:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:42:05 - End Time 2025-01-26 20:42:05 [2025-01-26 20:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336831', 'tblTempUsageDetail_20' ) start [2025-01-26 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336831', 'tblTempUsageDetail_20' ) end [2025-01-26 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336831', 'tblTempVendorCDR_20' ) start [2025-01-26 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336831', 'tblTempVendorCDR_20' ) end [2025-01-26 20:42:20] Production.INFO: ProcessCDR(1,14336831,1,1,2) [2025-01-26 20:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336831', 'tblTempUsageDetail_20' ) start [2025-01-26 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336831', 'tblTempUsageDetail_20' ) end [2025-01-26 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:42:23] Production.INFO: ==21267== Releasing lock... [2025-01-26 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:42:23] Production.INFO: 59 MB #Memory Used# [2025-01-26 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:43:05 [end_date_ymd] => 2025-01-26 20:43:05 [RateCDR] => 1 ) [2025-01-26 20:43: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-01-26 17:43:05' and `end` < '2025-01-26 20:43: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-01-26 20:43:18] Production.INFO: count ==4163 [2025-01-26 20:43:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:43:05 - End Time 2025-01-26 20:43:05 [2025-01-26 20:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336836', 'tblTempUsageDetail_20' ) start [2025-01-26 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336836', 'tblTempUsageDetail_20' ) end [2025-01-26 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336836', 'tblTempVendorCDR_20' ) start [2025-01-26 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336836', 'tblTempVendorCDR_20' ) end [2025-01-26 20:43:20] Production.INFO: ProcessCDR(1,14336836,1,1,2) [2025-01-26 20:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336836', 'tblTempUsageDetail_20' ) start [2025-01-26 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336836', 'tblTempUsageDetail_20' ) end [2025-01-26 20:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:43:23] Production.INFO: ==21339== Releasing lock... [2025-01-26 20:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:43:23] Production.INFO: 59 MB #Memory Used# [2025-01-26 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:44:05 [end_date_ymd] => 2025-01-26 20:44:05 [RateCDR] => 1 ) [2025-01-26 20:44: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-01-26 17:44:05' and `end` < '2025-01-26 20:44: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-01-26 20:44:18] Production.INFO: count ==4162 [2025-01-26 20:44:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:44:05 - End Time 2025-01-26 20:44:05 [2025-01-26 20:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336841', 'tblTempUsageDetail_20' ) start [2025-01-26 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336841', 'tblTempUsageDetail_20' ) end [2025-01-26 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336841', 'tblTempVendorCDR_20' ) start [2025-01-26 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336841', 'tblTempVendorCDR_20' ) end [2025-01-26 20:44:20] Production.INFO: ProcessCDR(1,14336841,1,1,2) [2025-01-26 20:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336841', 'tblTempUsageDetail_20' ) start [2025-01-26 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336841', 'tblTempUsageDetail_20' ) end [2025-01-26 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:44:23] Production.INFO: ==21411== Releasing lock... [2025-01-26 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:44:23] Production.INFO: 59 MB #Memory Used# [2025-01-26 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:45:05 [end_date_ymd] => 2025-01-26 20:45:05 [RateCDR] => 1 ) [2025-01-26 20:45: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-01-26 17:45:05' and `end` < '2025-01-26 20:45: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-01-26 20:45:18] Production.INFO: count ==4157 [2025-01-26 20:45:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:45:05 - End Time 2025-01-26 20:45:05 [2025-01-26 20:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336846', 'tblTempUsageDetail_20' ) start [2025-01-26 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336846', 'tblTempUsageDetail_20' ) end [2025-01-26 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336846', 'tblTempVendorCDR_20' ) start [2025-01-26 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336846', 'tblTempVendorCDR_20' ) end [2025-01-26 20:45:20] Production.INFO: ProcessCDR(1,14336846,1,1,2) [2025-01-26 20:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336846', 'tblTempUsageDetail_20' ) start [2025-01-26 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336846', 'tblTempUsageDetail_20' ) end [2025-01-26 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:45:23] Production.INFO: ==21482== Releasing lock... [2025-01-26 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:45:23] Production.INFO: 59 MB #Memory Used# [2025-01-26 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:46:05 [end_date_ymd] => 2025-01-26 20:46:05 [RateCDR] => 1 ) [2025-01-26 20:46: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-01-26 17:46:05' and `end` < '2025-01-26 20:46: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-01-26 20:46:19] Production.INFO: count ==4155 [2025-01-26 20:46:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:46:05 - End Time 2025-01-26 20:46:05 [2025-01-26 20:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336851', 'tblTempUsageDetail_20' ) start [2025-01-26 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336851', 'tblTempUsageDetail_20' ) end [2025-01-26 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336851', 'tblTempVendorCDR_20' ) start [2025-01-26 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336851', 'tblTempVendorCDR_20' ) end [2025-01-26 20:46:20] Production.INFO: ProcessCDR(1,14336851,1,1,2) [2025-01-26 20:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336851', 'tblTempUsageDetail_20' ) start [2025-01-26 20:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336851', 'tblTempUsageDetail_20' ) end [2025-01-26 20:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:46:25] Production.INFO: ==21559== Releasing lock... [2025-01-26 20:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:46:25] Production.INFO: 59 MB #Memory Used# [2025-01-26 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:47:05 [end_date_ymd] => 2025-01-26 20:47:05 [RateCDR] => 1 ) [2025-01-26 20:47: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-01-26 17:47:05' and `end` < '2025-01-26 20:47: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-01-26 20:47:18] Production.INFO: count ==4149 [2025-01-26 20:47:19] Production.ERROR: pbx CDR StartTime 2025-01-26 17:47:05 - End Time 2025-01-26 20:47:05 [2025-01-26 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336856', 'tblTempUsageDetail_20' ) start [2025-01-26 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336856', 'tblTempUsageDetail_20' ) end [2025-01-26 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336856', 'tblTempVendorCDR_20' ) start [2025-01-26 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336856', 'tblTempVendorCDR_20' ) end [2025-01-26 20:47:19] Production.INFO: ProcessCDR(1,14336856,1,1,2) [2025-01-26 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336856', 'tblTempUsageDetail_20' ) start [2025-01-26 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336856', 'tblTempUsageDetail_20' ) end [2025-01-26 20:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:47:23] Production.INFO: ==21630== Releasing lock... [2025-01-26 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:47:23] Production.INFO: 59 MB #Memory Used# [2025-01-26 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:48:05 [end_date_ymd] => 2025-01-26 20:48:05 [RateCDR] => 1 ) [2025-01-26 20:48: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-01-26 17:48:05' and `end` < '2025-01-26 20:48: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-01-26 20:48:19] Production.INFO: count ==4147 [2025-01-26 20:48:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:48:05 - End Time 2025-01-26 20:48:05 [2025-01-26 20:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336861', 'tblTempUsageDetail_20' ) start [2025-01-26 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336861', 'tblTempUsageDetail_20' ) end [2025-01-26 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336861', 'tblTempVendorCDR_20' ) start [2025-01-26 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336861', 'tblTempVendorCDR_20' ) end [2025-01-26 20:48:20] Production.INFO: ProcessCDR(1,14336861,1,1,2) [2025-01-26 20:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336861', 'tblTempUsageDetail_20' ) start [2025-01-26 20:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336861', 'tblTempUsageDetail_20' ) end [2025-01-26 20:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:48:25] Production.INFO: ==21699== Releasing lock... [2025-01-26 20:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:48:25] Production.INFO: 59 MB #Memory Used# [2025-01-26 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:49:05 [end_date_ymd] => 2025-01-26 20:49:05 [RateCDR] => 1 ) [2025-01-26 20:49: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-01-26 17:49:05' and `end` < '2025-01-26 20:49: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-01-26 20:49:18] Production.INFO: count ==4145 [2025-01-26 20:49:19] Production.ERROR: pbx CDR StartTime 2025-01-26 17:49:05 - End Time 2025-01-26 20:49:05 [2025-01-26 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336866', 'tblTempUsageDetail_20' ) start [2025-01-26 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336866', 'tblTempUsageDetail_20' ) end [2025-01-26 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336866', 'tblTempVendorCDR_20' ) start [2025-01-26 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336866', 'tblTempVendorCDR_20' ) end [2025-01-26 20:49:20] Production.INFO: ProcessCDR(1,14336866,1,1,2) [2025-01-26 20:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336866', 'tblTempUsageDetail_20' ) start [2025-01-26 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336866', 'tblTempUsageDetail_20' ) end [2025-01-26 20:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:49:23] Production.INFO: ==21770== Releasing lock... [2025-01-26 20:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:49:23] Production.INFO: 59 MB #Memory Used# [2025-01-26 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:50:06 [end_date_ymd] => 2025-01-26 20:50:06 [RateCDR] => 1 ) [2025-01-26 20:50: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-01-26 17:50:06' and `end` < '2025-01-26 20:50: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-01-26 20:50:19] Production.INFO: count ==4120 [2025-01-26 20:50:21] Production.ERROR: pbx CDR StartTime 2025-01-26 17:50:06 - End Time 2025-01-26 20:50:06 [2025-01-26 20:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336871', 'tblTempUsageDetail_20' ) start [2025-01-26 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336871', 'tblTempUsageDetail_20' ) end [2025-01-26 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336871', 'tblTempVendorCDR_20' ) start [2025-01-26 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336871', 'tblTempVendorCDR_20' ) end [2025-01-26 20:50:21] Production.INFO: ProcessCDR(1,14336871,1,1,2) [2025-01-26 20:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336871', 'tblTempUsageDetail_20' ) start [2025-01-26 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336871', 'tblTempUsageDetail_20' ) end [2025-01-26 20:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:50:25] Production.INFO: ==21846== Releasing lock... [2025-01-26 20:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:50:25] Production.INFO: 58.75 MB #Memory Used# [2025-01-26 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:51:05 [end_date_ymd] => 2025-01-26 20:51:05 [RateCDR] => 1 ) [2025-01-26 20:51: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-01-26 17:51:05' and `end` < '2025-01-26 20:51: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-01-26 20:51:18] Production.INFO: count ==4014 [2025-01-26 20:51:19] Production.ERROR: pbx CDR StartTime 2025-01-26 17:51:05 - End Time 2025-01-26 20:51:05 [2025-01-26 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336877', 'tblTempUsageDetail_20' ) start [2025-01-26 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336877', 'tblTempUsageDetail_20' ) end [2025-01-26 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336877', 'tblTempVendorCDR_20' ) start [2025-01-26 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336877', 'tblTempVendorCDR_20' ) end [2025-01-26 20:51:19] Production.INFO: ProcessCDR(1,14336877,1,1,2) [2025-01-26 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336877', 'tblTempUsageDetail_20' ) start [2025-01-26 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336877', 'tblTempUsageDetail_20' ) end [2025-01-26 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:51:22] Production.INFO: ==21918== Releasing lock... [2025-01-26 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:51:22] Production.INFO: 58 MB #Memory Used# [2025-01-26 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:52:05 [end_date_ymd] => 2025-01-26 20:52:05 [RateCDR] => 1 ) [2025-01-26 20:52: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-01-26 17:52:05' and `end` < '2025-01-26 20:52: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-01-26 20:52:18] Production.INFO: count ==3953 [2025-01-26 20:52:19] Production.ERROR: pbx CDR StartTime 2025-01-26 17:52:05 - End Time 2025-01-26 20:52:05 [2025-01-26 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336882', 'tblTempUsageDetail_20' ) start [2025-01-26 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336882', 'tblTempUsageDetail_20' ) end [2025-01-26 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336882', 'tblTempVendorCDR_20' ) start [2025-01-26 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336882', 'tblTempVendorCDR_20' ) end [2025-01-26 20:52:19] Production.INFO: ProcessCDR(1,14336882,1,1,2) [2025-01-26 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336882', 'tblTempUsageDetail_20' ) start [2025-01-26 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336882', 'tblTempUsageDetail_20' ) end [2025-01-26 20:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:52:24] Production.INFO: ==21991== Releasing lock... [2025-01-26 20:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:52:24] Production.INFO: 57.5 MB #Memory Used# [2025-01-26 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:53:05 [end_date_ymd] => 2025-01-26 20:53:05 [RateCDR] => 1 ) [2025-01-26 20:53: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-01-26 17:53:05' and `end` < '2025-01-26 20:53: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-01-26 20:53:18] Production.INFO: count ==3895 [2025-01-26 20:53:19] Production.ERROR: pbx CDR StartTime 2025-01-26 17:53:05 - End Time 2025-01-26 20:53:05 [2025-01-26 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336887', 'tblTempUsageDetail_20' ) start [2025-01-26 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336887', 'tblTempUsageDetail_20' ) end [2025-01-26 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336887', 'tblTempVendorCDR_20' ) start [2025-01-26 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336887', 'tblTempVendorCDR_20' ) end [2025-01-26 20:53:19] Production.INFO: ProcessCDR(1,14336887,1,1,2) [2025-01-26 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336887', 'tblTempUsageDetail_20' ) start [2025-01-26 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336887', 'tblTempUsageDetail_20' ) end [2025-01-26 20:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:53:24] Production.INFO: ==22062== Releasing lock... [2025-01-26 20:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:53:24] Production.INFO: 57 MB #Memory Used# [2025-01-26 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:54:05 [end_date_ymd] => 2025-01-26 20:54:05 [RateCDR] => 1 ) [2025-01-26 20:54: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-01-26 17:54:05' and `end` < '2025-01-26 20:54: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-01-26 20:54:18] Production.INFO: count ==3826 [2025-01-26 20:54:19] Production.ERROR: pbx CDR StartTime 2025-01-26 17:54:05 - End Time 2025-01-26 20:54:05 [2025-01-26 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336892', 'tblTempUsageDetail_20' ) start [2025-01-26 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336892', 'tblTempUsageDetail_20' ) end [2025-01-26 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336892', 'tblTempVendorCDR_20' ) start [2025-01-26 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336892', 'tblTempVendorCDR_20' ) end [2025-01-26 20:54:19] Production.INFO: ProcessCDR(1,14336892,1,1,2) [2025-01-26 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336892', 'tblTempUsageDetail_20' ) start [2025-01-26 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336892', 'tblTempUsageDetail_20' ) end [2025-01-26 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:54:22] Production.INFO: ==22132== Releasing lock... [2025-01-26 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:54:22] Production.INFO: 56.75 MB #Memory Used# [2025-01-26 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:55:05 [end_date_ymd] => 2025-01-26 20:55:05 [RateCDR] => 1 ) [2025-01-26 20:55: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-01-26 17:55:05' and `end` < '2025-01-26 20:55: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-01-26 20:55:18] Production.INFO: count ==3785 [2025-01-26 20:55:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:55:05 - End Time 2025-01-26 20:55:05 [2025-01-26 20:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336897', 'tblTempUsageDetail_20' ) start [2025-01-26 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336897', 'tblTempUsageDetail_20' ) end [2025-01-26 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336897', 'tblTempVendorCDR_20' ) start [2025-01-26 20:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336897', 'tblTempVendorCDR_20' ) end [2025-01-26 20:55:20] Production.INFO: ProcessCDR(1,14336897,1,1,2) [2025-01-26 20:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336897', 'tblTempUsageDetail_20' ) start [2025-01-26 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336897', 'tblTempUsageDetail_20' ) end [2025-01-26 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:55:23] Production.INFO: ==22243== Releasing lock... [2025-01-26 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:55:23] Production.INFO: 56.5 MB #Memory Used# [2025-01-26 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:56:05 [end_date_ymd] => 2025-01-26 20:56:05 [RateCDR] => 1 ) [2025-01-26 20:56: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-01-26 17:56:05' and `end` < '2025-01-26 20:56: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-01-26 20:56:18] Production.INFO: count ==3717 [2025-01-26 20:56:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:56:05 - End Time 2025-01-26 20:56:05 [2025-01-26 20:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336902', 'tblTempUsageDetail_20' ) start [2025-01-26 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336902', 'tblTempUsageDetail_20' ) end [2025-01-26 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336902', 'tblTempVendorCDR_20' ) start [2025-01-26 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336902', 'tblTempVendorCDR_20' ) end [2025-01-26 20:56:20] Production.INFO: ProcessCDR(1,14336902,1,1,2) [2025-01-26 20:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336902', 'tblTempUsageDetail_20' ) start [2025-01-26 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336902', 'tblTempUsageDetail_20' ) end [2025-01-26 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:56:23] Production.INFO: ==22317== Releasing lock... [2025-01-26 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:56:23] Production.INFO: 55.75 MB #Memory Used# [2025-01-26 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:57:05 [end_date_ymd] => 2025-01-26 20:57:05 [RateCDR] => 1 ) [2025-01-26 20:57: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-01-26 17:57:05' and `end` < '2025-01-26 20:57: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-01-26 20:57:18] Production.INFO: count ==3656 [2025-01-26 20:57:19] Production.ERROR: pbx CDR StartTime 2025-01-26 17:57:05 - End Time 2025-01-26 20:57:05 [2025-01-26 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336907', 'tblTempUsageDetail_20' ) start [2025-01-26 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336907', 'tblTempUsageDetail_20' ) end [2025-01-26 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336907', 'tblTempVendorCDR_20' ) start [2025-01-26 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336907', 'tblTempVendorCDR_20' ) end [2025-01-26 20:57:19] Production.INFO: ProcessCDR(1,14336907,1,1,2) [2025-01-26 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336907', 'tblTempUsageDetail_20' ) start [2025-01-26 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336907', 'tblTempUsageDetail_20' ) end [2025-01-26 20:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:57:24] Production.INFO: ==22387== Releasing lock... [2025-01-26 20:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:57:24] Production.INFO: 55.25 MB #Memory Used# [2025-01-26 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:58:05 [end_date_ymd] => 2025-01-26 20:58:05 [RateCDR] => 1 ) [2025-01-26 20:58: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-01-26 17:58:05' and `end` < '2025-01-26 20:58: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-01-26 20:58:18] Production.INFO: count ==3609 [2025-01-26 20:58:19] Production.ERROR: pbx CDR StartTime 2025-01-26 17:58:05 - End Time 2025-01-26 20:58:05 [2025-01-26 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336912', 'tblTempUsageDetail_20' ) start [2025-01-26 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336912', 'tblTempUsageDetail_20' ) end [2025-01-26 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336912', 'tblTempVendorCDR_20' ) start [2025-01-26 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336912', 'tblTempVendorCDR_20' ) end [2025-01-26 20:58:19] Production.INFO: ProcessCDR(1,14336912,1,1,2) [2025-01-26 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336912', 'tblTempUsageDetail_20' ) start [2025-01-26 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336912', 'tblTempUsageDetail_20' ) end [2025-01-26 20:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:58:24] Production.INFO: ==22459== Releasing lock... [2025-01-26 20:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:58:24] Production.INFO: 54.75 MB #Memory Used# [2025-01-26 20:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 17:59:06 [end_date_ymd] => 2025-01-26 20:59:06 [RateCDR] => 1 ) [2025-01-26 20:59: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-01-26 17:59:06' and `end` < '2025-01-26 20:59: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-01-26 20:59:19] Production.INFO: count ==3568 [2025-01-26 20:59:20] Production.ERROR: pbx CDR StartTime 2025-01-26 17:59:06 - End Time 2025-01-26 20:59:06 [2025-01-26 20:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336917', 'tblTempUsageDetail_20' ) start [2025-01-26 20:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336917', 'tblTempUsageDetail_20' ) end [2025-01-26 20:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336917', 'tblTempVendorCDR_20' ) start [2025-01-26 20:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336917', 'tblTempVendorCDR_20' ) end [2025-01-26 20:59:21] Production.INFO: ProcessCDR(1,14336917,1,1,2) [2025-01-26 20:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 20:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336917', 'tblTempUsageDetail_20' ) start [2025-01-26 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336917', 'tblTempUsageDetail_20' ) end [2025-01-26 20:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 20:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 20:59:24] Production.INFO: ==22534== Releasing lock... [2025-01-26 20:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 20:59:24] Production.INFO: 54.5 MB #Memory Used# [2025-01-26 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:00:05 [end_date_ymd] => 2025-01-26 21:00:05 [RateCDR] => 1 ) [2025-01-26 21: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-01-26 18:00:05' and `end` < '2025-01-26 21: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-01-26 21:00:18] Production.INFO: count ==3497 [2025-01-26 21:00:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:00:05 - End Time 2025-01-26 21:00:05 [2025-01-26 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336923', 'tblTempUsageDetail_20' ) start [2025-01-26 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336923', 'tblTempUsageDetail_20' ) end [2025-01-26 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336923', 'tblTempVendorCDR_20' ) start [2025-01-26 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336923', 'tblTempVendorCDR_20' ) end [2025-01-26 21:00:19] Production.INFO: ProcessCDR(1,14336923,1,1,2) [2025-01-26 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336923', 'tblTempUsageDetail_20' ) start [2025-01-26 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336923', 'tblTempUsageDetail_20' ) end [2025-01-26 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:00:23] Production.INFO: ==22609== Releasing lock... [2025-01-26 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:00:23] Production.INFO: 54.25 MB #Memory Used# [2025-01-26 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:01:05 [end_date_ymd] => 2025-01-26 21:01:05 [RateCDR] => 1 ) [2025-01-26 21:01: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-01-26 18:01:05' and `end` < '2025-01-26 21:01: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-01-26 21:01:18] Production.INFO: count ==3396 [2025-01-26 21:01:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:01:05 - End Time 2025-01-26 21:01:05 [2025-01-26 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336928', 'tblTempUsageDetail_20' ) start [2025-01-26 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336928', 'tblTempUsageDetail_20' ) end [2025-01-26 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336928', 'tblTempVendorCDR_20' ) start [2025-01-26 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336928', 'tblTempVendorCDR_20' ) end [2025-01-26 21:01:19] Production.INFO: ProcessCDR(1,14336928,1,1,2) [2025-01-26 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336928', 'tblTempUsageDetail_20' ) start [2025-01-26 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336928', 'tblTempUsageDetail_20' ) end [2025-01-26 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:01:22] Production.INFO: ==22695== Releasing lock... [2025-01-26 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:01:22] Production.INFO: 54.5 MB #Memory Used# [2025-01-26 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:02:05 [end_date_ymd] => 2025-01-26 21:02:05 [RateCDR] => 1 ) [2025-01-26 21:02: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-01-26 18:02:05' and `end` < '2025-01-26 21:02: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-01-26 21:02:17] Production.INFO: count ==3327 [2025-01-26 21:02:18] Production.ERROR: pbx CDR StartTime 2025-01-26 18:02:05 - End Time 2025-01-26 21:02:05 [2025-01-26 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336933', 'tblTempUsageDetail_20' ) start [2025-01-26 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336933', 'tblTempUsageDetail_20' ) end [2025-01-26 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336933', 'tblTempVendorCDR_20' ) start [2025-01-26 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336933', 'tblTempVendorCDR_20' ) end [2025-01-26 21:02:18] Production.INFO: ProcessCDR(1,14336933,1,1,2) [2025-01-26 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336933', 'tblTempUsageDetail_20' ) start [2025-01-26 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336933', 'tblTempUsageDetail_20' ) end [2025-01-26 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:02:23] Production.INFO: ==22765== Releasing lock... [2025-01-26 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:02:23] Production.INFO: 53.75 MB #Memory Used# [2025-01-26 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:03:05 [end_date_ymd] => 2025-01-26 21:03:05 [RateCDR] => 1 ) [2025-01-26 21:03: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-01-26 18:03:05' and `end` < '2025-01-26 21:03: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-01-26 21:03:18] Production.INFO: count ==3257 [2025-01-26 21:03:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:03:05 - End Time 2025-01-26 21:03:05 [2025-01-26 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336938', 'tblTempUsageDetail_20' ) start [2025-01-26 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336938', 'tblTempUsageDetail_20' ) end [2025-01-26 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336938', 'tblTempVendorCDR_20' ) start [2025-01-26 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336938', 'tblTempVendorCDR_20' ) end [2025-01-26 21:03:19] Production.INFO: ProcessCDR(1,14336938,1,1,2) [2025-01-26 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336938', 'tblTempUsageDetail_20' ) start [2025-01-26 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336938', 'tblTempUsageDetail_20' ) end [2025-01-26 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:03:22] Production.INFO: ==22837== Releasing lock... [2025-01-26 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:03:22] Production.INFO: 52.75 MB #Memory Used# [2025-01-26 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:04:05 [end_date_ymd] => 2025-01-26 21:04:05 [RateCDR] => 1 ) [2025-01-26 21:04: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-01-26 18:04:05' and `end` < '2025-01-26 21:04: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-01-26 21:04:19] Production.INFO: count ==3212 [2025-01-26 21:04:21] Production.ERROR: pbx CDR StartTime 2025-01-26 18:04:05 - End Time 2025-01-26 21:04:05 [2025-01-26 21:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336943', 'tblTempUsageDetail_20' ) start [2025-01-26 21:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336943', 'tblTempUsageDetail_20' ) end [2025-01-26 21:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336943', 'tblTempVendorCDR_20' ) start [2025-01-26 21:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336943', 'tblTempVendorCDR_20' ) end [2025-01-26 21:04:21] Production.INFO: ProcessCDR(1,14336943,1,1,2) [2025-01-26 21:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336943', 'tblTempUsageDetail_20' ) start [2025-01-26 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336943', 'tblTempUsageDetail_20' ) end [2025-01-26 21:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:04:24] Production.INFO: ==22913== Releasing lock... [2025-01-26 21:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:04:24] Production.INFO: 52.5 MB #Memory Used# [2025-01-26 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:05:05 [end_date_ymd] => 2025-01-26 21:05:05 [RateCDR] => 1 ) [2025-01-26 21:05: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-01-26 18:05:05' and `end` < '2025-01-26 21:05: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-01-26 21:05:17] Production.INFO: count ==3134 [2025-01-26 21:05:18] Production.ERROR: pbx CDR StartTime 2025-01-26 18:05:05 - End Time 2025-01-26 21:05:05 [2025-01-26 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336948', 'tblTempUsageDetail_20' ) start [2025-01-26 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336948', 'tblTempUsageDetail_20' ) end [2025-01-26 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336948', 'tblTempVendorCDR_20' ) start [2025-01-26 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336948', 'tblTempVendorCDR_20' ) end [2025-01-26 21:05:18] Production.INFO: ProcessCDR(1,14336948,1,1,2) [2025-01-26 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336948', 'tblTempUsageDetail_20' ) start [2025-01-26 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336948', 'tblTempUsageDetail_20' ) end [2025-01-26 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:05:21] Production.INFO: ==22985== Releasing lock... [2025-01-26 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:05:21] Production.INFO: 51.75 MB #Memory Used# [2025-01-26 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:06:05 [end_date_ymd] => 2025-01-26 21:06:05 [RateCDR] => 1 ) [2025-01-26 21:06: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-01-26 18:06:05' and `end` < '2025-01-26 21:06: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-01-26 21:06:19] Production.INFO: count ==3066 [2025-01-26 21:06:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:06:05 - End Time 2025-01-26 21:06:05 [2025-01-26 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336953', 'tblTempUsageDetail_20' ) start [2025-01-26 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336953', 'tblTempUsageDetail_20' ) end [2025-01-26 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336953', 'tblTempVendorCDR_20' ) start [2025-01-26 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336953', 'tblTempVendorCDR_20' ) end [2025-01-26 21:06:20] Production.INFO: ProcessCDR(1,14336953,1,1,2) [2025-01-26 21:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336953', 'tblTempUsageDetail_20' ) start [2025-01-26 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336953', 'tblTempUsageDetail_20' ) end [2025-01-26 21:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:06:24] Production.INFO: ==23056== Releasing lock... [2025-01-26 21:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:06:24] Production.INFO: 50.75 MB #Memory Used# [2025-01-26 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:07:05 [end_date_ymd] => 2025-01-26 21:07:05 [RateCDR] => 1 ) [2025-01-26 21:07: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-01-26 18:07:05' and `end` < '2025-01-26 21:07: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-01-26 21:07:19] Production.INFO: count ==2996 [2025-01-26 21:07:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:07:05 - End Time 2025-01-26 21:07:05 [2025-01-26 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336958', 'tblTempUsageDetail_20' ) start [2025-01-26 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336958', 'tblTempUsageDetail_20' ) end [2025-01-26 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336958', 'tblTempVendorCDR_20' ) start [2025-01-26 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336958', 'tblTempVendorCDR_20' ) end [2025-01-26 21:07:19] Production.INFO: ProcessCDR(1,14336958,1,1,2) [2025-01-26 21:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336958', 'tblTempUsageDetail_20' ) start [2025-01-26 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336958', 'tblTempUsageDetail_20' ) end [2025-01-26 21:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:07:23] Production.INFO: ==23129== Releasing lock... [2025-01-26 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:07:23] Production.INFO: 50.75 MB #Memory Used# [2025-01-26 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:08:05 [end_date_ymd] => 2025-01-26 21:08:05 [RateCDR] => 1 ) [2025-01-26 21:08: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-01-26 18:08:05' and `end` < '2025-01-26 21:08: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-01-26 21:08:18] Production.INFO: count ==2929 [2025-01-26 21:08:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:08:05 - End Time 2025-01-26 21:08:05 [2025-01-26 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336963', 'tblTempUsageDetail_20' ) start [2025-01-26 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336963', 'tblTempUsageDetail_20' ) end [2025-01-26 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336963', 'tblTempVendorCDR_20' ) start [2025-01-26 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336963', 'tblTempVendorCDR_20' ) end [2025-01-26 21:08:19] Production.INFO: ProcessCDR(1,14336963,1,1,2) [2025-01-26 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336963', 'tblTempUsageDetail_20' ) start [2025-01-26 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336963', 'tblTempUsageDetail_20' ) end [2025-01-26 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:08:23] Production.INFO: ==23211== Releasing lock... [2025-01-26 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:08:23] Production.INFO: 49.75 MB #Memory Used# [2025-01-26 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:09:05 [end_date_ymd] => 2025-01-26 21:09:05 [RateCDR] => 1 ) [2025-01-26 21:09: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-01-26 18:09:05' and `end` < '2025-01-26 21:09: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-01-26 21:09:18] Production.INFO: count ==2858 [2025-01-26 21:09:18] Production.ERROR: pbx CDR StartTime 2025-01-26 18:09:05 - End Time 2025-01-26 21:09:05 [2025-01-26 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336968', 'tblTempUsageDetail_20' ) start [2025-01-26 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336968', 'tblTempUsageDetail_20' ) end [2025-01-26 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336968', 'tblTempVendorCDR_20' ) start [2025-01-26 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336968', 'tblTempVendorCDR_20' ) end [2025-01-26 21:09:19] Production.INFO: ProcessCDR(1,14336968,1,1,2) [2025-01-26 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336968', 'tblTempUsageDetail_20' ) start [2025-01-26 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336968', 'tblTempUsageDetail_20' ) end [2025-01-26 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:09:22] Production.INFO: ==23283== Releasing lock... [2025-01-26 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:09:22] Production.INFO: 49.25 MB #Memory Used# [2025-01-26 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:10:06 [end_date_ymd] => 2025-01-26 21:10:06 [RateCDR] => 1 ) [2025-01-26 21:10: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-01-26 18:10:06' and `end` < '2025-01-26 21:10: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-01-26 21:10:19] Production.INFO: count ==2801 [2025-01-26 21:10:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:10:06 - End Time 2025-01-26 21:10:06 [2025-01-26 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336974', 'tblTempUsageDetail_20' ) start [2025-01-26 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336974', 'tblTempUsageDetail_20' ) end [2025-01-26 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336974', 'tblTempVendorCDR_20' ) start [2025-01-26 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336974', 'tblTempVendorCDR_20' ) end [2025-01-26 21:10:19] Production.INFO: ProcessCDR(1,14336974,1,1,2) [2025-01-26 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336974', 'tblTempUsageDetail_20' ) start [2025-01-26 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336974', 'tblTempUsageDetail_20' ) end [2025-01-26 21:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:10:24] Production.INFO: ==23355== Releasing lock... [2025-01-26 21:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:10:24] Production.INFO: 48.75 MB #Memory Used# [2025-01-26 21:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:11:06 [end_date_ymd] => 2025-01-26 21:11:06 [RateCDR] => 1 ) [2025-01-26 21:11: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-01-26 18:11:06' and `end` < '2025-01-26 21:11: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-01-26 21:11:19] Production.INFO: count ==2737 [2025-01-26 21:11:20] Production.ERROR: pbx CDR StartTime 2025-01-26 18:11:06 - End Time 2025-01-26 21:11:06 [2025-01-26 21:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336979', 'tblTempUsageDetail_20' ) start [2025-01-26 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336979', 'tblTempUsageDetail_20' ) end [2025-01-26 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336979', 'tblTempVendorCDR_20' ) start [2025-01-26 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336979', 'tblTempVendorCDR_20' ) end [2025-01-26 21:11:20] Production.INFO: ProcessCDR(1,14336979,1,1,2) [2025-01-26 21:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336979', 'tblTempUsageDetail_20' ) start [2025-01-26 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336979', 'tblTempUsageDetail_20' ) end [2025-01-26 21:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:11:23] Production.INFO: ==23471== Releasing lock... [2025-01-26 21:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:11:23] Production.INFO: 48.5 MB #Memory Used# [2025-01-26 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:12:05 [end_date_ymd] => 2025-01-26 21:12:05 [RateCDR] => 1 ) [2025-01-26 21:12: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-01-26 18:12:05' and `end` < '2025-01-26 21:12: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-01-26 21:12:19] Production.INFO: count ==2704 [2025-01-26 21:12:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:12:05 - End Time 2025-01-26 21:12:05 [2025-01-26 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336984', 'tblTempUsageDetail_20' ) start [2025-01-26 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336984', 'tblTempUsageDetail_20' ) end [2025-01-26 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336984', 'tblTempVendorCDR_20' ) start [2025-01-26 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336984', 'tblTempVendorCDR_20' ) end [2025-01-26 21:12:19] Production.INFO: ProcessCDR(1,14336984,1,1,2) [2025-01-26 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336984', 'tblTempUsageDetail_20' ) start [2025-01-26 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336984', 'tblTempUsageDetail_20' ) end [2025-01-26 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:12:23] Production.INFO: ==23544== Releasing lock... [2025-01-26 21:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:12:23] Production.INFO: 48.25 MB #Memory Used# [2025-01-26 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:13:05 [end_date_ymd] => 2025-01-26 21:13:05 [RateCDR] => 1 ) [2025-01-26 21:13: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-01-26 18:13:05' and `end` < '2025-01-26 21:13: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-01-26 21:13:20] Production.INFO: count ==2664 [2025-01-26 21:13:20] Production.ERROR: pbx CDR StartTime 2025-01-26 18:13:05 - End Time 2025-01-26 21:13:05 [2025-01-26 21:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336989', 'tblTempUsageDetail_20' ) start [2025-01-26 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336989', 'tblTempUsageDetail_20' ) end [2025-01-26 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336989', 'tblTempVendorCDR_20' ) start [2025-01-26 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336989', 'tblTempVendorCDR_20' ) end [2025-01-26 21:13:20] Production.INFO: ProcessCDR(1,14336989,1,1,2) [2025-01-26 21:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336989', 'tblTempUsageDetail_20' ) start [2025-01-26 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336989', 'tblTempUsageDetail_20' ) end [2025-01-26 21:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:13:24] Production.INFO: ==23616== Releasing lock... [2025-01-26 21:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:13:24] Production.INFO: 48 MB #Memory Used# [2025-01-26 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:14:05 [end_date_ymd] => 2025-01-26 21:14:05 [RateCDR] => 1 ) [2025-01-26 21:14: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-01-26 18:14:05' and `end` < '2025-01-26 21:14: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-01-26 21:14:18] Production.INFO: count ==2626 [2025-01-26 21:14:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:14:05 - End Time 2025-01-26 21:14:05 [2025-01-26 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336994', 'tblTempUsageDetail_20' ) start [2025-01-26 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336994', 'tblTempUsageDetail_20' ) end [2025-01-26 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336994', 'tblTempVendorCDR_20' ) start [2025-01-26 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336994', 'tblTempVendorCDR_20' ) end [2025-01-26 21:14:19] Production.INFO: ProcessCDR(1,14336994,1,1,2) [2025-01-26 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336994', 'tblTempUsageDetail_20' ) start [2025-01-26 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336994', 'tblTempUsageDetail_20' ) end [2025-01-26 21:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:14:24] Production.INFO: ==23688== Releasing lock... [2025-01-26 21:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:14:24] Production.INFO: 47.75 MB #Memory Used# [2025-01-26 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:15:05 [end_date_ymd] => 2025-01-26 21:15:05 [RateCDR] => 1 ) [2025-01-26 21:15: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-01-26 18:15:05' and `end` < '2025-01-26 21:15: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-01-26 21:15:18] Production.INFO: count ==2612 [2025-01-26 21:15:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:15:05 - End Time 2025-01-26 21:15:05 [2025-01-26 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336999', 'tblTempUsageDetail_20' ) start [2025-01-26 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14336999', 'tblTempUsageDetail_20' ) end [2025-01-26 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336999', 'tblTempVendorCDR_20' ) start [2025-01-26 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14336999', 'tblTempVendorCDR_20' ) end [2025-01-26 21:15:19] Production.INFO: ProcessCDR(1,14336999,1,1,2) [2025-01-26 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14336999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14336999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14336999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14336999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336999', 'tblTempUsageDetail_20' ) start [2025-01-26 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14336999', 'tblTempUsageDetail_20' ) end [2025-01-26 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:15:22] Production.INFO: ==23763== Releasing lock... [2025-01-26 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:15:22] Production.INFO: 47.75 MB #Memory Used# [2025-01-26 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:16:05 [end_date_ymd] => 2025-01-26 21:16:05 [RateCDR] => 1 ) [2025-01-26 21:16: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-01-26 18:16:05' and `end` < '2025-01-26 21:16: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-01-26 21:16:18] Production.INFO: count ==2611 [2025-01-26 21:16:18] Production.ERROR: pbx CDR StartTime 2025-01-26 18:16:05 - End Time 2025-01-26 21:16:05 [2025-01-26 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337004', 'tblTempUsageDetail_20' ) start [2025-01-26 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337004', 'tblTempUsageDetail_20' ) end [2025-01-26 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337004', 'tblTempVendorCDR_20' ) start [2025-01-26 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337004', 'tblTempVendorCDR_20' ) end [2025-01-26 21:16:19] Production.INFO: ProcessCDR(1,14337004,1,1,2) [2025-01-26 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337004', 'tblTempUsageDetail_20' ) start [2025-01-26 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337004', 'tblTempUsageDetail_20' ) end [2025-01-26 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:16:22] Production.INFO: ==23836== Releasing lock... [2025-01-26 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:16:22] Production.INFO: 47.5 MB #Memory Used# [2025-01-26 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:17:05 [end_date_ymd] => 2025-01-26 21:17:05 [RateCDR] => 1 ) [2025-01-26 21:17: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-01-26 18:17:05' and `end` < '2025-01-26 21:17: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-01-26 21:17:19] Production.INFO: count ==2612 [2025-01-26 21:17:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:17:05 - End Time 2025-01-26 21:17:05 [2025-01-26 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337009', 'tblTempUsageDetail_20' ) start [2025-01-26 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337009', 'tblTempUsageDetail_20' ) end [2025-01-26 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337009', 'tblTempVendorCDR_20' ) start [2025-01-26 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337009', 'tblTempVendorCDR_20' ) end [2025-01-26 21:17:19] Production.INFO: ProcessCDR(1,14337009,1,1,2) [2025-01-26 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337009', 'tblTempUsageDetail_20' ) start [2025-01-26 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337009', 'tblTempUsageDetail_20' ) end [2025-01-26 21:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:17:24] Production.INFO: ==23907== Releasing lock... [2025-01-26 21:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:17:24] Production.INFO: 47.75 MB #Memory Used# [2025-01-26 21:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:18:04 [end_date_ymd] => 2025-01-26 21:18:04 [RateCDR] => 1 ) [2025-01-26 21:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 18:18:04' and `end` < '2025-01-26 21:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 21:18:17] Production.INFO: count ==2612 [2025-01-26 21:18:18] Production.ERROR: pbx CDR StartTime 2025-01-26 18:18:04 - End Time 2025-01-26 21:18:04 [2025-01-26 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337014', 'tblTempUsageDetail_20' ) start [2025-01-26 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337014', 'tblTempUsageDetail_20' ) end [2025-01-26 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337014', 'tblTempVendorCDR_20' ) start [2025-01-26 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337014', 'tblTempVendorCDR_20' ) end [2025-01-26 21:18:18] Production.INFO: ProcessCDR(1,14337014,1,1,2) [2025-01-26 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337014', 'tblTempUsageDetail_20' ) start [2025-01-26 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337014', 'tblTempUsageDetail_20' ) end [2025-01-26 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:18:21] Production.INFO: ==23989== Releasing lock... [2025-01-26 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:18:21] Production.INFO: 47.75 MB #Memory Used# [2025-01-26 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:19:05 [end_date_ymd] => 2025-01-26 21:19:05 [RateCDR] => 1 ) [2025-01-26 21:19: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-01-26 18:19:05' and `end` < '2025-01-26 21:19: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-01-26 21:19:19] Production.INFO: count ==2618 [2025-01-26 21:19:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:19:05 - End Time 2025-01-26 21:19:05 [2025-01-26 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337019', 'tblTempUsageDetail_20' ) start [2025-01-26 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337019', 'tblTempUsageDetail_20' ) end [2025-01-26 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337019', 'tblTempVendorCDR_20' ) start [2025-01-26 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337019', 'tblTempVendorCDR_20' ) end [2025-01-26 21:19:19] Production.INFO: ProcessCDR(1,14337019,1,1,2) [2025-01-26 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337019', 'tblTempUsageDetail_20' ) start [2025-01-26 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337019', 'tblTempUsageDetail_20' ) end [2025-01-26 21:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:19:23] Production.INFO: ==24067== Releasing lock... [2025-01-26 21:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:19:23] Production.INFO: 47.75 MB #Memory Used# [2025-01-26 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:20:06 [end_date_ymd] => 2025-01-26 21:20:06 [RateCDR] => 1 ) [2025-01-26 21:20: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-01-26 18:20:06' and `end` < '2025-01-26 21:20: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-01-26 21:20:19] Production.INFO: count ==2620 [2025-01-26 21:20:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:20:06 - End Time 2025-01-26 21:20:06 [2025-01-26 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337025', 'tblTempUsageDetail_20' ) start [2025-01-26 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337025', 'tblTempUsageDetail_20' ) end [2025-01-26 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337025', 'tblTempVendorCDR_20' ) start [2025-01-26 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337025', 'tblTempVendorCDR_20' ) end [2025-01-26 21:20:19] Production.INFO: ProcessCDR(1,14337025,1,1,2) [2025-01-26 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337025', 'tblTempUsageDetail_20' ) start [2025-01-26 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337025', 'tblTempUsageDetail_20' ) end [2025-01-26 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:20:22] Production.INFO: ==24144== Releasing lock... [2025-01-26 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:20:22] Production.INFO: 47.75 MB #Memory Used# [2025-01-26 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:21:05 [end_date_ymd] => 2025-01-26 21:21:05 [RateCDR] => 1 ) [2025-01-26 21:21: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-01-26 18:21:05' and `end` < '2025-01-26 21:21: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-01-26 21:21:17] Production.INFO: count ==2528 [2025-01-26 21:21:18] Production.ERROR: pbx CDR StartTime 2025-01-26 18:21:05 - End Time 2025-01-26 21:21:05 [2025-01-26 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337030', 'tblTempUsageDetail_20' ) start [2025-01-26 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337030', 'tblTempUsageDetail_20' ) end [2025-01-26 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337030', 'tblTempVendorCDR_20' ) start [2025-01-26 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337030', 'tblTempVendorCDR_20' ) end [2025-01-26 21:21:18] Production.INFO: ProcessCDR(1,14337030,1,1,2) [2025-01-26 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337030', 'tblTempUsageDetail_20' ) start [2025-01-26 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337030', 'tblTempUsageDetail_20' ) end [2025-01-26 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:21:21] Production.INFO: ==24218== Releasing lock... [2025-01-26 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:21:21] Production.INFO: 47 MB #Memory Used# [2025-01-26 21:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:22:06 [end_date_ymd] => 2025-01-26 21:22:06 [RateCDR] => 1 ) [2025-01-26 21:22: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-01-26 18:22:06' and `end` < '2025-01-26 21:22: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-01-26 21:22:19] Production.INFO: count ==2526 [2025-01-26 21:22:20] Production.ERROR: pbx CDR StartTime 2025-01-26 18:22:06 - End Time 2025-01-26 21:22:06 [2025-01-26 21:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337035', 'tblTempUsageDetail_20' ) start [2025-01-26 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337035', 'tblTempUsageDetail_20' ) end [2025-01-26 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337035', 'tblTempVendorCDR_20' ) start [2025-01-26 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337035', 'tblTempVendorCDR_20' ) end [2025-01-26 21:22:20] Production.INFO: ProcessCDR(1,14337035,1,1,2) [2025-01-26 21:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337035', 'tblTempUsageDetail_20' ) start [2025-01-26 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337035', 'tblTempUsageDetail_20' ) end [2025-01-26 21:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:22:23] Production.INFO: ==24292== Releasing lock... [2025-01-26 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:22:23] Production.INFO: 47 MB #Memory Used# [2025-01-26 21:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:23:04 [end_date_ymd] => 2025-01-26 21:23:04 [RateCDR] => 1 ) [2025-01-26 21:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 18:23:04' and `end` < '2025-01-26 21:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 21:23:17] Production.INFO: count ==2527 [2025-01-26 21:23:18] Production.ERROR: pbx CDR StartTime 2025-01-26 18:23:04 - End Time 2025-01-26 21:23:04 [2025-01-26 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337040', 'tblTempUsageDetail_20' ) start [2025-01-26 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337040', 'tblTempUsageDetail_20' ) end [2025-01-26 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337040', 'tblTempVendorCDR_20' ) start [2025-01-26 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337040', 'tblTempVendorCDR_20' ) end [2025-01-26 21:23:18] Production.INFO: ProcessCDR(1,14337040,1,1,2) [2025-01-26 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337040', 'tblTempUsageDetail_20' ) start [2025-01-26 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337040', 'tblTempUsageDetail_20' ) end [2025-01-26 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:23:22] Production.INFO: ==24368== Releasing lock... [2025-01-26 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:23:22] Production.INFO: 47 MB #Memory Used# [2025-01-26 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:24:05 [end_date_ymd] => 2025-01-26 21:24:05 [RateCDR] => 1 ) [2025-01-26 21:24: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-01-26 18:24:05' and `end` < '2025-01-26 21:24: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-01-26 21:24:18] Production.INFO: count ==2528 [2025-01-26 21:24:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:24:05 - End Time 2025-01-26 21:24:05 [2025-01-26 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337045', 'tblTempUsageDetail_20' ) start [2025-01-26 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337045', 'tblTempUsageDetail_20' ) end [2025-01-26 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337045', 'tblTempVendorCDR_20' ) start [2025-01-26 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337045', 'tblTempVendorCDR_20' ) end [2025-01-26 21:24:19] Production.INFO: ProcessCDR(1,14337045,1,1,2) [2025-01-26 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337045', 'tblTempUsageDetail_20' ) start [2025-01-26 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337045', 'tblTempUsageDetail_20' ) end [2025-01-26 21:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:24:23] Production.INFO: ==24442== Releasing lock... [2025-01-26 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:24:23] Production.INFO: 47 MB #Memory Used# [2025-01-26 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:25:05 [end_date_ymd] => 2025-01-26 21:25:05 [RateCDR] => 1 ) [2025-01-26 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 18:25:05' and `end` < '2025-01-26 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 21:25:17] Production.INFO: count ==2525 [2025-01-26 21:25:18] Production.ERROR: pbx CDR StartTime 2025-01-26 18:25:05 - End Time 2025-01-26 21:25:05 [2025-01-26 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337050', 'tblTempUsageDetail_20' ) start [2025-01-26 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337050', 'tblTempUsageDetail_20' ) end [2025-01-26 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337050', 'tblTempVendorCDR_20' ) start [2025-01-26 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337050', 'tblTempVendorCDR_20' ) end [2025-01-26 21:25:18] Production.INFO: ProcessCDR(1,14337050,1,1,2) [2025-01-26 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337050', 'tblTempUsageDetail_20' ) start [2025-01-26 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337050', 'tblTempUsageDetail_20' ) end [2025-01-26 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:25:21] Production.INFO: ==24513== Releasing lock... [2025-01-26 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:25:21] Production.INFO: 47 MB #Memory Used# [2025-01-26 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:26:05 [end_date_ymd] => 2025-01-26 21:26:05 [RateCDR] => 1 ) [2025-01-26 21:26: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-01-26 18:26:05' and `end` < '2025-01-26 21:26: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-01-26 21:26:18] Production.INFO: count ==2525 [2025-01-26 21:26:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:26:05 - End Time 2025-01-26 21:26:05 [2025-01-26 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337055', 'tblTempUsageDetail_20' ) start [2025-01-26 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337055', 'tblTempUsageDetail_20' ) end [2025-01-26 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337055', 'tblTempVendorCDR_20' ) start [2025-01-26 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337055', 'tblTempVendorCDR_20' ) end [2025-01-26 21:26:19] Production.INFO: ProcessCDR(1,14337055,1,1,2) [2025-01-26 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337055', 'tblTempUsageDetail_20' ) start [2025-01-26 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337055', 'tblTempUsageDetail_20' ) end [2025-01-26 21:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:26:23] Production.INFO: ==24628== Releasing lock... [2025-01-26 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:26:23] Production.INFO: 47 MB #Memory Used# [2025-01-26 21:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:27:04 [end_date_ymd] => 2025-01-26 21:27:04 [RateCDR] => 1 ) [2025-01-26 21:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 18:27:04' and `end` < '2025-01-26 21:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 21:27:17] Production.INFO: count ==2520 [2025-01-26 21:27:18] Production.ERROR: pbx CDR StartTime 2025-01-26 18:27:04 - End Time 2025-01-26 21:27:04 [2025-01-26 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337060', 'tblTempUsageDetail_20' ) start [2025-01-26 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337060', 'tblTempUsageDetail_20' ) end [2025-01-26 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337060', 'tblTempVendorCDR_20' ) start [2025-01-26 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337060', 'tblTempVendorCDR_20' ) end [2025-01-26 21:27:18] Production.INFO: ProcessCDR(1,14337060,1,1,2) [2025-01-26 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337060', 'tblTempUsageDetail_20' ) start [2025-01-26 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337060', 'tblTempUsageDetail_20' ) end [2025-01-26 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:27:21] Production.INFO: ==24697== Releasing lock... [2025-01-26 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:27:21] Production.INFO: 47 MB #Memory Used# [2025-01-26 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:28:05 [end_date_ymd] => 2025-01-26 21:28:05 [RateCDR] => 1 ) [2025-01-26 21:28: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-01-26 18:28:05' and `end` < '2025-01-26 21:28: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-01-26 21:28:18] Production.INFO: count ==2520 [2025-01-26 21:28:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:28:05 - End Time 2025-01-26 21:28:05 [2025-01-26 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337065', 'tblTempUsageDetail_20' ) start [2025-01-26 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337065', 'tblTempUsageDetail_20' ) end [2025-01-26 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337065', 'tblTempVendorCDR_20' ) start [2025-01-26 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337065', 'tblTempVendorCDR_20' ) end [2025-01-26 21:28:19] Production.INFO: ProcessCDR(1,14337065,1,1,2) [2025-01-26 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337065', 'tblTempUsageDetail_20' ) start [2025-01-26 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337065', 'tblTempUsageDetail_20' ) end [2025-01-26 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:28:22] Production.INFO: ==24772== Releasing lock... [2025-01-26 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:28:22] Production.INFO: 47 MB #Memory Used# [2025-01-26 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:29:05 [end_date_ymd] => 2025-01-26 21:29:05 [RateCDR] => 1 ) [2025-01-26 21:29: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-01-26 18:29:05' and `end` < '2025-01-26 21:29: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-01-26 21:29:18] Production.INFO: count ==2524 [2025-01-26 21:29:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:29:05 - End Time 2025-01-26 21:29:05 [2025-01-26 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337070', 'tblTempUsageDetail_20' ) start [2025-01-26 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337070', 'tblTempUsageDetail_20' ) end [2025-01-26 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337070', 'tblTempVendorCDR_20' ) start [2025-01-26 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337070', 'tblTempVendorCDR_20' ) end [2025-01-26 21:29:19] Production.INFO: ProcessCDR(1,14337070,1,1,2) [2025-01-26 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337070', 'tblTempUsageDetail_20' ) start [2025-01-26 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337070', 'tblTempUsageDetail_20' ) end [2025-01-26 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:29:22] Production.INFO: ==24846== Releasing lock... [2025-01-26 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:29:22] Production.INFO: 47 MB #Memory Used# [2025-01-26 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:30:06 [end_date_ymd] => 2025-01-26 21:30:06 [RateCDR] => 1 ) [2025-01-26 21:30: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-01-26 18:30:06' and `end` < '2025-01-26 21:30: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-01-26 21:30:18] Production.INFO: count ==2526 [2025-01-26 21:30:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:30:06 - End Time 2025-01-26 21:30:06 [2025-01-26 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337076', 'tblTempUsageDetail_20' ) start [2025-01-26 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337076', 'tblTempUsageDetail_20' ) end [2025-01-26 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337076', 'tblTempVendorCDR_20' ) start [2025-01-26 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337076', 'tblTempVendorCDR_20' ) end [2025-01-26 21:30:19] Production.INFO: ProcessCDR(1,14337076,1,1,2) [2025-01-26 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337076', 'tblTempUsageDetail_20' ) start [2025-01-26 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337076', 'tblTempUsageDetail_20' ) end [2025-01-26 21:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:30:24] Production.INFO: ==24925== Releasing lock... [2025-01-26 21:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:30:24] Production.INFO: 47 MB #Memory Used# [2025-01-26 21:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:31:06 [end_date_ymd] => 2025-01-26 21:31:06 [RateCDR] => 1 ) [2025-01-26 21:31: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-01-26 18:31:06' and `end` < '2025-01-26 21:31: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-01-26 21:31:18] Production.INFO: count ==2483 [2025-01-26 21:31:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:31:06 - End Time 2025-01-26 21:31:06 [2025-01-26 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337081', 'tblTempUsageDetail_20' ) start [2025-01-26 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337081', 'tblTempUsageDetail_20' ) end [2025-01-26 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337081', 'tblTempVendorCDR_20' ) start [2025-01-26 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337081', 'tblTempVendorCDR_20' ) end [2025-01-26 21:31:19] Production.INFO: ProcessCDR(1,14337081,1,1,2) [2025-01-26 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337081', 'tblTempUsageDetail_20' ) start [2025-01-26 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337081', 'tblTempUsageDetail_20' ) end [2025-01-26 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:31:23] Production.INFO: ==24999== Releasing lock... [2025-01-26 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:31:23] Production.INFO: 47 MB #Memory Used# [2025-01-26 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:32:05 [end_date_ymd] => 2025-01-26 21:32:05 [RateCDR] => 1 ) [2025-01-26 21:32: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-01-26 18:32:05' and `end` < '2025-01-26 21:32: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-01-26 21:32:18] Production.INFO: count ==2484 [2025-01-26 21:32:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:32:05 - End Time 2025-01-26 21:32:05 [2025-01-26 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337086', 'tblTempUsageDetail_20' ) start [2025-01-26 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337086', 'tblTempUsageDetail_20' ) end [2025-01-26 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337086', 'tblTempVendorCDR_20' ) start [2025-01-26 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337086', 'tblTempVendorCDR_20' ) end [2025-01-26 21:32:19] Production.INFO: ProcessCDR(1,14337086,1,1,2) [2025-01-26 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337086', 'tblTempUsageDetail_20' ) start [2025-01-26 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337086', 'tblTempUsageDetail_20' ) end [2025-01-26 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:32:23] Production.INFO: ==25071== Releasing lock... [2025-01-26 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:32:23] Production.INFO: 46.75 MB #Memory Used# [2025-01-26 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:33:05 [end_date_ymd] => 2025-01-26 21:33:05 [RateCDR] => 1 ) [2025-01-26 21:33: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-01-26 18:33:05' and `end` < '2025-01-26 21:33: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-01-26 21:33:19] Production.INFO: count ==2483 [2025-01-26 21:33:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:33:05 - End Time 2025-01-26 21:33:05 [2025-01-26 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337091', 'tblTempUsageDetail_20' ) start [2025-01-26 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337091', 'tblTempUsageDetail_20' ) end [2025-01-26 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337091', 'tblTempVendorCDR_20' ) start [2025-01-26 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337091', 'tblTempVendorCDR_20' ) end [2025-01-26 21:33:19] Production.INFO: ProcessCDR(1,14337091,1,1,2) [2025-01-26 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337091', 'tblTempUsageDetail_20' ) start [2025-01-26 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337091', 'tblTempUsageDetail_20' ) end [2025-01-26 21:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:33:23] Production.INFO: ==25148== Releasing lock... [2025-01-26 21:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:33:23] Production.INFO: 46.75 MB #Memory Used# [2025-01-26 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:34:05 [end_date_ymd] => 2025-01-26 21:34:05 [RateCDR] => 1 ) [2025-01-26 21:34: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-01-26 18:34:05' and `end` < '2025-01-26 21:34: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-01-26 21:34:18] Production.INFO: count ==2481 [2025-01-26 21:34:18] Production.ERROR: pbx CDR StartTime 2025-01-26 18:34:05 - End Time 2025-01-26 21:34:05 [2025-01-26 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337096', 'tblTempUsageDetail_20' ) start [2025-01-26 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337096', 'tblTempUsageDetail_20' ) end [2025-01-26 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337096', 'tblTempVendorCDR_20' ) start [2025-01-26 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337096', 'tblTempVendorCDR_20' ) end [2025-01-26 21:34:18] Production.INFO: ProcessCDR(1,14337096,1,1,2) [2025-01-26 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337096', 'tblTempUsageDetail_20' ) start [2025-01-26 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337096', 'tblTempUsageDetail_20' ) end [2025-01-26 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:34:21] Production.INFO: ==25220== Releasing lock... [2025-01-26 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:34:21] Production.INFO: 46.75 MB #Memory Used# [2025-01-26 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:35:05 [end_date_ymd] => 2025-01-26 21:35:05 [RateCDR] => 1 ) [2025-01-26 21:35: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-01-26 18:35:05' and `end` < '2025-01-26 21:35: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-01-26 21:35:18] Production.INFO: count ==2476 [2025-01-26 21:35:18] Production.ERROR: pbx CDR StartTime 2025-01-26 18:35:05 - End Time 2025-01-26 21:35:05 [2025-01-26 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337101', 'tblTempUsageDetail_20' ) start [2025-01-26 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337101', 'tblTempUsageDetail_20' ) end [2025-01-26 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337101', 'tblTempVendorCDR_20' ) start [2025-01-26 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337101', 'tblTempVendorCDR_20' ) end [2025-01-26 21:35:18] Production.INFO: ProcessCDR(1,14337101,1,1,2) [2025-01-26 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337101', 'tblTempUsageDetail_20' ) start [2025-01-26 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337101', 'tblTempUsageDetail_20' ) end [2025-01-26 21:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:35:23] Production.INFO: ==25296== Releasing lock... [2025-01-26 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:35:23] Production.INFO: 46.5 MB #Memory Used# [2025-01-26 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:36:05 [end_date_ymd] => 2025-01-26 21:36:05 [RateCDR] => 1 ) [2025-01-26 21:36: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-01-26 18:36:05' and `end` < '2025-01-26 21:36: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-01-26 21:36:19] Production.INFO: count ==2473 [2025-01-26 21:36:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:36:05 - End Time 2025-01-26 21:36:05 [2025-01-26 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337106', 'tblTempUsageDetail_20' ) start [2025-01-26 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337106', 'tblTempUsageDetail_20' ) end [2025-01-26 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337106', 'tblTempVendorCDR_20' ) start [2025-01-26 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337106', 'tblTempVendorCDR_20' ) end [2025-01-26 21:36:19] Production.INFO: ProcessCDR(1,14337106,1,1,2) [2025-01-26 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337106', 'tblTempUsageDetail_20' ) start [2025-01-26 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337106', 'tblTempUsageDetail_20' ) end [2025-01-26 21:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:36:23] Production.INFO: ==25371== Releasing lock... [2025-01-26 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:36:23] Production.INFO: 46.5 MB #Memory Used# [2025-01-26 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:37:05 [end_date_ymd] => 2025-01-26 21:37:05 [RateCDR] => 1 ) [2025-01-26 21:37: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-01-26 18:37:05' and `end` < '2025-01-26 21:37: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-01-26 21:37:18] Production.INFO: count ==2471 [2025-01-26 21:37:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:37:05 - End Time 2025-01-26 21:37:05 [2025-01-26 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337111', 'tblTempUsageDetail_20' ) start [2025-01-26 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337111', 'tblTempUsageDetail_20' ) end [2025-01-26 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337111', 'tblTempVendorCDR_20' ) start [2025-01-26 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337111', 'tblTempVendorCDR_20' ) end [2025-01-26 21:37:19] Production.INFO: ProcessCDR(1,14337111,1,1,2) [2025-01-26 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337111', 'tblTempUsageDetail_20' ) start [2025-01-26 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337111', 'tblTempUsageDetail_20' ) end [2025-01-26 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:37:22] Production.INFO: ==25444== Releasing lock... [2025-01-26 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:37:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-26 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:38:05 [end_date_ymd] => 2025-01-26 21:38:05 [RateCDR] => 1 ) [2025-01-26 21:38: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-01-26 18:38:05' and `end` < '2025-01-26 21:38: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-01-26 21:38:18] Production.INFO: count ==2472 [2025-01-26 21:38:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:38:05 - End Time 2025-01-26 21:38:05 [2025-01-26 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337116', 'tblTempUsageDetail_20' ) start [2025-01-26 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337116', 'tblTempUsageDetail_20' ) end [2025-01-26 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337116', 'tblTempVendorCDR_20' ) start [2025-01-26 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337116', 'tblTempVendorCDR_20' ) end [2025-01-26 21:38:19] Production.INFO: ProcessCDR(1,14337116,1,1,2) [2025-01-26 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337116', 'tblTempUsageDetail_20' ) start [2025-01-26 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337116', 'tblTempUsageDetail_20' ) end [2025-01-26 21:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:38:23] Production.INFO: ==25527== Releasing lock... [2025-01-26 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:38:23] Production.INFO: 46.5 MB #Memory Used# [2025-01-26 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:39:05 [end_date_ymd] => 2025-01-26 21:39:05 [RateCDR] => 1 ) [2025-01-26 21:39: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-01-26 18:39:05' and `end` < '2025-01-26 21:39: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-01-26 21:39:18] Production.INFO: count ==2466 [2025-01-26 21:39:18] Production.ERROR: pbx CDR StartTime 2025-01-26 18:39:05 - End Time 2025-01-26 21:39:05 [2025-01-26 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337121', 'tblTempUsageDetail_20' ) start [2025-01-26 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337121', 'tblTempUsageDetail_20' ) end [2025-01-26 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337121', 'tblTempVendorCDR_20' ) start [2025-01-26 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337121', 'tblTempVendorCDR_20' ) end [2025-01-26 21:39:18] Production.INFO: ProcessCDR(1,14337121,1,1,2) [2025-01-26 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337121', 'tblTempUsageDetail_20' ) start [2025-01-26 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337121', 'tblTempUsageDetail_20' ) end [2025-01-26 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:39:21] Production.INFO: ==25600== Releasing lock... [2025-01-26 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:39:21] Production.INFO: 46.5 MB #Memory Used# [2025-01-26 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:40:05 [end_date_ymd] => 2025-01-26 21:40:05 [RateCDR] => 1 ) [2025-01-26 21:40: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-01-26 18:40:05' and `end` < '2025-01-26 21:40: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-01-26 21:40:18] Production.INFO: count ==2460 [2025-01-26 21:40:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:40:05 - End Time 2025-01-26 21:40:05 [2025-01-26 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337126', 'tblTempUsageDetail_20' ) start [2025-01-26 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337126', 'tblTempUsageDetail_20' ) end [2025-01-26 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337126', 'tblTempVendorCDR_20' ) start [2025-01-26 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337126', 'tblTempVendorCDR_20' ) end [2025-01-26 21:40:19] Production.INFO: ProcessCDR(1,14337126,1,1,2) [2025-01-26 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337126', 'tblTempUsageDetail_20' ) start [2025-01-26 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337126', 'tblTempUsageDetail_20' ) end [2025-01-26 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:40:22] Production.INFO: ==25676== Releasing lock... [2025-01-26 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:40:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-26 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:41:05 [end_date_ymd] => 2025-01-26 21:41:05 [RateCDR] => 1 ) [2025-01-26 21:41: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-01-26 18:41:05' and `end` < '2025-01-26 21:41: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-01-26 21:41:18] Production.INFO: count ==2382 [2025-01-26 21:41:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:41:05 - End Time 2025-01-26 21:41:05 [2025-01-26 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337132', 'tblTempUsageDetail_20' ) start [2025-01-26 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337132', 'tblTempUsageDetail_20' ) end [2025-01-26 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337132', 'tblTempVendorCDR_20' ) start [2025-01-26 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337132', 'tblTempVendorCDR_20' ) end [2025-01-26 21:41:19] Production.INFO: ProcessCDR(1,14337132,1,1,2) [2025-01-26 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337132', 'tblTempUsageDetail_20' ) start [2025-01-26 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337132', 'tblTempUsageDetail_20' ) end [2025-01-26 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:41:22] Production.INFO: ==25750== Releasing lock... [2025-01-26 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:41:22] Production.INFO: 46.25 MB #Memory Used# [2025-01-26 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:42:05 [end_date_ymd] => 2025-01-26 21:42:05 [RateCDR] => 1 ) [2025-01-26 21:42: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-01-26 18:42:05' and `end` < '2025-01-26 21:42: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-01-26 21:42:18] Production.INFO: count ==2378 [2025-01-26 21:42:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:42:05 - End Time 2025-01-26 21:42:05 [2025-01-26 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337137', 'tblTempUsageDetail_20' ) start [2025-01-26 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337137', 'tblTempUsageDetail_20' ) end [2025-01-26 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337137', 'tblTempVendorCDR_20' ) start [2025-01-26 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337137', 'tblTempVendorCDR_20' ) end [2025-01-26 21:42:19] Production.INFO: ProcessCDR(1,14337137,1,1,2) [2025-01-26 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337137', 'tblTempUsageDetail_20' ) start [2025-01-26 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337137', 'tblTempUsageDetail_20' ) end [2025-01-26 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:42:22] Production.INFO: ==25859== Releasing lock... [2025-01-26 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:42:22] Production.INFO: 46.25 MB #Memory Used# [2025-01-26 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:43:06 [end_date_ymd] => 2025-01-26 21:43:06 [RateCDR] => 1 ) [2025-01-26 21:43: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-01-26 18:43:06' and `end` < '2025-01-26 21:43: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-01-26 21:43:19] Production.INFO: count ==2368 [2025-01-26 21:43:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:43:06 - End Time 2025-01-26 21:43:06 [2025-01-26 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337142', 'tblTempUsageDetail_20' ) start [2025-01-26 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337142', 'tblTempUsageDetail_20' ) end [2025-01-26 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337142', 'tblTempVendorCDR_20' ) start [2025-01-26 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337142', 'tblTempVendorCDR_20' ) end [2025-01-26 21:43:19] Production.INFO: ProcessCDR(1,14337142,1,1,2) [2025-01-26 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337142', 'tblTempUsageDetail_20' ) start [2025-01-26 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337142', 'tblTempUsageDetail_20' ) end [2025-01-26 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:43:23] Production.INFO: ==25934== Releasing lock... [2025-01-26 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:43:23] Production.INFO: 45.75 MB #Memory Used# [2025-01-26 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:44:05 [end_date_ymd] => 2025-01-26 21:44:05 [RateCDR] => 1 ) [2025-01-26 21:44: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-01-26 18:44:05' and `end` < '2025-01-26 21:44: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-01-26 21:44:18] Production.INFO: count ==2362 [2025-01-26 21:44:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:44:05 - End Time 2025-01-26 21:44:05 [2025-01-26 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337147', 'tblTempUsageDetail_20' ) start [2025-01-26 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337147', 'tblTempUsageDetail_20' ) end [2025-01-26 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337147', 'tblTempVendorCDR_20' ) start [2025-01-26 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337147', 'tblTempVendorCDR_20' ) end [2025-01-26 21:44:19] Production.INFO: ProcessCDR(1,14337147,1,1,2) [2025-01-26 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337147', 'tblTempUsageDetail_20' ) start [2025-01-26 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337147', 'tblTempUsageDetail_20' ) end [2025-01-26 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:44:22] Production.INFO: ==26010== Releasing lock... [2025-01-26 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:44:22] Production.INFO: 45.75 MB #Memory Used# [2025-01-26 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:45:05 [end_date_ymd] => 2025-01-26 21:45:05 [RateCDR] => 1 ) [2025-01-26 21:45: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-01-26 18:45:05' and `end` < '2025-01-26 21:45: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-01-26 21:45:18] Production.INFO: count ==2356 [2025-01-26 21:45:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:45:05 - End Time 2025-01-26 21:45:05 [2025-01-26 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337152', 'tblTempUsageDetail_20' ) start [2025-01-26 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337152', 'tblTempUsageDetail_20' ) end [2025-01-26 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337152', 'tblTempVendorCDR_20' ) start [2025-01-26 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337152', 'tblTempVendorCDR_20' ) end [2025-01-26 21:45:19] Production.INFO: ProcessCDR(1,14337152,1,1,2) [2025-01-26 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337152', 'tblTempUsageDetail_20' ) start [2025-01-26 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337152', 'tblTempUsageDetail_20' ) end [2025-01-26 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:45:22] Production.INFO: ==26085== Releasing lock... [2025-01-26 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:45:22] Production.INFO: 45.75 MB #Memory Used# [2025-01-26 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:46:05 [end_date_ymd] => 2025-01-26 21:46:05 [RateCDR] => 1 ) [2025-01-26 21:46: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-01-26 18:46:05' and `end` < '2025-01-26 21:46: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-01-26 21:46:17] Production.INFO: count ==2356 [2025-01-26 21:46:18] Production.ERROR: pbx CDR StartTime 2025-01-26 18:46:05 - End Time 2025-01-26 21:46:05 [2025-01-26 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337157', 'tblTempUsageDetail_20' ) start [2025-01-26 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337157', 'tblTempUsageDetail_20' ) end [2025-01-26 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337157', 'tblTempVendorCDR_20' ) start [2025-01-26 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337157', 'tblTempVendorCDR_20' ) end [2025-01-26 21:46:18] Production.INFO: ProcessCDR(1,14337157,1,1,2) [2025-01-26 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337157', 'tblTempUsageDetail_20' ) start [2025-01-26 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337157', 'tblTempUsageDetail_20' ) end [2025-01-26 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:46:21] Production.INFO: ==26157== Releasing lock... [2025-01-26 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:46:21] Production.INFO: 45.75 MB #Memory Used# [2025-01-26 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:47:05 [end_date_ymd] => 2025-01-26 21:47:05 [RateCDR] => 1 ) [2025-01-26 21:47: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-01-26 18:47:05' and `end` < '2025-01-26 21:47: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-01-26 21:47:19] Production.INFO: count ==2347 [2025-01-26 21:47:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:47:05 - End Time 2025-01-26 21:47:05 [2025-01-26 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337162', 'tblTempUsageDetail_20' ) start [2025-01-26 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337162', 'tblTempUsageDetail_20' ) end [2025-01-26 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337162', 'tblTempVendorCDR_20' ) start [2025-01-26 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337162', 'tblTempVendorCDR_20' ) end [2025-01-26 21:47:19] Production.INFO: ProcessCDR(1,14337162,1,1,2) [2025-01-26 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337162', 'tblTempUsageDetail_20' ) start [2025-01-26 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337162', 'tblTempUsageDetail_20' ) end [2025-01-26 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:47:22] Production.INFO: ==26235== Releasing lock... [2025-01-26 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:47:22] Production.INFO: 45.75 MB #Memory Used# [2025-01-26 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:48:05 [end_date_ymd] => 2025-01-26 21:48:05 [RateCDR] => 1 ) [2025-01-26 21:48: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-01-26 18:48:05' and `end` < '2025-01-26 21:48: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-01-26 21:48:18] Production.INFO: count ==2346 [2025-01-26 21:48:18] Production.ERROR: pbx CDR StartTime 2025-01-26 18:48:05 - End Time 2025-01-26 21:48:05 [2025-01-26 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337167', 'tblTempUsageDetail_20' ) start [2025-01-26 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337167', 'tblTempUsageDetail_20' ) end [2025-01-26 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337167', 'tblTempVendorCDR_20' ) start [2025-01-26 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337167', 'tblTempVendorCDR_20' ) end [2025-01-26 21:48:18] Production.INFO: ProcessCDR(1,14337167,1,1,2) [2025-01-26 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337167', 'tblTempUsageDetail_20' ) start [2025-01-26 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337167', 'tblTempUsageDetail_20' ) end [2025-01-26 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:48:22] Production.INFO: ==26307== Releasing lock... [2025-01-26 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:48:22] Production.INFO: 45.75 MB #Memory Used# [2025-01-26 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:49:05 [end_date_ymd] => 2025-01-26 21:49:05 [RateCDR] => 1 ) [2025-01-26 21:49: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-01-26 18:49:05' and `end` < '2025-01-26 21:49: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-01-26 21:49:18] Production.INFO: count ==2347 [2025-01-26 21:49:18] Production.ERROR: pbx CDR StartTime 2025-01-26 18:49:05 - End Time 2025-01-26 21:49:05 [2025-01-26 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337172', 'tblTempUsageDetail_20' ) start [2025-01-26 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337172', 'tblTempUsageDetail_20' ) end [2025-01-26 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337172', 'tblTempVendorCDR_20' ) start [2025-01-26 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337172', 'tblTempVendorCDR_20' ) end [2025-01-26 21:49:18] Production.INFO: ProcessCDR(1,14337172,1,1,2) [2025-01-26 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337172', 'tblTempUsageDetail_20' ) start [2025-01-26 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337172', 'tblTempUsageDetail_20' ) end [2025-01-26 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:49:21] Production.INFO: ==26379== Releasing lock... [2025-01-26 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:49:21] Production.INFO: 45.75 MB #Memory Used# [2025-01-26 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:50:05 [end_date_ymd] => 2025-01-26 21:50:05 [RateCDR] => 1 ) [2025-01-26 21:50: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-01-26 18:50:05' and `end` < '2025-01-26 21:50: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-01-26 21:50:18] Production.INFO: count ==2351 [2025-01-26 21:50:18] Production.ERROR: pbx CDR StartTime 2025-01-26 18:50:05 - End Time 2025-01-26 21:50:05 [2025-01-26 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337177', 'tblTempUsageDetail_20' ) start [2025-01-26 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337177', 'tblTempUsageDetail_20' ) end [2025-01-26 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337177', 'tblTempVendorCDR_20' ) start [2025-01-26 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337177', 'tblTempVendorCDR_20' ) end [2025-01-26 21:50:18] Production.INFO: ProcessCDR(1,14337177,1,1,2) [2025-01-26 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337177', 'tblTempUsageDetail_20' ) start [2025-01-26 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337177', 'tblTempUsageDetail_20' ) end [2025-01-26 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:50:23] Production.INFO: ==26456== Releasing lock... [2025-01-26 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:50:23] Production.INFO: 45.75 MB #Memory Used# [2025-01-26 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:51:05 [end_date_ymd] => 2025-01-26 21:51:05 [RateCDR] => 1 ) [2025-01-26 21:51: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-01-26 18:51:05' and `end` < '2025-01-26 21:51: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-01-26 21:51:18] Production.INFO: count ==2279 [2025-01-26 21:51:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:51:05 - End Time 2025-01-26 21:51:05 [2025-01-26 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337183', 'tblTempUsageDetail_20' ) start [2025-01-26 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337183', 'tblTempUsageDetail_20' ) end [2025-01-26 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337183', 'tblTempVendorCDR_20' ) start [2025-01-26 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337183', 'tblTempVendorCDR_20' ) end [2025-01-26 21:51:19] Production.INFO: ProcessCDR(1,14337183,1,1,2) [2025-01-26 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337183', 'tblTempUsageDetail_20' ) start [2025-01-26 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337183', 'tblTempUsageDetail_20' ) end [2025-01-26 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:51:22] Production.INFO: ==26530== Releasing lock... [2025-01-26 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:51:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-26 21:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:52:04 [end_date_ymd] => 2025-01-26 21:52:04 [RateCDR] => 1 ) [2025-01-26 21:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 18:52:04' and `end` < '2025-01-26 21:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 21:52:17] Production.INFO: count ==2281 [2025-01-26 21:52:18] Production.ERROR: pbx CDR StartTime 2025-01-26 18:52:04 - End Time 2025-01-26 21:52:04 [2025-01-26 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337188', 'tblTempUsageDetail_20' ) start [2025-01-26 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337188', 'tblTempUsageDetail_20' ) end [2025-01-26 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337188', 'tblTempVendorCDR_20' ) start [2025-01-26 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337188', 'tblTempVendorCDR_20' ) end [2025-01-26 21:52:18] Production.INFO: ProcessCDR(1,14337188,1,1,2) [2025-01-26 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337188', 'tblTempUsageDetail_20' ) start [2025-01-26 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337188', 'tblTempUsageDetail_20' ) end [2025-01-26 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:52:22] Production.INFO: ==26608== Releasing lock... [2025-01-26 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:52:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-26 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:53:05 [end_date_ymd] => 2025-01-26 21:53:05 [RateCDR] => 1 ) [2025-01-26 21:53: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-01-26 18:53:05' and `end` < '2025-01-26 21:53: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-01-26 21:53:18] Production.INFO: count ==2279 [2025-01-26 21:53:18] Production.ERROR: pbx CDR StartTime 2025-01-26 18:53:05 - End Time 2025-01-26 21:53:05 [2025-01-26 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337193', 'tblTempUsageDetail_20' ) start [2025-01-26 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337193', 'tblTempUsageDetail_20' ) end [2025-01-26 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337193', 'tblTempVendorCDR_20' ) start [2025-01-26 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337193', 'tblTempVendorCDR_20' ) end [2025-01-26 21:53:19] Production.INFO: ProcessCDR(1,14337193,1,1,2) [2025-01-26 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337193', 'tblTempUsageDetail_20' ) start [2025-01-26 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337193', 'tblTempUsageDetail_20' ) end [2025-01-26 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:53:23] Production.INFO: ==26731== Releasing lock... [2025-01-26 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:53:23] Production.INFO: 45.25 MB #Memory Used# [2025-01-26 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:54:05 [end_date_ymd] => 2025-01-26 21:54:05 [RateCDR] => 1 ) [2025-01-26 21:54: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-01-26 18:54:05' and `end` < '2025-01-26 21:54: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-01-26 21:54:18] Production.INFO: count ==2279 [2025-01-26 21:54:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:54:05 - End Time 2025-01-26 21:54:05 [2025-01-26 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337198', 'tblTempUsageDetail_20' ) start [2025-01-26 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337198', 'tblTempUsageDetail_20' ) end [2025-01-26 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337198', 'tblTempVendorCDR_20' ) start [2025-01-26 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337198', 'tblTempVendorCDR_20' ) end [2025-01-26 21:54:19] Production.INFO: ProcessCDR(1,14337198,1,1,2) [2025-01-26 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337198', 'tblTempUsageDetail_20' ) start [2025-01-26 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337198', 'tblTempUsageDetail_20' ) end [2025-01-26 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:54:23] Production.INFO: ==26829== Releasing lock... [2025-01-26 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:54:23] Production.INFO: 45.25 MB #Memory Used# [2025-01-26 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:55:05 [end_date_ymd] => 2025-01-26 21:55:05 [RateCDR] => 1 ) [2025-01-26 21:55: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-01-26 18:55:05' and `end` < '2025-01-26 21:55: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-01-26 21:55:18] Production.INFO: count ==2276 [2025-01-26 21:55:18] Production.ERROR: pbx CDR StartTime 2025-01-26 18:55:05 - End Time 2025-01-26 21:55:05 [2025-01-26 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337203', 'tblTempUsageDetail_20' ) start [2025-01-26 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337203', 'tblTempUsageDetail_20' ) end [2025-01-26 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337203', 'tblTempVendorCDR_20' ) start [2025-01-26 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337203', 'tblTempVendorCDR_20' ) end [2025-01-26 21:55:18] Production.INFO: ProcessCDR(1,14337203,1,1,2) [2025-01-26 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337203', 'tblTempUsageDetail_20' ) start [2025-01-26 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337203', 'tblTempUsageDetail_20' ) end [2025-01-26 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:55:22] Production.INFO: ==26900== Releasing lock... [2025-01-26 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:55:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-26 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:56:06 [end_date_ymd] => 2025-01-26 21:56:06 [RateCDR] => 1 ) [2025-01-26 21:56: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-01-26 18:56:06' and `end` < '2025-01-26 21:56: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-01-26 21:56:18] Production.INFO: count ==2277 [2025-01-26 21:56:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:56:06 - End Time 2025-01-26 21:56:06 [2025-01-26 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337208', 'tblTempUsageDetail_20' ) start [2025-01-26 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337208', 'tblTempUsageDetail_20' ) end [2025-01-26 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337208', 'tblTempVendorCDR_20' ) start [2025-01-26 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337208', 'tblTempVendorCDR_20' ) end [2025-01-26 21:56:19] Production.INFO: ProcessCDR(1,14337208,1,1,2) [2025-01-26 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337208', 'tblTempUsageDetail_20' ) start [2025-01-26 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337208', 'tblTempUsageDetail_20' ) end [2025-01-26 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:56:22] Production.INFO: ==26973== Releasing lock... [2025-01-26 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:56:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-26 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:57:05 [end_date_ymd] => 2025-01-26 21:57:05 [RateCDR] => 1 ) [2025-01-26 21:57: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-01-26 18:57:05' and `end` < '2025-01-26 21:57: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-01-26 21:57:19] Production.INFO: count ==2237 [2025-01-26 21:57:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:57:05 - End Time 2025-01-26 21:57:05 [2025-01-26 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337213', 'tblTempUsageDetail_20' ) start [2025-01-26 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337213', 'tblTempUsageDetail_20' ) end [2025-01-26 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337213', 'tblTempVendorCDR_20' ) start [2025-01-26 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337213', 'tblTempVendorCDR_20' ) end [2025-01-26 21:57:19] Production.INFO: ProcessCDR(1,14337213,1,1,2) [2025-01-26 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337213', 'tblTempUsageDetail_20' ) start [2025-01-26 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337213', 'tblTempUsageDetail_20' ) end [2025-01-26 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:57:22] Production.INFO: ==27088== Releasing lock... [2025-01-26 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:57:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-26 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:58:05 [end_date_ymd] => 2025-01-26 21:58:05 [RateCDR] => 1 ) [2025-01-26 21:58: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-01-26 18:58:05' and `end` < '2025-01-26 21:58: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-01-26 21:58:18] Production.INFO: count ==2200 [2025-01-26 21:58:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:58:05 - End Time 2025-01-26 21:58:05 [2025-01-26 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337218', 'tblTempUsageDetail_20' ) start [2025-01-26 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337218', 'tblTempUsageDetail_20' ) end [2025-01-26 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337218', 'tblTempVendorCDR_20' ) start [2025-01-26 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337218', 'tblTempVendorCDR_20' ) end [2025-01-26 21:58:19] Production.INFO: ProcessCDR(1,14337218,1,1,2) [2025-01-26 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337218', 'tblTempUsageDetail_20' ) start [2025-01-26 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337218', 'tblTempUsageDetail_20' ) end [2025-01-26 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:58:22] Production.INFO: ==27163== Releasing lock... [2025-01-26 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:58:22] Production.INFO: 45 MB #Memory Used# [2025-01-26 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 18:59:05 [end_date_ymd] => 2025-01-26 21:59:05 [RateCDR] => 1 ) [2025-01-26 21:59: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-01-26 18:59:05' and `end` < '2025-01-26 21:59: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-01-26 21:59:19] Production.INFO: count ==2154 [2025-01-26 21:59:19] Production.ERROR: pbx CDR StartTime 2025-01-26 18:59:05 - End Time 2025-01-26 21:59:05 [2025-01-26 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337223', 'tblTempUsageDetail_20' ) start [2025-01-26 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337223', 'tblTempUsageDetail_20' ) end [2025-01-26 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337223', 'tblTempVendorCDR_20' ) start [2025-01-26 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337223', 'tblTempVendorCDR_20' ) end [2025-01-26 21:59:19] Production.INFO: ProcessCDR(1,14337223,1,1,2) [2025-01-26 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337223', 'tblTempUsageDetail_20' ) start [2025-01-26 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337223', 'tblTempUsageDetail_20' ) end [2025-01-26 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 21:59:22] Production.INFO: ==27233== Releasing lock... [2025-01-26 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 21:59:22] Production.INFO: 44.25 MB #Memory Used# [2025-01-26 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:00:06 [end_date_ymd] => 2025-01-26 22:00:06 [RateCDR] => 1 ) [2025-01-26 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-01-26 19:00:06' and `end` < '2025-01-26 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-01-26 22:00:19] Production.INFO: count ==2082 [2025-01-26 22:00:19] Production.ERROR: pbx CDR StartTime 2025-01-26 19:00:06 - End Time 2025-01-26 22:00:06 [2025-01-26 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337228', 'tblTempUsageDetail_20' ) start [2025-01-26 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337228', 'tblTempUsageDetail_20' ) end [2025-01-26 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337228', 'tblTempVendorCDR_20' ) start [2025-01-26 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337228', 'tblTempVendorCDR_20' ) end [2025-01-26 22:00:19] Production.INFO: ProcessCDR(1,14337228,1,1,2) [2025-01-26 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337228', 'tblTempUsageDetail_20' ) start [2025-01-26 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337228', 'tblTempUsageDetail_20' ) end [2025-01-26 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:00:22] Production.INFO: ==27308== Releasing lock... [2025-01-26 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:00:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-26 22:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:01:04 [end_date_ymd] => 2025-01-26 22:01:04 [RateCDR] => 1 ) [2025-01-26 22:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 19:01:04' and `end` < '2025-01-26 22:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 22:01:18] Production.INFO: count ==1972 [2025-01-26 22:01:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:01:04 - End Time 2025-01-26 22:01:04 [2025-01-26 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337234', 'tblTempUsageDetail_20' ) start [2025-01-26 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337234', 'tblTempUsageDetail_20' ) end [2025-01-26 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337234', 'tblTempVendorCDR_20' ) start [2025-01-26 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337234', 'tblTempVendorCDR_20' ) end [2025-01-26 22:01:19] Production.INFO: ProcessCDR(1,14337234,1,1,2) [2025-01-26 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337234', 'tblTempUsageDetail_20' ) start [2025-01-26 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337234', 'tblTempUsageDetail_20' ) end [2025-01-26 22:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:01:23] Production.INFO: ==27395== Releasing lock... [2025-01-26 22:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:01:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-26 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:02:05 [end_date_ymd] => 2025-01-26 22:02:05 [RateCDR] => 1 ) [2025-01-26 22:02: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-01-26 19:02:05' and `end` < '2025-01-26 22:02: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-01-26 22:02:18] Production.INFO: count ==1909 [2025-01-26 22:02:19] Production.ERROR: pbx CDR StartTime 2025-01-26 19:02:05 - End Time 2025-01-26 22:02:05 [2025-01-26 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337239', 'tblTempUsageDetail_20' ) start [2025-01-26 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337239', 'tblTempUsageDetail_20' ) end [2025-01-26 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337239', 'tblTempVendorCDR_20' ) start [2025-01-26 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337239', 'tblTempVendorCDR_20' ) end [2025-01-26 22:02:19] Production.INFO: ProcessCDR(1,14337239,1,1,2) [2025-01-26 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337239', 'tblTempUsageDetail_20' ) start [2025-01-26 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337239', 'tblTempUsageDetail_20' ) end [2025-01-26 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:02:22] Production.INFO: ==27468== Releasing lock... [2025-01-26 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:02:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-26 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:03:05 [end_date_ymd] => 2025-01-26 22:03:05 [RateCDR] => 1 ) [2025-01-26 22:03: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-01-26 19:03:05' and `end` < '2025-01-26 22:03: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-01-26 22:03:18] Production.INFO: count ==1842 [2025-01-26 22:03:19] Production.ERROR: pbx CDR StartTime 2025-01-26 19:03:05 - End Time 2025-01-26 22:03:05 [2025-01-26 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337244', 'tblTempUsageDetail_20' ) start [2025-01-26 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337244', 'tblTempUsageDetail_20' ) end [2025-01-26 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337244', 'tblTempVendorCDR_20' ) start [2025-01-26 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337244', 'tblTempVendorCDR_20' ) end [2025-01-26 22:03:19] Production.INFO: ProcessCDR(1,14337244,1,1,2) [2025-01-26 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337244', 'tblTempUsageDetail_20' ) start [2025-01-26 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337244', 'tblTempUsageDetail_20' ) end [2025-01-26 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:03:22] Production.INFO: ==27539== Releasing lock... [2025-01-26 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:03:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-26 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:04:05 [end_date_ymd] => 2025-01-26 22:04:05 [RateCDR] => 1 ) [2025-01-26 22:04: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-01-26 19:04:05' and `end` < '2025-01-26 22:04: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-01-26 22:04:17] Production.INFO: count ==1799 [2025-01-26 22:04:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:04:05 - End Time 2025-01-26 22:04:05 [2025-01-26 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337249', 'tblTempUsageDetail_20' ) start [2025-01-26 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337249', 'tblTempUsageDetail_20' ) end [2025-01-26 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337249', 'tblTempVendorCDR_20' ) start [2025-01-26 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337249', 'tblTempVendorCDR_20' ) end [2025-01-26 22:04:18] Production.INFO: ProcessCDR(1,14337249,1,1,2) [2025-01-26 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337249', 'tblTempUsageDetail_20' ) start [2025-01-26 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337249', 'tblTempUsageDetail_20' ) end [2025-01-26 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:04:21] Production.INFO: ==27612== Releasing lock... [2025-01-26 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:04:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-26 22:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:05:06 [end_date_ymd] => 2025-01-26 22:05:06 [RateCDR] => 1 ) [2025-01-26 22:05: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-01-26 19:05:06' and `end` < '2025-01-26 22:05: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-01-26 22:05:18] Production.INFO: count ==1755 [2025-01-26 22:05:19] Production.ERROR: pbx CDR StartTime 2025-01-26 19:05:06 - End Time 2025-01-26 22:05:06 [2025-01-26 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337254', 'tblTempUsageDetail_20' ) start [2025-01-26 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337254', 'tblTempUsageDetail_20' ) end [2025-01-26 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337254', 'tblTempVendorCDR_20' ) start [2025-01-26 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337254', 'tblTempVendorCDR_20' ) end [2025-01-26 22:05:19] Production.INFO: ProcessCDR(1,14337254,1,1,2) [2025-01-26 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337254', 'tblTempUsageDetail_20' ) start [2025-01-26 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337254', 'tblTempUsageDetail_20' ) end [2025-01-26 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:05:22] Production.INFO: ==27685== Releasing lock... [2025-01-26 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:05:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-26 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:06:05 [end_date_ymd] => 2025-01-26 22:06:05 [RateCDR] => 1 ) [2025-01-26 22:06: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-01-26 19:06:05' and `end` < '2025-01-26 22:06: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-01-26 22:06:18] Production.INFO: count ==1704 [2025-01-26 22:06:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:06:05 - End Time 2025-01-26 22:06:05 [2025-01-26 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337259', 'tblTempUsageDetail_20' ) start [2025-01-26 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337259', 'tblTempUsageDetail_20' ) end [2025-01-26 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337259', 'tblTempVendorCDR_20' ) start [2025-01-26 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337259', 'tblTempVendorCDR_20' ) end [2025-01-26 22:06:18] Production.INFO: ProcessCDR(1,14337259,1,1,2) [2025-01-26 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337259', 'tblTempUsageDetail_20' ) start [2025-01-26 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337259', 'tblTempUsageDetail_20' ) end [2025-01-26 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:06:22] Production.INFO: ==27756== Releasing lock... [2025-01-26 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:06:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:07:05 [end_date_ymd] => 2025-01-26 22:07:05 [RateCDR] => 1 ) [2025-01-26 22:07: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-01-26 19:07:05' and `end` < '2025-01-26 22:07: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-01-26 22:07:19] Production.INFO: count ==1679 [2025-01-26 22:07:19] Production.ERROR: pbx CDR StartTime 2025-01-26 19:07:05 - End Time 2025-01-26 22:07:05 [2025-01-26 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337264', 'tblTempUsageDetail_20' ) start [2025-01-26 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337264', 'tblTempUsageDetail_20' ) end [2025-01-26 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337264', 'tblTempVendorCDR_20' ) start [2025-01-26 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337264', 'tblTempVendorCDR_20' ) end [2025-01-26 22:07:20] Production.INFO: ProcessCDR(1,14337264,1,1,2) [2025-01-26 22:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337264', 'tblTempUsageDetail_20' ) start [2025-01-26 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337264', 'tblTempUsageDetail_20' ) end [2025-01-26 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:07:23] Production.INFO: ==27829== Releasing lock... [2025-01-26 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:07:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-26 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:08:05 [end_date_ymd] => 2025-01-26 22:08:05 [RateCDR] => 1 ) [2025-01-26 22:08: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-01-26 19:08:05' and `end` < '2025-01-26 22:08: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-01-26 22:08:18] Production.INFO: count ==1637 [2025-01-26 22:08:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:08:05 - End Time 2025-01-26 22:08:05 [2025-01-26 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337269', 'tblTempUsageDetail_20' ) start [2025-01-26 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337269', 'tblTempUsageDetail_20' ) end [2025-01-26 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337269', 'tblTempVendorCDR_20' ) start [2025-01-26 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337269', 'tblTempVendorCDR_20' ) end [2025-01-26 22:08:18] Production.INFO: ProcessCDR(1,14337269,1,1,2) [2025-01-26 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337269', 'tblTempUsageDetail_20' ) start [2025-01-26 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337269', 'tblTempUsageDetail_20' ) end [2025-01-26 22:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:08:23] Production.INFO: ==27902== Releasing lock... [2025-01-26 22:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:08:23] Production.INFO: 40 MB #Memory Used# [2025-01-26 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:09:05 [end_date_ymd] => 2025-01-26 22:09:05 [RateCDR] => 1 ) [2025-01-26 22:09: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-01-26 19:09:05' and `end` < '2025-01-26 22:09: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-01-26 22:09:18] Production.INFO: count ==1600 [2025-01-26 22:09:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:09:05 - End Time 2025-01-26 22:09:05 [2025-01-26 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337274', 'tblTempUsageDetail_20' ) start [2025-01-26 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337274', 'tblTempUsageDetail_20' ) end [2025-01-26 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337274', 'tblTempVendorCDR_20' ) start [2025-01-26 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337274', 'tblTempVendorCDR_20' ) end [2025-01-26 22:09:18] Production.INFO: ProcessCDR(1,14337274,1,1,2) [2025-01-26 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337274', 'tblTempUsageDetail_20' ) start [2025-01-26 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337274', 'tblTempUsageDetail_20' ) end [2025-01-26 22:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:09:23] Production.INFO: ==27972== Releasing lock... [2025-01-26 22:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:09:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-26 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:10:06 [end_date_ymd] => 2025-01-26 22:10:06 [RateCDR] => 1 ) [2025-01-26 22:10: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-01-26 19:10:06' and `end` < '2025-01-26 22:10: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-01-26 22:10:19] Production.INFO: count ==1554 [2025-01-26 22:10:19] Production.ERROR: pbx CDR StartTime 2025-01-26 19:10:06 - End Time 2025-01-26 22:10:06 [2025-01-26 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337280', 'tblTempUsageDetail_20' ) start [2025-01-26 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337280', 'tblTempUsageDetail_20' ) end [2025-01-26 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337280', 'tblTempVendorCDR_20' ) start [2025-01-26 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337280', 'tblTempVendorCDR_20' ) end [2025-01-26 22:10:19] Production.INFO: ProcessCDR(1,14337280,1,1,2) [2025-01-26 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337280', 'tblTempUsageDetail_20' ) start [2025-01-26 22:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337280', 'tblTempUsageDetail_20' ) end [2025-01-26 22:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:10:24] Production.INFO: ==28046== Releasing lock... [2025-01-26 22:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:10:24] Production.INFO: 39.5 MB #Memory Used# [2025-01-26 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:11:05 [end_date_ymd] => 2025-01-26 22:11:05 [RateCDR] => 1 ) [2025-01-26 22:11: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-01-26 19:11:05' and `end` < '2025-01-26 22:11: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-01-26 22:11:18] Production.INFO: count ==1451 [2025-01-26 22:11:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:11:05 - End Time 2025-01-26 22:11:05 [2025-01-26 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337285', 'tblTempUsageDetail_20' ) start [2025-01-26 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337285', 'tblTempUsageDetail_20' ) end [2025-01-26 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337285', 'tblTempVendorCDR_20' ) start [2025-01-26 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337285', 'tblTempVendorCDR_20' ) end [2025-01-26 22:11:18] Production.INFO: ProcessCDR(1,14337285,1,1,2) [2025-01-26 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337285', 'tblTempUsageDetail_20' ) start [2025-01-26 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337285', 'tblTempUsageDetail_20' ) end [2025-01-26 22:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:11:23] Production.INFO: ==28121== Releasing lock... [2025-01-26 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:11:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-26 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:12:06 [end_date_ymd] => 2025-01-26 22:12:06 [RateCDR] => 1 ) [2025-01-26 22:12: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-01-26 19:12:06' and `end` < '2025-01-26 22:12: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-01-26 22:12:19] Production.INFO: count ==1408 [2025-01-26 22:12:20] Production.ERROR: pbx CDR StartTime 2025-01-26 19:12:06 - End Time 2025-01-26 22:12:06 [2025-01-26 22:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337290', 'tblTempUsageDetail_20' ) start [2025-01-26 22:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337290', 'tblTempUsageDetail_20' ) end [2025-01-26 22:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337290', 'tblTempVendorCDR_20' ) start [2025-01-26 22:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337290', 'tblTempVendorCDR_20' ) end [2025-01-26 22:12:20] Production.INFO: ProcessCDR(1,14337290,1,1,2) [2025-01-26 22:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337290', 'tblTempUsageDetail_20' ) start [2025-01-26 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337290', 'tblTempUsageDetail_20' ) end [2025-01-26 22:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:12:23] Production.INFO: ==28193== Releasing lock... [2025-01-26 22:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:12:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-26 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:13:05 [end_date_ymd] => 2025-01-26 22:13:05 [RateCDR] => 1 ) [2025-01-26 22:13: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-01-26 19:13:05' and `end` < '2025-01-26 22:13: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-01-26 22:13:18] Production.INFO: count ==1367 [2025-01-26 22:13:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:13:05 - End Time 2025-01-26 22:13:05 [2025-01-26 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337295', 'tblTempUsageDetail_20' ) start [2025-01-26 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337295', 'tblTempUsageDetail_20' ) end [2025-01-26 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337295', 'tblTempVendorCDR_20' ) start [2025-01-26 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337295', 'tblTempVendorCDR_20' ) end [2025-01-26 22:13:18] Production.INFO: ProcessCDR(1,14337295,1,1,2) [2025-01-26 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337295', 'tblTempUsageDetail_20' ) start [2025-01-26 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337295', 'tblTempUsageDetail_20' ) end [2025-01-26 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:13:21] Production.INFO: ==28303== Releasing lock... [2025-01-26 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:13:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-26 22:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:14:06 [end_date_ymd] => 2025-01-26 22:14:06 [RateCDR] => 1 ) [2025-01-26 22:14: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-01-26 19:14:06' and `end` < '2025-01-26 22:14: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-01-26 22:14:19] Production.INFO: count ==1342 [2025-01-26 22:14:19] Production.ERROR: pbx CDR StartTime 2025-01-26 19:14:06 - End Time 2025-01-26 22:14:06 [2025-01-26 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337300', 'tblTempUsageDetail_20' ) start [2025-01-26 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337300', 'tblTempUsageDetail_20' ) end [2025-01-26 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337300', 'tblTempVendorCDR_20' ) start [2025-01-26 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337300', 'tblTempVendorCDR_20' ) end [2025-01-26 22:14:19] Production.INFO: ProcessCDR(1,14337300,1,1,2) [2025-01-26 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337300', 'tblTempUsageDetail_20' ) start [2025-01-26 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337300', 'tblTempUsageDetail_20' ) end [2025-01-26 22:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:14:23] Production.INFO: ==28372== Releasing lock... [2025-01-26 22:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:14:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-26 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:15:05 [end_date_ymd] => 2025-01-26 22:15:05 [RateCDR] => 1 ) [2025-01-26 22:15: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-01-26 19:15:05' and `end` < '2025-01-26 22:15: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-01-26 22:15:18] Production.INFO: count ==1345 [2025-01-26 22:15:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:15:05 - End Time 2025-01-26 22:15:05 [2025-01-26 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337305', 'tblTempUsageDetail_20' ) start [2025-01-26 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337305', 'tblTempUsageDetail_20' ) end [2025-01-26 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337305', 'tblTempVendorCDR_20' ) start [2025-01-26 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337305', 'tblTempVendorCDR_20' ) end [2025-01-26 22:15:18] Production.INFO: ProcessCDR(1,14337305,1,1,2) [2025-01-26 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337305', 'tblTempUsageDetail_20' ) start [2025-01-26 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337305', 'tblTempUsageDetail_20' ) end [2025-01-26 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:15:22] Production.INFO: ==28444== Releasing lock... [2025-01-26 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:15:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-26 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:16:05 [end_date_ymd] => 2025-01-26 22:16:05 [RateCDR] => 1 ) [2025-01-26 22:16: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-01-26 19:16:05' and `end` < '2025-01-26 22:16: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-01-26 22:16:18] Production.INFO: count ==1344 [2025-01-26 22:16:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:16:05 - End Time 2025-01-26 22:16:05 [2025-01-26 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337310', 'tblTempUsageDetail_20' ) start [2025-01-26 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337310', 'tblTempUsageDetail_20' ) end [2025-01-26 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337310', 'tblTempVendorCDR_20' ) start [2025-01-26 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337310', 'tblTempVendorCDR_20' ) end [2025-01-26 22:16:18] Production.INFO: ProcessCDR(1,14337310,1,1,2) [2025-01-26 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337310', 'tblTempUsageDetail_20' ) start [2025-01-26 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337310', 'tblTempUsageDetail_20' ) end [2025-01-26 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:16:21] Production.INFO: ==28521== Releasing lock... [2025-01-26 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:16:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-26 22:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:17:04 [end_date_ymd] => 2025-01-26 22:17:04 [RateCDR] => 1 ) [2025-01-26 22:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 19:17:04' and `end` < '2025-01-26 22:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 22:17:17] Production.INFO: count ==1339 [2025-01-26 22:17:17] Production.ERROR: pbx CDR StartTime 2025-01-26 19:17:04 - End Time 2025-01-26 22:17:04 [2025-01-26 22:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337314', 'tblTempUsageDetail_20' ) start [2025-01-26 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337314', 'tblTempUsageDetail_20' ) end [2025-01-26 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337314', 'tblTempVendorCDR_20' ) start [2025-01-26 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337314', 'tblTempVendorCDR_20' ) end [2025-01-26 22:17:17] Production.INFO: ProcessCDR(1,14337314,1,1,2) [2025-01-26 22:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337314', 'tblTempUsageDetail_20' ) start [2025-01-26 22:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337314', 'tblTempUsageDetail_20' ) end [2025-01-26 22:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:17:20] Production.INFO: ==28593== Releasing lock... [2025-01-26 22:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:17:20] Production.INFO: 37.75 MB #Memory Used# [2025-01-26 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:18:05 [end_date_ymd] => 2025-01-26 22:18:05 [RateCDR] => 1 ) [2025-01-26 22:18: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-01-26 19:18:05' and `end` < '2025-01-26 22:18: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-01-26 22:18:18] Production.INFO: count ==1337 [2025-01-26 22:18:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:18:05 - End Time 2025-01-26 22:18:05 [2025-01-26 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337320', 'tblTempUsageDetail_20' ) start [2025-01-26 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337320', 'tblTempUsageDetail_20' ) end [2025-01-26 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337320', 'tblTempVendorCDR_20' ) start [2025-01-26 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337320', 'tblTempVendorCDR_20' ) end [2025-01-26 22:18:18] Production.INFO: ProcessCDR(1,14337320,1,1,2) [2025-01-26 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337320', 'tblTempUsageDetail_20' ) start [2025-01-26 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337320', 'tblTempUsageDetail_20' ) end [2025-01-26 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:18:21] Production.INFO: ==28665== Releasing lock... [2025-01-26 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:18:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-26 22:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:19:04 [end_date_ymd] => 2025-01-26 22:19:04 [RateCDR] => 1 ) [2025-01-26 22:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 19:19:04' and `end` < '2025-01-26 22:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 22:19:17] Production.INFO: count ==1336 [2025-01-26 22:19:17] Production.ERROR: pbx CDR StartTime 2025-01-26 19:19:04 - End Time 2025-01-26 22:19:04 [2025-01-26 22:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337325', 'tblTempUsageDetail_20' ) start [2025-01-26 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337325', 'tblTempUsageDetail_20' ) end [2025-01-26 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337325', 'tblTempVendorCDR_20' ) start [2025-01-26 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337325', 'tblTempVendorCDR_20' ) end [2025-01-26 22:19:17] Production.INFO: ProcessCDR(1,14337325,1,1,2) [2025-01-26 22:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337325', 'tblTempUsageDetail_20' ) start [2025-01-26 22:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337325', 'tblTempUsageDetail_20' ) end [2025-01-26 22:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:19:20] Production.INFO: ==28737== Releasing lock... [2025-01-26 22:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:19:20] Production.INFO: 37.5 MB #Memory Used# [2025-01-26 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:20:06 [end_date_ymd] => 2025-01-26 22:20:06 [RateCDR] => 1 ) [2025-01-26 22:20: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-01-26 19:20:06' and `end` < '2025-01-26 22:20: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-01-26 22:20:18] Production.INFO: count ==1331 [2025-01-26 22:20:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:20:06 - End Time 2025-01-26 22:20:06 [2025-01-26 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337331', 'tblTempUsageDetail_20' ) start [2025-01-26 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337331', 'tblTempUsageDetail_20' ) end [2025-01-26 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337331', 'tblTempVendorCDR_20' ) start [2025-01-26 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337331', 'tblTempVendorCDR_20' ) end [2025-01-26 22:20:18] Production.INFO: ProcessCDR(1,14337331,1,1,2) [2025-01-26 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337331', 'tblTempUsageDetail_20' ) start [2025-01-26 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337331', 'tblTempUsageDetail_20' ) end [2025-01-26 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:20:22] Production.INFO: ==28817== Releasing lock... [2025-01-26 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:20:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-26 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:21:05 [end_date_ymd] => 2025-01-26 22:21:05 [RateCDR] => 1 ) [2025-01-26 22:21: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-01-26 19:21:05' and `end` < '2025-01-26 22:21: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-01-26 22:21:18] Production.INFO: count ==1319 [2025-01-26 22:21:19] Production.ERROR: pbx CDR StartTime 2025-01-26 19:21:05 - End Time 2025-01-26 22:21:05 [2025-01-26 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337336', 'tblTempUsageDetail_20' ) start [2025-01-26 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337336', 'tblTempUsageDetail_20' ) end [2025-01-26 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337336', 'tblTempVendorCDR_20' ) start [2025-01-26 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337336', 'tblTempVendorCDR_20' ) end [2025-01-26 22:21:19] Production.INFO: ProcessCDR(1,14337336,1,1,2) [2025-01-26 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337336', 'tblTempUsageDetail_20' ) start [2025-01-26 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337336', 'tblTempUsageDetail_20' ) end [2025-01-26 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:21:22] Production.INFO: ==28890== Releasing lock... [2025-01-26 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:21:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-26 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:22:05 [end_date_ymd] => 2025-01-26 22:22:05 [RateCDR] => 1 ) [2025-01-26 22:22: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-01-26 19:22:05' and `end` < '2025-01-26 22:22: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-01-26 22:22:18] Production.INFO: count ==1314 [2025-01-26 22:22:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:22:05 - End Time 2025-01-26 22:22:05 [2025-01-26 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337341', 'tblTempUsageDetail_20' ) start [2025-01-26 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337341', 'tblTempUsageDetail_20' ) end [2025-01-26 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337341', 'tblTempVendorCDR_20' ) start [2025-01-26 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337341', 'tblTempVendorCDR_20' ) end [2025-01-26 22:22:18] Production.INFO: ProcessCDR(1,14337341,1,1,2) [2025-01-26 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337341', 'tblTempUsageDetail_20' ) start [2025-01-26 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337341', 'tblTempUsageDetail_20' ) end [2025-01-26 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:22:21] Production.INFO: ==28964== Releasing lock... [2025-01-26 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:22:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-26 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:23:05 [end_date_ymd] => 2025-01-26 22:23:05 [RateCDR] => 1 ) [2025-01-26 22:23: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-01-26 19:23:05' and `end` < '2025-01-26 22:23: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-01-26 22:23:17] Production.INFO: count ==1313 [2025-01-26 22:23:17] Production.ERROR: pbx CDR StartTime 2025-01-26 19:23:05 - End Time 2025-01-26 22:23:05 [2025-01-26 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337346', 'tblTempUsageDetail_20' ) start [2025-01-26 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337346', 'tblTempUsageDetail_20' ) end [2025-01-26 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337346', 'tblTempVendorCDR_20' ) start [2025-01-26 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337346', 'tblTempVendorCDR_20' ) end [2025-01-26 22:23:17] Production.INFO: ProcessCDR(1,14337346,1,1,2) [2025-01-26 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337346', 'tblTempUsageDetail_20' ) start [2025-01-26 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337346', 'tblTempUsageDetail_20' ) end [2025-01-26 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:23:21] Production.INFO: ==29036== Releasing lock... [2025-01-26 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:23:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-26 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:24:05 [end_date_ymd] => 2025-01-26 22:24:05 [RateCDR] => 1 ) [2025-01-26 22:24: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-01-26 19:24:05' and `end` < '2025-01-26 22:24: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-01-26 22:24:18] Production.INFO: count ==1312 [2025-01-26 22:24:19] Production.ERROR: pbx CDR StartTime 2025-01-26 19:24:05 - End Time 2025-01-26 22:24:05 [2025-01-26 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337351', 'tblTempUsageDetail_20' ) start [2025-01-26 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337351', 'tblTempUsageDetail_20' ) end [2025-01-26 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337351', 'tblTempVendorCDR_20' ) start [2025-01-26 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337351', 'tblTempVendorCDR_20' ) end [2025-01-26 22:24:19] Production.INFO: ProcessCDR(1,14337351,1,1,2) [2025-01-26 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337351', 'tblTempUsageDetail_20' ) start [2025-01-26 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337351', 'tblTempUsageDetail_20' ) end [2025-01-26 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:24:22] Production.INFO: ==29107== Releasing lock... [2025-01-26 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:24:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-26 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:25:05 [end_date_ymd] => 2025-01-26 22:25:05 [RateCDR] => 1 ) [2025-01-26 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 19:25:05' and `end` < '2025-01-26 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 22:25:18] Production.INFO: count ==1311 [2025-01-26 22:25:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:25:05 - End Time 2025-01-26 22:25:05 [2025-01-26 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337356', 'tblTempUsageDetail_20' ) start [2025-01-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337356', 'tblTempUsageDetail_20' ) end [2025-01-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337356', 'tblTempVendorCDR_20' ) start [2025-01-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337356', 'tblTempVendorCDR_20' ) end [2025-01-26 22:25:18] Production.INFO: ProcessCDR(1,14337356,1,1,2) [2025-01-26 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337356', 'tblTempUsageDetail_20' ) start [2025-01-26 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337356', 'tblTempUsageDetail_20' ) end [2025-01-26 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:25:21] Production.INFO: ==29187== Releasing lock... [2025-01-26 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:25:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-26 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:26:05 [end_date_ymd] => 2025-01-26 22:26:05 [RateCDR] => 1 ) [2025-01-26 22:26: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-01-26 19:26:05' and `end` < '2025-01-26 22:26: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-01-26 22:26:18] Production.INFO: count ==1309 [2025-01-26 22:26:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:26:05 - End Time 2025-01-26 22:26:05 [2025-01-26 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337361', 'tblTempUsageDetail_20' ) start [2025-01-26 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337361', 'tblTempUsageDetail_20' ) end [2025-01-26 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337361', 'tblTempVendorCDR_20' ) start [2025-01-26 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337361', 'tblTempVendorCDR_20' ) end [2025-01-26 22:26:18] Production.INFO: ProcessCDR(1,14337361,1,1,2) [2025-01-26 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337361', 'tblTempUsageDetail_20' ) start [2025-01-26 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337361', 'tblTempUsageDetail_20' ) end [2025-01-26 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:26:21] Production.INFO: ==29261== Releasing lock... [2025-01-26 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:26:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-26 22:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:27:04 [end_date_ymd] => 2025-01-26 22:27:04 [RateCDR] => 1 ) [2025-01-26 22:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 19:27:04' and `end` < '2025-01-26 22:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 22:27:18] Production.INFO: count ==1308 [2025-01-26 22:27:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:27:04 - End Time 2025-01-26 22:27:04 [2025-01-26 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337366', 'tblTempUsageDetail_20' ) start [2025-01-26 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337366', 'tblTempUsageDetail_20' ) end [2025-01-26 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337366', 'tblTempVendorCDR_20' ) start [2025-01-26 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337366', 'tblTempVendorCDR_20' ) end [2025-01-26 22:27:18] Production.INFO: ProcessCDR(1,14337366,1,1,2) [2025-01-26 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337366', 'tblTempUsageDetail_20' ) start [2025-01-26 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337366', 'tblTempUsageDetail_20' ) end [2025-01-26 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:27:21] Production.INFO: ==29335== Releasing lock... [2025-01-26 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:27:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-26 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:28:05 [end_date_ymd] => 2025-01-26 22:28:05 [RateCDR] => 1 ) [2025-01-26 22:28: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-01-26 19:28:05' and `end` < '2025-01-26 22:28: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-01-26 22:28:18] Production.INFO: count ==1308 [2025-01-26 22:28:19] Production.ERROR: pbx CDR StartTime 2025-01-26 19:28:05 - End Time 2025-01-26 22:28:05 [2025-01-26 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337371', 'tblTempUsageDetail_20' ) start [2025-01-26 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337371', 'tblTempUsageDetail_20' ) end [2025-01-26 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337371', 'tblTempVendorCDR_20' ) start [2025-01-26 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337371', 'tblTempVendorCDR_20' ) end [2025-01-26 22:28:19] Production.INFO: ProcessCDR(1,14337371,1,1,2) [2025-01-26 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337371', 'tblTempUsageDetail_20' ) start [2025-01-26 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337371', 'tblTempUsageDetail_20' ) end [2025-01-26 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:28:22] Production.INFO: ==29449== Releasing lock... [2025-01-26 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:28:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-26 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:29:05 [end_date_ymd] => 2025-01-26 22:29:05 [RateCDR] => 1 ) [2025-01-26 22:29: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-01-26 19:29:05' and `end` < '2025-01-26 22:29: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-01-26 22:29:17] Production.INFO: count ==1308 [2025-01-26 22:29:17] Production.ERROR: pbx CDR StartTime 2025-01-26 19:29:05 - End Time 2025-01-26 22:29:05 [2025-01-26 22:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337376', 'tblTempUsageDetail_20' ) start [2025-01-26 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337376', 'tblTempUsageDetail_20' ) end [2025-01-26 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337376', 'tblTempVendorCDR_20' ) start [2025-01-26 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337376', 'tblTempVendorCDR_20' ) end [2025-01-26 22:29:17] Production.INFO: ProcessCDR(1,14337376,1,1,2) [2025-01-26 22:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337376', 'tblTempUsageDetail_20' ) start [2025-01-26 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337376', 'tblTempUsageDetail_20' ) end [2025-01-26 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:29:21] Production.INFO: ==29526== Releasing lock... [2025-01-26 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:29:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-26 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:30:06 [end_date_ymd] => 2025-01-26 22:30:06 [RateCDR] => 1 ) [2025-01-26 22:30: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-01-26 19:30:06' and `end` < '2025-01-26 22:30: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-01-26 22:30:19] Production.INFO: count ==1304 [2025-01-26 22:30:19] Production.ERROR: pbx CDR StartTime 2025-01-26 19:30:06 - End Time 2025-01-26 22:30:06 [2025-01-26 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337382', 'tblTempUsageDetail_20' ) start [2025-01-26 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337382', 'tblTempUsageDetail_20' ) end [2025-01-26 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337382', 'tblTempVendorCDR_20' ) start [2025-01-26 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337382', 'tblTempVendorCDR_20' ) end [2025-01-26 22:30:19] Production.INFO: ProcessCDR(1,14337382,1,1,2) [2025-01-26 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337382', 'tblTempUsageDetail_20' ) start [2025-01-26 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337382', 'tblTempUsageDetail_20' ) end [2025-01-26 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:30:22] Production.INFO: ==29613== Releasing lock... [2025-01-26 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:30:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-26 22:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:31:04 [end_date_ymd] => 2025-01-26 22:31:04 [RateCDR] => 1 ) [2025-01-26 22:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 19:31:04' and `end` < '2025-01-26 22:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 22:31:18] Production.INFO: count ==1235 [2025-01-26 22:31:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:31:04 - End Time 2025-01-26 22:31:04 [2025-01-26 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337387', 'tblTempUsageDetail_20' ) start [2025-01-26 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337387', 'tblTempUsageDetail_20' ) end [2025-01-26 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337387', 'tblTempVendorCDR_20' ) start [2025-01-26 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337387', 'tblTempVendorCDR_20' ) end [2025-01-26 22:31:18] Production.INFO: ProcessCDR(1,14337387,1,1,2) [2025-01-26 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337387', 'tblTempUsageDetail_20' ) start [2025-01-26 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337387', 'tblTempUsageDetail_20' ) end [2025-01-26 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:31:21] Production.INFO: ==29695== Releasing lock... [2025-01-26 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:31:21] Production.INFO: 37 MB #Memory Used# [2025-01-26 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:32:05 [end_date_ymd] => 2025-01-26 22:32:05 [RateCDR] => 1 ) [2025-01-26 22:32: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-01-26 19:32:05' and `end` < '2025-01-26 22:32: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-01-26 22:32:19] Production.INFO: count ==1233 [2025-01-26 22:32:19] Production.ERROR: pbx CDR StartTime 2025-01-26 19:32:05 - End Time 2025-01-26 22:32:05 [2025-01-26 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337392', 'tblTempUsageDetail_20' ) start [2025-01-26 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337392', 'tblTempUsageDetail_20' ) end [2025-01-26 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337392', 'tblTempVendorCDR_20' ) start [2025-01-26 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337392', 'tblTempVendorCDR_20' ) end [2025-01-26 22:32:19] Production.INFO: ProcessCDR(1,14337392,1,1,2) [2025-01-26 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337392', 'tblTempUsageDetail_20' ) start [2025-01-26 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337392', 'tblTempUsageDetail_20' ) end [2025-01-26 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:32:22] Production.INFO: ==29777== Releasing lock... [2025-01-26 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:32:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-26 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:33:05 [end_date_ymd] => 2025-01-26 22:33:05 [RateCDR] => 1 ) [2025-01-26 22:33: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-01-26 19:33:05' and `end` < '2025-01-26 22:33: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-01-26 22:33:19] Production.INFO: count ==1231 [2025-01-26 22:33:19] Production.ERROR: pbx CDR StartTime 2025-01-26 19:33:05 - End Time 2025-01-26 22:33:05 [2025-01-26 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337397', 'tblTempUsageDetail_20' ) start [2025-01-26 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337397', 'tblTempUsageDetail_20' ) end [2025-01-26 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337397', 'tblTempVendorCDR_20' ) start [2025-01-26 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337397', 'tblTempVendorCDR_20' ) end [2025-01-26 22:33:19] Production.INFO: ProcessCDR(1,14337397,1,1,2) [2025-01-26 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337397', 'tblTempUsageDetail_20' ) start [2025-01-26 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337397', 'tblTempUsageDetail_20' ) end [2025-01-26 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:33:22] Production.INFO: ==29861== Releasing lock... [2025-01-26 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:33:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-26 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:34:05 [end_date_ymd] => 2025-01-26 22:34:05 [RateCDR] => 1 ) [2025-01-26 22:34: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-01-26 19:34:05' and `end` < '2025-01-26 22:34: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-01-26 22:34:18] Production.INFO: count ==1233 [2025-01-26 22:34:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:34:05 - End Time 2025-01-26 22:34:05 [2025-01-26 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337402', 'tblTempUsageDetail_20' ) start [2025-01-26 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337402', 'tblTempUsageDetail_20' ) end [2025-01-26 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337402', 'tblTempVendorCDR_20' ) start [2025-01-26 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337402', 'tblTempVendorCDR_20' ) end [2025-01-26 22:34:18] Production.INFO: ProcessCDR(1,14337402,1,1,2) [2025-01-26 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337402', 'tblTempUsageDetail_20' ) start [2025-01-26 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337402', 'tblTempUsageDetail_20' ) end [2025-01-26 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:34:22] Production.INFO: ==29939== Releasing lock... [2025-01-26 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:34:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-26 22:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:35:06 [end_date_ymd] => 2025-01-26 22:35:06 [RateCDR] => 1 ) [2025-01-26 22:35: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-01-26 19:35:06' and `end` < '2025-01-26 22:35: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-01-26 22:35:18] Production.INFO: count ==1232 [2025-01-26 22:35:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:35:06 - End Time 2025-01-26 22:35:06 [2025-01-26 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337407', 'tblTempUsageDetail_20' ) start [2025-01-26 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337407', 'tblTempUsageDetail_20' ) end [2025-01-26 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337407', 'tblTempVendorCDR_20' ) start [2025-01-26 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337407', 'tblTempVendorCDR_20' ) end [2025-01-26 22:35:19] Production.INFO: ProcessCDR(1,14337407,1,1,2) [2025-01-26 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337407', 'tblTempUsageDetail_20' ) start [2025-01-26 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337407', 'tblTempUsageDetail_20' ) end [2025-01-26 22:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:35:23] Production.INFO: ==30021== Releasing lock... [2025-01-26 22:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:35:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-26 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:36:05 [end_date_ymd] => 2025-01-26 22:36:05 [RateCDR] => 1 ) [2025-01-26 22:36: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-01-26 19:36:05' and `end` < '2025-01-26 22:36: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-01-26 22:36:18] Production.INFO: count ==1231 [2025-01-26 22:36:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:36:05 - End Time 2025-01-26 22:36:05 [2025-01-26 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337412', 'tblTempUsageDetail_20' ) start [2025-01-26 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337412', 'tblTempUsageDetail_20' ) end [2025-01-26 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337412', 'tblTempVendorCDR_20' ) start [2025-01-26 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337412', 'tblTempVendorCDR_20' ) end [2025-01-26 22:36:18] Production.INFO: ProcessCDR(1,14337412,1,1,2) [2025-01-26 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337412', 'tblTempUsageDetail_20' ) start [2025-01-26 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337412', 'tblTempUsageDetail_20' ) end [2025-01-26 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:36:21] Production.INFO: ==30107== Releasing lock... [2025-01-26 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:36:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-26 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:37:05 [end_date_ymd] => 2025-01-26 22:37:05 [RateCDR] => 1 ) [2025-01-26 22:37: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-01-26 19:37:05' and `end` < '2025-01-26 22:37: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-01-26 22:37:18] Production.INFO: count ==1229 [2025-01-26 22:37:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:37:05 - End Time 2025-01-26 22:37:05 [2025-01-26 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337417', 'tblTempUsageDetail_20' ) start [2025-01-26 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337417', 'tblTempUsageDetail_20' ) end [2025-01-26 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337417', 'tblTempVendorCDR_20' ) start [2025-01-26 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337417', 'tblTempVendorCDR_20' ) end [2025-01-26 22:37:18] Production.INFO: ProcessCDR(1,14337417,1,1,2) [2025-01-26 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337417', 'tblTempUsageDetail_20' ) start [2025-01-26 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337417', 'tblTempUsageDetail_20' ) end [2025-01-26 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:37:21] Production.INFO: ==30187== Releasing lock... [2025-01-26 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:37:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-26 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:38:05 [end_date_ymd] => 2025-01-26 22:38:05 [RateCDR] => 1 ) [2025-01-26 22:38: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-01-26 19:38:05' and `end` < '2025-01-26 22:38: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-01-26 22:38:18] Production.INFO: count ==1228 [2025-01-26 22:38:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:38:05 - End Time 2025-01-26 22:38:05 [2025-01-26 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337422', 'tblTempUsageDetail_20' ) start [2025-01-26 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337422', 'tblTempUsageDetail_20' ) end [2025-01-26 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337422', 'tblTempVendorCDR_20' ) start [2025-01-26 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337422', 'tblTempVendorCDR_20' ) end [2025-01-26 22:38:18] Production.INFO: ProcessCDR(1,14337422,1,1,2) [2025-01-26 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337422', 'tblTempUsageDetail_20' ) start [2025-01-26 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337422', 'tblTempUsageDetail_20' ) end [2025-01-26 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:38:21] Production.INFO: ==30274== Releasing lock... [2025-01-26 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:38:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-26 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:39:05 [end_date_ymd] => 2025-01-26 22:39:05 [RateCDR] => 1 ) [2025-01-26 22:39: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-01-26 19:39:05' and `end` < '2025-01-26 22:39: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-01-26 22:39:18] Production.INFO: count ==1231 [2025-01-26 22:39:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:39:05 - End Time 2025-01-26 22:39:05 [2025-01-26 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337427', 'tblTempUsageDetail_20' ) start [2025-01-26 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337427', 'tblTempUsageDetail_20' ) end [2025-01-26 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337427', 'tblTempVendorCDR_20' ) start [2025-01-26 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337427', 'tblTempVendorCDR_20' ) end [2025-01-26 22:39:19] Production.INFO: ProcessCDR(1,14337427,1,1,2) [2025-01-26 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337427', 'tblTempUsageDetail_20' ) start [2025-01-26 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337427', 'tblTempUsageDetail_20' ) end [2025-01-26 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:39:22] Production.INFO: ==30362== Releasing lock... [2025-01-26 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:39:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-26 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:40:05 [end_date_ymd] => 2025-01-26 22:40:05 [RateCDR] => 1 ) [2025-01-26 22:40: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-01-26 19:40:05' and `end` < '2025-01-26 22:40: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-01-26 22:40:18] Production.INFO: count ==1229 [2025-01-26 22:40:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:40:05 - End Time 2025-01-26 22:40:05 [2025-01-26 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337432', 'tblTempUsageDetail_20' ) start [2025-01-26 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337432', 'tblTempUsageDetail_20' ) end [2025-01-26 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337432', 'tblTempVendorCDR_20' ) start [2025-01-26 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337432', 'tblTempVendorCDR_20' ) end [2025-01-26 22:40:18] Production.INFO: ProcessCDR(1,14337432,1,1,2) [2025-01-26 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337432', 'tblTempUsageDetail_20' ) start [2025-01-26 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337432', 'tblTempUsageDetail_20' ) end [2025-01-26 22:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:40:21] Production.INFO: ==30454== Releasing lock... [2025-01-26 22:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:40:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-26 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:41:05 [end_date_ymd] => 2025-01-26 22:41:05 [RateCDR] => 1 ) [2025-01-26 22:41: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-01-26 19:41:05' and `end` < '2025-01-26 22:41: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-01-26 22:41:18] Production.INFO: count ==1182 [2025-01-26 22:41:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:41:05 - End Time 2025-01-26 22:41:05 [2025-01-26 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337438', 'tblTempUsageDetail_20' ) start [2025-01-26 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337438', 'tblTempUsageDetail_20' ) end [2025-01-26 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337438', 'tblTempVendorCDR_20' ) start [2025-01-26 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337438', 'tblTempVendorCDR_20' ) end [2025-01-26 22:41:18] Production.INFO: ProcessCDR(1,14337438,1,1,2) [2025-01-26 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337438', 'tblTempUsageDetail_20' ) start [2025-01-26 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337438', 'tblTempUsageDetail_20' ) end [2025-01-26 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:41:22] Production.INFO: ==30537== Releasing lock... [2025-01-26 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:41:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-26 22:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:42:04 [end_date_ymd] => 2025-01-26 22:42:04 [RateCDR] => 1 ) [2025-01-26 22:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 19:42:04' and `end` < '2025-01-26 22:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 22:42:17] Production.INFO: count ==1177 [2025-01-26 22:42:17] Production.ERROR: pbx CDR StartTime 2025-01-26 19:42:04 - End Time 2025-01-26 22:42:04 [2025-01-26 22:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337443', 'tblTempUsageDetail_20' ) start [2025-01-26 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337443', 'tblTempUsageDetail_20' ) end [2025-01-26 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337443', 'tblTempVendorCDR_20' ) start [2025-01-26 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337443', 'tblTempVendorCDR_20' ) end [2025-01-26 22:42:17] Production.INFO: ProcessCDR(1,14337443,1,1,2) [2025-01-26 22:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337443', 'tblTempUsageDetail_20' ) start [2025-01-26 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337443', 'tblTempUsageDetail_20' ) end [2025-01-26 22:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:42:20] Production.INFO: ==30621== Releasing lock... [2025-01-26 22:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:42:20] Production.INFO: 36.5 MB #Memory Used# [2025-01-26 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:43:05 [end_date_ymd] => 2025-01-26 22:43:05 [RateCDR] => 1 ) [2025-01-26 22:43: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-01-26 19:43:05' and `end` < '2025-01-26 22:43: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-01-26 22:43:18] Production.INFO: count ==1176 [2025-01-26 22:43:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:43:05 - End Time 2025-01-26 22:43:05 [2025-01-26 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337448', 'tblTempUsageDetail_20' ) start [2025-01-26 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337448', 'tblTempUsageDetail_20' ) end [2025-01-26 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337448', 'tblTempVendorCDR_20' ) start [2025-01-26 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337448', 'tblTempVendorCDR_20' ) end [2025-01-26 22:43:18] Production.INFO: ProcessCDR(1,14337448,1,1,2) [2025-01-26 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337448', 'tblTempUsageDetail_20' ) start [2025-01-26 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337448', 'tblTempUsageDetail_20' ) end [2025-01-26 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:43:21] Production.INFO: ==30745== Releasing lock... [2025-01-26 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:43:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-26 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:44:06 [end_date_ymd] => 2025-01-26 22:44:06 [RateCDR] => 1 ) [2025-01-26 22:44: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-01-26 19:44:06' and `end` < '2025-01-26 22:44: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-01-26 22:44:19] Production.INFO: count ==1164 [2025-01-26 22:44:19] Production.ERROR: pbx CDR StartTime 2025-01-26 19:44:06 - End Time 2025-01-26 22:44:06 [2025-01-26 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337453', 'tblTempUsageDetail_20' ) start [2025-01-26 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337453', 'tblTempUsageDetail_20' ) end [2025-01-26 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337453', 'tblTempVendorCDR_20' ) start [2025-01-26 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337453', 'tblTempVendorCDR_20' ) end [2025-01-26 22:44:19] Production.INFO: ProcessCDR(1,14337453,1,1,2) [2025-01-26 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337453', 'tblTempUsageDetail_20' ) start [2025-01-26 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337453', 'tblTempUsageDetail_20' ) end [2025-01-26 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:44:22] Production.INFO: ==30834== Releasing lock... [2025-01-26 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:44:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-26 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:45:05 [end_date_ymd] => 2025-01-26 22:45:05 [RateCDR] => 1 ) [2025-01-26 22:45: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-01-26 19:45:05' and `end` < '2025-01-26 22:45: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-01-26 22:45:18] Production.INFO: count ==1164 [2025-01-26 22:45:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:45:05 - End Time 2025-01-26 22:45:05 [2025-01-26 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337458', 'tblTempUsageDetail_20' ) start [2025-01-26 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337458', 'tblTempUsageDetail_20' ) end [2025-01-26 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337458', 'tblTempVendorCDR_20' ) start [2025-01-26 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337458', 'tblTempVendorCDR_20' ) end [2025-01-26 22:45:18] Production.INFO: ProcessCDR(1,14337458,1,1,2) [2025-01-26 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337458', 'tblTempUsageDetail_20' ) start [2025-01-26 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337458', 'tblTempUsageDetail_20' ) end [2025-01-26 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:45:21] Production.INFO: ==30922== Releasing lock... [2025-01-26 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:45:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-26 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:46:05 [end_date_ymd] => 2025-01-26 22:46:05 [RateCDR] => 1 ) [2025-01-26 22:46: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-01-26 19:46:05' and `end` < '2025-01-26 22:46: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-01-26 22:46:19] Production.INFO: count ==1162 [2025-01-26 22:46:19] Production.ERROR: pbx CDR StartTime 2025-01-26 19:46:05 - End Time 2025-01-26 22:46:05 [2025-01-26 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337463', 'tblTempUsageDetail_20' ) start [2025-01-26 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337463', 'tblTempUsageDetail_20' ) end [2025-01-26 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337463', 'tblTempVendorCDR_20' ) start [2025-01-26 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337463', 'tblTempVendorCDR_20' ) end [2025-01-26 22:46:19] Production.INFO: ProcessCDR(1,14337463,1,1,2) [2025-01-26 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337463', 'tblTempUsageDetail_20' ) start [2025-01-26 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337463', 'tblTempUsageDetail_20' ) end [2025-01-26 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:46:22] Production.INFO: ==31007== Releasing lock... [2025-01-26 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:46:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-26 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:47:05 [end_date_ymd] => 2025-01-26 22:47:05 [RateCDR] => 1 ) [2025-01-26 22:47: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-01-26 19:47:05' and `end` < '2025-01-26 22:47: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-01-26 22:47:17] Production.INFO: count ==1161 [2025-01-26 22:47:17] Production.ERROR: pbx CDR StartTime 2025-01-26 19:47:05 - End Time 2025-01-26 22:47:05 [2025-01-26 22:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337468', 'tblTempUsageDetail_20' ) start [2025-01-26 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337468', 'tblTempUsageDetail_20' ) end [2025-01-26 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337468', 'tblTempVendorCDR_20' ) start [2025-01-26 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337468', 'tblTempVendorCDR_20' ) end [2025-01-26 22:47:17] Production.INFO: ProcessCDR(1,14337468,1,1,2) [2025-01-26 22:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337468', 'tblTempUsageDetail_20' ) start [2025-01-26 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337468', 'tblTempUsageDetail_20' ) end [2025-01-26 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:47:21] Production.INFO: ==31090== Releasing lock... [2025-01-26 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:47:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-26 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:48:05 [end_date_ymd] => 2025-01-26 22:48:05 [RateCDR] => 1 ) [2025-01-26 22:48: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-01-26 19:48:05' and `end` < '2025-01-26 22:48: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-01-26 22:48:18] Production.INFO: count ==1155 [2025-01-26 22:48:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:48:05 - End Time 2025-01-26 22:48:05 [2025-01-26 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337473', 'tblTempUsageDetail_20' ) start [2025-01-26 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337473', 'tblTempUsageDetail_20' ) end [2025-01-26 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337473', 'tblTempVendorCDR_20' ) start [2025-01-26 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337473', 'tblTempVendorCDR_20' ) end [2025-01-26 22:48:18] Production.INFO: ProcessCDR(1,14337473,1,1,2) [2025-01-26 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337473', 'tblTempUsageDetail_20' ) start [2025-01-26 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337473', 'tblTempUsageDetail_20' ) end [2025-01-26 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:48:21] Production.INFO: ==31170== Releasing lock... [2025-01-26 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:48:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-26 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:49:05 [end_date_ymd] => 2025-01-26 22:49:05 [RateCDR] => 1 ) [2025-01-26 22:49: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-01-26 19:49:05' and `end` < '2025-01-26 22:49: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-01-26 22:49:18] Production.INFO: count ==1153 [2025-01-26 22:49:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:49:05 - End Time 2025-01-26 22:49:05 [2025-01-26 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337478', 'tblTempUsageDetail_20' ) start [2025-01-26 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337478', 'tblTempUsageDetail_20' ) end [2025-01-26 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337478', 'tblTempVendorCDR_20' ) start [2025-01-26 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337478', 'tblTempVendorCDR_20' ) end [2025-01-26 22:49:18] Production.INFO: ProcessCDR(1,14337478,1,1,2) [2025-01-26 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337478', 'tblTempUsageDetail_20' ) start [2025-01-26 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337478', 'tblTempUsageDetail_20' ) end [2025-01-26 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:49:21] Production.INFO: ==31257== Releasing lock... [2025-01-26 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:49:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-26 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:50:06 [end_date_ymd] => 2025-01-26 22:50:06 [RateCDR] => 1 ) [2025-01-26 22:50: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-01-26 19:50:06' and `end` < '2025-01-26 22:50: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-01-26 22:50:19] Production.INFO: count ==1140 [2025-01-26 22:50:19] Production.ERROR: pbx CDR StartTime 2025-01-26 19:50:06 - End Time 2025-01-26 22:50:06 [2025-01-26 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337484', 'tblTempUsageDetail_20' ) start [2025-01-26 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337484', 'tblTempUsageDetail_20' ) end [2025-01-26 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337484', 'tblTempVendorCDR_20' ) start [2025-01-26 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337484', 'tblTempVendorCDR_20' ) end [2025-01-26 22:50:19] Production.INFO: ProcessCDR(1,14337484,1,1,2) [2025-01-26 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337484', 'tblTempUsageDetail_20' ) start [2025-01-26 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337484', 'tblTempUsageDetail_20' ) end [2025-01-26 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:50:22] Production.INFO: ==31347== Releasing lock... [2025-01-26 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:50:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-26 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:51:05 [end_date_ymd] => 2025-01-26 22:51:05 [RateCDR] => 1 ) [2025-01-26 22:51: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-01-26 19:51:05' and `end` < '2025-01-26 22:51: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-01-26 22:51:19] Production.INFO: count ==1086 [2025-01-26 22:51:19] Production.ERROR: pbx CDR StartTime 2025-01-26 19:51:05 - End Time 2025-01-26 22:51:05 [2025-01-26 22:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337489', 'tblTempUsageDetail_20' ) start [2025-01-26 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337489', 'tblTempUsageDetail_20' ) end [2025-01-26 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337489', 'tblTempVendorCDR_20' ) start [2025-01-26 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337489', 'tblTempVendorCDR_20' ) end [2025-01-26 22:51:19] Production.INFO: ProcessCDR(1,14337489,1,1,2) [2025-01-26 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337489', 'tblTempUsageDetail_20' ) start [2025-01-26 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337489', 'tblTempUsageDetail_20' ) end [2025-01-26 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:51:22] Production.INFO: ==31427== Releasing lock... [2025-01-26 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:51:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-26 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:52:05 [end_date_ymd] => 2025-01-26 22:52:05 [RateCDR] => 1 ) [2025-01-26 22:52: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-01-26 19:52:05' and `end` < '2025-01-26 22:52: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-01-26 22:52:19] Production.INFO: count ==1082 [2025-01-26 22:52:19] Production.ERROR: pbx CDR StartTime 2025-01-26 19:52:05 - End Time 2025-01-26 22:52:05 [2025-01-26 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337494', 'tblTempUsageDetail_20' ) start [2025-01-26 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337494', 'tblTempUsageDetail_20' ) end [2025-01-26 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337494', 'tblTempVendorCDR_20' ) start [2025-01-26 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337494', 'tblTempVendorCDR_20' ) end [2025-01-26 22:52:19] Production.INFO: ProcessCDR(1,14337494,1,1,2) [2025-01-26 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337494', 'tblTempUsageDetail_20' ) start [2025-01-26 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337494', 'tblTempUsageDetail_20' ) end [2025-01-26 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:52:22] Production.INFO: ==31509== Releasing lock... [2025-01-26 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:52:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-26 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:53:05 [end_date_ymd] => 2025-01-26 22:53:05 [RateCDR] => 1 ) [2025-01-26 22:53: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-01-26 19:53:05' and `end` < '2025-01-26 22:53: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-01-26 22:53:18] Production.INFO: count ==1078 [2025-01-26 22:53:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:53:05 - End Time 2025-01-26 22:53:05 [2025-01-26 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337499', 'tblTempUsageDetail_20' ) start [2025-01-26 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337499', 'tblTempUsageDetail_20' ) end [2025-01-26 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337499', 'tblTempVendorCDR_20' ) start [2025-01-26 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337499', 'tblTempVendorCDR_20' ) end [2025-01-26 22:53:18] Production.INFO: ProcessCDR(1,14337499,1,1,2) [2025-01-26 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337499', 'tblTempUsageDetail_20' ) start [2025-01-26 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337499', 'tblTempUsageDetail_20' ) end [2025-01-26 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:53:21] Production.INFO: ==31593== Releasing lock... [2025-01-26 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:53:21] Production.INFO: 36 MB #Memory Used# [2025-01-26 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:54:05 [end_date_ymd] => 2025-01-26 22:54:05 [RateCDR] => 1 ) [2025-01-26 22:54: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-01-26 19:54:05' and `end` < '2025-01-26 22:54: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-01-26 22:54:17] Production.INFO: count ==1082 [2025-01-26 22:54:17] Production.ERROR: pbx CDR StartTime 2025-01-26 19:54:05 - End Time 2025-01-26 22:54:05 [2025-01-26 22:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337504', 'tblTempUsageDetail_20' ) start [2025-01-26 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337504', 'tblTempUsageDetail_20' ) end [2025-01-26 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337504', 'tblTempVendorCDR_20' ) start [2025-01-26 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337504', 'tblTempVendorCDR_20' ) end [2025-01-26 22:54:17] Production.INFO: ProcessCDR(1,14337504,1,1,2) [2025-01-26 22:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337504', 'tblTempUsageDetail_20' ) start [2025-01-26 22:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337504', 'tblTempUsageDetail_20' ) end [2025-01-26 22:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:54:20] Production.INFO: ==31682== Releasing lock... [2025-01-26 22:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:54:20] Production.INFO: 35.75 MB #Memory Used# [2025-01-26 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:55:05 [end_date_ymd] => 2025-01-26 22:55:05 [RateCDR] => 1 ) [2025-01-26 22:55: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-01-26 19:55:05' and `end` < '2025-01-26 22:55: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-01-26 22:55:18] Production.INFO: count ==1081 [2025-01-26 22:55:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:55:05 - End Time 2025-01-26 22:55:05 [2025-01-26 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337509', 'tblTempUsageDetail_20' ) start [2025-01-26 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337509', 'tblTempUsageDetail_20' ) end [2025-01-26 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337509', 'tblTempVendorCDR_20' ) start [2025-01-26 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337509', 'tblTempVendorCDR_20' ) end [2025-01-26 22:55:18] Production.INFO: ProcessCDR(1,14337509,1,1,2) [2025-01-26 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337509', 'tblTempUsageDetail_20' ) start [2025-01-26 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337509', 'tblTempUsageDetail_20' ) end [2025-01-26 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:55:21] Production.INFO: ==31767== Releasing lock... [2025-01-26 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:55:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-26 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:56:06 [end_date_ymd] => 2025-01-26 22:56:06 [RateCDR] => 1 ) [2025-01-26 22:56: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-01-26 19:56:06' and `end` < '2025-01-26 22:56: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-01-26 22:56:19] Production.INFO: count ==1080 [2025-01-26 22:56:19] Production.ERROR: pbx CDR StartTime 2025-01-26 19:56:06 - End Time 2025-01-26 22:56:06 [2025-01-26 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337514', 'tblTempUsageDetail_20' ) start [2025-01-26 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337514', 'tblTempUsageDetail_20' ) end [2025-01-26 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337514', 'tblTempVendorCDR_20' ) start [2025-01-26 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337514', 'tblTempVendorCDR_20' ) end [2025-01-26 22:56:19] Production.INFO: ProcessCDR(1,14337514,1,1,2) [2025-01-26 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337514', 'tblTempUsageDetail_20' ) start [2025-01-26 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337514', 'tblTempUsageDetail_20' ) end [2025-01-26 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:56:22] Production.INFO: ==31854== Releasing lock... [2025-01-26 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:56:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-26 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:57:05 [end_date_ymd] => 2025-01-26 22:57:05 [RateCDR] => 1 ) [2025-01-26 22:57: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-01-26 19:57:05' and `end` < '2025-01-26 22:57: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-01-26 22:57:19] Production.INFO: count ==1078 [2025-01-26 22:57:19] Production.ERROR: pbx CDR StartTime 2025-01-26 19:57:05 - End Time 2025-01-26 22:57:05 [2025-01-26 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337519', 'tblTempUsageDetail_20' ) start [2025-01-26 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337519', 'tblTempUsageDetail_20' ) end [2025-01-26 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337519', 'tblTempVendorCDR_20' ) start [2025-01-26 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337519', 'tblTempVendorCDR_20' ) end [2025-01-26 22:57:19] Production.INFO: ProcessCDR(1,14337519,1,1,2) [2025-01-26 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337519', 'tblTempUsageDetail_20' ) start [2025-01-26 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337519', 'tblTempUsageDetail_20' ) end [2025-01-26 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:57:22] Production.INFO: ==31936== Releasing lock... [2025-01-26 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:57:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-26 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:58:05 [end_date_ymd] => 2025-01-26 22:58:05 [RateCDR] => 1 ) [2025-01-26 22:58: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-01-26 19:58:05' and `end` < '2025-01-26 22:58: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-01-26 22:58:18] Production.INFO: count ==1072 [2025-01-26 22:58:19] Production.ERROR: pbx CDR StartTime 2025-01-26 19:58:05 - End Time 2025-01-26 22:58:05 [2025-01-26 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337524', 'tblTempUsageDetail_20' ) start [2025-01-26 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337524', 'tblTempUsageDetail_20' ) end [2025-01-26 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337524', 'tblTempVendorCDR_20' ) start [2025-01-26 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337524', 'tblTempVendorCDR_20' ) end [2025-01-26 22:58:19] Production.INFO: ProcessCDR(1,14337524,1,1,2) [2025-01-26 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337524', 'tblTempUsageDetail_20' ) start [2025-01-26 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337524', 'tblTempUsageDetail_20' ) end [2025-01-26 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:58:22] Production.INFO: ==32019== Releasing lock... [2025-01-26 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:58:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-26 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 19:59:05 [end_date_ymd] => 2025-01-26 22:59:05 [RateCDR] => 1 ) [2025-01-26 22:59: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-01-26 19:59:05' and `end` < '2025-01-26 22:59: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-01-26 22:59:18] Production.INFO: count ==1072 [2025-01-26 22:59:18] Production.ERROR: pbx CDR StartTime 2025-01-26 19:59:05 - End Time 2025-01-26 22:59:05 [2025-01-26 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337529', 'tblTempUsageDetail_20' ) start [2025-01-26 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337529', 'tblTempUsageDetail_20' ) end [2025-01-26 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337529', 'tblTempVendorCDR_20' ) start [2025-01-26 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337529', 'tblTempVendorCDR_20' ) end [2025-01-26 22:59:18] Production.INFO: ProcessCDR(1,14337529,1,1,2) [2025-01-26 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337529', 'tblTempUsageDetail_20' ) start [2025-01-26 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337529', 'tblTempUsageDetail_20' ) end [2025-01-26 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 22:59:21] Production.INFO: ==32147== Releasing lock... [2025-01-26 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 22:59:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-26 23:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:00:07 [end_date_ymd] => 2025-01-26 23:00:07 [RateCDR] => 1 ) [2025-01-26 23: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-01-26 20:00:07' and `end` < '2025-01-26 23: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-01-26 23:00:19] Production.INFO: count ==1066 [2025-01-26 23:00:20] Production.ERROR: pbx CDR StartTime 2025-01-26 20:00:07 - End Time 2025-01-26 23:00:07 [2025-01-26 23:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337535', 'tblTempUsageDetail_20' ) start [2025-01-26 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337535', 'tblTempUsageDetail_20' ) end [2025-01-26 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337535', 'tblTempVendorCDR_20' ) start [2025-01-26 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337535', 'tblTempVendorCDR_20' ) end [2025-01-26 23:00:20] Production.INFO: ProcessCDR(1,14337535,1,1,2) [2025-01-26 23:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337535', 'tblTempUsageDetail_20' ) start [2025-01-26 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337535', 'tblTempUsageDetail_20' ) end [2025-01-26 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:00:23] Production.INFO: ==32233== Releasing lock... [2025-01-26 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:00:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-26 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:01:05 [end_date_ymd] => 2025-01-26 23:01:05 [RateCDR] => 1 ) [2025-01-26 23:01: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-01-26 20:01:05' and `end` < '2025-01-26 23:01: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-01-26 23:01:19] Production.INFO: count ==1045 [2025-01-26 23:01:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:01:05 - End Time 2025-01-26 23:01:05 [2025-01-26 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337540', 'tblTempUsageDetail_20' ) start [2025-01-26 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337540', 'tblTempUsageDetail_20' ) end [2025-01-26 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337540', 'tblTempVendorCDR_20' ) start [2025-01-26 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337540', 'tblTempVendorCDR_20' ) end [2025-01-26 23:01:19] Production.INFO: ProcessCDR(1,14337540,1,1,2) [2025-01-26 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337540', 'tblTempUsageDetail_20' ) start [2025-01-26 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337540', 'tblTempUsageDetail_20' ) end [2025-01-26 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:01:22] Production.INFO: ==32411== Releasing lock... [2025-01-26 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:01:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-26 23:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:02:06 [end_date_ymd] => 2025-01-26 23:02:06 [RateCDR] => 1 ) [2025-01-26 23:02: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-01-26 20:02:06' and `end` < '2025-01-26 23:02: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-01-26 23:02:19] Production.INFO: count ==1044 [2025-01-26 23:02:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:02:06 - End Time 2025-01-26 23:02:06 [2025-01-26 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337545', 'tblTempUsageDetail_20' ) start [2025-01-26 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337545', 'tblTempUsageDetail_20' ) end [2025-01-26 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337545', 'tblTempVendorCDR_20' ) start [2025-01-26 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337545', 'tblTempVendorCDR_20' ) end [2025-01-26 23:02:19] Production.INFO: ProcessCDR(1,14337545,1,1,2) [2025-01-26 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337545', 'tblTempUsageDetail_20' ) start [2025-01-26 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337545', 'tblTempUsageDetail_20' ) end [2025-01-26 23:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:02:23] Production.INFO: ==32490== Releasing lock... [2025-01-26 23:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:02:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-26 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:03:06 [end_date_ymd] => 2025-01-26 23:03:06 [RateCDR] => 1 ) [2025-01-26 23:03: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-01-26 20:03:06' and `end` < '2025-01-26 23:03: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-01-26 23:03:19] Production.INFO: count ==1043 [2025-01-26 23:03:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:03:06 - End Time 2025-01-26 23:03:06 [2025-01-26 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337550', 'tblTempUsageDetail_20' ) start [2025-01-26 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337550', 'tblTempUsageDetail_20' ) end [2025-01-26 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337550', 'tblTempVendorCDR_20' ) start [2025-01-26 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337550', 'tblTempVendorCDR_20' ) end [2025-01-26 23:03:19] Production.INFO: ProcessCDR(1,14337550,1,1,2) [2025-01-26 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337550', 'tblTempUsageDetail_20' ) start [2025-01-26 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337550', 'tblTempUsageDetail_20' ) end [2025-01-26 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:03:22] Production.INFO: ==32571== Releasing lock... [2025-01-26 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:03:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-26 23:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:04:06 [end_date_ymd] => 2025-01-26 23:04:06 [RateCDR] => 1 ) [2025-01-26 23:04: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-01-26 20:04:06' and `end` < '2025-01-26 23:04: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-01-26 23:04:20] Production.INFO: count ==1042 [2025-01-26 23:04:20] Production.ERROR: pbx CDR StartTime 2025-01-26 20:04:06 - End Time 2025-01-26 23:04:06 [2025-01-26 23:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337555', 'tblTempUsageDetail_20' ) start [2025-01-26 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337555', 'tblTempUsageDetail_20' ) end [2025-01-26 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337555', 'tblTempVendorCDR_20' ) start [2025-01-26 23:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337555', 'tblTempVendorCDR_20' ) end [2025-01-26 23:04:20] Production.INFO: ProcessCDR(1,14337555,1,1,2) [2025-01-26 23:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337555', 'tblTempUsageDetail_20' ) start [2025-01-26 23:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337555', 'tblTempUsageDetail_20' ) end [2025-01-26 23:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:04:23] Production.INFO: ==32658== Releasing lock... [2025-01-26 23:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:04:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-26 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:05:05 [end_date_ymd] => 2025-01-26 23:05:05 [RateCDR] => 1 ) [2025-01-26 23:05: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-01-26 20:05:05' and `end` < '2025-01-26 23:05: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-01-26 23:05:18] Production.INFO: count ==1042 [2025-01-26 23:05:18] Production.ERROR: pbx CDR StartTime 2025-01-26 20:05:05 - End Time 2025-01-26 23:05:05 [2025-01-26 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337560', 'tblTempUsageDetail_20' ) start [2025-01-26 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337560', 'tblTempUsageDetail_20' ) end [2025-01-26 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337560', 'tblTempVendorCDR_20' ) start [2025-01-26 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337560', 'tblTempVendorCDR_20' ) end [2025-01-26 23:05:18] Production.INFO: ProcessCDR(1,14337560,1,1,2) [2025-01-26 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337560', 'tblTempUsageDetail_20' ) start [2025-01-26 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337560', 'tblTempUsageDetail_20' ) end [2025-01-26 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:05:21] Production.INFO: ==378== Releasing lock... [2025-01-26 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:05:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-26 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:06:05 [end_date_ymd] => 2025-01-26 23:06:05 [RateCDR] => 1 ) [2025-01-26 23:06: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-01-26 20:06:05' and `end` < '2025-01-26 23:06: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-01-26 23:06:18] Production.INFO: count ==1041 [2025-01-26 23:06:18] Production.ERROR: pbx CDR StartTime 2025-01-26 20:06:05 - End Time 2025-01-26 23:06:05 [2025-01-26 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337565', 'tblTempUsageDetail_20' ) start [2025-01-26 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337565', 'tblTempUsageDetail_20' ) end [2025-01-26 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337565', 'tblTempVendorCDR_20' ) start [2025-01-26 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337565', 'tblTempVendorCDR_20' ) end [2025-01-26 23:06:18] Production.INFO: ProcessCDR(1,14337565,1,1,2) [2025-01-26 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337565', 'tblTempUsageDetail_20' ) start [2025-01-26 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337565', 'tblTempUsageDetail_20' ) end [2025-01-26 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:06:21] Production.INFO: ==460== Releasing lock... [2025-01-26 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:06:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-26 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:07:05 [end_date_ymd] => 2025-01-26 23:07:05 [RateCDR] => 1 ) [2025-01-26 23:07: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-01-26 20:07:05' and `end` < '2025-01-26 23:07: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-01-26 23:07:19] Production.INFO: count ==1039 [2025-01-26 23:07:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:07:05 - End Time 2025-01-26 23:07:05 [2025-01-26 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337570', 'tblTempUsageDetail_20' ) start [2025-01-26 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337570', 'tblTempUsageDetail_20' ) end [2025-01-26 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337570', 'tblTempVendorCDR_20' ) start [2025-01-26 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337570', 'tblTempVendorCDR_20' ) end [2025-01-26 23:07:19] Production.INFO: ProcessCDR(1,14337570,1,1,2) [2025-01-26 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337570', 'tblTempUsageDetail_20' ) start [2025-01-26 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337570', 'tblTempUsageDetail_20' ) end [2025-01-26 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:07:22] Production.INFO: ==545== Releasing lock... [2025-01-26 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:07:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-26 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:08:05 [end_date_ymd] => 2025-01-26 23:08:05 [RateCDR] => 1 ) [2025-01-26 23:08: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-01-26 20:08:05' and `end` < '2025-01-26 23:08: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-01-26 23:08:18] Production.INFO: count ==1038 [2025-01-26 23:08:18] Production.ERROR: pbx CDR StartTime 2025-01-26 20:08:05 - End Time 2025-01-26 23:08:05 [2025-01-26 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337575', 'tblTempUsageDetail_20' ) start [2025-01-26 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337575', 'tblTempUsageDetail_20' ) end [2025-01-26 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337575', 'tblTempVendorCDR_20' ) start [2025-01-26 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337575', 'tblTempVendorCDR_20' ) end [2025-01-26 23:08:18] Production.INFO: ProcessCDR(1,14337575,1,1,2) [2025-01-26 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337575', 'tblTempUsageDetail_20' ) start [2025-01-26 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337575', 'tblTempUsageDetail_20' ) end [2025-01-26 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:08:21] Production.INFO: ==747== Releasing lock... [2025-01-26 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:08:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-26 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:09:05 [end_date_ymd] => 2025-01-26 23:09:05 [RateCDR] => 1 ) [2025-01-26 23:09: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-01-26 20:09:05' and `end` < '2025-01-26 23:09: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-01-26 23:09:19] Production.INFO: count ==1036 [2025-01-26 23:09:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:09:05 - End Time 2025-01-26 23:09:05 [2025-01-26 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337580', 'tblTempUsageDetail_20' ) start [2025-01-26 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337580', 'tblTempUsageDetail_20' ) end [2025-01-26 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337580', 'tblTempVendorCDR_20' ) start [2025-01-26 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337580', 'tblTempVendorCDR_20' ) end [2025-01-26 23:09:19] Production.INFO: ProcessCDR(1,14337580,1,1,2) [2025-01-26 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337580', 'tblTempUsageDetail_20' ) start [2025-01-26 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337580', 'tblTempUsageDetail_20' ) end [2025-01-26 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:09:22] Production.INFO: ==825== Releasing lock... [2025-01-26 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:09:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-26 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:10:06 [end_date_ymd] => 2025-01-26 23:10:06 [RateCDR] => 1 ) [2025-01-26 23:10: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-01-26 20:10:06' and `end` < '2025-01-26 23:10: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-01-26 23:10:19] Production.INFO: count ==1039 [2025-01-26 23:10:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:10:06 - End Time 2025-01-26 23:10:06 [2025-01-26 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337586', 'tblTempUsageDetail_20' ) start [2025-01-26 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337586', 'tblTempUsageDetail_20' ) end [2025-01-26 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337586', 'tblTempVendorCDR_20' ) start [2025-01-26 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337586', 'tblTempVendorCDR_20' ) end [2025-01-26 23:10:19] Production.INFO: ProcessCDR(1,14337586,1,1,2) [2025-01-26 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337586', 'tblTempUsageDetail_20' ) start [2025-01-26 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337586', 'tblTempUsageDetail_20' ) end [2025-01-26 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:10:23] Production.INFO: ==914== Releasing lock... [2025-01-26 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:10:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-26 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:11:05 [end_date_ymd] => 2025-01-26 23:11:05 [RateCDR] => 1 ) [2025-01-26 23:11: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-01-26 20:11:05' and `end` < '2025-01-26 23:11: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-01-26 23:11:18] Production.INFO: count ==1021 [2025-01-26 23:11:18] Production.ERROR: pbx CDR StartTime 2025-01-26 20:11:05 - End Time 2025-01-26 23:11:05 [2025-01-26 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337591', 'tblTempUsageDetail_20' ) start [2025-01-26 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337591', 'tblTempUsageDetail_20' ) end [2025-01-26 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337591', 'tblTempVendorCDR_20' ) start [2025-01-26 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337591', 'tblTempVendorCDR_20' ) end [2025-01-26 23:11:18] Production.INFO: ProcessCDR(1,14337591,1,1,2) [2025-01-26 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337591', 'tblTempUsageDetail_20' ) start [2025-01-26 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337591', 'tblTempUsageDetail_20' ) end [2025-01-26 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:11:21] Production.INFO: ==994== Releasing lock... [2025-01-26 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:11:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-26 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:12:05 [end_date_ymd] => 2025-01-26 23:12:05 [RateCDR] => 1 ) [2025-01-26 23:12: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-01-26 20:12:05' and `end` < '2025-01-26 23:12: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-01-26 23:12:18] Production.INFO: count ==1024 [2025-01-26 23:12:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:12:05 - End Time 2025-01-26 23:12:05 [2025-01-26 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337596', 'tblTempUsageDetail_20' ) start [2025-01-26 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337596', 'tblTempUsageDetail_20' ) end [2025-01-26 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337596', 'tblTempVendorCDR_20' ) start [2025-01-26 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337596', 'tblTempVendorCDR_20' ) end [2025-01-26 23:12:19] Production.INFO: ProcessCDR(1,14337596,1,1,2) [2025-01-26 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337596', 'tblTempUsageDetail_20' ) start [2025-01-26 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337596', 'tblTempUsageDetail_20' ) end [2025-01-26 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:12:22] Production.INFO: ==1153== Releasing lock... [2025-01-26 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:12:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-26 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:13:05 [end_date_ymd] => 2025-01-26 23:13:05 [RateCDR] => 1 ) [2025-01-26 23:13: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-01-26 20:13:05' and `end` < '2025-01-26 23:13: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-01-26 23:13:19] Production.INFO: count ==1024 [2025-01-26 23:13:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:13:05 - End Time 2025-01-26 23:13:05 [2025-01-26 23:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337601', 'tblTempUsageDetail_20' ) start [2025-01-26 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337601', 'tblTempUsageDetail_20' ) end [2025-01-26 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337601', 'tblTempVendorCDR_20' ) start [2025-01-26 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337601', 'tblTempVendorCDR_20' ) end [2025-01-26 23:13:19] Production.INFO: ProcessCDR(1,14337601,1,1,2) [2025-01-26 23:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337601', 'tblTempUsageDetail_20' ) start [2025-01-26 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337601', 'tblTempUsageDetail_20' ) end [2025-01-26 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:13:22] Production.INFO: ==1236== Releasing lock... [2025-01-26 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:13:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-26 23:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:14:06 [end_date_ymd] => 2025-01-26 23:14:06 [RateCDR] => 1 ) [2025-01-26 23:14: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-01-26 20:14:06' and `end` < '2025-01-26 23:14: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-01-26 23:14:20] Production.INFO: count ==1024 [2025-01-26 23:14:20] Production.ERROR: pbx CDR StartTime 2025-01-26 20:14:06 - End Time 2025-01-26 23:14:06 [2025-01-26 23:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337606', 'tblTempUsageDetail_20' ) start [2025-01-26 23:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337606', 'tblTempUsageDetail_20' ) end [2025-01-26 23:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337606', 'tblTempVendorCDR_20' ) start [2025-01-26 23:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337606', 'tblTempVendorCDR_20' ) end [2025-01-26 23:14:20] Production.INFO: ProcessCDR(1,14337606,1,1,2) [2025-01-26 23:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337606', 'tblTempUsageDetail_20' ) start [2025-01-26 23:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337606', 'tblTempUsageDetail_20' ) end [2025-01-26 23:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:14:24] Production.INFO: ==1374== Releasing lock... [2025-01-26 23:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:14:24] Production.INFO: 35.25 MB #Memory Used# [2025-01-26 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:15:05 [end_date_ymd] => 2025-01-26 23:15:05 [RateCDR] => 1 ) [2025-01-26 23:15: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-01-26 20:15:05' and `end` < '2025-01-26 23:15: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-01-26 23:15:17] Production.INFO: count ==1019 [2025-01-26 23:15:17] Production.ERROR: pbx CDR StartTime 2025-01-26 20:15:05 - End Time 2025-01-26 23:15:05 [2025-01-26 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337611', 'tblTempUsageDetail_20' ) start [2025-01-26 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337611', 'tblTempUsageDetail_20' ) end [2025-01-26 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337611', 'tblTempVendorCDR_20' ) start [2025-01-26 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337611', 'tblTempVendorCDR_20' ) end [2025-01-26 23:15:17] Production.INFO: ProcessCDR(1,14337611,1,1,2) [2025-01-26 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337611', 'tblTempUsageDetail_20' ) start [2025-01-26 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337611', 'tblTempUsageDetail_20' ) end [2025-01-26 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:15:21] Production.INFO: ==1561== Releasing lock... [2025-01-26 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:15:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-26 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:16:05 [end_date_ymd] => 2025-01-26 23:16:05 [RateCDR] => 1 ) [2025-01-26 23:16: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-01-26 20:16:05' and `end` < '2025-01-26 23:16: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-01-26 23:16:18] Production.INFO: count ==1019 [2025-01-26 23:16:18] Production.ERROR: pbx CDR StartTime 2025-01-26 20:16:05 - End Time 2025-01-26 23:16:05 [2025-01-26 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337616', 'tblTempUsageDetail_20' ) start [2025-01-26 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337616', 'tblTempUsageDetail_20' ) end [2025-01-26 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337616', 'tblTempVendorCDR_20' ) start [2025-01-26 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337616', 'tblTempVendorCDR_20' ) end [2025-01-26 23:16:18] Production.INFO: ProcessCDR(1,14337616,1,1,2) [2025-01-26 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337616', 'tblTempUsageDetail_20' ) start [2025-01-26 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337616', 'tblTempUsageDetail_20' ) end [2025-01-26 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:16:21] Production.INFO: ==1642== Releasing lock... [2025-01-26 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:16:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-26 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:17:05 [end_date_ymd] => 2025-01-26 23:17:05 [RateCDR] => 1 ) [2025-01-26 23:17: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-01-26 20:17:05' and `end` < '2025-01-26 23:17: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-01-26 23:17:18] Production.INFO: count ==1015 [2025-01-26 23:17:18] Production.ERROR: pbx CDR StartTime 2025-01-26 20:17:05 - End Time 2025-01-26 23:17:05 [2025-01-26 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337621', 'tblTempUsageDetail_20' ) start [2025-01-26 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337621', 'tblTempUsageDetail_20' ) end [2025-01-26 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337621', 'tblTempVendorCDR_20' ) start [2025-01-26 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337621', 'tblTempVendorCDR_20' ) end [2025-01-26 23:17:18] Production.INFO: ProcessCDR(1,14337621,1,1,2) [2025-01-26 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337621', 'tblTempUsageDetail_20' ) start [2025-01-26 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337621', 'tblTempUsageDetail_20' ) end [2025-01-26 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:17:21] Production.INFO: ==1716== Releasing lock... [2025-01-26 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:17:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-26 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:18:05 [end_date_ymd] => 2025-01-26 23:18:05 [RateCDR] => 1 ) [2025-01-26 23:18: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-01-26 20:18:05' and `end` < '2025-01-26 23:18: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-01-26 23:18:18] Production.INFO: count ==1011 [2025-01-26 23:18:18] Production.ERROR: pbx CDR StartTime 2025-01-26 20:18:05 - End Time 2025-01-26 23:18:05 [2025-01-26 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337626', 'tblTempUsageDetail_20' ) start [2025-01-26 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337626', 'tblTempUsageDetail_20' ) end [2025-01-26 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337626', 'tblTempVendorCDR_20' ) start [2025-01-26 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337626', 'tblTempVendorCDR_20' ) end [2025-01-26 23:18:18] Production.INFO: ProcessCDR(1,14337626,1,1,2) [2025-01-26 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337626', 'tblTempUsageDetail_20' ) start [2025-01-26 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337626', 'tblTempUsageDetail_20' ) end [2025-01-26 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:18:21] Production.INFO: ==1786== Releasing lock... [2025-01-26 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:18:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-26 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:19:05 [end_date_ymd] => 2025-01-26 23:19:05 [RateCDR] => 1 ) [2025-01-26 23:19: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-01-26 20:19:05' and `end` < '2025-01-26 23:19: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-01-26 23:19:19] Production.INFO: count ==1008 [2025-01-26 23:19:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:19:05 - End Time 2025-01-26 23:19:05 [2025-01-26 23:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337631', 'tblTempUsageDetail_20' ) start [2025-01-26 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337631', 'tblTempUsageDetail_20' ) end [2025-01-26 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337631', 'tblTempVendorCDR_20' ) start [2025-01-26 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337631', 'tblTempVendorCDR_20' ) end [2025-01-26 23:19:19] Production.INFO: ProcessCDR(1,14337631,1,1,2) [2025-01-26 23:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337631', 'tblTempUsageDetail_20' ) start [2025-01-26 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337631', 'tblTempUsageDetail_20' ) end [2025-01-26 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:19:22] Production.INFO: ==1866== Releasing lock... [2025-01-26 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:19:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-26 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:20:05 [end_date_ymd] => 2025-01-26 23:20:05 [RateCDR] => 1 ) [2025-01-26 23:20: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-01-26 20:20:05' and `end` < '2025-01-26 23:20: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-01-26 23:20:18] Production.INFO: count ==1007 [2025-01-26 23:20:18] Production.ERROR: pbx CDR StartTime 2025-01-26 20:20:05 - End Time 2025-01-26 23:20:05 [2025-01-26 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337637', 'tblTempUsageDetail_20' ) start [2025-01-26 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337637', 'tblTempUsageDetail_20' ) end [2025-01-26 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337637', 'tblTempVendorCDR_20' ) start [2025-01-26 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337637', 'tblTempVendorCDR_20' ) end [2025-01-26 23:20:18] Production.INFO: ProcessCDR(1,14337637,1,1,2) [2025-01-26 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337637', 'tblTempUsageDetail_20' ) start [2025-01-26 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337637', 'tblTempUsageDetail_20' ) end [2025-01-26 23:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:20:21] Production.INFO: ==1942== Releasing lock... [2025-01-26 23:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:20:21] Production.INFO: 35 MB #Memory Used# [2025-01-26 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:21:05 [end_date_ymd] => 2025-01-26 23:21:05 [RateCDR] => 1 ) [2025-01-26 23:21: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-01-26 20:21:05' and `end` < '2025-01-26 23:21: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-01-26 23:21:18] Production.INFO: count ==975 [2025-01-26 23:21:18] Production.ERROR: pbx CDR StartTime 2025-01-26 20:21:05 - End Time 2025-01-26 23:21:05 [2025-01-26 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337642', 'tblTempUsageDetail_20' ) start [2025-01-26 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337642', 'tblTempUsageDetail_20' ) end [2025-01-26 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337642', 'tblTempVendorCDR_20' ) start [2025-01-26 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337642', 'tblTempVendorCDR_20' ) end [2025-01-26 23:21:18] Production.INFO: ProcessCDR(1,14337642,1,1,2) [2025-01-26 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337642', 'tblTempUsageDetail_20' ) start [2025-01-26 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337642', 'tblTempUsageDetail_20' ) end [2025-01-26 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:21:21] Production.INFO: ==2019== Releasing lock... [2025-01-26 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:21:21] Production.INFO: 35 MB #Memory Used# [2025-01-26 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:22:05 [end_date_ymd] => 2025-01-26 23:22:05 [RateCDR] => 1 ) [2025-01-26 23:22: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-01-26 20:22:05' and `end` < '2025-01-26 23:22: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-01-26 23:22:18] Production.INFO: count ==980 [2025-01-26 23:22:18] Production.ERROR: pbx CDR StartTime 2025-01-26 20:22:05 - End Time 2025-01-26 23:22:05 [2025-01-26 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337647', 'tblTempUsageDetail_20' ) start [2025-01-26 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337647', 'tblTempUsageDetail_20' ) end [2025-01-26 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337647', 'tblTempVendorCDR_20' ) start [2025-01-26 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337647', 'tblTempVendorCDR_20' ) end [2025-01-26 23:22:18] Production.INFO: ProcessCDR(1,14337647,1,1,2) [2025-01-26 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337647', 'tblTempUsageDetail_20' ) start [2025-01-26 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337647', 'tblTempUsageDetail_20' ) end [2025-01-26 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:22:21] Production.INFO: ==2092== Releasing lock... [2025-01-26 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:22:21] Production.INFO: 35 MB #Memory Used# [2025-01-26 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:23:05 [end_date_ymd] => 2025-01-26 23:23:05 [RateCDR] => 1 ) [2025-01-26 23:23: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-01-26 20:23:05' and `end` < '2025-01-26 23:23: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-01-26 23:23:18] Production.INFO: count ==979 [2025-01-26 23:23:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:23:05 - End Time 2025-01-26 23:23:05 [2025-01-26 23:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337652', 'tblTempUsageDetail_20' ) start [2025-01-26 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337652', 'tblTempUsageDetail_20' ) end [2025-01-26 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337652', 'tblTempVendorCDR_20' ) start [2025-01-26 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337652', 'tblTempVendorCDR_20' ) end [2025-01-26 23:23:19] Production.INFO: ProcessCDR(1,14337652,1,1,2) [2025-01-26 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337652', 'tblTempUsageDetail_20' ) start [2025-01-26 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337652', 'tblTempUsageDetail_20' ) end [2025-01-26 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:23:22] Production.INFO: ==2163== Releasing lock... [2025-01-26 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:23:22] Production.INFO: 35 MB #Memory Used# [2025-01-26 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:24:05 [end_date_ymd] => 2025-01-26 23:24:05 [RateCDR] => 1 ) [2025-01-26 23:24: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-01-26 20:24:05' and `end` < '2025-01-26 23:24: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-01-26 23:24:17] Production.INFO: count ==979 [2025-01-26 23:24:17] Production.ERROR: pbx CDR StartTime 2025-01-26 20:24:05 - End Time 2025-01-26 23:24:05 [2025-01-26 23:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337657', 'tblTempUsageDetail_20' ) start [2025-01-26 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337657', 'tblTempUsageDetail_20' ) end [2025-01-26 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337657', 'tblTempVendorCDR_20' ) start [2025-01-26 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337657', 'tblTempVendorCDR_20' ) end [2025-01-26 23:24:17] Production.INFO: ProcessCDR(1,14337657,1,1,2) [2025-01-26 23:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337657', 'tblTempUsageDetail_20' ) start [2025-01-26 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337657', 'tblTempUsageDetail_20' ) end [2025-01-26 23:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:24:20] Production.INFO: ==2234== Releasing lock... [2025-01-26 23:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:24:20] Production.INFO: 35 MB #Memory Used# [2025-01-26 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:25:05 [end_date_ymd] => 2025-01-26 23:25:05 [RateCDR] => 1 ) [2025-01-26 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 20:25:05' and `end` < '2025-01-26 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 23:25:18] Production.INFO: count ==976 [2025-01-26 23:25:18] Production.ERROR: pbx CDR StartTime 2025-01-26 20:25:05 - End Time 2025-01-26 23:25:05 [2025-01-26 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337662', 'tblTempUsageDetail_20' ) start [2025-01-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337662', 'tblTempUsageDetail_20' ) end [2025-01-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337662', 'tblTempVendorCDR_20' ) start [2025-01-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337662', 'tblTempVendorCDR_20' ) end [2025-01-26 23:25:18] Production.INFO: ProcessCDR(1,14337662,1,1,2) [2025-01-26 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337662', 'tblTempUsageDetail_20' ) start [2025-01-26 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337662', 'tblTempUsageDetail_20' ) end [2025-01-26 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:25:21] Production.INFO: ==2304== Releasing lock... [2025-01-26 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:25:21] Production.INFO: 35 MB #Memory Used# [2025-01-26 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:26:05 [end_date_ymd] => 2025-01-26 23:26:05 [RateCDR] => 1 ) [2025-01-26 23:26: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-01-26 20:26:05' and `end` < '2025-01-26 23:26: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-01-26 23:26:19] Production.INFO: count ==976 [2025-01-26 23:26:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:26:05 - End Time 2025-01-26 23:26:05 [2025-01-26 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337667', 'tblTempUsageDetail_20' ) start [2025-01-26 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337667', 'tblTempUsageDetail_20' ) end [2025-01-26 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337667', 'tblTempVendorCDR_20' ) start [2025-01-26 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337667', 'tblTempVendorCDR_20' ) end [2025-01-26 23:26:19] Production.INFO: ProcessCDR(1,14337667,1,1,2) [2025-01-26 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337667', 'tblTempUsageDetail_20' ) start [2025-01-26 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337667', 'tblTempUsageDetail_20' ) end [2025-01-26 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:26:22] Production.INFO: ==2379== Releasing lock... [2025-01-26 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:26:22] Production.INFO: 35 MB #Memory Used# [2025-01-26 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:27:05 [end_date_ymd] => 2025-01-26 23:27:05 [RateCDR] => 1 ) [2025-01-26 23:27: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-01-26 20:27:05' and `end` < '2025-01-26 23:27: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-01-26 23:27:19] Production.INFO: count ==973 [2025-01-26 23:27:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:27:05 - End Time 2025-01-26 23:27:05 [2025-01-26 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337672', 'tblTempUsageDetail_20' ) start [2025-01-26 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337672', 'tblTempUsageDetail_20' ) end [2025-01-26 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337672', 'tblTempVendorCDR_20' ) start [2025-01-26 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337672', 'tblTempVendorCDR_20' ) end [2025-01-26 23:27:19] Production.INFO: ProcessCDR(1,14337672,1,1,2) [2025-01-26 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337672', 'tblTempUsageDetail_20' ) start [2025-01-26 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337672', 'tblTempUsageDetail_20' ) end [2025-01-26 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:27:22] Production.INFO: ==2449== Releasing lock... [2025-01-26 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:27:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-26 23:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:28:06 [end_date_ymd] => 2025-01-26 23:28:06 [RateCDR] => 1 ) [2025-01-26 23:28: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-01-26 20:28:06' and `end` < '2025-01-26 23:28: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-01-26 23:28:19] Production.INFO: count ==968 [2025-01-26 23:28:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:28:06 - End Time 2025-01-26 23:28:06 [2025-01-26 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337677', 'tblTempUsageDetail_20' ) start [2025-01-26 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337677', 'tblTempUsageDetail_20' ) end [2025-01-26 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337677', 'tblTempVendorCDR_20' ) start [2025-01-26 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337677', 'tblTempVendorCDR_20' ) end [2025-01-26 23:28:19] Production.INFO: ProcessCDR(1,14337677,1,1,2) [2025-01-26 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337677', 'tblTempUsageDetail_20' ) start [2025-01-26 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337677', 'tblTempUsageDetail_20' ) end [2025-01-26 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:28:22] Production.INFO: ==2528== Releasing lock... [2025-01-26 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:28:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-26 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:29:05 [end_date_ymd] => 2025-01-26 23:29:05 [RateCDR] => 1 ) [2025-01-26 23:29: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-01-26 20:29:05' and `end` < '2025-01-26 23:29: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-01-26 23:29:19] Production.INFO: count ==966 [2025-01-26 23:29:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:29:05 - End Time 2025-01-26 23:29:05 [2025-01-26 23:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337682', 'tblTempUsageDetail_20' ) start [2025-01-26 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337682', 'tblTempUsageDetail_20' ) end [2025-01-26 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337682', 'tblTempVendorCDR_20' ) start [2025-01-26 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337682', 'tblTempVendorCDR_20' ) end [2025-01-26 23:29:19] Production.INFO: ProcessCDR(1,14337682,1,1,2) [2025-01-26 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337682', 'tblTempUsageDetail_20' ) start [2025-01-26 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337682', 'tblTempUsageDetail_20' ) end [2025-01-26 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:29:22] Production.INFO: ==2599== Releasing lock... [2025-01-26 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:29:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-26 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:30:06 [end_date_ymd] => 2025-01-26 23:30:06 [RateCDR] => 1 ) [2025-01-26 23:30: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-01-26 20:30:06' and `end` < '2025-01-26 23:30: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-01-26 23:30:19] Production.INFO: count ==962 [2025-01-26 23:30:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:30:06 - End Time 2025-01-26 23:30:06 [2025-01-26 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337688', 'tblTempUsageDetail_20' ) start [2025-01-26 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337688', 'tblTempUsageDetail_20' ) end [2025-01-26 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337688', 'tblTempVendorCDR_20' ) start [2025-01-26 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337688', 'tblTempVendorCDR_20' ) end [2025-01-26 23:30:19] Production.INFO: ProcessCDR(1,14337688,1,1,2) [2025-01-26 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337688', 'tblTempUsageDetail_20' ) start [2025-01-26 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337688', 'tblTempUsageDetail_20' ) end [2025-01-26 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:30:22] Production.INFO: ==2712== Releasing lock... [2025-01-26 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:30:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-26 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:31:05 [end_date_ymd] => 2025-01-26 23:31:05 [RateCDR] => 1 ) [2025-01-26 23:31: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-01-26 20:31:05' and `end` < '2025-01-26 23:31: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-01-26 23:31:18] Production.INFO: count ==934 [2025-01-26 23:31:18] Production.ERROR: pbx CDR StartTime 2025-01-26 20:31:05 - End Time 2025-01-26 23:31:05 [2025-01-26 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337693', 'tblTempUsageDetail_20' ) start [2025-01-26 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337693', 'tblTempUsageDetail_20' ) end [2025-01-26 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337693', 'tblTempVendorCDR_20' ) start [2025-01-26 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337693', 'tblTempVendorCDR_20' ) end [2025-01-26 23:31:18] Production.INFO: ProcessCDR(1,14337693,1,1,2) [2025-01-26 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337693', 'tblTempUsageDetail_20' ) start [2025-01-26 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337693', 'tblTempUsageDetail_20' ) end [2025-01-26 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:31:21] Production.INFO: ==2785== Releasing lock... [2025-01-26 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:31:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-26 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:32:05 [end_date_ymd] => 2025-01-26 23:32:05 [RateCDR] => 1 ) [2025-01-26 23:32: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-01-26 20:32:05' and `end` < '2025-01-26 23:32: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-01-26 23:32:19] Production.INFO: count ==934 [2025-01-26 23:32:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:32:05 - End Time 2025-01-26 23:32:05 [2025-01-26 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337698', 'tblTempUsageDetail_20' ) start [2025-01-26 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337698', 'tblTempUsageDetail_20' ) end [2025-01-26 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337698', 'tblTempVendorCDR_20' ) start [2025-01-26 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337698', 'tblTempVendorCDR_20' ) end [2025-01-26 23:32:19] Production.INFO: ProcessCDR(1,14337698,1,1,2) [2025-01-26 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337698', 'tblTempUsageDetail_20' ) start [2025-01-26 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337698', 'tblTempUsageDetail_20' ) end [2025-01-26 23:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:32:23] Production.INFO: ==2860== Releasing lock... [2025-01-26 23:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:32:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-26 23:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:33:04 [end_date_ymd] => 2025-01-26 23:33:04 [RateCDR] => 1 ) [2025-01-26 23:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 20:33:04' and `end` < '2025-01-26 23:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 23:33:17] Production.INFO: count ==931 [2025-01-26 23:33:17] Production.ERROR: pbx CDR StartTime 2025-01-26 20:33:04 - End Time 2025-01-26 23:33:04 [2025-01-26 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337703', 'tblTempUsageDetail_20' ) start [2025-01-26 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337703', 'tblTempUsageDetail_20' ) end [2025-01-26 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337703', 'tblTempVendorCDR_20' ) start [2025-01-26 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337703', 'tblTempVendorCDR_20' ) end [2025-01-26 23:33:17] Production.INFO: ProcessCDR(1,14337703,1,1,2) [2025-01-26 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337703', 'tblTempUsageDetail_20' ) start [2025-01-26 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337703', 'tblTempUsageDetail_20' ) end [2025-01-26 23:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:33:20] Production.INFO: ==2930== Releasing lock... [2025-01-26 23:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:33:20] Production.INFO: 34.5 MB #Memory Used# [2025-01-26 23:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:34:04 [end_date_ymd] => 2025-01-26 23:34:04 [RateCDR] => 1 ) [2025-01-26 23:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-26 20:34:04' and `end` < '2025-01-26 23:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 23:34:17] Production.INFO: count ==930 [2025-01-26 23:34:17] Production.ERROR: pbx CDR StartTime 2025-01-26 20:34:04 - End Time 2025-01-26 23:34:04 [2025-01-26 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337708', 'tblTempUsageDetail_20' ) start [2025-01-26 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337708', 'tblTempUsageDetail_20' ) end [2025-01-26 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337708', 'tblTempVendorCDR_20' ) start [2025-01-26 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337708', 'tblTempVendorCDR_20' ) end [2025-01-26 23:34:17] Production.INFO: ProcessCDR(1,14337708,1,1,2) [2025-01-26 23:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337708', 'tblTempUsageDetail_20' ) start [2025-01-26 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337708', 'tblTempUsageDetail_20' ) end [2025-01-26 23:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:34:20] Production.INFO: ==3008== Releasing lock... [2025-01-26 23:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:34:20] Production.INFO: 34.25 MB #Memory Used# [2025-01-26 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:35:04 [end_date_ymd] => 2025-01-26 23:35:04 [RateCDR] => 1 ) [2025-01-26 23:35: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-01-26 20:35:04' and `end` < '2025-01-26 23:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-26 23:35:17] Production.INFO: count ==931 [2025-01-26 23:35:17] Production.ERROR: pbx CDR StartTime 2025-01-26 20:35:04 - End Time 2025-01-26 23:35:04 [2025-01-26 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337713', 'tblTempUsageDetail_20' ) start [2025-01-26 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337713', 'tblTempUsageDetail_20' ) end [2025-01-26 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337713', 'tblTempVendorCDR_20' ) start [2025-01-26 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337713', 'tblTempVendorCDR_20' ) end [2025-01-26 23:35:17] Production.INFO: ProcessCDR(1,14337713,1,1,2) [2025-01-26 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337713', 'tblTempUsageDetail_20' ) start [2025-01-26 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337713', 'tblTempUsageDetail_20' ) end [2025-01-26 23:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:35:20] Production.INFO: ==3080== Releasing lock... [2025-01-26 23:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:35:20] Production.INFO: 34.5 MB #Memory Used# [2025-01-26 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:36:05 [end_date_ymd] => 2025-01-26 23:36:05 [RateCDR] => 1 ) [2025-01-26 23:36: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-01-26 20:36:05' and `end` < '2025-01-26 23:36: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-01-26 23:36:20] Production.INFO: count ==933 [2025-01-26 23:36:20] Production.ERROR: pbx CDR StartTime 2025-01-26 20:36:05 - End Time 2025-01-26 23:36:05 [2025-01-26 23:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337718', 'tblTempUsageDetail_20' ) start [2025-01-26 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337718', 'tblTempUsageDetail_20' ) end [2025-01-26 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337718', 'tblTempVendorCDR_20' ) start [2025-01-26 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337718', 'tblTempVendorCDR_20' ) end [2025-01-26 23:36:20] Production.INFO: ProcessCDR(1,14337718,1,1,2) [2025-01-26 23:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337718', 'tblTempUsageDetail_20' ) start [2025-01-26 23:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337718', 'tblTempUsageDetail_20' ) end [2025-01-26 23:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:36:24] Production.INFO: ==3165== Releasing lock... [2025-01-26 23:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:36:24] Production.INFO: 34.5 MB #Memory Used# [2025-01-26 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:37:05 [end_date_ymd] => 2025-01-26 23:37:05 [RateCDR] => 1 ) [2025-01-26 23:37: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-01-26 20:37:05' and `end` < '2025-01-26 23:37: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-01-26 23:37:18] Production.INFO: count ==938 [2025-01-26 23:37:18] Production.ERROR: pbx CDR StartTime 2025-01-26 20:37:05 - End Time 2025-01-26 23:37:05 [2025-01-26 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337723', 'tblTempUsageDetail_20' ) start [2025-01-26 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337723', 'tblTempUsageDetail_20' ) end [2025-01-26 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337723', 'tblTempVendorCDR_20' ) start [2025-01-26 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337723', 'tblTempVendorCDR_20' ) end [2025-01-26 23:37:18] Production.INFO: ProcessCDR(1,14337723,1,1,2) [2025-01-26 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337723', 'tblTempUsageDetail_20' ) start [2025-01-26 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337723', 'tblTempUsageDetail_20' ) end [2025-01-26 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:37:22] Production.INFO: ==3274== Releasing lock... [2025-01-26 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:37:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-26 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:38:05 [end_date_ymd] => 2025-01-26 23:38:05 [RateCDR] => 1 ) [2025-01-26 23:38: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-01-26 20:38:05' and `end` < '2025-01-26 23:38: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-01-26 23:38:20] Production.INFO: count ==942 [2025-01-26 23:38:21] Production.ERROR: pbx CDR StartTime 2025-01-26 20:38:05 - End Time 2025-01-26 23:38:05 [2025-01-26 23:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337728', 'tblTempUsageDetail_20' ) start [2025-01-26 23:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337728', 'tblTempUsageDetail_20' ) end [2025-01-26 23:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337728', 'tblTempVendorCDR_20' ) start [2025-01-26 23:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337728', 'tblTempVendorCDR_20' ) end [2025-01-26 23:38:21] Production.INFO: ProcessCDR(1,14337728,1,1,2) [2025-01-26 23:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337728', 'tblTempUsageDetail_20' ) start [2025-01-26 23:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337728', 'tblTempUsageDetail_20' ) end [2025-01-26 23:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:38:25] Production.INFO: ==3384== Releasing lock... [2025-01-26 23:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:38:25] Production.INFO: 34.75 MB #Memory Used# [2025-01-26 23:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:39:06 [end_date_ymd] => 2025-01-26 23:39:06 [RateCDR] => 1 ) [2025-01-26 23:39: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-01-26 20:39:06' and `end` < '2025-01-26 23:39: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-01-26 23:39:20] Production.INFO: count ==940 [2025-01-26 23:39:20] Production.ERROR: pbx CDR StartTime 2025-01-26 20:39:06 - End Time 2025-01-26 23:39:06 [2025-01-26 23:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337733', 'tblTempUsageDetail_20' ) start [2025-01-26 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337733', 'tblTempUsageDetail_20' ) end [2025-01-26 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337733', 'tblTempVendorCDR_20' ) start [2025-01-26 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337733', 'tblTempVendorCDR_20' ) end [2025-01-26 23:39:20] Production.INFO: ProcessCDR(1,14337733,1,1,2) [2025-01-26 23:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337733', 'tblTempUsageDetail_20' ) start [2025-01-26 23:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337733', 'tblTempUsageDetail_20' ) end [2025-01-26 23:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:39:23] Production.INFO: ==3453== Releasing lock... [2025-01-26 23:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:39:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-26 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:40:06 [end_date_ymd] => 2025-01-26 23:40:06 [RateCDR] => 1 ) [2025-01-26 23:40: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-01-26 20:40:06' and `end` < '2025-01-26 23:40: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-01-26 23:40:18] Production.INFO: count ==938 [2025-01-26 23:40:18] Production.ERROR: pbx CDR StartTime 2025-01-26 20:40:06 - End Time 2025-01-26 23:40:06 [2025-01-26 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337739', 'tblTempUsageDetail_20' ) start [2025-01-26 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337739', 'tblTempUsageDetail_20' ) end [2025-01-26 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337739', 'tblTempVendorCDR_20' ) start [2025-01-26 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337739', 'tblTempVendorCDR_20' ) end [2025-01-26 23:40:18] Production.INFO: ProcessCDR(1,14337739,1,1,2) [2025-01-26 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337739', 'tblTempUsageDetail_20' ) start [2025-01-26 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337739', 'tblTempUsageDetail_20' ) end [2025-01-26 23:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:40:21] Production.INFO: ==3526== Releasing lock... [2025-01-26 23:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:40:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-26 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:41:05 [end_date_ymd] => 2025-01-26 23:41:05 [RateCDR] => 1 ) [2025-01-26 23:41: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-01-26 20:41:05' and `end` < '2025-01-26 23:41: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-01-26 23:41:19] Production.INFO: count ==900 [2025-01-26 23:41:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:41:05 - End Time 2025-01-26 23:41:05 [2025-01-26 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337744', 'tblTempUsageDetail_20' ) start [2025-01-26 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337744', 'tblTempUsageDetail_20' ) end [2025-01-26 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337744', 'tblTempVendorCDR_20' ) start [2025-01-26 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337744', 'tblTempVendorCDR_20' ) end [2025-01-26 23:41:19] Production.INFO: ProcessCDR(1,14337744,1,1,2) [2025-01-26 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337744', 'tblTempUsageDetail_20' ) start [2025-01-26 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337744', 'tblTempUsageDetail_20' ) end [2025-01-26 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:41:22] Production.INFO: ==3599== Releasing lock... [2025-01-26 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:41:22] Production.INFO: 34 MB #Memory Used# [2025-01-26 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:42:05 [end_date_ymd] => 2025-01-26 23:42:05 [RateCDR] => 1 ) [2025-01-26 23:42: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-01-26 20:42:05' and `end` < '2025-01-26 23:42: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-01-26 23:42:18] Production.INFO: count ==900 [2025-01-26 23:42:18] Production.ERROR: pbx CDR StartTime 2025-01-26 20:42:05 - End Time 2025-01-26 23:42:05 [2025-01-26 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337749', 'tblTempUsageDetail_20' ) start [2025-01-26 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337749', 'tblTempUsageDetail_20' ) end [2025-01-26 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337749', 'tblTempVendorCDR_20' ) start [2025-01-26 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337749', 'tblTempVendorCDR_20' ) end [2025-01-26 23:42:18] Production.INFO: ProcessCDR(1,14337749,1,1,2) [2025-01-26 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337749', 'tblTempUsageDetail_20' ) start [2025-01-26 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337749', 'tblTempUsageDetail_20' ) end [2025-01-26 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:42:21] Production.INFO: ==3671== Releasing lock... [2025-01-26 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:42:21] Production.INFO: 34 MB #Memory Used# [2025-01-26 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:43:05 [end_date_ymd] => 2025-01-26 23:43:05 [RateCDR] => 1 ) [2025-01-26 23:43: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-01-26 20:43:05' and `end` < '2025-01-26 23:43: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-01-26 23:43:18] Production.INFO: count ==901 [2025-01-26 23:43:18] Production.ERROR: pbx CDR StartTime 2025-01-26 20:43:05 - End Time 2025-01-26 23:43:05 [2025-01-26 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337754', 'tblTempUsageDetail_20' ) start [2025-01-26 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337754', 'tblTempUsageDetail_20' ) end [2025-01-26 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337754', 'tblTempVendorCDR_20' ) start [2025-01-26 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337754', 'tblTempVendorCDR_20' ) end [2025-01-26 23:43:18] Production.INFO: ProcessCDR(1,14337754,1,1,2) [2025-01-26 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337754', 'tblTempUsageDetail_20' ) start [2025-01-26 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337754', 'tblTempUsageDetail_20' ) end [2025-01-26 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:43:21] Production.INFO: ==3746== Releasing lock... [2025-01-26 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:43:21] Production.INFO: 34 MB #Memory Used# [2025-01-26 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:44:05 [end_date_ymd] => 2025-01-26 23:44:05 [RateCDR] => 1 ) [2025-01-26 23:44: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-01-26 20:44:05' and `end` < '2025-01-26 23:44: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-01-26 23:44:19] Production.INFO: count ==903 [2025-01-26 23:44:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:44:05 - End Time 2025-01-26 23:44:05 [2025-01-26 23:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337759', 'tblTempUsageDetail_20' ) start [2025-01-26 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337759', 'tblTempUsageDetail_20' ) end [2025-01-26 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337759', 'tblTempVendorCDR_20' ) start [2025-01-26 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337759', 'tblTempVendorCDR_20' ) end [2025-01-26 23:44:19] Production.INFO: ProcessCDR(1,14337759,1,1,2) [2025-01-26 23:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337759', 'tblTempUsageDetail_20' ) start [2025-01-26 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337759', 'tblTempUsageDetail_20' ) end [2025-01-26 23:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:44:23] Production.INFO: ==3819== Releasing lock... [2025-01-26 23:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:44:23] Production.INFO: 34 MB #Memory Used# [2025-01-26 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:45:05 [end_date_ymd] => 2025-01-26 23:45:05 [RateCDR] => 1 ) [2025-01-26 23:45: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-01-26 20:45:05' and `end` < '2025-01-26 23:45: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-01-26 23:45:17] Production.INFO: count ==904 [2025-01-26 23:45:18] Production.ERROR: pbx CDR StartTime 2025-01-26 20:45:05 - End Time 2025-01-26 23:45:05 [2025-01-26 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337764', 'tblTempUsageDetail_20' ) start [2025-01-26 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337764', 'tblTempUsageDetail_20' ) end [2025-01-26 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337764', 'tblTempVendorCDR_20' ) start [2025-01-26 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337764', 'tblTempVendorCDR_20' ) end [2025-01-26 23:45:18] Production.INFO: ProcessCDR(1,14337764,1,1,2) [2025-01-26 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337764', 'tblTempUsageDetail_20' ) start [2025-01-26 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337764', 'tblTempUsageDetail_20' ) end [2025-01-26 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:45:21] Production.INFO: ==3930== Releasing lock... [2025-01-26 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:45:21] Production.INFO: 34 MB #Memory Used# [2025-01-26 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:46:05 [end_date_ymd] => 2025-01-26 23:46:05 [RateCDR] => 1 ) [2025-01-26 23:46: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-01-26 20:46:05' and `end` < '2025-01-26 23:46: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-01-26 23:46:19] Production.INFO: count ==901 [2025-01-26 23:46:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:46:05 - End Time 2025-01-26 23:46:05 [2025-01-26 23:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337769', 'tblTempUsageDetail_20' ) start [2025-01-26 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337769', 'tblTempUsageDetail_20' ) end [2025-01-26 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337769', 'tblTempVendorCDR_20' ) start [2025-01-26 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337769', 'tblTempVendorCDR_20' ) end [2025-01-26 23:46:19] Production.INFO: ProcessCDR(1,14337769,1,1,2) [2025-01-26 23:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337769', 'tblTempUsageDetail_20' ) start [2025-01-26 23:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337769', 'tblTempUsageDetail_20' ) end [2025-01-26 23:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:46:23] Production.INFO: ==4001== Releasing lock... [2025-01-26 23:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:46:23] Production.INFO: 34 MB #Memory Used# [2025-01-26 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:47:05 [end_date_ymd] => 2025-01-26 23:47:05 [RateCDR] => 1 ) [2025-01-26 23:47: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-01-26 20:47:05' and `end` < '2025-01-26 23:47: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-01-26 23:47:18] Production.INFO: count ==901 [2025-01-26 23:47:18] Production.ERROR: pbx CDR StartTime 2025-01-26 20:47:05 - End Time 2025-01-26 23:47:05 [2025-01-26 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337774', 'tblTempUsageDetail_20' ) start [2025-01-26 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337774', 'tblTempUsageDetail_20' ) end [2025-01-26 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337774', 'tblTempVendorCDR_20' ) start [2025-01-26 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337774', 'tblTempVendorCDR_20' ) end [2025-01-26 23:47:18] Production.INFO: ProcessCDR(1,14337774,1,1,2) [2025-01-26 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337774', 'tblTempUsageDetail_20' ) start [2025-01-26 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337774', 'tblTempUsageDetail_20' ) end [2025-01-26 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:47:21] Production.INFO: ==4072== Releasing lock... [2025-01-26 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:47:21] Production.INFO: 34 MB #Memory Used# [2025-01-26 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:48:05 [end_date_ymd] => 2025-01-26 23:48:05 [RateCDR] => 1 ) [2025-01-26 23:48: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-01-26 20:48:05' and `end` < '2025-01-26 23:48: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-01-26 23:48:19] Production.INFO: count ==900 [2025-01-26 23:48:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:48:05 - End Time 2025-01-26 23:48:05 [2025-01-26 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337779', 'tblTempUsageDetail_20' ) start [2025-01-26 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337779', 'tblTempUsageDetail_20' ) end [2025-01-26 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337779', 'tblTempVendorCDR_20' ) start [2025-01-26 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337779', 'tblTempVendorCDR_20' ) end [2025-01-26 23:48:19] Production.INFO: ProcessCDR(1,14337779,1,1,2) [2025-01-26 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337779', 'tblTempUsageDetail_20' ) start [2025-01-26 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337779', 'tblTempUsageDetail_20' ) end [2025-01-26 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:48:22] Production.INFO: ==4143== Releasing lock... [2025-01-26 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:48:22] Production.INFO: 34 MB #Memory Used# [2025-01-26 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:49:05 [end_date_ymd] => 2025-01-26 23:49:05 [RateCDR] => 1 ) [2025-01-26 23:49: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-01-26 20:49:05' and `end` < '2025-01-26 23:49: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-01-26 23:49:20] Production.INFO: count ==899 [2025-01-26 23:49:20] Production.ERROR: pbx CDR StartTime 2025-01-26 20:49:05 - End Time 2025-01-26 23:49:05 [2025-01-26 23:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337784', 'tblTempUsageDetail_20' ) start [2025-01-26 23:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337784', 'tblTempUsageDetail_20' ) end [2025-01-26 23:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337784', 'tblTempVendorCDR_20' ) start [2025-01-26 23:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337784', 'tblTempVendorCDR_20' ) end [2025-01-26 23:49:20] Production.INFO: ProcessCDR(1,14337784,1,1,2) [2025-01-26 23:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337784', 'tblTempUsageDetail_20' ) start [2025-01-26 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337784', 'tblTempUsageDetail_20' ) end [2025-01-26 23:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:49:23] Production.INFO: ==4215== Releasing lock... [2025-01-26 23:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:49:23] Production.INFO: 34 MB #Memory Used# [2025-01-26 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:50:06 [end_date_ymd] => 2025-01-26 23:50:06 [RateCDR] => 1 ) [2025-01-26 23:50: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-01-26 20:50:06' and `end` < '2025-01-26 23:50: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-01-26 23:50:19] Production.INFO: count ==891 [2025-01-26 23:50:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:50:06 - End Time 2025-01-26 23:50:06 [2025-01-26 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337790', 'tblTempUsageDetail_20' ) start [2025-01-26 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337790', 'tblTempUsageDetail_20' ) end [2025-01-26 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337790', 'tblTempVendorCDR_20' ) start [2025-01-26 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337790', 'tblTempVendorCDR_20' ) end [2025-01-26 23:50:19] Production.INFO: ProcessCDR(1,14337790,1,1,2) [2025-01-26 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337790', 'tblTempUsageDetail_20' ) start [2025-01-26 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337790', 'tblTempUsageDetail_20' ) end [2025-01-26 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:50:22] Production.INFO: ==4291== Releasing lock... [2025-01-26 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:50:22] Production.INFO: 34 MB #Memory Used# [2025-01-26 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:51:05 [end_date_ymd] => 2025-01-26 23:51:05 [RateCDR] => 1 ) [2025-01-26 23:51: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-01-26 20:51:05' and `end` < '2025-01-26 23:51: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-01-26 23:51:17] Production.INFO: count ==841 [2025-01-26 23:51:17] Production.ERROR: pbx CDR StartTime 2025-01-26 20:51:05 - End Time 2025-01-26 23:51:05 [2025-01-26 23:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337795', 'tblTempUsageDetail_20' ) start [2025-01-26 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337795', 'tblTempUsageDetail_20' ) end [2025-01-26 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337795', 'tblTempVendorCDR_20' ) start [2025-01-26 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337795', 'tblTempVendorCDR_20' ) end [2025-01-26 23:51:17] Production.INFO: ProcessCDR(1,14337795,1,1,2) [2025-01-26 23:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337795', 'tblTempUsageDetail_20' ) start [2025-01-26 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337795', 'tblTempUsageDetail_20' ) end [2025-01-26 23:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:51:20] Production.INFO: ==4365== Releasing lock... [2025-01-26 23:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:51:20] Production.INFO: 33.5 MB #Memory Used# [2025-01-26 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:52:05 [end_date_ymd] => 2025-01-26 23:52:05 [RateCDR] => 1 ) [2025-01-26 23:52: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-01-26 20:52:05' and `end` < '2025-01-26 23:52: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-01-26 23:52:18] Production.INFO: count ==838 [2025-01-26 23:52:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:52:05 - End Time 2025-01-26 23:52:05 [2025-01-26 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337800', 'tblTempUsageDetail_20' ) start [2025-01-26 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337800', 'tblTempUsageDetail_20' ) end [2025-01-26 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337800', 'tblTempVendorCDR_20' ) start [2025-01-26 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337800', 'tblTempVendorCDR_20' ) end [2025-01-26 23:52:19] Production.INFO: ProcessCDR(1,14337800,1,1,2) [2025-01-26 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337800', 'tblTempUsageDetail_20' ) start [2025-01-26 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337800', 'tblTempUsageDetail_20' ) end [2025-01-26 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:52:21] Production.INFO: ==4441== Releasing lock... [2025-01-26 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:52:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-26 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:53:05 [end_date_ymd] => 2025-01-26 23:53:05 [RateCDR] => 1 ) [2025-01-26 23:53: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-01-26 20:53:05' and `end` < '2025-01-26 23:53: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-01-26 23:53:18] Production.INFO: count ==831 [2025-01-26 23:53:18] Production.ERROR: pbx CDR StartTime 2025-01-26 20:53:05 - End Time 2025-01-26 23:53:05 [2025-01-26 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337805', 'tblTempUsageDetail_20' ) start [2025-01-26 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337805', 'tblTempUsageDetail_20' ) end [2025-01-26 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337805', 'tblTempVendorCDR_20' ) start [2025-01-26 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337805', 'tblTempVendorCDR_20' ) end [2025-01-26 23:53:18] Production.INFO: ProcessCDR(1,14337805,1,1,2) [2025-01-26 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337805', 'tblTempUsageDetail_20' ) start [2025-01-26 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337805', 'tblTempUsageDetail_20' ) end [2025-01-26 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:53:21] Production.INFO: ==4520== Releasing lock... [2025-01-26 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:53:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-26 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:54:05 [end_date_ymd] => 2025-01-26 23:54:05 [RateCDR] => 1 ) [2025-01-26 23:54: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-01-26 20:54:05' and `end` < '2025-01-26 23:54: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-01-26 23:54:18] Production.INFO: count ==830 [2025-01-26 23:54:18] Production.ERROR: pbx CDR StartTime 2025-01-26 20:54:05 - End Time 2025-01-26 23:54:05 [2025-01-26 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337810', 'tblTempUsageDetail_20' ) start [2025-01-26 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337810', 'tblTempUsageDetail_20' ) end [2025-01-26 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337810', 'tblTempVendorCDR_20' ) start [2025-01-26 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337810', 'tblTempVendorCDR_20' ) end [2025-01-26 23:54:18] Production.INFO: ProcessCDR(1,14337810,1,1,2) [2025-01-26 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337810', 'tblTempUsageDetail_20' ) start [2025-01-26 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337810', 'tblTempUsageDetail_20' ) end [2025-01-26 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:54:21] Production.INFO: ==4597== Releasing lock... [2025-01-26 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:54:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-26 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:55:05 [end_date_ymd] => 2025-01-26 23:55:05 [RateCDR] => 1 ) [2025-01-26 23:55: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-01-26 20:55:05' and `end` < '2025-01-26 23:55: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-01-26 23:55:17] Production.INFO: count ==828 [2025-01-26 23:55:17] Production.ERROR: pbx CDR StartTime 2025-01-26 20:55:05 - End Time 2025-01-26 23:55:05 [2025-01-26 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337815', 'tblTempUsageDetail_20' ) start [2025-01-26 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337815', 'tblTempUsageDetail_20' ) end [2025-01-26 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337815', 'tblTempVendorCDR_20' ) start [2025-01-26 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337815', 'tblTempVendorCDR_20' ) end [2025-01-26 23:55:17] Production.INFO: ProcessCDR(1,14337815,1,1,2) [2025-01-26 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337815', 'tblTempUsageDetail_20' ) start [2025-01-26 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337815', 'tblTempUsageDetail_20' ) end [2025-01-26 23:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:55:20] Production.INFO: ==4687== Releasing lock... [2025-01-26 23:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:55:20] Production.INFO: 33.5 MB #Memory Used# [2025-01-26 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:56:05 [end_date_ymd] => 2025-01-26 23:56:05 [RateCDR] => 1 ) [2025-01-26 23:56: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-01-26 20:56:05' and `end` < '2025-01-26 23:56: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-01-26 23:56:19] Production.INFO: count ==825 [2025-01-26 23:56:19] Production.ERROR: pbx CDR StartTime 2025-01-26 20:56:05 - End Time 2025-01-26 23:56:05 [2025-01-26 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337820', 'tblTempUsageDetail_20' ) start [2025-01-26 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337820', 'tblTempUsageDetail_20' ) end [2025-01-26 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337820', 'tblTempVendorCDR_20' ) start [2025-01-26 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337820', 'tblTempVendorCDR_20' ) end [2025-01-26 23:56:19] Production.INFO: ProcessCDR(1,14337820,1,1,2) [2025-01-26 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337820', 'tblTempUsageDetail_20' ) start [2025-01-26 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337820', 'tblTempUsageDetail_20' ) end [2025-01-26 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:56:22] Production.INFO: ==4783== Releasing lock... [2025-01-26 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:56:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-26 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:57:05 [end_date_ymd] => 2025-01-26 23:57:05 [RateCDR] => 1 ) [2025-01-26 23:57: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-01-26 20:57:05' and `end` < '2025-01-26 23:57: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-01-26 23:57:18] Production.INFO: count ==816 [2025-01-26 23:57:18] Production.ERROR: pbx CDR StartTime 2025-01-26 20:57:05 - End Time 2025-01-26 23:57:05 [2025-01-26 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337825', 'tblTempUsageDetail_20' ) start [2025-01-26 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337825', 'tblTempUsageDetail_20' ) end [2025-01-26 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337825', 'tblTempVendorCDR_20' ) start [2025-01-26 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337825', 'tblTempVendorCDR_20' ) end [2025-01-26 23:57:18] Production.INFO: ProcessCDR(1,14337825,1,1,2) [2025-01-26 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337825', 'tblTempUsageDetail_20' ) start [2025-01-26 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337825', 'tblTempUsageDetail_20' ) end [2025-01-26 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:57:21] Production.INFO: ==4891== Releasing lock... [2025-01-26 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:57:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-26 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:58:05 [end_date_ymd] => 2025-01-26 23:58:05 [RateCDR] => 1 ) [2025-01-26 23:58: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-01-26 20:58:05' and `end` < '2025-01-26 23:58: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-01-26 23:58:21] Production.INFO: count ==810 [2025-01-26 23:58:21] Production.ERROR: pbx CDR StartTime 2025-01-26 20:58:05 - End Time 2025-01-26 23:58:05 [2025-01-26 23:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337830', 'tblTempUsageDetail_20' ) start [2025-01-26 23:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337830', 'tblTempUsageDetail_20' ) end [2025-01-26 23:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337830', 'tblTempVendorCDR_20' ) start [2025-01-26 23:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337830', 'tblTempVendorCDR_20' ) end [2025-01-26 23:58:21] Production.INFO: ProcessCDR(1,14337830,1,1,2) [2025-01-26 23:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337830', 'tblTempUsageDetail_20' ) start [2025-01-26 23:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337830', 'tblTempUsageDetail_20' ) end [2025-01-26 23:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:58:24] Production.INFO: ==4985== Releasing lock... [2025-01-26 23:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:58:24] Production.INFO: 33.25 MB #Memory Used# [2025-01-26 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-26 20:59:05 [end_date_ymd] => 2025-01-26 23:59:05 [RateCDR] => 1 ) [2025-01-26 23:59: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-01-26 20:59:05' and `end` < '2025-01-26 23:59: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-01-26 23:59:18] Production.INFO: count ==810 [2025-01-26 23:59:18] Production.ERROR: pbx CDR StartTime 2025-01-26 20:59:05 - End Time 2025-01-26 23:59:05 [2025-01-26 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-26 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337835', 'tblTempUsageDetail_20' ) start [2025-01-26 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14337835', 'tblTempUsageDetail_20' ) end [2025-01-26 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337835', 'tblTempVendorCDR_20' ) start [2025-01-26 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14337835', 'tblTempVendorCDR_20' ) end [2025-01-26 23:59:18] Production.INFO: ProcessCDR(1,14337835,1,1,2) [2025-01-26 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14337835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14337835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-26 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14337835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14337835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-26 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337835', 'tblTempUsageDetail_20' ) start [2025-01-26 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14337835', 'tblTempUsageDetail_20' ) end [2025-01-26 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-26 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-26 23:59:21] Production.INFO: ==5058== Releasing lock... [2025-01-26 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-26 23:59:21] Production.INFO: 33.25 MB #Memory Used#