[2025-02-03 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:00:06 [end_date_ymd] => 2025-02-03 00:00:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:00:06' and `end` < '2025-02-03 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-02-03 00:00:20] Production.INFO: count ==1064 [2025-02-03 00:00:21] Production.ERROR: pbx CDR StartTime 2025-02-02 21:00:06 - End Time 2025-02-03 00:00:06 [2025-02-03 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389207', 'tblTempUsageDetail_20' ) start [2025-02-03 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389207', 'tblTempUsageDetail_20' ) end [2025-02-03 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389207', 'tblTempVendorCDR_20' ) start [2025-02-03 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389207', 'tblTempVendorCDR_20' ) end [2025-02-03 00:00:21] Production.INFO: ProcessCDR(1,14389207,1,1,2) [2025-02-03 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389207', 'tblTempUsageDetail_20' ) start [2025-02-03 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389207', 'tblTempUsageDetail_20' ) end [2025-02-03 00:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:00:25] Production.INFO: ==26088== Releasing lock... [2025-02-03 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:00:25] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:01:06 [end_date_ymd] => 2025-02-03 00:01:06 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:01:06' and `end` < '2025-02-03 00: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-02-03 00:01:18] Production.INFO: count ==1044 [2025-02-03 00:01:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:01:06 - End Time 2025-02-03 00:01:06 [2025-02-03 00:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389212', 'tblTempUsageDetail_20' ) start [2025-02-03 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389212', 'tblTempUsageDetail_20' ) end [2025-02-03 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389212', 'tblTempVendorCDR_20' ) start [2025-02-03 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389212', 'tblTempVendorCDR_20' ) end [2025-02-03 00:01:19] Production.INFO: ProcessCDR(1,14389212,1,1,2) [2025-02-03 00:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389212', 'tblTempUsageDetail_20' ) start [2025-02-03 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389212', 'tblTempUsageDetail_20' ) end [2025-02-03 00:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:01:22] Production.INFO: ==26181== Releasing lock... [2025-02-03 00:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:01:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:02:05 [end_date_ymd] => 2025-02-03 00:02:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:02:05' and `end` < '2025-02-03 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-02-03 00:02:23] Production.INFO: count ==650 [2025-02-03 00:02:24] Production.ERROR: pbx CDR StartTime 2025-02-02 21:02:05 - End Time 2025-02-03 00:02:05 [2025-02-03 00:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389217', 'tblTempUsageDetail_20' ) start [2025-02-03 00:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389217', 'tblTempUsageDetail_20' ) end [2025-02-03 00:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389217', 'tblTempVendorCDR_20' ) start [2025-02-03 00:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389217', 'tblTempVendorCDR_20' ) end [2025-02-03 00:02:24] Production.INFO: ProcessCDR(1,14389217,1,1,2) [2025-02-03 00:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389217', 'tblTempUsageDetail_20' ) start [2025-02-03 00:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389217', 'tblTempUsageDetail_20' ) end [2025-02-03 00:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:02:28] Production.INFO: ==26301== Releasing lock... [2025-02-03 00:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:02:28] Production.INFO: 35 MB #Memory Used# [2025-02-03 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:03:05 [end_date_ymd] => 2025-02-03 00:03:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:03:05' and `end` < '2025-02-03 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-02-03 00:03:21] Production.INFO: count ==674 [2025-02-03 00:03:21] Production.ERROR: pbx CDR StartTime 2025-02-02 21:03:05 - End Time 2025-02-03 00:03:05 [2025-02-03 00:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389222', 'tblTempUsageDetail_20' ) start [2025-02-03 00:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389222', 'tblTempUsageDetail_20' ) end [2025-02-03 00:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389222', 'tblTempVendorCDR_20' ) start [2025-02-03 00:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389222', 'tblTempVendorCDR_20' ) end [2025-02-03 00:03:21] Production.INFO: ProcessCDR(1,14389222,1,1,2) [2025-02-03 00:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389222', 'tblTempUsageDetail_20' ) start [2025-02-03 00:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389222', 'tblTempUsageDetail_20' ) end [2025-02-03 00:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:03:24] Production.INFO: ==26383== Releasing lock... [2025-02-03 00:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:03:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-03 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:04:05 [end_date_ymd] => 2025-02-03 00:04:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:04:05' and `end` < '2025-02-03 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-02-03 00:04:18] Production.INFO: count ==673 [2025-02-03 00:04:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:04:05 - End Time 2025-02-03 00:04:05 [2025-02-03 00:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389227', 'tblTempUsageDetail_20' ) start [2025-02-03 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389227', 'tblTempUsageDetail_20' ) end [2025-02-03 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389227', 'tblTempVendorCDR_20' ) start [2025-02-03 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389227', 'tblTempVendorCDR_20' ) end [2025-02-03 00:04:19] Production.INFO: ProcessCDR(1,14389227,1,1,2) [2025-02-03 00:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389227', 'tblTempUsageDetail_20' ) start [2025-02-03 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389227', 'tblTempUsageDetail_20' ) end [2025-02-03 00:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:04:22] Production.INFO: ==26462== Releasing lock... [2025-02-03 00:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:04:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-03 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:05:05 [end_date_ymd] => 2025-02-03 00:05:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:05:05' and `end` < '2025-02-03 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-02-03 00:05:18] Production.INFO: count ==670 [2025-02-03 00:05:18] Production.ERROR: pbx CDR StartTime 2025-02-02 21:05:05 - End Time 2025-02-03 00:05:05 [2025-02-03 00:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389232', 'tblTempUsageDetail_20' ) start [2025-02-03 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389232', 'tblTempUsageDetail_20' ) end [2025-02-03 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389232', 'tblTempVendorCDR_20' ) start [2025-02-03 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389232', 'tblTempVendorCDR_20' ) end [2025-02-03 00:05:18] Production.INFO: ProcessCDR(1,14389232,1,1,2) [2025-02-03 00:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389232', 'tblTempUsageDetail_20' ) start [2025-02-03 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389232', 'tblTempUsageDetail_20' ) end [2025-02-03 00:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:05:21] Production.INFO: ==26544== Releasing lock... [2025-02-03 00:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:05:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 00:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:06:04 [end_date_ymd] => 2025-02-03 00:06:04 [RateCDR] => 1 ) [2025-02-03 00:06: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-02-02 21:06:04' and `end` < '2025-02-03 00:06: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-02-03 00:06:18] Production.INFO: count ==669 [2025-02-03 00:06:18] Production.ERROR: pbx CDR StartTime 2025-02-02 21:06:04 - End Time 2025-02-03 00:06:04 [2025-02-03 00:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389237', 'tblTempUsageDetail_20' ) start [2025-02-03 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389237', 'tblTempUsageDetail_20' ) end [2025-02-03 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389237', 'tblTempVendorCDR_20' ) start [2025-02-03 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389237', 'tblTempVendorCDR_20' ) end [2025-02-03 00:06:18] Production.INFO: ProcessCDR(1,14389237,1,1,2) [2025-02-03 00:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389237', 'tblTempUsageDetail_20' ) start [2025-02-03 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389237', 'tblTempUsageDetail_20' ) end [2025-02-03 00:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:06:21] Production.INFO: ==26625== Releasing lock... [2025-02-03 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:06:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-03 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:07:05 [end_date_ymd] => 2025-02-03 00:07:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:07:05' and `end` < '2025-02-03 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-02-03 00:07:24] Production.INFO: count ==669 [2025-02-03 00:07:24] Production.ERROR: pbx CDR StartTime 2025-02-02 21:07:05 - End Time 2025-02-03 00:07:05 [2025-02-03 00:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389242', 'tblTempUsageDetail_20' ) start [2025-02-03 00:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389242', 'tblTempUsageDetail_20' ) end [2025-02-03 00:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389242', 'tblTempVendorCDR_20' ) start [2025-02-03 00:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389242', 'tblTempVendorCDR_20' ) end [2025-02-03 00:07:24] Production.INFO: ProcessCDR(1,14389242,1,1,2) [2025-02-03 00:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389242', 'tblTempUsageDetail_20' ) start [2025-02-03 00:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389242', 'tblTempUsageDetail_20' ) end [2025-02-03 00:07:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:07:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:07:28] Production.INFO: ==26707== Releasing lock... [2025-02-03 00:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:07:28] Production.INFO: 33.5 MB #Memory Used# [2025-02-03 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:08:05 [end_date_ymd] => 2025-02-03 00:08:05 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:08:05' and `end` < '2025-02-03 00: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-02-03 00:08:18] Production.INFO: count ==672 [2025-02-03 00:08:18] Production.ERROR: pbx CDR StartTime 2025-02-02 21:08:05 - End Time 2025-02-03 00:08:05 [2025-02-03 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389247', 'tblTempUsageDetail_20' ) start [2025-02-03 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389247', 'tblTempUsageDetail_20' ) end [2025-02-03 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389247', 'tblTempVendorCDR_20' ) start [2025-02-03 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389247', 'tblTempVendorCDR_20' ) end [2025-02-03 00:08:18] Production.INFO: ProcessCDR(1,14389247,1,1,2) [2025-02-03 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389247', 'tblTempUsageDetail_20' ) start [2025-02-03 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389247', 'tblTempUsageDetail_20' ) end [2025-02-03 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:08:21] Production.INFO: ==26785== Releasing lock... [2025-02-03 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:08:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-03 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:09:05 [end_date_ymd] => 2025-02-03 00:09:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:09:05' and `end` < '2025-02-03 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-02-03 00:09:35] Production.INFO: count ==672 [2025-02-03 00:09:35] Production.ERROR: pbx CDR StartTime 2025-02-02 21:09:05 - End Time 2025-02-03 00:09:05 [2025-02-03 00:09:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:09:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389252', 'tblTempUsageDetail_20' ) start [2025-02-03 00:09:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389252', 'tblTempUsageDetail_20' ) end [2025-02-03 00:09:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389252', 'tblTempVendorCDR_20' ) start [2025-02-03 00:09:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389252', 'tblTempVendorCDR_20' ) end [2025-02-03 00:09:35] Production.INFO: ProcessCDR(1,14389252,1,1,2) [2025-02-03 00:09:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:09:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:09:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:09:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:09:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389252', 'tblTempUsageDetail_20' ) start [2025-02-03 00:09:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389252', 'tblTempUsageDetail_20' ) end [2025-02-03 00:09:39] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:09:39] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:09:39] Production.INFO: ==26861== Releasing lock... [2025-02-03 00:09:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:09:39] Production.INFO: 34.25 MB #Memory Used# [2025-02-03 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:10:06 [end_date_ymd] => 2025-02-03 00:10:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:10:06' and `end` < '2025-02-03 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-02-03 00:10:21] Production.INFO: count ==685 [2025-02-03 00:10:22] Production.ERROR: pbx CDR StartTime 2025-02-02 21:10:06 - End Time 2025-02-03 00:10:06 [2025-02-03 00:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389258', 'tblTempUsageDetail_20' ) start [2025-02-03 00:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389258', 'tblTempUsageDetail_20' ) end [2025-02-03 00:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389258', 'tblTempVendorCDR_20' ) start [2025-02-03 00:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389258', 'tblTempVendorCDR_20' ) end [2025-02-03 00:10:22] Production.INFO: ProcessCDR(1,14389258,1,1,2) [2025-02-03 00:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389258', 'tblTempUsageDetail_20' ) start [2025-02-03 00:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389258', 'tblTempUsageDetail_20' ) end [2025-02-03 00:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:10:25] Production.INFO: ==26941== Releasing lock... [2025-02-03 00:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:10:25] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:11:05 [end_date_ymd] => 2025-02-03 00:11:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:11:05' and `end` < '2025-02-03 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-02-03 00:11:20] Production.INFO: count ==705 [2025-02-03 00:11:20] Production.ERROR: pbx CDR StartTime 2025-02-02 21:11:05 - End Time 2025-02-03 00:11:05 [2025-02-03 00:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389263', 'tblTempUsageDetail_20' ) start [2025-02-03 00:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389263', 'tblTempUsageDetail_20' ) end [2025-02-03 00:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389263', 'tblTempVendorCDR_20' ) start [2025-02-03 00:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389263', 'tblTempVendorCDR_20' ) end [2025-02-03 00:11:20] Production.INFO: ProcessCDR(1,14389263,1,1,2) [2025-02-03 00:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389263', 'tblTempUsageDetail_20' ) start [2025-02-03 00:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389263', 'tblTempUsageDetail_20' ) end [2025-02-03 00:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:11:25] Production.INFO: ==27019== Releasing lock... [2025-02-03 00:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:11:25] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:12:06 [end_date_ymd] => 2025-02-03 00:12:06 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:12:06' and `end` < '2025-02-03 00: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-02-03 00:12:18] Production.INFO: count ==698 [2025-02-03 00:12:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:12:06 - End Time 2025-02-03 00:12:06 [2025-02-03 00:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389268', 'tblTempUsageDetail_20' ) start [2025-02-03 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389268', 'tblTempUsageDetail_20' ) end [2025-02-03 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389268', 'tblTempVendorCDR_20' ) start [2025-02-03 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389268', 'tblTempVendorCDR_20' ) end [2025-02-03 00:12:19] Production.INFO: ProcessCDR(1,14389268,1,1,2) [2025-02-03 00:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389268', 'tblTempUsageDetail_20' ) start [2025-02-03 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389268', 'tblTempUsageDetail_20' ) end [2025-02-03 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:12:22] Production.INFO: ==27098== Releasing lock... [2025-02-03 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:12:22] Production.INFO: 34 MB #Memory Used# [2025-02-03 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:13:05 [end_date_ymd] => 2025-02-03 00:13:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:13:05' and `end` < '2025-02-03 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-02-03 00:13:19] Production.INFO: count ==698 [2025-02-03 00:13:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:13:05 - End Time 2025-02-03 00:13:05 [2025-02-03 00:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389273', 'tblTempUsageDetail_20' ) start [2025-02-03 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389273', 'tblTempUsageDetail_20' ) end [2025-02-03 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389273', 'tblTempVendorCDR_20' ) start [2025-02-03 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389273', 'tblTempVendorCDR_20' ) end [2025-02-03 00:13:19] Production.INFO: ProcessCDR(1,14389273,1,1,2) [2025-02-03 00:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389273', 'tblTempUsageDetail_20' ) start [2025-02-03 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389273', 'tblTempUsageDetail_20' ) end [2025-02-03 00:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:13:22] Production.INFO: ==27174== Releasing lock... [2025-02-03 00:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:13:22] Production.INFO: 34 MB #Memory Used# [2025-02-03 00:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:14:06 [end_date_ymd] => 2025-02-03 00:14:06 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:14:06' and `end` < '2025-02-03 00: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-02-03 00:14:19] Production.INFO: count ==698 [2025-02-03 00:14:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:14:06 - End Time 2025-02-03 00:14:06 [2025-02-03 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389278', 'tblTempUsageDetail_20' ) start [2025-02-03 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389278', 'tblTempUsageDetail_20' ) end [2025-02-03 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389278', 'tblTempVendorCDR_20' ) start [2025-02-03 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389278', 'tblTempVendorCDR_20' ) end [2025-02-03 00:14:19] Production.INFO: ProcessCDR(1,14389278,1,1,2) [2025-02-03 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389278', 'tblTempUsageDetail_20' ) start [2025-02-03 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389278', 'tblTempUsageDetail_20' ) end [2025-02-03 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:14:22] Production.INFO: ==27253== Releasing lock... [2025-02-03 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:14:22] Production.INFO: 34 MB #Memory Used# [2025-02-03 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:15:05 [end_date_ymd] => 2025-02-03 00:15:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:15:05' and `end` < '2025-02-03 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-02-03 00:15:18] Production.INFO: count ==722 [2025-02-03 00:15:18] Production.ERROR: pbx CDR StartTime 2025-02-02 21:15:05 - End Time 2025-02-03 00:15:05 [2025-02-03 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389283', 'tblTempUsageDetail_20' ) start [2025-02-03 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389283', 'tblTempUsageDetail_20' ) end [2025-02-03 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389283', 'tblTempVendorCDR_20' ) start [2025-02-03 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389283', 'tblTempVendorCDR_20' ) end [2025-02-03 00:15:18] Production.INFO: ProcessCDR(1,14389283,1,1,2) [2025-02-03 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389283', 'tblTempUsageDetail_20' ) start [2025-02-03 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389283', 'tblTempUsageDetail_20' ) end [2025-02-03 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:15:21] Production.INFO: ==27332== Releasing lock... [2025-02-03 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:15:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-03 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:16:05 [end_date_ymd] => 2025-02-03 00:16:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:16:05' and `end` < '2025-02-03 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-02-03 00:16:20] Production.INFO: count ==722 [2025-02-03 00:16:20] Production.ERROR: pbx CDR StartTime 2025-02-02 21:16:05 - End Time 2025-02-03 00:16:05 [2025-02-03 00:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389288', 'tblTempUsageDetail_20' ) start [2025-02-03 00:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389288', 'tblTempUsageDetail_20' ) end [2025-02-03 00:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389288', 'tblTempVendorCDR_20' ) start [2025-02-03 00:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389288', 'tblTempVendorCDR_20' ) end [2025-02-03 00:16:20] Production.INFO: ProcessCDR(1,14389288,1,1,2) [2025-02-03 00:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389288', 'tblTempUsageDetail_20' ) start [2025-02-03 00:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389288', 'tblTempUsageDetail_20' ) end [2025-02-03 00:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:16:23] Production.INFO: ==27408== Releasing lock... [2025-02-03 00:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:16:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-03 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:17:05 [end_date_ymd] => 2025-02-03 00:17:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:17:05' and `end` < '2025-02-03 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-02-03 00:17:19] Production.INFO: count ==722 [2025-02-03 00:17:20] Production.ERROR: pbx CDR StartTime 2025-02-02 21:17:05 - End Time 2025-02-03 00:17:05 [2025-02-03 00:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389293', 'tblTempUsageDetail_20' ) start [2025-02-03 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389293', 'tblTempUsageDetail_20' ) end [2025-02-03 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389293', 'tblTempVendorCDR_20' ) start [2025-02-03 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389293', 'tblTempVendorCDR_20' ) end [2025-02-03 00:17:20] Production.INFO: ProcessCDR(1,14389293,1,1,2) [2025-02-03 00:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389293', 'tblTempUsageDetail_20' ) start [2025-02-03 00:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389293', 'tblTempUsageDetail_20' ) end [2025-02-03 00:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:17:23] Production.INFO: ==27484== Releasing lock... [2025-02-03 00:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:17:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-03 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:18:05 [end_date_ymd] => 2025-02-03 00:18:05 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:18:05' and `end` < '2025-02-03 00: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-02-03 00:18:17] Production.INFO: count ==723 [2025-02-03 00:18:18] Production.ERROR: pbx CDR StartTime 2025-02-02 21:18:05 - End Time 2025-02-03 00:18:05 [2025-02-03 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389298', 'tblTempUsageDetail_20' ) start [2025-02-03 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389298', 'tblTempUsageDetail_20' ) end [2025-02-03 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389298', 'tblTempVendorCDR_20' ) start [2025-02-03 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389298', 'tblTempVendorCDR_20' ) end [2025-02-03 00:18:18] Production.INFO: ProcessCDR(1,14389298,1,1,2) [2025-02-03 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389298', 'tblTempUsageDetail_20' ) start [2025-02-03 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389298', 'tblTempUsageDetail_20' ) end [2025-02-03 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:18:22] Production.INFO: ==27611== Releasing lock... [2025-02-03 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:18:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 00:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:19:06 [end_date_ymd] => 2025-02-03 00:19:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:19:06' and `end` < '2025-02-03 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-02-03 00:19:19] Production.INFO: count ==723 [2025-02-03 00:19:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:19:06 - End Time 2025-02-03 00:19:06 [2025-02-03 00:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389303', 'tblTempUsageDetail_20' ) start [2025-02-03 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389303', 'tblTempUsageDetail_20' ) end [2025-02-03 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389303', 'tblTempVendorCDR_20' ) start [2025-02-03 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389303', 'tblTempVendorCDR_20' ) end [2025-02-03 00:19:19] Production.INFO: ProcessCDR(1,14389303,1,1,2) [2025-02-03 00:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389303', 'tblTempUsageDetail_20' ) start [2025-02-03 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389303', 'tblTempUsageDetail_20' ) end [2025-02-03 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:19:22] Production.INFO: ==27694== Releasing lock... [2025-02-03 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:19:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:20:05 [end_date_ymd] => 2025-02-03 00:20:05 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:20:05' and `end` < '2025-02-03 00: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-02-03 00:20:18] Production.INFO: count ==729 [2025-02-03 00:20:18] Production.ERROR: pbx CDR StartTime 2025-02-02 21:20:05 - End Time 2025-02-03 00:20:05 [2025-02-03 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389308', 'tblTempUsageDetail_20' ) start [2025-02-03 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389308', 'tblTempUsageDetail_20' ) end [2025-02-03 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389308', 'tblTempVendorCDR_20' ) start [2025-02-03 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389308', 'tblTempVendorCDR_20' ) end [2025-02-03 00:20:18] Production.INFO: ProcessCDR(1,14389308,1,1,2) [2025-02-03 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389308', 'tblTempUsageDetail_20' ) start [2025-02-03 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389308', 'tblTempUsageDetail_20' ) end [2025-02-03 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:20:21] Production.INFO: ==27777== Releasing lock... [2025-02-03 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:20:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-03 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:21:05 [end_date_ymd] => 2025-02-03 00:21:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:21:05' and `end` < '2025-02-03 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-02-03 00:21:18] Production.INFO: count ==735 [2025-02-03 00:21:18] Production.ERROR: pbx CDR StartTime 2025-02-02 21:21:05 - End Time 2025-02-03 00:21:05 [2025-02-03 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389314', 'tblTempUsageDetail_20' ) start [2025-02-03 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389314', 'tblTempUsageDetail_20' ) end [2025-02-03 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389314', 'tblTempVendorCDR_20' ) start [2025-02-03 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389314', 'tblTempVendorCDR_20' ) end [2025-02-03 00:21:18] Production.INFO: ProcessCDR(1,14389314,1,1,2) [2025-02-03 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389314', 'tblTempUsageDetail_20' ) start [2025-02-03 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389314', 'tblTempUsageDetail_20' ) end [2025-02-03 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:21:21] Production.INFO: ==27857== Releasing lock... [2025-02-03 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:21:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:22:05 [end_date_ymd] => 2025-02-03 00:22:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:22:05' and `end` < '2025-02-03 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-02-03 00:22:18] Production.INFO: count ==735 [2025-02-03 00:22:18] Production.ERROR: pbx CDR StartTime 2025-02-02 21:22:05 - End Time 2025-02-03 00:22:05 [2025-02-03 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389319', 'tblTempUsageDetail_20' ) start [2025-02-03 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389319', 'tblTempUsageDetail_20' ) end [2025-02-03 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389319', 'tblTempVendorCDR_20' ) start [2025-02-03 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389319', 'tblTempVendorCDR_20' ) end [2025-02-03 00:22:18] Production.INFO: ProcessCDR(1,14389319,1,1,2) [2025-02-03 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389319', 'tblTempUsageDetail_20' ) start [2025-02-03 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389319', 'tblTempUsageDetail_20' ) end [2025-02-03 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:22:21] Production.INFO: ==27936== Releasing lock... [2025-02-03 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:22:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:23:05 [end_date_ymd] => 2025-02-03 00:23:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:23:05' and `end` < '2025-02-03 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-02-03 00:23:19] Production.INFO: count ==734 [2025-02-03 00:23:20] Production.ERROR: pbx CDR StartTime 2025-02-02 21:23:05 - End Time 2025-02-03 00:23:05 [2025-02-03 00:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389324', 'tblTempUsageDetail_20' ) start [2025-02-03 00:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389324', 'tblTempUsageDetail_20' ) end [2025-02-03 00:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389324', 'tblTempVendorCDR_20' ) start [2025-02-03 00:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389324', 'tblTempVendorCDR_20' ) end [2025-02-03 00:23:20] Production.INFO: ProcessCDR(1,14389324,1,1,2) [2025-02-03 00:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389324', 'tblTempUsageDetail_20' ) start [2025-02-03 00:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389324', 'tblTempUsageDetail_20' ) end [2025-02-03 00:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:23:23] Production.INFO: ==28024== Releasing lock... [2025-02-03 00:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:23:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:24:05 [end_date_ymd] => 2025-02-03 00:24:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:24:05' and `end` < '2025-02-03 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-02-03 00:24:20] Production.INFO: count ==733 [2025-02-03 00:24:20] Production.ERROR: pbx CDR StartTime 2025-02-02 21:24:05 - End Time 2025-02-03 00:24:05 [2025-02-03 00:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389329', 'tblTempUsageDetail_20' ) start [2025-02-03 00:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389329', 'tblTempUsageDetail_20' ) end [2025-02-03 00:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389329', 'tblTempVendorCDR_20' ) start [2025-02-03 00:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389329', 'tblTempVendorCDR_20' ) end [2025-02-03 00:24:20] Production.INFO: ProcessCDR(1,14389329,1,1,2) [2025-02-03 00:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389329', 'tblTempUsageDetail_20' ) start [2025-02-03 00:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389329', 'tblTempUsageDetail_20' ) end [2025-02-03 00:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:24:23] Production.INFO: ==28100== Releasing lock... [2025-02-03 00:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:24:23] Production.INFO: 34 MB #Memory Used# [2025-02-03 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:25:05 [end_date_ymd] => 2025-02-03 00:25:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:25:05' and `end` < '2025-02-03 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-02-03 00:25:17] Production.INFO: count ==733 [2025-02-03 00:25:18] Production.ERROR: pbx CDR StartTime 2025-02-02 21:25:05 - End Time 2025-02-03 00:25:05 [2025-02-03 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389334', 'tblTempUsageDetail_20' ) start [2025-02-03 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389334', 'tblTempUsageDetail_20' ) end [2025-02-03 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389334', 'tblTempVendorCDR_20' ) start [2025-02-03 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389334', 'tblTempVendorCDR_20' ) end [2025-02-03 00:25:18] Production.INFO: ProcessCDR(1,14389334,1,1,2) [2025-02-03 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389334', 'tblTempUsageDetail_20' ) start [2025-02-03 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389334', 'tblTempUsageDetail_20' ) end [2025-02-03 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:25:21] Production.INFO: ==28179== Releasing lock... [2025-02-03 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:25:21] Production.INFO: 34 MB #Memory Used# [2025-02-03 00:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:26:06 [end_date_ymd] => 2025-02-03 00:26:06 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:26:06' and `end` < '2025-02-03 00: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-02-03 00:26:18] Production.INFO: count ==732 [2025-02-03 00:26:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:26:06 - End Time 2025-02-03 00:26:06 [2025-02-03 00:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389339', 'tblTempUsageDetail_20' ) start [2025-02-03 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389339', 'tblTempUsageDetail_20' ) end [2025-02-03 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389339', 'tblTempVendorCDR_20' ) start [2025-02-03 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389339', 'tblTempVendorCDR_20' ) end [2025-02-03 00:26:19] Production.INFO: ProcessCDR(1,14389339,1,1,2) [2025-02-03 00:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389339', 'tblTempUsageDetail_20' ) start [2025-02-03 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389339', 'tblTempUsageDetail_20' ) end [2025-02-03 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:26:22] Production.INFO: ==28258== Releasing lock... [2025-02-03 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:26:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-03 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:27:05 [end_date_ymd] => 2025-02-03 00:27:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:27:05' and `end` < '2025-02-03 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-02-03 00:27:18] Production.INFO: count ==731 [2025-02-03 00:27:18] Production.ERROR: pbx CDR StartTime 2025-02-02 21:27:05 - End Time 2025-02-03 00:27:05 [2025-02-03 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389344', 'tblTempUsageDetail_20' ) start [2025-02-03 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389344', 'tblTempUsageDetail_20' ) end [2025-02-03 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389344', 'tblTempVendorCDR_20' ) start [2025-02-03 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389344', 'tblTempVendorCDR_20' ) end [2025-02-03 00:27:18] Production.INFO: ProcessCDR(1,14389344,1,1,2) [2025-02-03 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389344', 'tblTempUsageDetail_20' ) start [2025-02-03 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389344', 'tblTempUsageDetail_20' ) end [2025-02-03 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:27:21] Production.INFO: ==28341== Releasing lock... [2025-02-03 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:27:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 00:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:28:06 [end_date_ymd] => 2025-02-03 00:28:06 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:28:06' and `end` < '2025-02-03 00: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-02-03 00:28:18] Production.INFO: count ==731 [2025-02-03 00:28:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:28:06 - End Time 2025-02-03 00:28:06 [2025-02-03 00:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389349', 'tblTempUsageDetail_20' ) start [2025-02-03 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389349', 'tblTempUsageDetail_20' ) end [2025-02-03 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389349', 'tblTempVendorCDR_20' ) start [2025-02-03 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389349', 'tblTempVendorCDR_20' ) end [2025-02-03 00:28:19] Production.INFO: ProcessCDR(1,14389349,1,1,2) [2025-02-03 00:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389349', 'tblTempUsageDetail_20' ) start [2025-02-03 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389349', 'tblTempUsageDetail_20' ) end [2025-02-03 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:28:22] Production.INFO: ==28426== Releasing lock... [2025-02-03 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:28:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:29:05 [end_date_ymd] => 2025-02-03 00:29:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:29:05' and `end` < '2025-02-03 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-02-03 00:29:19] Production.INFO: count ==728 [2025-02-03 00:29:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:29:05 - End Time 2025-02-03 00:29:05 [2025-02-03 00:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389354', 'tblTempUsageDetail_20' ) start [2025-02-03 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389354', 'tblTempUsageDetail_20' ) end [2025-02-03 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389354', 'tblTempVendorCDR_20' ) start [2025-02-03 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389354', 'tblTempVendorCDR_20' ) end [2025-02-03 00:29:19] Production.INFO: ProcessCDR(1,14389354,1,1,2) [2025-02-03 00:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389354', 'tblTempUsageDetail_20' ) start [2025-02-03 00:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389354', 'tblTempUsageDetail_20' ) end [2025-02-03 00:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:29:24] Production.INFO: ==28513== Releasing lock... [2025-02-03 00:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:29:24] Production.INFO: 34.5 MB #Memory Used# [2025-02-03 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:30:05 [end_date_ymd] => 2025-02-03 00:30:05 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:30:05' and `end` < '2025-02-03 00: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-02-03 00:30:18] Production.INFO: count ==737 [2025-02-03 00:30:18] Production.ERROR: pbx CDR StartTime 2025-02-02 21:30:05 - End Time 2025-02-03 00:30:05 [2025-02-03 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389359', 'tblTempUsageDetail_20' ) start [2025-02-03 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389359', 'tblTempUsageDetail_20' ) end [2025-02-03 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389359', 'tblTempVendorCDR_20' ) start [2025-02-03 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389359', 'tblTempVendorCDR_20' ) end [2025-02-03 00:30:18] Production.INFO: ProcessCDR(1,14389359,1,1,2) [2025-02-03 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389359', 'tblTempUsageDetail_20' ) start [2025-02-03 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389359', 'tblTempUsageDetail_20' ) end [2025-02-03 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:30:21] Production.INFO: ==28601== Releasing lock... [2025-02-03 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:30:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-03 00:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:31:05 [end_date_ymd] => 2025-02-03 00:31:05 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:31:05' and `end` < '2025-02-03 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-02-03 00:31:19] Production.INFO: count ==752 [2025-02-03 00:31:20] Production.ERROR: pbx CDR StartTime 2025-02-02 21:31:05 - End Time 2025-02-03 00:31:05 [2025-02-03 00:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389365', 'tblTempUsageDetail_20' ) start [2025-02-03 00:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389365', 'tblTempUsageDetail_20' ) end [2025-02-03 00:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389365', 'tblTempVendorCDR_20' ) start [2025-02-03 00:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389365', 'tblTempVendorCDR_20' ) end [2025-02-03 00:31:20] Production.INFO: ProcessCDR(1,14389365,1,1,2) [2025-02-03 00:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389365', 'tblTempUsageDetail_20' ) start [2025-02-03 00:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389365', 'tblTempUsageDetail_20' ) end [2025-02-03 00:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:31:23] Production.INFO: ==28683== Releasing lock... [2025-02-03 00:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:31:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-03 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:32:05 [end_date_ymd] => 2025-02-03 00:32:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:32:05' and `end` < '2025-02-03 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-02-03 00:32:19] Production.INFO: count ==761 [2025-02-03 00:32:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:32:05 - End Time 2025-02-03 00:32:05 [2025-02-03 00:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389370', 'tblTempUsageDetail_20' ) start [2025-02-03 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389370', 'tblTempUsageDetail_20' ) end [2025-02-03 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389370', 'tblTempVendorCDR_20' ) start [2025-02-03 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389370', 'tblTempVendorCDR_20' ) end [2025-02-03 00:32:19] Production.INFO: ProcessCDR(1,14389370,1,1,2) [2025-02-03 00:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389370', 'tblTempUsageDetail_20' ) start [2025-02-03 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389370', 'tblTempUsageDetail_20' ) end [2025-02-03 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:32:22] Production.INFO: ==28766== Releasing lock... [2025-02-03 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:32:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-03 00:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:33:06 [end_date_ymd] => 2025-02-03 00:33:06 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:33:06' and `end` < '2025-02-03 00: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-02-03 00:33:19] Production.INFO: count ==761 [2025-02-03 00:33:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:33:06 - End Time 2025-02-03 00:33:06 [2025-02-03 00:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389375', 'tblTempUsageDetail_20' ) start [2025-02-03 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389375', 'tblTempUsageDetail_20' ) end [2025-02-03 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389375', 'tblTempVendorCDR_20' ) start [2025-02-03 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389375', 'tblTempVendorCDR_20' ) end [2025-02-03 00:33:19] Production.INFO: ProcessCDR(1,14389375,1,1,2) [2025-02-03 00:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389375', 'tblTempUsageDetail_20' ) start [2025-02-03 00:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389375', 'tblTempUsageDetail_20' ) end [2025-02-03 00:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:33:23] Production.INFO: ==28889== Releasing lock... [2025-02-03 00:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:33:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-03 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:34:04 [end_date_ymd] => 2025-02-03 00:34:04 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:34:04' and `end` < '2025-02-03 00: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-02-03 00:34:19] Production.INFO: count ==765 [2025-02-03 00:34:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:34:04 - End Time 2025-02-03 00:34:04 [2025-02-03 00:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389380', 'tblTempUsageDetail_20' ) start [2025-02-03 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389380', 'tblTempUsageDetail_20' ) end [2025-02-03 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389380', 'tblTempVendorCDR_20' ) start [2025-02-03 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389380', 'tblTempVendorCDR_20' ) end [2025-02-03 00:34:19] Production.INFO: ProcessCDR(1,14389380,1,1,2) [2025-02-03 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389380', 'tblTempUsageDetail_20' ) start [2025-02-03 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389380', 'tblTempUsageDetail_20' ) end [2025-02-03 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:34:22] Production.INFO: ==28974== Releasing lock... [2025-02-03 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:34:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 00:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:35:06 [end_date_ymd] => 2025-02-03 00:35:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:35:06' and `end` < '2025-02-03 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-02-03 00:35:18] Production.INFO: count ==762 [2025-02-03 00:35:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:35:06 - End Time 2025-02-03 00:35:06 [2025-02-03 00:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389385', 'tblTempUsageDetail_20' ) start [2025-02-03 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389385', 'tblTempUsageDetail_20' ) end [2025-02-03 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389385', 'tblTempVendorCDR_20' ) start [2025-02-03 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389385', 'tblTempVendorCDR_20' ) end [2025-02-03 00:35:19] Production.INFO: ProcessCDR(1,14389385,1,1,2) [2025-02-03 00:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389385', 'tblTempUsageDetail_20' ) start [2025-02-03 00:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389385', 'tblTempUsageDetail_20' ) end [2025-02-03 00:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:35:23] Production.INFO: ==29069== Releasing lock... [2025-02-03 00:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:35:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:36:05 [end_date_ymd] => 2025-02-03 00:36:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:36:05' and `end` < '2025-02-03 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-02-03 00:36:19] Production.INFO: count ==779 [2025-02-03 00:36:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:36:05 - End Time 2025-02-03 00:36:05 [2025-02-03 00:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389390', 'tblTempUsageDetail_20' ) start [2025-02-03 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389390', 'tblTempUsageDetail_20' ) end [2025-02-03 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389390', 'tblTempVendorCDR_20' ) start [2025-02-03 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389390', 'tblTempVendorCDR_20' ) end [2025-02-03 00:36:19] Production.INFO: ProcessCDR(1,14389390,1,1,2) [2025-02-03 00:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389390', 'tblTempUsageDetail_20' ) start [2025-02-03 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389390', 'tblTempUsageDetail_20' ) end [2025-02-03 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:36:22] Production.INFO: ==29154== Releasing lock... [2025-02-03 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:36:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-03 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:37:05 [end_date_ymd] => 2025-02-03 00:37:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:37:05' and `end` < '2025-02-03 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-02-03 00:37:18] Production.INFO: count ==779 [2025-02-03 00:37:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:37:05 - End Time 2025-02-03 00:37:05 [2025-02-03 00:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389395', 'tblTempUsageDetail_20' ) start [2025-02-03 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389395', 'tblTempUsageDetail_20' ) end [2025-02-03 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389395', 'tblTempVendorCDR_20' ) start [2025-02-03 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389395', 'tblTempVendorCDR_20' ) end [2025-02-03 00:37:19] Production.INFO: ProcessCDR(1,14389395,1,1,2) [2025-02-03 00:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389395', 'tblTempUsageDetail_20' ) start [2025-02-03 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389395', 'tblTempUsageDetail_20' ) end [2025-02-03 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:37:22] Production.INFO: ==29243== Releasing lock... [2025-02-03 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:37:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-03 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:38:06 [end_date_ymd] => 2025-02-03 00:38:06 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:38:06' and `end` < '2025-02-03 00: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-02-03 00:38:19] Production.INFO: count ==808 [2025-02-03 00:38:20] Production.ERROR: pbx CDR StartTime 2025-02-02 21:38:06 - End Time 2025-02-03 00:38:06 [2025-02-03 00:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389400', 'tblTempUsageDetail_20' ) start [2025-02-03 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389400', 'tblTempUsageDetail_20' ) end [2025-02-03 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389400', 'tblTempVendorCDR_20' ) start [2025-02-03 00:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389400', 'tblTempVendorCDR_20' ) end [2025-02-03 00:38:20] Production.INFO: ProcessCDR(1,14389400,1,1,2) [2025-02-03 00:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389400', 'tblTempUsageDetail_20' ) start [2025-02-03 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389400', 'tblTempUsageDetail_20' ) end [2025-02-03 00:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:38:23] Production.INFO: ==29335== Releasing lock... [2025-02-03 00:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:38:23] Production.INFO: 35 MB #Memory Used# [2025-02-03 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:39:05 [end_date_ymd] => 2025-02-03 00:39:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:39:05' and `end` < '2025-02-03 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-02-03 00:39:19] Production.INFO: count ==808 [2025-02-03 00:39:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:39:05 - End Time 2025-02-03 00:39:05 [2025-02-03 00:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389405', 'tblTempUsageDetail_20' ) start [2025-02-03 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389405', 'tblTempUsageDetail_20' ) end [2025-02-03 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389405', 'tblTempVendorCDR_20' ) start [2025-02-03 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389405', 'tblTempVendorCDR_20' ) end [2025-02-03 00:39:19] Production.INFO: ProcessCDR(1,14389405,1,1,2) [2025-02-03 00:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389405', 'tblTempUsageDetail_20' ) start [2025-02-03 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389405', 'tblTempUsageDetail_20' ) end [2025-02-03 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:39:22] Production.INFO: ==29421== Releasing lock... [2025-02-03 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:39:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:40:06 [end_date_ymd] => 2025-02-03 00:40:06 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:40:06' and `end` < '2025-02-03 00: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-02-03 00:40:19] Production.INFO: count ==817 [2025-02-03 00:40:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:40:06 - End Time 2025-02-03 00:40:06 [2025-02-03 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389411', 'tblTempUsageDetail_20' ) start [2025-02-03 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389411', 'tblTempUsageDetail_20' ) end [2025-02-03 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389411', 'tblTempVendorCDR_20' ) start [2025-02-03 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389411', 'tblTempVendorCDR_20' ) end [2025-02-03 00:40:19] Production.INFO: ProcessCDR(1,14389411,1,1,2) [2025-02-03 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389411', 'tblTempUsageDetail_20' ) start [2025-02-03 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389411', 'tblTempUsageDetail_20' ) end [2025-02-03 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:40:22] Production.INFO: ==29519== Releasing lock... [2025-02-03 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:40:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:41:05 [end_date_ymd] => 2025-02-03 00:41:05 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:41:05' and `end` < '2025-02-03 00: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-02-03 00:41:20] Production.INFO: count ==828 [2025-02-03 00:41:20] Production.ERROR: pbx CDR StartTime 2025-02-02 21:41:05 - End Time 2025-02-03 00:41:05 [2025-02-03 00:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389416', 'tblTempUsageDetail_20' ) start [2025-02-03 00:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389416', 'tblTempUsageDetail_20' ) end [2025-02-03 00:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389416', 'tblTempVendorCDR_20' ) start [2025-02-03 00:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389416', 'tblTempVendorCDR_20' ) end [2025-02-03 00:41:21] Production.INFO: ProcessCDR(1,14389416,1,1,2) [2025-02-03 00:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389416', 'tblTempUsageDetail_20' ) start [2025-02-03 00:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389416', 'tblTempUsageDetail_20' ) end [2025-02-03 00:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:41:25] Production.INFO: ==29614== Releasing lock... [2025-02-03 00:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:41:25] Production.INFO: 35.5 MB #Memory Used# [2025-02-03 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:42:05 [end_date_ymd] => 2025-02-03 00:42:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:42:05' and `end` < '2025-02-03 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-02-03 00:42:18] Production.INFO: count ==828 [2025-02-03 00:42:18] Production.ERROR: pbx CDR StartTime 2025-02-02 21:42:05 - End Time 2025-02-03 00:42:05 [2025-02-03 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389421', 'tblTempUsageDetail_20' ) start [2025-02-03 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389421', 'tblTempUsageDetail_20' ) end [2025-02-03 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389421', 'tblTempVendorCDR_20' ) start [2025-02-03 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389421', 'tblTempVendorCDR_20' ) end [2025-02-03 00:42:18] Production.INFO: ProcessCDR(1,14389421,1,1,2) [2025-02-03 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389421', 'tblTempUsageDetail_20' ) start [2025-02-03 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389421', 'tblTempUsageDetail_20' ) end [2025-02-03 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:42:22] Production.INFO: ==29712== Releasing lock... [2025-02-03 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:42:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-03 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:43:05 [end_date_ymd] => 2025-02-03 00:43:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:43:05' and `end` < '2025-02-03 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-02-03 00:43:18] Production.INFO: count ==828 [2025-02-03 00:43:18] Production.ERROR: pbx CDR StartTime 2025-02-02 21:43:05 - End Time 2025-02-03 00:43:05 [2025-02-03 00:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389426', 'tblTempUsageDetail_20' ) start [2025-02-03 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389426', 'tblTempUsageDetail_20' ) end [2025-02-03 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389426', 'tblTempVendorCDR_20' ) start [2025-02-03 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389426', 'tblTempVendorCDR_20' ) end [2025-02-03 00:43:19] Production.INFO: ProcessCDR(1,14389426,1,1,2) [2025-02-03 00:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389426', 'tblTempUsageDetail_20' ) start [2025-02-03 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389426', 'tblTempUsageDetail_20' ) end [2025-02-03 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:43:22] Production.INFO: ==29800== Releasing lock... [2025-02-03 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:43:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-03 00:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:44:04 [end_date_ymd] => 2025-02-03 00:44:04 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:44:04' and `end` < '2025-02-03 00: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-02-03 00:44:18] Production.INFO: count ==828 [2025-02-03 00:44:18] Production.ERROR: pbx CDR StartTime 2025-02-02 21:44:04 - End Time 2025-02-03 00:44:04 [2025-02-03 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389431', 'tblTempUsageDetail_20' ) start [2025-02-03 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389431', 'tblTempUsageDetail_20' ) end [2025-02-03 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389431', 'tblTempVendorCDR_20' ) start [2025-02-03 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389431', 'tblTempVendorCDR_20' ) end [2025-02-03 00:44:18] Production.INFO: ProcessCDR(1,14389431,1,1,2) [2025-02-03 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389431', 'tblTempUsageDetail_20' ) start [2025-02-03 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389431', 'tblTempUsageDetail_20' ) end [2025-02-03 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:44:21] Production.INFO: ==29894== Releasing lock... [2025-02-03 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:44:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-03 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:45:05 [end_date_ymd] => 2025-02-03 00:45:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:45:05' and `end` < '2025-02-03 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-02-03 00:45:18] Production.INFO: count ==828 [2025-02-03 00:45:18] Production.ERROR: pbx CDR StartTime 2025-02-02 21:45:05 - End Time 2025-02-03 00:45:05 [2025-02-03 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389436', 'tblTempUsageDetail_20' ) start [2025-02-03 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389436', 'tblTempUsageDetail_20' ) end [2025-02-03 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389436', 'tblTempVendorCDR_20' ) start [2025-02-03 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389436', 'tblTempVendorCDR_20' ) end [2025-02-03 00:45:18] Production.INFO: ProcessCDR(1,14389436,1,1,2) [2025-02-03 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389436', 'tblTempUsageDetail_20' ) start [2025-02-03 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389436', 'tblTempUsageDetail_20' ) end [2025-02-03 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:45:21] Production.INFO: ==29993== Releasing lock... [2025-02-03 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:45:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-03 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:46:05 [end_date_ymd] => 2025-02-03 00:46:05 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:46:05' and `end` < '2025-02-03 00: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-02-03 00:46:19] Production.INFO: count ==828 [2025-02-03 00:46:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:46:05 - End Time 2025-02-03 00:46:05 [2025-02-03 00:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389441', 'tblTempUsageDetail_20' ) start [2025-02-03 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389441', 'tblTempUsageDetail_20' ) end [2025-02-03 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389441', 'tblTempVendorCDR_20' ) start [2025-02-03 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389441', 'tblTempVendorCDR_20' ) end [2025-02-03 00:46:19] Production.INFO: ProcessCDR(1,14389441,1,1,2) [2025-02-03 00:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389441', 'tblTempUsageDetail_20' ) start [2025-02-03 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389441', 'tblTempUsageDetail_20' ) end [2025-02-03 00:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:46:22] Production.INFO: ==30085== Releasing lock... [2025-02-03 00:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:46:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-03 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:47:05 [end_date_ymd] => 2025-02-03 00:47:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:47:05' and `end` < '2025-02-03 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-02-03 00:47:19] Production.INFO: count ==828 [2025-02-03 00:47:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:47:05 - End Time 2025-02-03 00:47:05 [2025-02-03 00:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389446', 'tblTempUsageDetail_20' ) start [2025-02-03 00:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389446', 'tblTempUsageDetail_20' ) end [2025-02-03 00:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389446', 'tblTempVendorCDR_20' ) start [2025-02-03 00:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389446', 'tblTempVendorCDR_20' ) end [2025-02-03 00:47:20] Production.INFO: ProcessCDR(1,14389446,1,1,2) [2025-02-03 00:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389446', 'tblTempUsageDetail_20' ) start [2025-02-03 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389446', 'tblTempUsageDetail_20' ) end [2025-02-03 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:47:22] Production.INFO: ==30181== Releasing lock... [2025-02-03 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:47:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-03 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:48:05 [end_date_ymd] => 2025-02-03 00:48:05 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:48:05' and `end` < '2025-02-03 00: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-02-03 00:48:21] Production.INFO: count ==828 [2025-02-03 00:48:21] Production.ERROR: pbx CDR StartTime 2025-02-02 21:48:05 - End Time 2025-02-03 00:48:05 [2025-02-03 00:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389451', 'tblTempUsageDetail_20' ) start [2025-02-03 00:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389451', 'tblTempUsageDetail_20' ) end [2025-02-03 00:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389451', 'tblTempVendorCDR_20' ) start [2025-02-03 00:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389451', 'tblTempVendorCDR_20' ) end [2025-02-03 00:48:21] Production.INFO: ProcessCDR(1,14389451,1,1,2) [2025-02-03 00:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389451', 'tblTempUsageDetail_20' ) start [2025-02-03 00:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389451', 'tblTempUsageDetail_20' ) end [2025-02-03 00:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:48:24] Production.INFO: ==30269== Releasing lock... [2025-02-03 00:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:48:24] Production.INFO: 35.5 MB #Memory Used# [2025-02-03 00:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:49:06 [end_date_ymd] => 2025-02-03 00:49:06 [RateCDR] => 1 ) [2025-02-03 00:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 21:49:06' and `end` < '2025-02-03 00:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 00:49:18] Production.INFO: count ==828 [2025-02-03 00:49:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:49:06 - End Time 2025-02-03 00:49:06 [2025-02-03 00:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389456', 'tblTempUsageDetail_20' ) start [2025-02-03 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389456', 'tblTempUsageDetail_20' ) end [2025-02-03 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389456', 'tblTempVendorCDR_20' ) start [2025-02-03 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389456', 'tblTempVendorCDR_20' ) end [2025-02-03 00:49:19] Production.INFO: ProcessCDR(1,14389456,1,1,2) [2025-02-03 00:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389456', 'tblTempUsageDetail_20' ) start [2025-02-03 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389456', 'tblTempUsageDetail_20' ) end [2025-02-03 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:49:22] Production.INFO: ==30407== Releasing lock... [2025-02-03 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:49:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-03 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:50:06 [end_date_ymd] => 2025-02-03 00:50:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:50:06' and `end` < '2025-02-03 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-02-03 00:50:19] Production.INFO: count ==836 [2025-02-03 00:50:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:50:06 - End Time 2025-02-03 00:50:06 [2025-02-03 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389462', 'tblTempUsageDetail_20' ) start [2025-02-03 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389462', 'tblTempUsageDetail_20' ) end [2025-02-03 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389462', 'tblTempVendorCDR_20' ) start [2025-02-03 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389462', 'tblTempVendorCDR_20' ) end [2025-02-03 00:50:19] Production.INFO: ProcessCDR(1,14389462,1,1,2) [2025-02-03 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389462', 'tblTempUsageDetail_20' ) start [2025-02-03 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389462', 'tblTempUsageDetail_20' ) end [2025-02-03 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:50:22] Production.INFO: ==30503== Releasing lock... [2025-02-03 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:50:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:51:05 [end_date_ymd] => 2025-02-03 00:51:05 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:51:05' and `end` < '2025-02-03 00: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-02-03 00:51:20] Production.INFO: count ==859 [2025-02-03 00:51:20] Production.ERROR: pbx CDR StartTime 2025-02-02 21:51:05 - End Time 2025-02-03 00:51:05 [2025-02-03 00:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389467', 'tblTempUsageDetail_20' ) start [2025-02-03 00:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389467', 'tblTempUsageDetail_20' ) end [2025-02-03 00:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389467', 'tblTempVendorCDR_20' ) start [2025-02-03 00:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389467', 'tblTempVendorCDR_20' ) end [2025-02-03 00:51:20] Production.INFO: ProcessCDR(1,14389467,1,1,2) [2025-02-03 00:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389467', 'tblTempUsageDetail_20' ) start [2025-02-03 00:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389467', 'tblTempUsageDetail_20' ) end [2025-02-03 00:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:51:24] Production.INFO: ==30601== Releasing lock... [2025-02-03 00:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:51:24] Production.INFO: 35.5 MB #Memory Used# [2025-02-03 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:52:05 [end_date_ymd] => 2025-02-03 00:52:05 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:52:05' and `end` < '2025-02-03 00: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-02-03 00:52:19] Production.INFO: count ==855 [2025-02-03 00:52:20] Production.ERROR: pbx CDR StartTime 2025-02-02 21:52:05 - End Time 2025-02-03 00:52:05 [2025-02-03 00:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389472', 'tblTempUsageDetail_20' ) start [2025-02-03 00:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389472', 'tblTempUsageDetail_20' ) end [2025-02-03 00:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389472', 'tblTempVendorCDR_20' ) start [2025-02-03 00:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389472', 'tblTempVendorCDR_20' ) end [2025-02-03 00:52:20] Production.INFO: ProcessCDR(1,14389472,1,1,2) [2025-02-03 00:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389472', 'tblTempUsageDetail_20' ) start [2025-02-03 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389472', 'tblTempUsageDetail_20' ) end [2025-02-03 00:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:52:23] Production.INFO: ==30694== Releasing lock... [2025-02-03 00:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:52:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:53:05 [end_date_ymd] => 2025-02-03 00:53:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:53:05' and `end` < '2025-02-03 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-02-03 00:53:20] Production.INFO: count ==855 [2025-02-03 00:53:20] Production.ERROR: pbx CDR StartTime 2025-02-02 21:53:05 - End Time 2025-02-03 00:53:05 [2025-02-03 00:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389477', 'tblTempUsageDetail_20' ) start [2025-02-03 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389477', 'tblTempUsageDetail_20' ) end [2025-02-03 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389477', 'tblTempVendorCDR_20' ) start [2025-02-03 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389477', 'tblTempVendorCDR_20' ) end [2025-02-03 00:53:20] Production.INFO: ProcessCDR(1,14389477,1,1,2) [2025-02-03 00:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389477', 'tblTempUsageDetail_20' ) start [2025-02-03 00:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389477', 'tblTempUsageDetail_20' ) end [2025-02-03 00:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:53:23] Production.INFO: ==30792== Releasing lock... [2025-02-03 00:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:53:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:54:05 [end_date_ymd] => 2025-02-03 00:54:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:54:05' and `end` < '2025-02-03 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-02-03 00:54:19] Production.INFO: count ==855 [2025-02-03 00:54:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:54:05 - End Time 2025-02-03 00:54:05 [2025-02-03 00:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389482', 'tblTempUsageDetail_20' ) start [2025-02-03 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389482', 'tblTempUsageDetail_20' ) end [2025-02-03 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389482', 'tblTempVendorCDR_20' ) start [2025-02-03 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389482', 'tblTempVendorCDR_20' ) end [2025-02-03 00:54:19] Production.INFO: ProcessCDR(1,14389482,1,1,2) [2025-02-03 00:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389482', 'tblTempUsageDetail_20' ) start [2025-02-03 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389482', 'tblTempUsageDetail_20' ) end [2025-02-03 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:54:22] Production.INFO: ==30885== Releasing lock... [2025-02-03 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:54:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:55:06 [end_date_ymd] => 2025-02-03 00:55:06 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:55:06' and `end` < '2025-02-03 00: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-02-03 00:55:18] Production.INFO: count ==855 [2025-02-03 00:55:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:55:06 - End Time 2025-02-03 00:55:06 [2025-02-03 00:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389487', 'tblTempUsageDetail_20' ) start [2025-02-03 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389487', 'tblTempUsageDetail_20' ) end [2025-02-03 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389487', 'tblTempVendorCDR_20' ) start [2025-02-03 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389487', 'tblTempVendorCDR_20' ) end [2025-02-03 00:55:19] Production.INFO: ProcessCDR(1,14389487,1,1,2) [2025-02-03 00:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389487', 'tblTempUsageDetail_20' ) start [2025-02-03 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389487', 'tblTempUsageDetail_20' ) end [2025-02-03 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:55:22] Production.INFO: ==30984== Releasing lock... [2025-02-03 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:55:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:56:05 [end_date_ymd] => 2025-02-03 00:56:05 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:56:05' and `end` < '2025-02-03 00: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-02-03 00:56:20] Production.INFO: count ==854 [2025-02-03 00:56:20] Production.ERROR: pbx CDR StartTime 2025-02-02 21:56:05 - End Time 2025-02-03 00:56:05 [2025-02-03 00:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389492', 'tblTempUsageDetail_20' ) start [2025-02-03 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389492', 'tblTempUsageDetail_20' ) end [2025-02-03 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389492', 'tblTempVendorCDR_20' ) start [2025-02-03 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389492', 'tblTempVendorCDR_20' ) end [2025-02-03 00:56:20] Production.INFO: ProcessCDR(1,14389492,1,1,2) [2025-02-03 00:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389492', 'tblTempUsageDetail_20' ) start [2025-02-03 00:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389492', 'tblTempUsageDetail_20' ) end [2025-02-03 00:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:56:24] Production.INFO: ==31075== Releasing lock... [2025-02-03 00:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:56:24] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:57:05 [end_date_ymd] => 2025-02-03 00:57:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 21:57:05' and `end` < '2025-02-03 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-02-03 00:57:19] Production.INFO: count ==854 [2025-02-03 00:57:20] Production.ERROR: pbx CDR StartTime 2025-02-02 21:57:05 - End Time 2025-02-03 00:57:05 [2025-02-03 00:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389497', 'tblTempUsageDetail_20' ) start [2025-02-03 00:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389497', 'tblTempUsageDetail_20' ) end [2025-02-03 00:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389497', 'tblTempVendorCDR_20' ) start [2025-02-03 00:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389497', 'tblTempVendorCDR_20' ) end [2025-02-03 00:57:20] Production.INFO: ProcessCDR(1,14389497,1,1,2) [2025-02-03 00:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389497', 'tblTempUsageDetail_20' ) start [2025-02-03 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389497', 'tblTempUsageDetail_20' ) end [2025-02-03 00:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:57:23] Production.INFO: ==31170== Releasing lock... [2025-02-03 00:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:57:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 00:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:58:06 [end_date_ymd] => 2025-02-03 00:58:06 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:58:06' and `end` < '2025-02-03 00: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-02-03 00:58:19] Production.INFO: count ==854 [2025-02-03 00:58:19] Production.ERROR: pbx CDR StartTime 2025-02-02 21:58:06 - End Time 2025-02-03 00:58:06 [2025-02-03 00:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389502', 'tblTempUsageDetail_20' ) start [2025-02-03 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389502', 'tblTempUsageDetail_20' ) end [2025-02-03 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389502', 'tblTempVendorCDR_20' ) start [2025-02-03 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389502', 'tblTempVendorCDR_20' ) end [2025-02-03 00:58:19] Production.INFO: ProcessCDR(1,14389502,1,1,2) [2025-02-03 00:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389502', 'tblTempUsageDetail_20' ) start [2025-02-03 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389502', 'tblTempUsageDetail_20' ) end [2025-02-03 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:58:22] Production.INFO: ==31265== Releasing lock... [2025-02-03 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:58:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 21:59:05 [end_date_ymd] => 2025-02-03 00:59:05 [RateCDR] => 1 ) [2025-02-03 00: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-02-02 21:59:05' and `end` < '2025-02-03 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-02-03 00:59:20] Production.INFO: count ==854 [2025-02-03 00:59:20] Production.ERROR: pbx CDR StartTime 2025-02-02 21:59:05 - End Time 2025-02-03 00:59:05 [2025-02-03 00:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 00:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389507', 'tblTempUsageDetail_20' ) start [2025-02-03 00:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389507', 'tblTempUsageDetail_20' ) end [2025-02-03 00:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389507', 'tblTempVendorCDR_20' ) start [2025-02-03 00:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389507', 'tblTempVendorCDR_20' ) end [2025-02-03 00:59:20] Production.INFO: ProcessCDR(1,14389507,1,1,2) [2025-02-03 00:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 00:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 00:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389507', 'tblTempUsageDetail_20' ) start [2025-02-03 00:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389507', 'tblTempUsageDetail_20' ) end [2025-02-03 00:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 00:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 00:59:23] Production.INFO: ==31349== Releasing lock... [2025-02-03 00:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 00:59:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:00:06 [end_date_ymd] => 2025-02-03 01:00:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:00:06' and `end` < '2025-02-03 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-02-03 01:00:19] Production.INFO: count ==861 [2025-02-03 01:00:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:00:06 - End Time 2025-02-03 01:00:06 [2025-02-03 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389513', 'tblTempUsageDetail_20' ) start [2025-02-03 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389513', 'tblTempUsageDetail_20' ) end [2025-02-03 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389513', 'tblTempVendorCDR_20' ) start [2025-02-03 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389513', 'tblTempVendorCDR_20' ) end [2025-02-03 01:00:19] Production.INFO: ProcessCDR(1,14389513,1,1,2) [2025-02-03 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389513', 'tblTempUsageDetail_20' ) start [2025-02-03 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389513', 'tblTempUsageDetail_20' ) end [2025-02-03 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:00:22] Production.INFO: ==31447== Releasing lock... [2025-02-03 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:00:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:01:05 [end_date_ymd] => 2025-02-03 01:01:05 [RateCDR] => 1 ) [2025-02-03 01: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-02-02 22:01:05' and `end` < '2025-02-03 01: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-02-03 01:01:17] Production.INFO: count ==865 [2025-02-03 01:01:18] Production.ERROR: pbx CDR StartTime 2025-02-02 22:01:05 - End Time 2025-02-03 01:01:05 [2025-02-03 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389518', 'tblTempUsageDetail_20' ) start [2025-02-03 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389518', 'tblTempUsageDetail_20' ) end [2025-02-03 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389518', 'tblTempVendorCDR_20' ) start [2025-02-03 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389518', 'tblTempVendorCDR_20' ) end [2025-02-03 01:01:18] Production.INFO: ProcessCDR(1,14389518,1,1,2) [2025-02-03 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389518', 'tblTempUsageDetail_20' ) start [2025-02-03 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389518', 'tblTempUsageDetail_20' ) end [2025-02-03 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:01:21] Production.INFO: ==31561== Releasing lock... [2025-02-03 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:01:21] Production.INFO: 35 MB #Memory Used# [2025-02-03 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:02:05 [end_date_ymd] => 2025-02-03 01:02:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:02:05' and `end` < '2025-02-03 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-02-03 01:02:20] Production.INFO: count ==865 [2025-02-03 01:02:20] Production.ERROR: pbx CDR StartTime 2025-02-02 22:02:05 - End Time 2025-02-03 01:02:05 [2025-02-03 01:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389523', 'tblTempUsageDetail_20' ) start [2025-02-03 01:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389523', 'tblTempUsageDetail_20' ) end [2025-02-03 01:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389523', 'tblTempVendorCDR_20' ) start [2025-02-03 01:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389523', 'tblTempVendorCDR_20' ) end [2025-02-03 01:02:20] Production.INFO: ProcessCDR(1,14389523,1,1,2) [2025-02-03 01:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389523', 'tblTempUsageDetail_20' ) start [2025-02-03 01:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389523', 'tblTempUsageDetail_20' ) end [2025-02-03 01:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:02:24] Production.INFO: ==31647== Releasing lock... [2025-02-03 01:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:02:24] Production.INFO: 35 MB #Memory Used# [2025-02-03 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:03:05 [end_date_ymd] => 2025-02-03 01:03:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:03:05' and `end` < '2025-02-03 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-02-03 01:03:20] Production.INFO: count ==868 [2025-02-03 01:03:20] Production.ERROR: pbx CDR StartTime 2025-02-02 22:03:05 - End Time 2025-02-03 01:03:05 [2025-02-03 01:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389528', 'tblTempUsageDetail_20' ) start [2025-02-03 01:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389528', 'tblTempUsageDetail_20' ) end [2025-02-03 01:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389528', 'tblTempVendorCDR_20' ) start [2025-02-03 01:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389528', 'tblTempVendorCDR_20' ) end [2025-02-03 01:03:20] Production.INFO: ProcessCDR(1,14389528,1,1,2) [2025-02-03 01:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389528', 'tblTempUsageDetail_20' ) start [2025-02-03 01:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389528', 'tblTempUsageDetail_20' ) end [2025-02-03 01:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:03:24] Production.INFO: ==31740== Releasing lock... [2025-02-03 01:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:03:24] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 01:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:04:06 [end_date_ymd] => 2025-02-03 01:04:06 [RateCDR] => 1 ) [2025-02-03 01: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-02-02 22:04:06' and `end` < '2025-02-03 01: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-02-03 01:04:19] Production.INFO: count ==869 [2025-02-03 01:04:20] Production.ERROR: pbx CDR StartTime 2025-02-02 22:04:06 - End Time 2025-02-03 01:04:06 [2025-02-03 01:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389533', 'tblTempUsageDetail_20' ) start [2025-02-03 01:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389533', 'tblTempUsageDetail_20' ) end [2025-02-03 01:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389533', 'tblTempVendorCDR_20' ) start [2025-02-03 01:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389533', 'tblTempVendorCDR_20' ) end [2025-02-03 01:04:20] Production.INFO: ProcessCDR(1,14389533,1,1,2) [2025-02-03 01:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389533', 'tblTempUsageDetail_20' ) start [2025-02-03 01:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389533', 'tblTempUsageDetail_20' ) end [2025-02-03 01:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:04:23] Production.INFO: ==31876== Releasing lock... [2025-02-03 01:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:04:23] Production.INFO: 35 MB #Memory Used# [2025-02-03 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:05:05 [end_date_ymd] => 2025-02-03 01:05:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:05:05' and `end` < '2025-02-03 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-02-03 01:05:18] Production.INFO: count ==869 [2025-02-03 01:05:18] Production.ERROR: pbx CDR StartTime 2025-02-02 22:05:05 - End Time 2025-02-03 01:05:05 [2025-02-03 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389538', 'tblTempUsageDetail_20' ) start [2025-02-03 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389538', 'tblTempUsageDetail_20' ) end [2025-02-03 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389538', 'tblTempVendorCDR_20' ) start [2025-02-03 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389538', 'tblTempVendorCDR_20' ) end [2025-02-03 01:05:18] Production.INFO: ProcessCDR(1,14389538,1,1,2) [2025-02-03 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389538', 'tblTempUsageDetail_20' ) start [2025-02-03 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389538', 'tblTempUsageDetail_20' ) end [2025-02-03 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:05:21] Production.INFO: ==31969== Releasing lock... [2025-02-03 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:05:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:06:05 [end_date_ymd] => 2025-02-03 01:06:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:06:05' and `end` < '2025-02-03 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-02-03 01:06:19] Production.INFO: count ==868 [2025-02-03 01:06:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:06:05 - End Time 2025-02-03 01:06:05 [2025-02-03 01:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389543', 'tblTempUsageDetail_20' ) start [2025-02-03 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389543', 'tblTempUsageDetail_20' ) end [2025-02-03 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389543', 'tblTempVendorCDR_20' ) start [2025-02-03 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389543', 'tblTempVendorCDR_20' ) end [2025-02-03 01:06:19] Production.INFO: ProcessCDR(1,14389543,1,1,2) [2025-02-03 01:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389543', 'tblTempUsageDetail_20' ) start [2025-02-03 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389543', 'tblTempUsageDetail_20' ) end [2025-02-03 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:06:22] Production.INFO: ==32062== Releasing lock... [2025-02-03 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:06:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:07:05 [end_date_ymd] => 2025-02-03 01:07:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:07:05' and `end` < '2025-02-03 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-02-03 01:07:18] Production.INFO: count ==865 [2025-02-03 01:07:18] Production.ERROR: pbx CDR StartTime 2025-02-02 22:07:05 - End Time 2025-02-03 01:07:05 [2025-02-03 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389548', 'tblTempUsageDetail_20' ) start [2025-02-03 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389548', 'tblTempUsageDetail_20' ) end [2025-02-03 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389548', 'tblTempVendorCDR_20' ) start [2025-02-03 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389548', 'tblTempVendorCDR_20' ) end [2025-02-03 01:07:18] Production.INFO: ProcessCDR(1,14389548,1,1,2) [2025-02-03 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389548', 'tblTempUsageDetail_20' ) start [2025-02-03 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389548', 'tblTempUsageDetail_20' ) end [2025-02-03 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:07:21] Production.INFO: ==32149== Releasing lock... [2025-02-03 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:07:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-03 01:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:08:06 [end_date_ymd] => 2025-02-03 01:08:06 [RateCDR] => 1 ) [2025-02-03 01: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-02-02 22:08:06' and `end` < '2025-02-03 01: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-02-03 01:08:20] Production.INFO: count ==865 [2025-02-03 01:08:20] Production.ERROR: pbx CDR StartTime 2025-02-02 22:08:06 - End Time 2025-02-03 01:08:06 [2025-02-03 01:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389553', 'tblTempUsageDetail_20' ) start [2025-02-03 01:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389553', 'tblTempUsageDetail_20' ) end [2025-02-03 01:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389553', 'tblTempVendorCDR_20' ) start [2025-02-03 01:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389553', 'tblTempVendorCDR_20' ) end [2025-02-03 01:08:20] Production.INFO: ProcessCDR(1,14389553,1,1,2) [2025-02-03 01:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389553', 'tblTempUsageDetail_20' ) start [2025-02-03 01:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389553', 'tblTempUsageDetail_20' ) end [2025-02-03 01:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:08:23] Production.INFO: ==32242== Releasing lock... [2025-02-03 01:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:08:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-03 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:09:05 [end_date_ymd] => 2025-02-03 01:09:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:09:05' and `end` < '2025-02-03 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-02-03 01:09:18] Production.INFO: count ==864 [2025-02-03 01:09:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:09:05 - End Time 2025-02-03 01:09:05 [2025-02-03 01:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389558', 'tblTempUsageDetail_20' ) start [2025-02-03 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389558', 'tblTempUsageDetail_20' ) end [2025-02-03 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389558', 'tblTempVendorCDR_20' ) start [2025-02-03 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389558', 'tblTempVendorCDR_20' ) end [2025-02-03 01:09:19] Production.INFO: ProcessCDR(1,14389558,1,1,2) [2025-02-03 01:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389558', 'tblTempUsageDetail_20' ) start [2025-02-03 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389558', 'tblTempUsageDetail_20' ) end [2025-02-03 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:09:22] Production.INFO: ==32325== Releasing lock... [2025-02-03 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:09:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:10:06 [end_date_ymd] => 2025-02-03 01:10:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:10:06' and `end` < '2025-02-03 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-02-03 01:10:19] Production.INFO: count ==867 [2025-02-03 01:10:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:10:06 - End Time 2025-02-03 01:10:06 [2025-02-03 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389564', 'tblTempUsageDetail_20' ) start [2025-02-03 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389564', 'tblTempUsageDetail_20' ) end [2025-02-03 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389564', 'tblTempVendorCDR_20' ) start [2025-02-03 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389564', 'tblTempVendorCDR_20' ) end [2025-02-03 01:10:19] Production.INFO: ProcessCDR(1,14389564,1,1,2) [2025-02-03 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389564', 'tblTempUsageDetail_20' ) start [2025-02-03 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389564', 'tblTempUsageDetail_20' ) end [2025-02-03 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:10:23] Production.INFO: ==32415== Releasing lock... [2025-02-03 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:10:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 01:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:11:06 [end_date_ymd] => 2025-02-03 01:11:06 [RateCDR] => 1 ) [2025-02-03 01: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-02-02 22:11:06' and `end` < '2025-02-03 01: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-02-03 01:11:19] Production.INFO: count ==866 [2025-02-03 01:11:20] Production.ERROR: pbx CDR StartTime 2025-02-02 22:11:06 - End Time 2025-02-03 01:11:06 [2025-02-03 01:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389569', 'tblTempUsageDetail_20' ) start [2025-02-03 01:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389569', 'tblTempUsageDetail_20' ) end [2025-02-03 01:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389569', 'tblTempVendorCDR_20' ) start [2025-02-03 01:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389569', 'tblTempVendorCDR_20' ) end [2025-02-03 01:11:20] Production.INFO: ProcessCDR(1,14389569,1,1,2) [2025-02-03 01:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389569', 'tblTempUsageDetail_20' ) start [2025-02-03 01:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389569', 'tblTempUsageDetail_20' ) end [2025-02-03 01:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:11:23] Production.INFO: ==32509== Releasing lock... [2025-02-03 01:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:11:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:12:05 [end_date_ymd] => 2025-02-03 01:12:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:12:05' and `end` < '2025-02-03 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-02-03 01:12:20] Production.INFO: count ==862 [2025-02-03 01:12:20] Production.ERROR: pbx CDR StartTime 2025-02-02 22:12:05 - End Time 2025-02-03 01:12:05 [2025-02-03 01:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389574', 'tblTempUsageDetail_20' ) start [2025-02-03 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389574', 'tblTempUsageDetail_20' ) end [2025-02-03 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389574', 'tblTempVendorCDR_20' ) start [2025-02-03 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389574', 'tblTempVendorCDR_20' ) end [2025-02-03 01:12:20] Production.INFO: ProcessCDR(1,14389574,1,1,2) [2025-02-03 01:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389574', 'tblTempUsageDetail_20' ) start [2025-02-03 01:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389574', 'tblTempUsageDetail_20' ) end [2025-02-03 01:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:12:23] Production.INFO: ==32599== Releasing lock... [2025-02-03 01:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:12:23] Production.INFO: 35 MB #Memory Used# [2025-02-03 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:13:05 [end_date_ymd] => 2025-02-03 01:13:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:13:05' and `end` < '2025-02-03 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-02-03 01:13:19] Production.INFO: count ==862 [2025-02-03 01:13:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:13:05 - End Time 2025-02-03 01:13:05 [2025-02-03 01:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389579', 'tblTempUsageDetail_20' ) start [2025-02-03 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389579', 'tblTempUsageDetail_20' ) end [2025-02-03 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389579', 'tblTempVendorCDR_20' ) start [2025-02-03 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389579', 'tblTempVendorCDR_20' ) end [2025-02-03 01:13:19] Production.INFO: ProcessCDR(1,14389579,1,1,2) [2025-02-03 01:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389579', 'tblTempUsageDetail_20' ) start [2025-02-03 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389579', 'tblTempUsageDetail_20' ) end [2025-02-03 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:13:22] Production.INFO: ==32687== Releasing lock... [2025-02-03 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:13:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:14:05 [end_date_ymd] => 2025-02-03 01:14:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:14:05' and `end` < '2025-02-03 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-02-03 01:14:18] Production.INFO: count ==862 [2025-02-03 01:14:18] Production.ERROR: pbx CDR StartTime 2025-02-02 22:14:05 - End Time 2025-02-03 01:14:05 [2025-02-03 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389584', 'tblTempUsageDetail_20' ) start [2025-02-03 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389584', 'tblTempUsageDetail_20' ) end [2025-02-03 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389584', 'tblTempVendorCDR_20' ) start [2025-02-03 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389584', 'tblTempVendorCDR_20' ) end [2025-02-03 01:14:18] Production.INFO: ProcessCDR(1,14389584,1,1,2) [2025-02-03 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389584', 'tblTempUsageDetail_20' ) start [2025-02-03 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389584', 'tblTempUsageDetail_20' ) end [2025-02-03 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:14:21] Production.INFO: ==317== Releasing lock... [2025-02-03 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:14:21] Production.INFO: 35 MB #Memory Used# [2025-02-03 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:15:05 [end_date_ymd] => 2025-02-03 01:15:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:15:05' and `end` < '2025-02-03 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-02-03 01:15:19] Production.INFO: count ==861 [2025-02-03 01:15:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:15:05 - End Time 2025-02-03 01:15:05 [2025-02-03 01:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389589', 'tblTempUsageDetail_20' ) start [2025-02-03 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389589', 'tblTempUsageDetail_20' ) end [2025-02-03 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389589', 'tblTempVendorCDR_20' ) start [2025-02-03 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389589', 'tblTempVendorCDR_20' ) end [2025-02-03 01:15:19] Production.INFO: ProcessCDR(1,14389589,1,1,2) [2025-02-03 01:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389589', 'tblTempUsageDetail_20' ) start [2025-02-03 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389589', 'tblTempUsageDetail_20' ) end [2025-02-03 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:15:22] Production.INFO: ==424== Releasing lock... [2025-02-03 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:15:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:16:05 [end_date_ymd] => 2025-02-03 01:16:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:16:05' and `end` < '2025-02-03 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-02-03 01:16:18] Production.INFO: count ==861 [2025-02-03 01:16:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:16:05 - End Time 2025-02-03 01:16:05 [2025-02-03 01:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389594', 'tblTempUsageDetail_20' ) start [2025-02-03 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389594', 'tblTempUsageDetail_20' ) end [2025-02-03 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389594', 'tblTempVendorCDR_20' ) start [2025-02-03 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389594', 'tblTempVendorCDR_20' ) end [2025-02-03 01:16:19] Production.INFO: ProcessCDR(1,14389594,1,1,2) [2025-02-03 01:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389594', 'tblTempUsageDetail_20' ) start [2025-02-03 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389594', 'tblTempUsageDetail_20' ) end [2025-02-03 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:16:22] Production.INFO: ==515== Releasing lock... [2025-02-03 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:16:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:17:05 [end_date_ymd] => 2025-02-03 01:17:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:17:05' and `end` < '2025-02-03 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-02-03 01:17:18] Production.INFO: count ==862 [2025-02-03 01:17:18] Production.ERROR: pbx CDR StartTime 2025-02-02 22:17:05 - End Time 2025-02-03 01:17:05 [2025-02-03 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389599', 'tblTempUsageDetail_20' ) start [2025-02-03 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389599', 'tblTempUsageDetail_20' ) end [2025-02-03 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389599', 'tblTempVendorCDR_20' ) start [2025-02-03 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389599', 'tblTempVendorCDR_20' ) end [2025-02-03 01:17:18] Production.INFO: ProcessCDR(1,14389599,1,1,2) [2025-02-03 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389599', 'tblTempUsageDetail_20' ) start [2025-02-03 01:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389599', 'tblTempUsageDetail_20' ) end [2025-02-03 01:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:17:23] Production.INFO: ==609== Releasing lock... [2025-02-03 01:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:17:23] Production.INFO: 35 MB #Memory Used# [2025-02-03 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:18:05 [end_date_ymd] => 2025-02-03 01:18:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:18:05' and `end` < '2025-02-03 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-02-03 01:18:18] Production.INFO: count ==862 [2025-02-03 01:18:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:18:05 - End Time 2025-02-03 01:18:05 [2025-02-03 01:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389604', 'tblTempUsageDetail_20' ) start [2025-02-03 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389604', 'tblTempUsageDetail_20' ) end [2025-02-03 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389604', 'tblTempVendorCDR_20' ) start [2025-02-03 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389604', 'tblTempVendorCDR_20' ) end [2025-02-03 01:18:19] Production.INFO: ProcessCDR(1,14389604,1,1,2) [2025-02-03 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389604', 'tblTempUsageDetail_20' ) start [2025-02-03 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389604', 'tblTempUsageDetail_20' ) end [2025-02-03 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:18:22] Production.INFO: ==726== Releasing lock... [2025-02-03 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:18:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:19:05 [end_date_ymd] => 2025-02-03 01:19:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:19:05' and `end` < '2025-02-03 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-02-03 01:19:19] Production.INFO: count ==862 [2025-02-03 01:19:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:19:05 - End Time 2025-02-03 01:19:05 [2025-02-03 01:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389609', 'tblTempUsageDetail_20' ) start [2025-02-03 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389609', 'tblTempUsageDetail_20' ) end [2025-02-03 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389609', 'tblTempVendorCDR_20' ) start [2025-02-03 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389609', 'tblTempVendorCDR_20' ) end [2025-02-03 01:19:19] Production.INFO: ProcessCDR(1,14389609,1,1,2) [2025-02-03 01:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389609', 'tblTempUsageDetail_20' ) start [2025-02-03 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389609', 'tblTempUsageDetail_20' ) end [2025-02-03 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:19:22] Production.INFO: ==822== Releasing lock... [2025-02-03 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:19:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:20:06 [end_date_ymd] => 2025-02-03 01:20:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:20:06' and `end` < '2025-02-03 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-02-03 01:20:19] Production.INFO: count ==871 [2025-02-03 01:20:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:20:06 - End Time 2025-02-03 01:20:06 [2025-02-03 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389615', 'tblTempUsageDetail_20' ) start [2025-02-03 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389615', 'tblTempUsageDetail_20' ) end [2025-02-03 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389615', 'tblTempVendorCDR_20' ) start [2025-02-03 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389615', 'tblTempVendorCDR_20' ) end [2025-02-03 01:20:19] Production.INFO: ProcessCDR(1,14389615,1,1,2) [2025-02-03 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389615', 'tblTempUsageDetail_20' ) start [2025-02-03 01:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389615', 'tblTempUsageDetail_20' ) end [2025-02-03 01:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:20:24] Production.INFO: ==953== Releasing lock... [2025-02-03 01:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:20:24] Production.INFO: 35 MB #Memory Used# [2025-02-03 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:21:05 [end_date_ymd] => 2025-02-03 01:21:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:21:05' and `end` < '2025-02-03 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-02-03 01:21:18] Production.INFO: count ==870 [2025-02-03 01:21:18] Production.ERROR: pbx CDR StartTime 2025-02-02 22:21:05 - End Time 2025-02-03 01:21:05 [2025-02-03 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389620', 'tblTempUsageDetail_20' ) start [2025-02-03 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389620', 'tblTempUsageDetail_20' ) end [2025-02-03 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389620', 'tblTempVendorCDR_20' ) start [2025-02-03 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389620', 'tblTempVendorCDR_20' ) end [2025-02-03 01:21:18] Production.INFO: ProcessCDR(1,14389620,1,1,2) [2025-02-03 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389620', 'tblTempUsageDetail_20' ) start [2025-02-03 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389620', 'tblTempUsageDetail_20' ) end [2025-02-03 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:21:21] Production.INFO: ==1044== Releasing lock... [2025-02-03 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:21:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:22:05 [end_date_ymd] => 2025-02-03 01:22:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:22:05' and `end` < '2025-02-03 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-02-03 01:22:19] Production.INFO: count ==867 [2025-02-03 01:22:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:22:05 - End Time 2025-02-03 01:22:05 [2025-02-03 01:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389625', 'tblTempUsageDetail_20' ) start [2025-02-03 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389625', 'tblTempUsageDetail_20' ) end [2025-02-03 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389625', 'tblTempVendorCDR_20' ) start [2025-02-03 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389625', 'tblTempVendorCDR_20' ) end [2025-02-03 01:22:19] Production.INFO: ProcessCDR(1,14389625,1,1,2) [2025-02-03 01:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389625', 'tblTempUsageDetail_20' ) start [2025-02-03 01:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389625', 'tblTempUsageDetail_20' ) end [2025-02-03 01:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:22:24] Production.INFO: ==1127== Releasing lock... [2025-02-03 01:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:22:24] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:23:05 [end_date_ymd] => 2025-02-03 01:23:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:23:05' and `end` < '2025-02-03 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-02-03 01:23:18] Production.INFO: count ==867 [2025-02-03 01:23:18] Production.ERROR: pbx CDR StartTime 2025-02-02 22:23:05 - End Time 2025-02-03 01:23:05 [2025-02-03 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389630', 'tblTempUsageDetail_20' ) start [2025-02-03 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389630', 'tblTempUsageDetail_20' ) end [2025-02-03 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389630', 'tblTempVendorCDR_20' ) start [2025-02-03 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389630', 'tblTempVendorCDR_20' ) end [2025-02-03 01:23:18] Production.INFO: ProcessCDR(1,14389630,1,1,2) [2025-02-03 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389630', 'tblTempUsageDetail_20' ) start [2025-02-03 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389630', 'tblTempUsageDetail_20' ) end [2025-02-03 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:23:21] Production.INFO: ==1219== Releasing lock... [2025-02-03 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:23:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:24:05 [end_date_ymd] => 2025-02-03 01:24:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:24:05' and `end` < '2025-02-03 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-02-03 01:24:18] Production.INFO: count ==867 [2025-02-03 01:24:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:24:05 - End Time 2025-02-03 01:24:05 [2025-02-03 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389635', 'tblTempUsageDetail_20' ) start [2025-02-03 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389635', 'tblTempUsageDetail_20' ) end [2025-02-03 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389635', 'tblTempVendorCDR_20' ) start [2025-02-03 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389635', 'tblTempVendorCDR_20' ) end [2025-02-03 01:24:19] Production.INFO: ProcessCDR(1,14389635,1,1,2) [2025-02-03 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389635', 'tblTempUsageDetail_20' ) start [2025-02-03 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389635', 'tblTempUsageDetail_20' ) end [2025-02-03 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:24:22] Production.INFO: ==1319== Releasing lock... [2025-02-03 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:24:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:25:05 [end_date_ymd] => 2025-02-03 01:25:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:25:05' and `end` < '2025-02-03 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-02-03 01:25:19] Production.INFO: count ==863 [2025-02-03 01:25:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:25:05 - End Time 2025-02-03 01:25:05 [2025-02-03 01:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389640', 'tblTempUsageDetail_20' ) start [2025-02-03 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389640', 'tblTempUsageDetail_20' ) end [2025-02-03 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389640', 'tblTempVendorCDR_20' ) start [2025-02-03 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389640', 'tblTempVendorCDR_20' ) end [2025-02-03 01:25:19] Production.INFO: ProcessCDR(1,14389640,1,1,2) [2025-02-03 01:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389640', 'tblTempUsageDetail_20' ) start [2025-02-03 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389640', 'tblTempUsageDetail_20' ) end [2025-02-03 01:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:25:23] Production.INFO: ==1408== Releasing lock... [2025-02-03 01:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:25:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 01:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:26:06 [end_date_ymd] => 2025-02-03 01:26:06 [RateCDR] => 1 ) [2025-02-03 01: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-02-02 22:26:06' and `end` < '2025-02-03 01: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-02-03 01:26:19] Production.INFO: count ==860 [2025-02-03 01:26:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:26:06 - End Time 2025-02-03 01:26:06 [2025-02-03 01:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389645', 'tblTempUsageDetail_20' ) start [2025-02-03 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389645', 'tblTempUsageDetail_20' ) end [2025-02-03 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389645', 'tblTempVendorCDR_20' ) start [2025-02-03 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389645', 'tblTempVendorCDR_20' ) end [2025-02-03 01:26:19] Production.INFO: ProcessCDR(1,14389645,1,1,2) [2025-02-03 01:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389645', 'tblTempUsageDetail_20' ) start [2025-02-03 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389645', 'tblTempUsageDetail_20' ) end [2025-02-03 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:26:22] Production.INFO: ==1494== Releasing lock... [2025-02-03 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:26:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-03 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:27:05 [end_date_ymd] => 2025-02-03 01:27:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:27:05' and `end` < '2025-02-03 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-02-03 01:27:17] Production.INFO: count ==857 [2025-02-03 01:27:18] Production.ERROR: pbx CDR StartTime 2025-02-02 22:27:05 - End Time 2025-02-03 01:27:05 [2025-02-03 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389650', 'tblTempUsageDetail_20' ) start [2025-02-03 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389650', 'tblTempUsageDetail_20' ) end [2025-02-03 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389650', 'tblTempVendorCDR_20' ) start [2025-02-03 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389650', 'tblTempVendorCDR_20' ) end [2025-02-03 01:27:18] Production.INFO: ProcessCDR(1,14389650,1,1,2) [2025-02-03 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389650', 'tblTempUsageDetail_20' ) start [2025-02-03 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389650', 'tblTempUsageDetail_20' ) end [2025-02-03 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:27:21] Production.INFO: ==1612== Releasing lock... [2025-02-03 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:27:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:28:05 [end_date_ymd] => 2025-02-03 01:28:05 [RateCDR] => 1 ) [2025-02-03 01: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-02-02 22:28:05' and `end` < '2025-02-03 01: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-02-03 01:28:18] Production.INFO: count ==853 [2025-02-03 01:28:18] Production.ERROR: pbx CDR StartTime 2025-02-02 22:28:05 - End Time 2025-02-03 01:28:05 [2025-02-03 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389655', 'tblTempUsageDetail_20' ) start [2025-02-03 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389655', 'tblTempUsageDetail_20' ) end [2025-02-03 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389655', 'tblTempVendorCDR_20' ) start [2025-02-03 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389655', 'tblTempVendorCDR_20' ) end [2025-02-03 01:28:18] Production.INFO: ProcessCDR(1,14389655,1,1,2) [2025-02-03 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389655', 'tblTempUsageDetail_20' ) start [2025-02-03 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389655', 'tblTempUsageDetail_20' ) end [2025-02-03 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:28:21] Production.INFO: ==1694== Releasing lock... [2025-02-03 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:28:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:29:05 [end_date_ymd] => 2025-02-03 01:29:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:29:05' and `end` < '2025-02-03 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-02-03 01:29:18] Production.INFO: count ==853 [2025-02-03 01:29:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:29:05 - End Time 2025-02-03 01:29:05 [2025-02-03 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389660', 'tblTempUsageDetail_20' ) start [2025-02-03 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389660', 'tblTempUsageDetail_20' ) end [2025-02-03 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389660', 'tblTempVendorCDR_20' ) start [2025-02-03 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389660', 'tblTempVendorCDR_20' ) end [2025-02-03 01:29:19] Production.INFO: ProcessCDR(1,14389660,1,1,2) [2025-02-03 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389660', 'tblTempUsageDetail_20' ) start [2025-02-03 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389660', 'tblTempUsageDetail_20' ) end [2025-02-03 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:29:22] Production.INFO: ==1775== Releasing lock... [2025-02-03 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:29:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:30:06 [end_date_ymd] => 2025-02-03 01:30:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:30:06' and `end` < '2025-02-03 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-02-03 01:30:19] Production.INFO: count ==857 [2025-02-03 01:30:20] Production.ERROR: pbx CDR StartTime 2025-02-02 22:30:06 - End Time 2025-02-03 01:30:06 [2025-02-03 01:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389666', 'tblTempUsageDetail_20' ) start [2025-02-03 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389666', 'tblTempUsageDetail_20' ) end [2025-02-03 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389666', 'tblTempVendorCDR_20' ) start [2025-02-03 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389666', 'tblTempVendorCDR_20' ) end [2025-02-03 01:30:20] Production.INFO: ProcessCDR(1,14389666,1,1,2) [2025-02-03 01:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389666', 'tblTempUsageDetail_20' ) start [2025-02-03 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389666', 'tblTempUsageDetail_20' ) end [2025-02-03 01:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:30:23] Production.INFO: ==1863== Releasing lock... [2025-02-03 01:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:30:23] Production.INFO: 35 MB #Memory Used# [2025-02-03 01:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:31:05 [end_date_ymd] => 2025-02-03 01:31:05 [RateCDR] => 1 ) [2025-02-03 01: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-02-02 22:31:05' and `end` < '2025-02-03 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-02-03 01:31:19] Production.INFO: count ==857 [2025-02-03 01:31:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:31:05 - End Time 2025-02-03 01:31:05 [2025-02-03 01:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389671', 'tblTempUsageDetail_20' ) start [2025-02-03 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389671', 'tblTempUsageDetail_20' ) end [2025-02-03 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389671', 'tblTempVendorCDR_20' ) start [2025-02-03 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389671', 'tblTempVendorCDR_20' ) end [2025-02-03 01:31:19] Production.INFO: ProcessCDR(1,14389671,1,1,2) [2025-02-03 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389671', 'tblTempUsageDetail_20' ) start [2025-02-03 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389671', 'tblTempUsageDetail_20' ) end [2025-02-03 01:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:31:23] Production.INFO: ==1948== Releasing lock... [2025-02-03 01:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:31:23] Production.INFO: 35 MB #Memory Used# [2025-02-03 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:32:05 [end_date_ymd] => 2025-02-03 01:32:05 [RateCDR] => 1 ) [2025-02-03 01: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-02-02 22:32:05' and `end` < '2025-02-03 01: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-02-03 01:32:19] Production.INFO: count ==856 [2025-02-03 01:32:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:32:05 - End Time 2025-02-03 01:32:05 [2025-02-03 01:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389676', 'tblTempUsageDetail_20' ) start [2025-02-03 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389676', 'tblTempUsageDetail_20' ) end [2025-02-03 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389676', 'tblTempVendorCDR_20' ) start [2025-02-03 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389676', 'tblTempVendorCDR_20' ) end [2025-02-03 01:32:19] Production.INFO: ProcessCDR(1,14389676,1,1,2) [2025-02-03 01:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389676', 'tblTempUsageDetail_20' ) start [2025-02-03 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389676', 'tblTempUsageDetail_20' ) end [2025-02-03 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:32:22] Production.INFO: ==2031== Releasing lock... [2025-02-03 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:32:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-03 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:33:05 [end_date_ymd] => 2025-02-03 01:33:05 [RateCDR] => 1 ) [2025-02-03 01: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-02-02 22:33:05' and `end` < '2025-02-03 01: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-02-03 01:33:18] Production.INFO: count ==854 [2025-02-03 01:33:18] Production.ERROR: pbx CDR StartTime 2025-02-02 22:33:05 - End Time 2025-02-03 01:33:05 [2025-02-03 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389681', 'tblTempUsageDetail_20' ) start [2025-02-03 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389681', 'tblTempUsageDetail_20' ) end [2025-02-03 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389681', 'tblTempVendorCDR_20' ) start [2025-02-03 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389681', 'tblTempVendorCDR_20' ) end [2025-02-03 01:33:18] Production.INFO: ProcessCDR(1,14389681,1,1,2) [2025-02-03 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389681', 'tblTempUsageDetail_20' ) start [2025-02-03 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389681', 'tblTempUsageDetail_20' ) end [2025-02-03 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:33:22] Production.INFO: ==2112== Releasing lock... [2025-02-03 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:33:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:34:05 [end_date_ymd] => 2025-02-03 01:34:05 [RateCDR] => 1 ) [2025-02-03 01: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-02-02 22:34:05' and `end` < '2025-02-03 01: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-02-03 01:34:18] Production.INFO: count ==851 [2025-02-03 01:34:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:34:05 - End Time 2025-02-03 01:34:05 [2025-02-03 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389686', 'tblTempUsageDetail_20' ) start [2025-02-03 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389686', 'tblTempUsageDetail_20' ) end [2025-02-03 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389686', 'tblTempVendorCDR_20' ) start [2025-02-03 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389686', 'tblTempVendorCDR_20' ) end [2025-02-03 01:34:19] Production.INFO: ProcessCDR(1,14389686,1,1,2) [2025-02-03 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389686', 'tblTempUsageDetail_20' ) start [2025-02-03 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389686', 'tblTempUsageDetail_20' ) end [2025-02-03 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:34:22] Production.INFO: ==2197== Releasing lock... [2025-02-03 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:34:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:35:06 [end_date_ymd] => 2025-02-03 01:35:06 [RateCDR] => 1 ) [2025-02-03 01: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-02-02 22:35:06' and `end` < '2025-02-03 01: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-02-03 01:35:19] Production.INFO: count ==849 [2025-02-03 01:35:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:35:06 - End Time 2025-02-03 01:35:06 [2025-02-03 01:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389691', 'tblTempUsageDetail_20' ) start [2025-02-03 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389691', 'tblTempUsageDetail_20' ) end [2025-02-03 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389691', 'tblTempVendorCDR_20' ) start [2025-02-03 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389691', 'tblTempVendorCDR_20' ) end [2025-02-03 01:35:19] Production.INFO: ProcessCDR(1,14389691,1,1,2) [2025-02-03 01:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389691', 'tblTempUsageDetail_20' ) start [2025-02-03 01:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389691', 'tblTempUsageDetail_20' ) end [2025-02-03 01:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:35:23] Production.INFO: ==2331== Releasing lock... [2025-02-03 01:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:35:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-03 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:36:06 [end_date_ymd] => 2025-02-03 01:36:06 [RateCDR] => 1 ) [2025-02-03 01: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-02-02 22:36:06' and `end` < '2025-02-03 01: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-02-03 01:36:19] Production.INFO: count ==849 [2025-02-03 01:36:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:36:06 - End Time 2025-02-03 01:36:06 [2025-02-03 01:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389696', 'tblTempUsageDetail_20' ) start [2025-02-03 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389696', 'tblTempUsageDetail_20' ) end [2025-02-03 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389696', 'tblTempVendorCDR_20' ) start [2025-02-03 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389696', 'tblTempVendorCDR_20' ) end [2025-02-03 01:36:19] Production.INFO: ProcessCDR(1,14389696,1,1,2) [2025-02-03 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389696', 'tblTempUsageDetail_20' ) start [2025-02-03 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389696', 'tblTempUsageDetail_20' ) end [2025-02-03 01:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:36:23] Production.INFO: ==2417== Releasing lock... [2025-02-03 01:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:36:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-03 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:37:06 [end_date_ymd] => 2025-02-03 01:37:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:37:06' and `end` < '2025-02-03 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-02-03 01:37:19] Production.INFO: count ==848 [2025-02-03 01:37:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:37:06 - End Time 2025-02-03 01:37:06 [2025-02-03 01:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389701', 'tblTempUsageDetail_20' ) start [2025-02-03 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389701', 'tblTempUsageDetail_20' ) end [2025-02-03 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389701', 'tblTempVendorCDR_20' ) start [2025-02-03 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389701', 'tblTempVendorCDR_20' ) end [2025-02-03 01:37:19] Production.INFO: ProcessCDR(1,14389701,1,1,2) [2025-02-03 01:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389701', 'tblTempUsageDetail_20' ) start [2025-02-03 01:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389701', 'tblTempUsageDetail_20' ) end [2025-02-03 01:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:37:23] Production.INFO: ==2503== Releasing lock... [2025-02-03 01:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:37:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-03 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:38:05 [end_date_ymd] => 2025-02-03 01:38:05 [RateCDR] => 1 ) [2025-02-03 01: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-02-02 22:38:05' and `end` < '2025-02-03 01: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-02-03 01:38:18] Production.INFO: count ==845 [2025-02-03 01:38:18] Production.ERROR: pbx CDR StartTime 2025-02-02 22:38:05 - End Time 2025-02-03 01:38:05 [2025-02-03 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389706', 'tblTempUsageDetail_20' ) start [2025-02-03 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389706', 'tblTempUsageDetail_20' ) end [2025-02-03 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389706', 'tblTempVendorCDR_20' ) start [2025-02-03 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389706', 'tblTempVendorCDR_20' ) end [2025-02-03 01:38:18] Production.INFO: ProcessCDR(1,14389706,1,1,2) [2025-02-03 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389706', 'tblTempUsageDetail_20' ) start [2025-02-03 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389706', 'tblTempUsageDetail_20' ) end [2025-02-03 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:38:22] Production.INFO: ==2584== Releasing lock... [2025-02-03 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:38:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-03 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:39:05 [end_date_ymd] => 2025-02-03 01:39:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:39:05' and `end` < '2025-02-03 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-02-03 01:39:18] Production.INFO: count ==845 [2025-02-03 01:39:18] Production.ERROR: pbx CDR StartTime 2025-02-02 22:39:05 - End Time 2025-02-03 01:39:05 [2025-02-03 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389711', 'tblTempUsageDetail_20' ) start [2025-02-03 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389711', 'tblTempUsageDetail_20' ) end [2025-02-03 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389711', 'tblTempVendorCDR_20' ) start [2025-02-03 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389711', 'tblTempVendorCDR_20' ) end [2025-02-03 01:39:18] Production.INFO: ProcessCDR(1,14389711,1,1,2) [2025-02-03 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389711', 'tblTempUsageDetail_20' ) start [2025-02-03 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389711', 'tblTempUsageDetail_20' ) end [2025-02-03 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:39:22] Production.INFO: ==2671== Releasing lock... [2025-02-03 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:39:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-03 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:40:06 [end_date_ymd] => 2025-02-03 01:40:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:40:06' and `end` < '2025-02-03 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-02-03 01:40:19] Production.INFO: count ==845 [2025-02-03 01:40:20] Production.ERROR: pbx CDR StartTime 2025-02-02 22:40:06 - End Time 2025-02-03 01:40:06 [2025-02-03 01:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389717', 'tblTempUsageDetail_20' ) start [2025-02-03 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389717', 'tblTempUsageDetail_20' ) end [2025-02-03 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389717', 'tblTempVendorCDR_20' ) start [2025-02-03 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389717', 'tblTempVendorCDR_20' ) end [2025-02-03 01:40:20] Production.INFO: ProcessCDR(1,14389717,1,1,2) [2025-02-03 01:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389717', 'tblTempUsageDetail_20' ) start [2025-02-03 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389717', 'tblTempUsageDetail_20' ) end [2025-02-03 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:40:23] Production.INFO: ==2761== Releasing lock... [2025-02-03 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:40:23] Production.INFO: 34 MB #Memory Used# [2025-02-03 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:41:06 [end_date_ymd] => 2025-02-03 01:41:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:41:06' and `end` < '2025-02-03 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-02-03 01:41:18] Production.INFO: count ==844 [2025-02-03 01:41:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:41:06 - End Time 2025-02-03 01:41:06 [2025-02-03 01:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389722', 'tblTempUsageDetail_20' ) start [2025-02-03 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389722', 'tblTempUsageDetail_20' ) end [2025-02-03 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389722', 'tblTempVendorCDR_20' ) start [2025-02-03 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389722', 'tblTempVendorCDR_20' ) end [2025-02-03 01:41:19] Production.INFO: ProcessCDR(1,14389722,1,1,2) [2025-02-03 01:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389722', 'tblTempUsageDetail_20' ) start [2025-02-03 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389722', 'tblTempUsageDetail_20' ) end [2025-02-03 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:41:22] Production.INFO: ==2864== Releasing lock... [2025-02-03 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:41:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:42:06 [end_date_ymd] => 2025-02-03 01:42:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:42:06' and `end` < '2025-02-03 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-02-03 01:42:19] Production.INFO: count ==844 [2025-02-03 01:42:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:42:06 - End Time 2025-02-03 01:42:06 [2025-02-03 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389727', 'tblTempUsageDetail_20' ) start [2025-02-03 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389727', 'tblTempUsageDetail_20' ) end [2025-02-03 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389727', 'tblTempVendorCDR_20' ) start [2025-02-03 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389727', 'tblTempVendorCDR_20' ) end [2025-02-03 01:42:19] Production.INFO: ProcessCDR(1,14389727,1,1,2) [2025-02-03 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389727', 'tblTempUsageDetail_20' ) start [2025-02-03 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389727', 'tblTempUsageDetail_20' ) end [2025-02-03 01:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:42:23] Production.INFO: ==2943== Releasing lock... [2025-02-03 01:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:42:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:43:06 [end_date_ymd] => 2025-02-03 01:43:06 [RateCDR] => 1 ) [2025-02-03 01: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-02-02 22:43:06' and `end` < '2025-02-03 01: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-02-03 01:43:19] Production.INFO: count ==844 [2025-02-03 01:43:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:43:06 - End Time 2025-02-03 01:43:06 [2025-02-03 01:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389732', 'tblTempUsageDetail_20' ) start [2025-02-03 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389732', 'tblTempUsageDetail_20' ) end [2025-02-03 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389732', 'tblTempVendorCDR_20' ) start [2025-02-03 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389732', 'tblTempVendorCDR_20' ) end [2025-02-03 01:43:19] Production.INFO: ProcessCDR(1,14389732,1,1,2) [2025-02-03 01:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389732', 'tblTempUsageDetail_20' ) start [2025-02-03 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389732', 'tblTempUsageDetail_20' ) end [2025-02-03 01:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:43:23] Production.INFO: ==3022== Releasing lock... [2025-02-03 01:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:43:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:44:06 [end_date_ymd] => 2025-02-03 01:44:06 [RateCDR] => 1 ) [2025-02-03 01: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-02-02 22:44:06' and `end` < '2025-02-03 01: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-02-03 01:44:19] Production.INFO: count ==840 [2025-02-03 01:44:20] Production.ERROR: pbx CDR StartTime 2025-02-02 22:44:06 - End Time 2025-02-03 01:44:06 [2025-02-03 01:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389737', 'tblTempUsageDetail_20' ) start [2025-02-03 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389737', 'tblTempUsageDetail_20' ) end [2025-02-03 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389737', 'tblTempVendorCDR_20' ) start [2025-02-03 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389737', 'tblTempVendorCDR_20' ) end [2025-02-03 01:44:20] Production.INFO: ProcessCDR(1,14389737,1,1,2) [2025-02-03 01:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389737', 'tblTempUsageDetail_20' ) start [2025-02-03 01:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389737', 'tblTempUsageDetail_20' ) end [2025-02-03 01:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:44:23] Production.INFO: ==3099== Releasing lock... [2025-02-03 01:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:44:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:45:06 [end_date_ymd] => 2025-02-03 01:45:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:45:06' and `end` < '2025-02-03 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-02-03 01:45:19] Production.INFO: count ==838 [2025-02-03 01:45:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:45:06 - End Time 2025-02-03 01:45:06 [2025-02-03 01:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389742', 'tblTempUsageDetail_20' ) start [2025-02-03 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389742', 'tblTempUsageDetail_20' ) end [2025-02-03 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389742', 'tblTempVendorCDR_20' ) start [2025-02-03 01:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389742', 'tblTempVendorCDR_20' ) end [2025-02-03 01:45:19] Production.INFO: ProcessCDR(1,14389742,1,1,2) [2025-02-03 01:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389742', 'tblTempUsageDetail_20' ) start [2025-02-03 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389742', 'tblTempUsageDetail_20' ) end [2025-02-03 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:45:22] Production.INFO: ==3178== Releasing lock... [2025-02-03 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:45:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:46:06 [end_date_ymd] => 2025-02-03 01:46:06 [RateCDR] => 1 ) [2025-02-03 01: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-02-02 22:46:06' and `end` < '2025-02-03 01: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-02-03 01:46:19] Production.INFO: count ==838 [2025-02-03 01:46:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:46:06 - End Time 2025-02-03 01:46:06 [2025-02-03 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389747', 'tblTempUsageDetail_20' ) start [2025-02-03 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389747', 'tblTempUsageDetail_20' ) end [2025-02-03 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389747', 'tblTempVendorCDR_20' ) start [2025-02-03 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389747', 'tblTempVendorCDR_20' ) end [2025-02-03 01:46:19] Production.INFO: ProcessCDR(1,14389747,1,1,2) [2025-02-03 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389747', 'tblTempUsageDetail_20' ) start [2025-02-03 01:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389747', 'tblTempUsageDetail_20' ) end [2025-02-03 01:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:46:23] Production.INFO: ==3256== Releasing lock... [2025-02-03 01:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:46:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:47:06 [end_date_ymd] => 2025-02-03 01:47:06 [RateCDR] => 1 ) [2025-02-03 01: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-02-02 22:47:06' and `end` < '2025-02-03 01:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 01:47:19] Production.INFO: count ==836 [2025-02-03 01:47:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:47:06 - End Time 2025-02-03 01:47:06 [2025-02-03 01:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389752', 'tblTempUsageDetail_20' ) start [2025-02-03 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389752', 'tblTempUsageDetail_20' ) end [2025-02-03 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389752', 'tblTempVendorCDR_20' ) start [2025-02-03 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389752', 'tblTempVendorCDR_20' ) end [2025-02-03 01:47:19] Production.INFO: ProcessCDR(1,14389752,1,1,2) [2025-02-03 01:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389752', 'tblTempUsageDetail_20' ) start [2025-02-03 01:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389752', 'tblTempUsageDetail_20' ) end [2025-02-03 01:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:47:23] Production.INFO: ==3334== Releasing lock... [2025-02-03 01:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:47:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:48:05 [end_date_ymd] => 2025-02-03 01:48:05 [RateCDR] => 1 ) [2025-02-03 01: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-02-02 22:48:05' and `end` < '2025-02-03 01: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-02-03 01:48:19] Production.INFO: count ==835 [2025-02-03 01:48:20] Production.ERROR: pbx CDR StartTime 2025-02-02 22:48:05 - End Time 2025-02-03 01:48:05 [2025-02-03 01:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389757', 'tblTempUsageDetail_20' ) start [2025-02-03 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389757', 'tblTempUsageDetail_20' ) end [2025-02-03 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389757', 'tblTempVendorCDR_20' ) start [2025-02-03 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389757', 'tblTempVendorCDR_20' ) end [2025-02-03 01:48:20] Production.INFO: ProcessCDR(1,14389757,1,1,2) [2025-02-03 01:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389757', 'tblTempUsageDetail_20' ) start [2025-02-03 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389757', 'tblTempUsageDetail_20' ) end [2025-02-03 01:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:48:23] Production.INFO: ==3413== Releasing lock... [2025-02-03 01:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:48:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:49:05 [end_date_ymd] => 2025-02-03 01:49:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:49:05' and `end` < '2025-02-03 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-02-03 01:49:19] Production.INFO: count ==835 [2025-02-03 01:49:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:49:05 - End Time 2025-02-03 01:49:05 [2025-02-03 01:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389762', 'tblTempUsageDetail_20' ) start [2025-02-03 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389762', 'tblTempUsageDetail_20' ) end [2025-02-03 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389762', 'tblTempVendorCDR_20' ) start [2025-02-03 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389762', 'tblTempVendorCDR_20' ) end [2025-02-03 01:49:19] Production.INFO: ProcessCDR(1,14389762,1,1,2) [2025-02-03 01:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389762', 'tblTempUsageDetail_20' ) start [2025-02-03 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389762', 'tblTempUsageDetail_20' ) end [2025-02-03 01:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:49:23] Production.INFO: ==3496== Releasing lock... [2025-02-03 01:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:49:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:50:06 [end_date_ymd] => 2025-02-03 01:50:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:50:06' and `end` < '2025-02-03 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-02-03 01:50:18] Production.INFO: count ==842 [2025-02-03 01:50:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:50:06 - End Time 2025-02-03 01:50:06 [2025-02-03 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389768', 'tblTempUsageDetail_20' ) start [2025-02-03 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389768', 'tblTempUsageDetail_20' ) end [2025-02-03 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389768', 'tblTempVendorCDR_20' ) start [2025-02-03 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389768', 'tblTempVendorCDR_20' ) end [2025-02-03 01:50:19] Production.INFO: ProcessCDR(1,14389768,1,1,2) [2025-02-03 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389768', 'tblTempUsageDetail_20' ) start [2025-02-03 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389768', 'tblTempUsageDetail_20' ) end [2025-02-03 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:50:22] Production.INFO: ==3615== Releasing lock... [2025-02-03 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:50:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 01:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:51:06 [end_date_ymd] => 2025-02-03 01:51:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:51:06' and `end` < '2025-02-03 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-02-03 01:51:19] Production.INFO: count ==848 [2025-02-03 01:51:20] Production.ERROR: pbx CDR StartTime 2025-02-02 22:51:06 - End Time 2025-02-03 01:51:06 [2025-02-03 01:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389773', 'tblTempUsageDetail_20' ) start [2025-02-03 01:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389773', 'tblTempUsageDetail_20' ) end [2025-02-03 01:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389773', 'tblTempVendorCDR_20' ) start [2025-02-03 01:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389773', 'tblTempVendorCDR_20' ) end [2025-02-03 01:51:20] Production.INFO: ProcessCDR(1,14389773,1,1,2) [2025-02-03 01:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389773', 'tblTempUsageDetail_20' ) start [2025-02-03 01:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389773', 'tblTempUsageDetail_20' ) end [2025-02-03 01:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:51:24] Production.INFO: ==3695== Releasing lock... [2025-02-03 01:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:51:24] Production.INFO: 35 MB #Memory Used# [2025-02-03 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:52:05 [end_date_ymd] => 2025-02-03 01:52:05 [RateCDR] => 1 ) [2025-02-03 01: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-02-02 22:52:05' and `end` < '2025-02-03 01: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-02-03 01:52:19] Production.INFO: count ==849 [2025-02-03 01:52:20] Production.ERROR: pbx CDR StartTime 2025-02-02 22:52:05 - End Time 2025-02-03 01:52:05 [2025-02-03 01:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389778', 'tblTempUsageDetail_20' ) start [2025-02-03 01:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389778', 'tblTempUsageDetail_20' ) end [2025-02-03 01:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389778', 'tblTempVendorCDR_20' ) start [2025-02-03 01:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389778', 'tblTempVendorCDR_20' ) end [2025-02-03 01:52:20] Production.INFO: ProcessCDR(1,14389778,1,1,2) [2025-02-03 01:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389778', 'tblTempUsageDetail_20' ) start [2025-02-03 01:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389778', 'tblTempUsageDetail_20' ) end [2025-02-03 01:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:52:25] Production.INFO: ==3773== Releasing lock... [2025-02-03 01:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:52:25] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 01:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:53:06 [end_date_ymd] => 2025-02-03 01:53:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:53:06' and `end` < '2025-02-03 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-02-03 01:53:20] Production.INFO: count ==852 [2025-02-03 01:53:20] Production.ERROR: pbx CDR StartTime 2025-02-02 22:53:06 - End Time 2025-02-03 01:53:06 [2025-02-03 01:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389783', 'tblTempUsageDetail_20' ) start [2025-02-03 01:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389783', 'tblTempUsageDetail_20' ) end [2025-02-03 01:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389783', 'tblTempVendorCDR_20' ) start [2025-02-03 01:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389783', 'tblTempVendorCDR_20' ) end [2025-02-03 01:53:20] Production.INFO: ProcessCDR(1,14389783,1,1,2) [2025-02-03 01:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389783', 'tblTempUsageDetail_20' ) start [2025-02-03 01:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389783', 'tblTempUsageDetail_20' ) end [2025-02-03 01:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:53:24] Production.INFO: ==3855== Releasing lock... [2025-02-03 01:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:53:24] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:54:05 [end_date_ymd] => 2025-02-03 01:54:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:54:05' and `end` < '2025-02-03 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-02-03 01:54:18] Production.INFO: count ==850 [2025-02-03 01:54:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:54:05 - End Time 2025-02-03 01:54:05 [2025-02-03 01:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389788', 'tblTempUsageDetail_20' ) start [2025-02-03 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389788', 'tblTempUsageDetail_20' ) end [2025-02-03 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389788', 'tblTempVendorCDR_20' ) start [2025-02-03 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389788', 'tblTempVendorCDR_20' ) end [2025-02-03 01:54:19] Production.INFO: ProcessCDR(1,14389788,1,1,2) [2025-02-03 01:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389788', 'tblTempUsageDetail_20' ) start [2025-02-03 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389788', 'tblTempUsageDetail_20' ) end [2025-02-03 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:54:22] Production.INFO: ==3934== Releasing lock... [2025-02-03 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:54:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:55:05 [end_date_ymd] => 2025-02-03 01:55:05 [RateCDR] => 1 ) [2025-02-03 01: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-02-02 22:55:05' and `end` < '2025-02-03 01: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-02-03 01:55:19] Production.INFO: count ==849 [2025-02-03 01:55:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:55:05 - End Time 2025-02-03 01:55:05 [2025-02-03 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389793', 'tblTempUsageDetail_20' ) start [2025-02-03 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389793', 'tblTempUsageDetail_20' ) end [2025-02-03 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389793', 'tblTempVendorCDR_20' ) start [2025-02-03 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389793', 'tblTempVendorCDR_20' ) end [2025-02-03 01:55:19] Production.INFO: ProcessCDR(1,14389793,1,1,2) [2025-02-03 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389793', 'tblTempUsageDetail_20' ) start [2025-02-03 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389793', 'tblTempUsageDetail_20' ) end [2025-02-03 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:55:22] Production.INFO: ==4010== Releasing lock... [2025-02-03 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:55:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:56:05 [end_date_ymd] => 2025-02-03 01:56:05 [RateCDR] => 1 ) [2025-02-03 01: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-02-02 22:56:05' and `end` < '2025-02-03 01: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-02-03 01:56:19] Production.INFO: count ==849 [2025-02-03 01:56:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:56:05 - End Time 2025-02-03 01:56:05 [2025-02-03 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389798', 'tblTempUsageDetail_20' ) start [2025-02-03 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389798', 'tblTempUsageDetail_20' ) end [2025-02-03 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389798', 'tblTempVendorCDR_20' ) start [2025-02-03 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389798', 'tblTempVendorCDR_20' ) end [2025-02-03 01:56:19] Production.INFO: ProcessCDR(1,14389798,1,1,2) [2025-02-03 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389798', 'tblTempUsageDetail_20' ) start [2025-02-03 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389798', 'tblTempUsageDetail_20' ) end [2025-02-03 01:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:56:23] Production.INFO: ==4091== Releasing lock... [2025-02-03 01:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:56:23] Production.INFO: 35 MB #Memory Used# [2025-02-03 01:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:57:06 [end_date_ymd] => 2025-02-03 01:57:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:57:06' and `end` < '2025-02-03 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-02-03 01:57:19] Production.INFO: count ==849 [2025-02-03 01:57:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:57:06 - End Time 2025-02-03 01:57:06 [2025-02-03 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389803', 'tblTempUsageDetail_20' ) start [2025-02-03 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389803', 'tblTempUsageDetail_20' ) end [2025-02-03 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389803', 'tblTempVendorCDR_20' ) start [2025-02-03 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389803', 'tblTempVendorCDR_20' ) end [2025-02-03 01:57:19] Production.INFO: ProcessCDR(1,14389803,1,1,2) [2025-02-03 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389803', 'tblTempUsageDetail_20' ) start [2025-02-03 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389803', 'tblTempUsageDetail_20' ) end [2025-02-03 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:57:22] Production.INFO: ==4170== Releasing lock... [2025-02-03 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:57:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:58:05 [end_date_ymd] => 2025-02-03 01:58:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:58:05' and `end` < '2025-02-03 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-02-03 01:58:18] Production.INFO: count ==849 [2025-02-03 01:58:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:58:05 - End Time 2025-02-03 01:58:05 [2025-02-03 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389808', 'tblTempUsageDetail_20' ) start [2025-02-03 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389808', 'tblTempUsageDetail_20' ) end [2025-02-03 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389808', 'tblTempVendorCDR_20' ) start [2025-02-03 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389808', 'tblTempVendorCDR_20' ) end [2025-02-03 01:58:19] Production.INFO: ProcessCDR(1,14389808,1,1,2) [2025-02-03 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389808', 'tblTempUsageDetail_20' ) start [2025-02-03 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389808', 'tblTempUsageDetail_20' ) end [2025-02-03 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:58:22] Production.INFO: ==4247== Releasing lock... [2025-02-03 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:58:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 01:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 22:59:06 [end_date_ymd] => 2025-02-03 01:59:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 22:59:06' and `end` < '2025-02-03 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-02-03 01:59:19] Production.INFO: count ==846 [2025-02-03 01:59:19] Production.ERROR: pbx CDR StartTime 2025-02-02 22:59:06 - End Time 2025-02-03 01:59:06 [2025-02-03 01:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389813', 'tblTempUsageDetail_20' ) start [2025-02-03 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389813', 'tblTempUsageDetail_20' ) end [2025-02-03 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389813', 'tblTempVendorCDR_20' ) start [2025-02-03 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389813', 'tblTempVendorCDR_20' ) end [2025-02-03 01:59:19] Production.INFO: ProcessCDR(1,14389813,1,1,2) [2025-02-03 01:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 01:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389813', 'tblTempUsageDetail_20' ) start [2025-02-03 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389813', 'tblTempUsageDetail_20' ) end [2025-02-03 01:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 01:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 01:59:23] Production.INFO: ==4328== Releasing lock... [2025-02-03 01:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 01:59:23] Production.INFO: 35 MB #Memory Used# [2025-02-03 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:00:06 [end_date_ymd] => 2025-02-03 02:00:06 [RateCDR] => 1 ) [2025-02-03 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 23:00:06' and `end` < '2025-02-03 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 02:00:19] Production.INFO: count ==855 [2025-02-03 02:00:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:00:06 - End Time 2025-02-03 02:00:06 [2025-02-03 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389819', 'tblTempUsageDetail_20' ) start [2025-02-03 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389819', 'tblTempUsageDetail_20' ) end [2025-02-03 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389819', 'tblTempVendorCDR_20' ) start [2025-02-03 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389819', 'tblTempVendorCDR_20' ) end [2025-02-03 02:00:19] Production.INFO: ProcessCDR(1,14389819,1,1,2) [2025-02-03 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389819', 'tblTempUsageDetail_20' ) start [2025-02-03 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389819', 'tblTempUsageDetail_20' ) end [2025-02-03 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:00:23] Production.INFO: ==4417== Releasing lock... [2025-02-03 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:00:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-03 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:01:06 [end_date_ymd] => 2025-02-03 02:01:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:01:06' and `end` < '2025-02-03 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-02-03 02:01:19] Production.INFO: count ==854 [2025-02-03 02:01:20] Production.ERROR: pbx CDR StartTime 2025-02-02 23:01:06 - End Time 2025-02-03 02:01:06 [2025-02-03 02:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389824', 'tblTempUsageDetail_20' ) start [2025-02-03 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389824', 'tblTempUsageDetail_20' ) end [2025-02-03 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389824', 'tblTempVendorCDR_20' ) start [2025-02-03 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389824', 'tblTempVendorCDR_20' ) end [2025-02-03 02:01:20] Production.INFO: ProcessCDR(1,14389824,1,1,2) [2025-02-03 02:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389824', 'tblTempUsageDetail_20' ) start [2025-02-03 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389824', 'tblTempUsageDetail_20' ) end [2025-02-03 02:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:01:23] Production.INFO: ==4610== Releasing lock... [2025-02-03 02:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:01:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:02:05 [end_date_ymd] => 2025-02-03 02:02:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:02:05' and `end` < '2025-02-03 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-02-03 02:02:19] Production.INFO: count ==854 [2025-02-03 02:02:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:02:05 - End Time 2025-02-03 02:02:05 [2025-02-03 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389827', 'tblTempUsageDetail_20' ) start [2025-02-03 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389827', 'tblTempUsageDetail_20' ) end [2025-02-03 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389827', 'tblTempVendorCDR_20' ) start [2025-02-03 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389827', 'tblTempVendorCDR_20' ) end [2025-02-03 02:02:19] Production.INFO: ProcessCDR(1,14389827,1,1,2) [2025-02-03 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389827', 'tblTempUsageDetail_20' ) start [2025-02-03 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389827', 'tblTempUsageDetail_20' ) end [2025-02-03 02:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:02:23] Production.INFO: ==4687== Releasing lock... [2025-02-03 02:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:02:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:03:06 [end_date_ymd] => 2025-02-03 02:03:06 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:03:06' and `end` < '2025-02-03 02: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-02-03 02:03:19] Production.INFO: count ==855 [2025-02-03 02:03:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:03:06 - End Time 2025-02-03 02:03:06 [2025-02-03 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389834', 'tblTempUsageDetail_20' ) start [2025-02-03 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389834', 'tblTempUsageDetail_20' ) end [2025-02-03 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389834', 'tblTempVendorCDR_20' ) start [2025-02-03 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389834', 'tblTempVendorCDR_20' ) end [2025-02-03 02:03:19] Production.INFO: ProcessCDR(1,14389834,1,1,2) [2025-02-03 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389834', 'tblTempUsageDetail_20' ) start [2025-02-03 02:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389834', 'tblTempUsageDetail_20' ) end [2025-02-03 02:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:03:24] Production.INFO: ==4770== Releasing lock... [2025-02-03 02:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:03:24] Production.INFO: 35 MB #Memory Used# [2025-02-03 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:04:05 [end_date_ymd] => 2025-02-03 02:04:05 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:04:05' and `end` < '2025-02-03 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-02-03 02:04:18] Production.INFO: count ==855 [2025-02-03 02:04:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:04:05 - End Time 2025-02-03 02:04:05 [2025-02-03 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389839', 'tblTempUsageDetail_20' ) start [2025-02-03 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389839', 'tblTempUsageDetail_20' ) end [2025-02-03 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389839', 'tblTempVendorCDR_20' ) start [2025-02-03 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389839', 'tblTempVendorCDR_20' ) end [2025-02-03 02:04:19] Production.INFO: ProcessCDR(1,14389839,1,1,2) [2025-02-03 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389839', 'tblTempUsageDetail_20' ) start [2025-02-03 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389839', 'tblTempUsageDetail_20' ) end [2025-02-03 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:04:22] Production.INFO: ==4853== Releasing lock... [2025-02-03 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:04:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:05:05 [end_date_ymd] => 2025-02-03 02:05:05 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:05:05' and `end` < '2025-02-03 02: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-02-03 02:05:18] Production.INFO: count ==855 [2025-02-03 02:05:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:05:05 - End Time 2025-02-03 02:05:05 [2025-02-03 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389844', 'tblTempUsageDetail_20' ) start [2025-02-03 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389844', 'tblTempUsageDetail_20' ) end [2025-02-03 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389844', 'tblTempVendorCDR_20' ) start [2025-02-03 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389844', 'tblTempVendorCDR_20' ) end [2025-02-03 02:05:18] Production.INFO: ProcessCDR(1,14389844,1,1,2) [2025-02-03 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389844', 'tblTempUsageDetail_20' ) start [2025-02-03 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389844', 'tblTempUsageDetail_20' ) end [2025-02-03 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:05:22] Production.INFO: ==4930== Releasing lock... [2025-02-03 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:05:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:06:06 [end_date_ymd] => 2025-02-03 02:06:06 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:06:06' and `end` < '2025-02-03 02: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-02-03 02:06:19] Production.INFO: count ==855 [2025-02-03 02:06:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:06:06 - End Time 2025-02-03 02:06:06 [2025-02-03 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389849', 'tblTempUsageDetail_20' ) start [2025-02-03 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389849', 'tblTempUsageDetail_20' ) end [2025-02-03 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389849', 'tblTempVendorCDR_20' ) start [2025-02-03 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389849', 'tblTempVendorCDR_20' ) end [2025-02-03 02:06:19] Production.INFO: ProcessCDR(1,14389849,1,1,2) [2025-02-03 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389849', 'tblTempUsageDetail_20' ) start [2025-02-03 02:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389849', 'tblTempUsageDetail_20' ) end [2025-02-03 02:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:06:23] Production.INFO: ==5046== Releasing lock... [2025-02-03 02:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:06:23] Production.INFO: 35 MB #Memory Used# [2025-02-03 02:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:07:06 [end_date_ymd] => 2025-02-03 02:07:06 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:07:06' and `end` < '2025-02-03 02: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-02-03 02:07:19] Production.INFO: count ==855 [2025-02-03 02:07:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:07:06 - End Time 2025-02-03 02:07:06 [2025-02-03 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389854', 'tblTempUsageDetail_20' ) start [2025-02-03 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389854', 'tblTempUsageDetail_20' ) end [2025-02-03 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389854', 'tblTempVendorCDR_20' ) start [2025-02-03 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389854', 'tblTempVendorCDR_20' ) end [2025-02-03 02:07:19] Production.INFO: ProcessCDR(1,14389854,1,1,2) [2025-02-03 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389854', 'tblTempUsageDetail_20' ) start [2025-02-03 02:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389854', 'tblTempUsageDetail_20' ) end [2025-02-03 02:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:07:23] Production.INFO: ==5124== Releasing lock... [2025-02-03 02:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:07:23] Production.INFO: 35 MB #Memory Used# [2025-02-03 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:08:05 [end_date_ymd] => 2025-02-03 02:08:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:08:05' and `end` < '2025-02-03 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-02-03 02:08:18] Production.INFO: count ==855 [2025-02-03 02:08:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:08:05 - End Time 2025-02-03 02:08:05 [2025-02-03 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389859', 'tblTempUsageDetail_20' ) start [2025-02-03 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389859', 'tblTempUsageDetail_20' ) end [2025-02-03 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389859', 'tblTempVendorCDR_20' ) start [2025-02-03 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389859', 'tblTempVendorCDR_20' ) end [2025-02-03 02:08:19] Production.INFO: ProcessCDR(1,14389859,1,1,2) [2025-02-03 02:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389859', 'tblTempUsageDetail_20' ) start [2025-02-03 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389859', 'tblTempUsageDetail_20' ) end [2025-02-03 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:08:22] Production.INFO: ==5201== Releasing lock... [2025-02-03 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:08:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 02:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:09:06 [end_date_ymd] => 2025-02-03 02:09:06 [RateCDR] => 1 ) [2025-02-03 02:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-02 23:09:06' and `end` < '2025-02-03 02:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 02:09:20] Production.INFO: count ==859 [2025-02-03 02:09:20] Production.ERROR: pbx CDR StartTime 2025-02-02 23:09:06 - End Time 2025-02-03 02:09:06 [2025-02-03 02:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389864', 'tblTempUsageDetail_20' ) start [2025-02-03 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389864', 'tblTempUsageDetail_20' ) end [2025-02-03 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389864', 'tblTempVendorCDR_20' ) start [2025-02-03 02:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389864', 'tblTempVendorCDR_20' ) end [2025-02-03 02:09:20] Production.INFO: ProcessCDR(1,14389864,1,1,2) [2025-02-03 02:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389864', 'tblTempUsageDetail_20' ) start [2025-02-03 02:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389864', 'tblTempUsageDetail_20' ) end [2025-02-03 02:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:09:24] Production.INFO: ==5277== Releasing lock... [2025-02-03 02:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:09:24] Production.INFO: 35 MB #Memory Used# [2025-02-03 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:10:06 [end_date_ymd] => 2025-02-03 02:10:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:10:06' and `end` < '2025-02-03 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-02-03 02:10:19] Production.INFO: count ==863 [2025-02-03 02:10:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:10:06 - End Time 2025-02-03 02:10:06 [2025-02-03 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389870', 'tblTempUsageDetail_20' ) start [2025-02-03 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389870', 'tblTempUsageDetail_20' ) end [2025-02-03 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389870', 'tblTempVendorCDR_20' ) start [2025-02-03 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389870', 'tblTempVendorCDR_20' ) end [2025-02-03 02:10:19] Production.INFO: ProcessCDR(1,14389870,1,1,2) [2025-02-03 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389870', 'tblTempUsageDetail_20' ) start [2025-02-03 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389870', 'tblTempUsageDetail_20' ) end [2025-02-03 02:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:10:23] Production.INFO: ==5355== Releasing lock... [2025-02-03 02:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:10:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:11:05 [end_date_ymd] => 2025-02-03 02:11:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:11:05' and `end` < '2025-02-03 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-02-03 02:11:19] Production.INFO: count ==856 [2025-02-03 02:11:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:11:05 - End Time 2025-02-03 02:11:05 [2025-02-03 02:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389875', 'tblTempUsageDetail_20' ) start [2025-02-03 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389875', 'tblTempUsageDetail_20' ) end [2025-02-03 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389875', 'tblTempVendorCDR_20' ) start [2025-02-03 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389875', 'tblTempVendorCDR_20' ) end [2025-02-03 02:11:19] Production.INFO: ProcessCDR(1,14389875,1,1,2) [2025-02-03 02:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389875', 'tblTempUsageDetail_20' ) start [2025-02-03 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389875', 'tblTempUsageDetail_20' ) end [2025-02-03 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:11:22] Production.INFO: ==5437== Releasing lock... [2025-02-03 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:11:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:12:05 [end_date_ymd] => 2025-02-03 02:12:05 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:12:05' and `end` < '2025-02-03 02: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-02-03 02:12:19] Production.INFO: count ==823 [2025-02-03 02:12:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:12:05 - End Time 2025-02-03 02:12:05 [2025-02-03 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389880', 'tblTempUsageDetail_20' ) start [2025-02-03 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389880', 'tblTempUsageDetail_20' ) end [2025-02-03 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389880', 'tblTempVendorCDR_20' ) start [2025-02-03 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389880', 'tblTempVendorCDR_20' ) end [2025-02-03 02:12:19] Production.INFO: ProcessCDR(1,14389880,1,1,2) [2025-02-03 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389880', 'tblTempUsageDetail_20' ) start [2025-02-03 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389880', 'tblTempUsageDetail_20' ) end [2025-02-03 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:12:22] Production.INFO: ==5514== Releasing lock... [2025-02-03 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:12:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:13:05 [end_date_ymd] => 2025-02-03 02:13:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:13:05' and `end` < '2025-02-03 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-02-03 02:13:18] Production.INFO: count ==790 [2025-02-03 02:13:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:13:05 - End Time 2025-02-03 02:13:05 [2025-02-03 02:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389885', 'tblTempUsageDetail_20' ) start [2025-02-03 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389885', 'tblTempUsageDetail_20' ) end [2025-02-03 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389885', 'tblTempVendorCDR_20' ) start [2025-02-03 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389885', 'tblTempVendorCDR_20' ) end [2025-02-03 02:13:19] Production.INFO: ProcessCDR(1,14389885,1,1,2) [2025-02-03 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389885', 'tblTempUsageDetail_20' ) start [2025-02-03 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389885', 'tblTempUsageDetail_20' ) end [2025-02-03 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:13:22] Production.INFO: ==5590== Releasing lock... [2025-02-03 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:13:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-03 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:14:05 [end_date_ymd] => 2025-02-03 02:14:05 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:14:05' and `end` < '2025-02-03 02: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-02-03 02:14:19] Production.INFO: count ==773 [2025-02-03 02:14:20] Production.ERROR: pbx CDR StartTime 2025-02-02 23:14:05 - End Time 2025-02-03 02:14:05 [2025-02-03 02:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389890', 'tblTempUsageDetail_20' ) start [2025-02-03 02:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389890', 'tblTempUsageDetail_20' ) end [2025-02-03 02:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389890', 'tblTempVendorCDR_20' ) start [2025-02-03 02:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389890', 'tblTempVendorCDR_20' ) end [2025-02-03 02:14:20] Production.INFO: ProcessCDR(1,14389890,1,1,2) [2025-02-03 02:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389890', 'tblTempUsageDetail_20' ) start [2025-02-03 02:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389890', 'tblTempUsageDetail_20' ) end [2025-02-03 02:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:14:24] Production.INFO: ==5666== Releasing lock... [2025-02-03 02:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:14:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-03 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:15:05 [end_date_ymd] => 2025-02-03 02:15:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:15:05' and `end` < '2025-02-03 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-02-03 02:15:19] Production.INFO: count ==740 [2025-02-03 02:15:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:15:05 - End Time 2025-02-03 02:15:05 [2025-02-03 02:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389895', 'tblTempUsageDetail_20' ) start [2025-02-03 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389895', 'tblTempUsageDetail_20' ) end [2025-02-03 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389895', 'tblTempVendorCDR_20' ) start [2025-02-03 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389895', 'tblTempVendorCDR_20' ) end [2025-02-03 02:15:19] Production.INFO: ProcessCDR(1,14389895,1,1,2) [2025-02-03 02:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389895', 'tblTempUsageDetail_20' ) start [2025-02-03 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389895', 'tblTempUsageDetail_20' ) end [2025-02-03 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:15:22] Production.INFO: ==5756== Releasing lock... [2025-02-03 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:15:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-03 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:16:05 [end_date_ymd] => 2025-02-03 02:16:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:16:05' and `end` < '2025-02-03 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-02-03 02:16:19] Production.INFO: count ==707 [2025-02-03 02:16:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:16:05 - End Time 2025-02-03 02:16:05 [2025-02-03 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389900', 'tblTempUsageDetail_20' ) start [2025-02-03 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389900', 'tblTempUsageDetail_20' ) end [2025-02-03 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389900', 'tblTempVendorCDR_20' ) start [2025-02-03 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389900', 'tblTempVendorCDR_20' ) end [2025-02-03 02:16:19] Production.INFO: ProcessCDR(1,14389900,1,1,2) [2025-02-03 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389900', 'tblTempUsageDetail_20' ) start [2025-02-03 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389900', 'tblTempUsageDetail_20' ) end [2025-02-03 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:16:22] Production.INFO: ==5846== Releasing lock... [2025-02-03 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:16:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-03 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:17:05 [end_date_ymd] => 2025-02-03 02:17:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:17:05' and `end` < '2025-02-03 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-02-03 02:17:18] Production.INFO: count ==676 [2025-02-03 02:17:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:17:05 - End Time 2025-02-03 02:17:05 [2025-02-03 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389905', 'tblTempUsageDetail_20' ) start [2025-02-03 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389905', 'tblTempUsageDetail_20' ) end [2025-02-03 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389905', 'tblTempVendorCDR_20' ) start [2025-02-03 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389905', 'tblTempVendorCDR_20' ) end [2025-02-03 02:17:18] Production.INFO: ProcessCDR(1,14389905,1,1,2) [2025-02-03 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389905', 'tblTempUsageDetail_20' ) start [2025-02-03 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389905', 'tblTempUsageDetail_20' ) end [2025-02-03 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:17:21] Production.INFO: ==5935== Releasing lock... [2025-02-03 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:17:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-03 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:18:05 [end_date_ymd] => 2025-02-03 02:18:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:18:05' and `end` < '2025-02-03 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-02-03 02:18:18] Production.INFO: count ==642 [2025-02-03 02:18:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:18:05 - End Time 2025-02-03 02:18:05 [2025-02-03 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389910', 'tblTempUsageDetail_20' ) start [2025-02-03 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389910', 'tblTempUsageDetail_20' ) end [2025-02-03 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389910', 'tblTempVendorCDR_20' ) start [2025-02-03 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389910', 'tblTempVendorCDR_20' ) end [2025-02-03 02:18:18] Production.INFO: ProcessCDR(1,14389910,1,1,2) [2025-02-03 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389910', 'tblTempUsageDetail_20' ) start [2025-02-03 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389910', 'tblTempUsageDetail_20' ) end [2025-02-03 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:18:21] Production.INFO: ==6020== Releasing lock... [2025-02-03 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:18:21] Production.INFO: 33 MB #Memory Used# [2025-02-03 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:19:05 [end_date_ymd] => 2025-02-03 02:19:05 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:19:05' and `end` < '2025-02-03 02: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-02-03 02:19:17] Production.INFO: count ==608 [2025-02-03 02:19:17] Production.ERROR: pbx CDR StartTime 2025-02-02 23:19:05 - End Time 2025-02-03 02:19:05 [2025-02-03 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389915', 'tblTempUsageDetail_20' ) start [2025-02-03 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389915', 'tblTempUsageDetail_20' ) end [2025-02-03 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389915', 'tblTempVendorCDR_20' ) start [2025-02-03 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389915', 'tblTempVendorCDR_20' ) end [2025-02-03 02:19:17] Production.INFO: ProcessCDR(1,14389915,1,1,2) [2025-02-03 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389915', 'tblTempUsageDetail_20' ) start [2025-02-03 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389915', 'tblTempUsageDetail_20' ) end [2025-02-03 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:19:21] Production.INFO: ==6117== Releasing lock... [2025-02-03 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:19:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-03 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:20:06 [end_date_ymd] => 2025-02-03 02:20:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:20:06' and `end` < '2025-02-03 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-02-03 02:20:19] Production.INFO: count ==590 [2025-02-03 02:20:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:20:06 - End Time 2025-02-03 02:20:06 [2025-02-03 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389921', 'tblTempUsageDetail_20' ) start [2025-02-03 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389921', 'tblTempUsageDetail_20' ) end [2025-02-03 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389921', 'tblTempVendorCDR_20' ) start [2025-02-03 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389921', 'tblTempVendorCDR_20' ) end [2025-02-03 02:20:19] Production.INFO: ProcessCDR(1,14389921,1,1,2) [2025-02-03 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389921', 'tblTempUsageDetail_20' ) start [2025-02-03 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389921', 'tblTempUsageDetail_20' ) end [2025-02-03 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:20:23] Production.INFO: ==6207== Releasing lock... [2025-02-03 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:20:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-03 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:21:05 [end_date_ymd] => 2025-02-03 02:21:05 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:21:05' and `end` < '2025-02-03 02: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-02-03 02:21:18] Production.INFO: count ==590 [2025-02-03 02:21:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:21:05 - End Time 2025-02-03 02:21:05 [2025-02-03 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389926', 'tblTempUsageDetail_20' ) start [2025-02-03 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389926', 'tblTempUsageDetail_20' ) end [2025-02-03 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389926', 'tblTempVendorCDR_20' ) start [2025-02-03 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389926', 'tblTempVendorCDR_20' ) end [2025-02-03 02:21:18] Production.INFO: ProcessCDR(1,14389926,1,1,2) [2025-02-03 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389926', 'tblTempUsageDetail_20' ) start [2025-02-03 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389926', 'tblTempUsageDetail_20' ) end [2025-02-03 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:21:21] Production.INFO: ==6334== Releasing lock... [2025-02-03 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:21:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-03 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:22:06 [end_date_ymd] => 2025-02-03 02:22:06 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:22:06' and `end` < '2025-02-03 02: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-02-03 02:22:19] Production.INFO: count ==590 [2025-02-03 02:22:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:22:06 - End Time 2025-02-03 02:22:06 [2025-02-03 02:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389931', 'tblTempUsageDetail_20' ) start [2025-02-03 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389931', 'tblTempUsageDetail_20' ) end [2025-02-03 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389931', 'tblTempVendorCDR_20' ) start [2025-02-03 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389931', 'tblTempVendorCDR_20' ) end [2025-02-03 02:22:19] Production.INFO: ProcessCDR(1,14389931,1,1,2) [2025-02-03 02:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389931', 'tblTempUsageDetail_20' ) start [2025-02-03 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389931', 'tblTempUsageDetail_20' ) end [2025-02-03 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:22:22] Production.INFO: ==6413== Releasing lock... [2025-02-03 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:22:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-03 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:23:05 [end_date_ymd] => 2025-02-03 02:23:05 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:23:05' and `end` < '2025-02-03 02: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-02-03 02:23:18] Production.INFO: count ==590 [2025-02-03 02:23:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:23:05 - End Time 2025-02-03 02:23:05 [2025-02-03 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389936', 'tblTempUsageDetail_20' ) start [2025-02-03 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389936', 'tblTempUsageDetail_20' ) end [2025-02-03 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389936', 'tblTempVendorCDR_20' ) start [2025-02-03 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389936', 'tblTempVendorCDR_20' ) end [2025-02-03 02:23:18] Production.INFO: ProcessCDR(1,14389936,1,1,2) [2025-02-03 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389936', 'tblTempUsageDetail_20' ) start [2025-02-03 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389936', 'tblTempUsageDetail_20' ) end [2025-02-03 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:23:21] Production.INFO: ==6493== Releasing lock... [2025-02-03 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:23:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-03 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:24:06 [end_date_ymd] => 2025-02-03 02:24:06 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:24:06' and `end` < '2025-02-03 02: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-02-03 02:24:19] Production.INFO: count ==590 [2025-02-03 02:24:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:24:06 - End Time 2025-02-03 02:24:06 [2025-02-03 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389941', 'tblTempUsageDetail_20' ) start [2025-02-03 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389941', 'tblTempUsageDetail_20' ) end [2025-02-03 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389941', 'tblTempVendorCDR_20' ) start [2025-02-03 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389941', 'tblTempVendorCDR_20' ) end [2025-02-03 02:24:19] Production.INFO: ProcessCDR(1,14389941,1,1,2) [2025-02-03 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389941', 'tblTempUsageDetail_20' ) start [2025-02-03 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389941', 'tblTempUsageDetail_20' ) end [2025-02-03 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:24:22] Production.INFO: ==6570== Releasing lock... [2025-02-03 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:24:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-03 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:25:05 [end_date_ymd] => 2025-02-03 02:25:05 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:25:05' and `end` < '2025-02-03 02: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-02-03 02:25:18] Production.INFO: count ==590 [2025-02-03 02:25:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:25:05 - End Time 2025-02-03 02:25:05 [2025-02-03 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389946', 'tblTempUsageDetail_20' ) start [2025-02-03 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389946', 'tblTempUsageDetail_20' ) end [2025-02-03 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389946', 'tblTempVendorCDR_20' ) start [2025-02-03 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389946', 'tblTempVendorCDR_20' ) end [2025-02-03 02:25:18] Production.INFO: ProcessCDR(1,14389946,1,1,2) [2025-02-03 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389946', 'tblTempUsageDetail_20' ) start [2025-02-03 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389946', 'tblTempUsageDetail_20' ) end [2025-02-03 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:25:22] Production.INFO: ==6646== Releasing lock... [2025-02-03 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:25:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-03 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:26:05 [end_date_ymd] => 2025-02-03 02:26:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:26:05' and `end` < '2025-02-03 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-02-03 02:26:18] Production.INFO: count ==590 [2025-02-03 02:26:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:26:05 - End Time 2025-02-03 02:26:05 [2025-02-03 02:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389951', 'tblTempUsageDetail_20' ) start [2025-02-03 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389951', 'tblTempUsageDetail_20' ) end [2025-02-03 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389951', 'tblTempVendorCDR_20' ) start [2025-02-03 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389951', 'tblTempVendorCDR_20' ) end [2025-02-03 02:26:19] Production.INFO: ProcessCDR(1,14389951,1,1,2) [2025-02-03 02:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389951', 'tblTempUsageDetail_20' ) start [2025-02-03 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389951', 'tblTempUsageDetail_20' ) end [2025-02-03 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:26:22] Production.INFO: ==6726== Releasing lock... [2025-02-03 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:26:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-03 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:27:05 [end_date_ymd] => 2025-02-03 02:27:05 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:27:05' and `end` < '2025-02-03 02: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-02-03 02:27:18] Production.INFO: count ==590 [2025-02-03 02:27:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:27:05 - End Time 2025-02-03 02:27:05 [2025-02-03 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389956', 'tblTempUsageDetail_20' ) start [2025-02-03 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389956', 'tblTempUsageDetail_20' ) end [2025-02-03 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389956', 'tblTempVendorCDR_20' ) start [2025-02-03 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389956', 'tblTempVendorCDR_20' ) end [2025-02-03 02:27:18] Production.INFO: ProcessCDR(1,14389956,1,1,2) [2025-02-03 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389956', 'tblTempUsageDetail_20' ) start [2025-02-03 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389956', 'tblTempUsageDetail_20' ) end [2025-02-03 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:27:22] Production.INFO: ==6807== Releasing lock... [2025-02-03 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:27:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-03 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:28:05 [end_date_ymd] => 2025-02-03 02:28:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:28:05' and `end` < '2025-02-03 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-02-03 02:28:18] Production.INFO: count ==590 [2025-02-03 02:28:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:28:05 - End Time 2025-02-03 02:28:05 [2025-02-03 02:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389961', 'tblTempUsageDetail_20' ) start [2025-02-03 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389961', 'tblTempUsageDetail_20' ) end [2025-02-03 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389961', 'tblTempVendorCDR_20' ) start [2025-02-03 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389961', 'tblTempVendorCDR_20' ) end [2025-02-03 02:28:19] Production.INFO: ProcessCDR(1,14389961,1,1,2) [2025-02-03 02:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389961', 'tblTempUsageDetail_20' ) start [2025-02-03 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389961', 'tblTempUsageDetail_20' ) end [2025-02-03 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:28:22] Production.INFO: ==6888== Releasing lock... [2025-02-03 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:28:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-03 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:29:05 [end_date_ymd] => 2025-02-03 02:29:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:29:05' and `end` < '2025-02-03 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-02-03 02:29:18] Production.INFO: count ==590 [2025-02-03 02:29:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:29:05 - End Time 2025-02-03 02:29:05 [2025-02-03 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389966', 'tblTempUsageDetail_20' ) start [2025-02-03 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389966', 'tblTempUsageDetail_20' ) end [2025-02-03 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389966', 'tblTempVendorCDR_20' ) start [2025-02-03 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389966', 'tblTempVendorCDR_20' ) end [2025-02-03 02:29:18] Production.INFO: ProcessCDR(1,14389966,1,1,2) [2025-02-03 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389966', 'tblTempUsageDetail_20' ) start [2025-02-03 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389966', 'tblTempUsageDetail_20' ) end [2025-02-03 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:29:21] Production.INFO: ==6968== Releasing lock... [2025-02-03 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:29:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-03 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:30:06 [end_date_ymd] => 2025-02-03 02:30:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:30:06' and `end` < '2025-02-03 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-02-03 02:30:19] Production.INFO: count ==596 [2025-02-03 02:30:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:30:06 - End Time 2025-02-03 02:30:06 [2025-02-03 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389971', 'tblTempUsageDetail_20' ) start [2025-02-03 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389971', 'tblTempUsageDetail_20' ) end [2025-02-03 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389971', 'tblTempVendorCDR_20' ) start [2025-02-03 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389971', 'tblTempVendorCDR_20' ) end [2025-02-03 02:30:19] Production.INFO: ProcessCDR(1,14389971,1,1,2) [2025-02-03 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389971', 'tblTempUsageDetail_20' ) start [2025-02-03 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389971', 'tblTempUsageDetail_20' ) end [2025-02-03 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:30:22] Production.INFO: ==7052== Releasing lock... [2025-02-03 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:30:22] Production.INFO: 33 MB #Memory Used# [2025-02-03 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:31:05 [end_date_ymd] => 2025-02-03 02:31:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:31:05' and `end` < '2025-02-03 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-02-03 02:31:18] Production.INFO: count ==596 [2025-02-03 02:31:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:31:05 - End Time 2025-02-03 02:31:05 [2025-02-03 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389977', 'tblTempUsageDetail_20' ) start [2025-02-03 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389977', 'tblTempUsageDetail_20' ) end [2025-02-03 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389977', 'tblTempVendorCDR_20' ) start [2025-02-03 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389977', 'tblTempVendorCDR_20' ) end [2025-02-03 02:31:18] Production.INFO: ProcessCDR(1,14389977,1,1,2) [2025-02-03 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389977', 'tblTempUsageDetail_20' ) start [2025-02-03 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389977', 'tblTempUsageDetail_20' ) end [2025-02-03 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:31:21] Production.INFO: ==7132== Releasing lock... [2025-02-03 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:31:21] Production.INFO: 33 MB #Memory Used# [2025-02-03 02:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:32:06 [end_date_ymd] => 2025-02-03 02:32:06 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:32:06' and `end` < '2025-02-03 02: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-02-03 02:32:18] Production.INFO: count ==596 [2025-02-03 02:32:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:32:06 - End Time 2025-02-03 02:32:06 [2025-02-03 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389982', 'tblTempUsageDetail_20' ) start [2025-02-03 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389982', 'tblTempUsageDetail_20' ) end [2025-02-03 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389982', 'tblTempVendorCDR_20' ) start [2025-02-03 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389982', 'tblTempVendorCDR_20' ) end [2025-02-03 02:32:18] Production.INFO: ProcessCDR(1,14389982,1,1,2) [2025-02-03 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389982', 'tblTempUsageDetail_20' ) start [2025-02-03 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389982', 'tblTempUsageDetail_20' ) end [2025-02-03 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:32:22] Production.INFO: ==7212== Releasing lock... [2025-02-03 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:32:22] Production.INFO: 33 MB #Memory Used# [2025-02-03 02:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:33:06 [end_date_ymd] => 2025-02-03 02:33:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:33:06' and `end` < '2025-02-03 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-02-03 02:33:19] Production.INFO: count ==593 [2025-02-03 02:33:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:33:06 - End Time 2025-02-03 02:33:06 [2025-02-03 02:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389987', 'tblTempUsageDetail_20' ) start [2025-02-03 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389987', 'tblTempUsageDetail_20' ) end [2025-02-03 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389987', 'tblTempVendorCDR_20' ) start [2025-02-03 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389987', 'tblTempVendorCDR_20' ) end [2025-02-03 02:33:19] Production.INFO: ProcessCDR(1,14389987,1,1,2) [2025-02-03 02:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389987', 'tblTempUsageDetail_20' ) start [2025-02-03 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389987', 'tblTempUsageDetail_20' ) end [2025-02-03 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:33:22] Production.INFO: ==7294== Releasing lock... [2025-02-03 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:33:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-03 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:34:05 [end_date_ymd] => 2025-02-03 02:34:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:34:05' and `end` < '2025-02-03 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-02-03 02:34:18] Production.INFO: count ==592 [2025-02-03 02:34:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:34:05 - End Time 2025-02-03 02:34:05 [2025-02-03 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389992', 'tblTempUsageDetail_20' ) start [2025-02-03 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389992', 'tblTempUsageDetail_20' ) end [2025-02-03 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389992', 'tblTempVendorCDR_20' ) start [2025-02-03 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389992', 'tblTempVendorCDR_20' ) end [2025-02-03 02:34:18] Production.INFO: ProcessCDR(1,14389992,1,1,2) [2025-02-03 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389992', 'tblTempUsageDetail_20' ) start [2025-02-03 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389992', 'tblTempUsageDetail_20' ) end [2025-02-03 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:34:22] Production.INFO: ==7381== Releasing lock... [2025-02-03 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:34:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-03 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:35:06 [end_date_ymd] => 2025-02-03 02:35:06 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:35:06' and `end` < '2025-02-03 02: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-02-03 02:35:18] Production.INFO: count ==592 [2025-02-03 02:35:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:35:06 - End Time 2025-02-03 02:35:06 [2025-02-03 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389997', 'tblTempUsageDetail_20' ) start [2025-02-03 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14389997', 'tblTempUsageDetail_20' ) end [2025-02-03 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389997', 'tblTempVendorCDR_20' ) start [2025-02-03 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14389997', 'tblTempVendorCDR_20' ) end [2025-02-03 02:35:19] Production.INFO: ProcessCDR(1,14389997,1,1,2) [2025-02-03 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14389997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14389997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14389997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14389997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389997', 'tblTempUsageDetail_20' ) start [2025-02-03 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14389997', 'tblTempUsageDetail_20' ) end [2025-02-03 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:35:22] Production.INFO: ==7464== Releasing lock... [2025-02-03 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:35:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-03 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:36:05 [end_date_ymd] => 2025-02-03 02:36:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:36:05' and `end` < '2025-02-03 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-02-03 02:36:18] Production.INFO: count ==592 [2025-02-03 02:36:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:36:05 - End Time 2025-02-03 02:36:05 [2025-02-03 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390002', 'tblTempUsageDetail_20' ) start [2025-02-03 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390002', 'tblTempUsageDetail_20' ) end [2025-02-03 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390002', 'tblTempVendorCDR_20' ) start [2025-02-03 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390002', 'tblTempVendorCDR_20' ) end [2025-02-03 02:36:18] Production.INFO: ProcessCDR(1,14390002,1,1,2) [2025-02-03 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390002', 'tblTempUsageDetail_20' ) start [2025-02-03 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390002', 'tblTempUsageDetail_20' ) end [2025-02-03 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:36:21] Production.INFO: ==7547== Releasing lock... [2025-02-03 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:36:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-03 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:37:05 [end_date_ymd] => 2025-02-03 02:37:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:37:05' and `end` < '2025-02-03 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-02-03 02:37:18] Production.INFO: count ==592 [2025-02-03 02:37:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:37:05 - End Time 2025-02-03 02:37:05 [2025-02-03 02:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390007', 'tblTempUsageDetail_20' ) start [2025-02-03 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390007', 'tblTempUsageDetail_20' ) end [2025-02-03 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390007', 'tblTempVendorCDR_20' ) start [2025-02-03 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390007', 'tblTempVendorCDR_20' ) end [2025-02-03 02:37:19] Production.INFO: ProcessCDR(1,14390007,1,1,2) [2025-02-03 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390007', 'tblTempUsageDetail_20' ) start [2025-02-03 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390007', 'tblTempUsageDetail_20' ) end [2025-02-03 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:37:22] Production.INFO: ==7667== Releasing lock... [2025-02-03 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:37:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-03 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:38:05 [end_date_ymd] => 2025-02-03 02:38:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:38:05' and `end` < '2025-02-03 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-02-03 02:38:19] Production.INFO: count ==592 [2025-02-03 02:38:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:38:05 - End Time 2025-02-03 02:38:05 [2025-02-03 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390012', 'tblTempUsageDetail_20' ) start [2025-02-03 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390012', 'tblTempUsageDetail_20' ) end [2025-02-03 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390012', 'tblTempVendorCDR_20' ) start [2025-02-03 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390012', 'tblTempVendorCDR_20' ) end [2025-02-03 02:38:19] Production.INFO: ProcessCDR(1,14390012,1,1,2) [2025-02-03 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390012', 'tblTempUsageDetail_20' ) start [2025-02-03 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390012', 'tblTempUsageDetail_20' ) end [2025-02-03 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:38:22] Production.INFO: ==7759== Releasing lock... [2025-02-03 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:38:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-03 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:39:05 [end_date_ymd] => 2025-02-03 02:39:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:39:05' and `end` < '2025-02-03 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-02-03 02:39:18] Production.INFO: count ==592 [2025-02-03 02:39:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:39:05 - End Time 2025-02-03 02:39:05 [2025-02-03 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390017', 'tblTempUsageDetail_20' ) start [2025-02-03 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390017', 'tblTempUsageDetail_20' ) end [2025-02-03 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390017', 'tblTempVendorCDR_20' ) start [2025-02-03 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390017', 'tblTempVendorCDR_20' ) end [2025-02-03 02:39:18] Production.INFO: ProcessCDR(1,14390017,1,1,2) [2025-02-03 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390017', 'tblTempUsageDetail_20' ) start [2025-02-03 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390017', 'tblTempUsageDetail_20' ) end [2025-02-03 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:39:21] Production.INFO: ==7837== Releasing lock... [2025-02-03 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:39:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-03 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:40:05 [end_date_ymd] => 2025-02-03 02:40:05 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:40:05' and `end` < '2025-02-03 02: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-02-03 02:40:18] Production.INFO: count ==598 [2025-02-03 02:40:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:40:05 - End Time 2025-02-03 02:40:05 [2025-02-03 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390023', 'tblTempUsageDetail_20' ) start [2025-02-03 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390023', 'tblTempUsageDetail_20' ) end [2025-02-03 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390023', 'tblTempVendorCDR_20' ) start [2025-02-03 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390023', 'tblTempVendorCDR_20' ) end [2025-02-03 02:40:18] Production.INFO: ProcessCDR(1,14390023,1,1,2) [2025-02-03 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390023', 'tblTempUsageDetail_20' ) start [2025-02-03 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390023', 'tblTempUsageDetail_20' ) end [2025-02-03 02:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:40:21] Production.INFO: ==7926== Releasing lock... [2025-02-03 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:40:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-03 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:41:05 [end_date_ymd] => 2025-02-03 02:41:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:41:05' and `end` < '2025-02-03 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-02-03 02:41:19] Production.INFO: count ==599 [2025-02-03 02:41:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:41:05 - End Time 2025-02-03 02:41:05 [2025-02-03 02:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390028', 'tblTempUsageDetail_20' ) start [2025-02-03 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390028', 'tblTempUsageDetail_20' ) end [2025-02-03 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390028', 'tblTempVendorCDR_20' ) start [2025-02-03 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390028', 'tblTempVendorCDR_20' ) end [2025-02-03 02:41:19] Production.INFO: ProcessCDR(1,14390028,1,1,2) [2025-02-03 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390028', 'tblTempUsageDetail_20' ) start [2025-02-03 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390028', 'tblTempUsageDetail_20' ) end [2025-02-03 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:41:22] Production.INFO: ==8011== Releasing lock... [2025-02-03 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:41:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-03 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:42:05 [end_date_ymd] => 2025-02-03 02:42:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:42:05' and `end` < '2025-02-03 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-02-03 02:42:19] Production.INFO: count ==599 [2025-02-03 02:42:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:42:05 - End Time 2025-02-03 02:42:05 [2025-02-03 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390033', 'tblTempUsageDetail_20' ) start [2025-02-03 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390033', 'tblTempUsageDetail_20' ) end [2025-02-03 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390033', 'tblTempVendorCDR_20' ) start [2025-02-03 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390033', 'tblTempVendorCDR_20' ) end [2025-02-03 02:42:19] Production.INFO: ProcessCDR(1,14390033,1,1,2) [2025-02-03 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390033', 'tblTempUsageDetail_20' ) start [2025-02-03 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390033', 'tblTempUsageDetail_20' ) end [2025-02-03 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:42:22] Production.INFO: ==8091== Releasing lock... [2025-02-03 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:42:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-03 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:43:05 [end_date_ymd] => 2025-02-03 02:43:05 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:43:05' and `end` < '2025-02-03 02: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-02-03 02:43:18] Production.INFO: count ==598 [2025-02-03 02:43:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:43:05 - End Time 2025-02-03 02:43:05 [2025-02-03 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390038', 'tblTempUsageDetail_20' ) start [2025-02-03 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390038', 'tblTempUsageDetail_20' ) end [2025-02-03 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390038', 'tblTempVendorCDR_20' ) start [2025-02-03 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390038', 'tblTempVendorCDR_20' ) end [2025-02-03 02:43:18] Production.INFO: ProcessCDR(1,14390038,1,1,2) [2025-02-03 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390038', 'tblTempUsageDetail_20' ) start [2025-02-03 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390038', 'tblTempUsageDetail_20' ) end [2025-02-03 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:43:21] Production.INFO: ==8175== Releasing lock... [2025-02-03 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:43:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-03 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:44:05 [end_date_ymd] => 2025-02-03 02:44:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:44:05' and `end` < '2025-02-03 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-02-03 02:44:19] Production.INFO: count ==597 [2025-02-03 02:44:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:44:05 - End Time 2025-02-03 02:44:05 [2025-02-03 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390043', 'tblTempUsageDetail_20' ) start [2025-02-03 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390043', 'tblTempUsageDetail_20' ) end [2025-02-03 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390043', 'tblTempVendorCDR_20' ) start [2025-02-03 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390043', 'tblTempVendorCDR_20' ) end [2025-02-03 02:44:19] Production.INFO: ProcessCDR(1,14390043,1,1,2) [2025-02-03 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390043', 'tblTempUsageDetail_20' ) start [2025-02-03 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390043', 'tblTempUsageDetail_20' ) end [2025-02-03 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:44:22] Production.INFO: ==8259== Releasing lock... [2025-02-03 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:44:22] Production.INFO: 33 MB #Memory Used# [2025-02-03 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:45:05 [end_date_ymd] => 2025-02-03 02:45:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:45:05' and `end` < '2025-02-03 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-02-03 02:45:18] Production.INFO: count ==572 [2025-02-03 02:45:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:45:05 - End Time 2025-02-03 02:45:05 [2025-02-03 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390048', 'tblTempUsageDetail_20' ) start [2025-02-03 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390048', 'tblTempUsageDetail_20' ) end [2025-02-03 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390048', 'tblTempVendorCDR_20' ) start [2025-02-03 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390048', 'tblTempVendorCDR_20' ) end [2025-02-03 02:45:18] Production.INFO: ProcessCDR(1,14390048,1,1,2) [2025-02-03 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390048', 'tblTempUsageDetail_20' ) start [2025-02-03 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390048', 'tblTempUsageDetail_20' ) end [2025-02-03 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:45:22] Production.INFO: ==8343== Releasing lock... [2025-02-03 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:45:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-03 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:46:05 [end_date_ymd] => 2025-02-03 02:46:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:46:05' and `end` < '2025-02-03 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-02-03 02:46:19] Production.INFO: count ==548 [2025-02-03 02:46:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:46:05 - End Time 2025-02-03 02:46:05 [2025-02-03 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390053', 'tblTempUsageDetail_20' ) start [2025-02-03 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390053', 'tblTempUsageDetail_20' ) end [2025-02-03 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390053', 'tblTempVendorCDR_20' ) start [2025-02-03 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390053', 'tblTempVendorCDR_20' ) end [2025-02-03 02:46:19] Production.INFO: ProcessCDR(1,14390053,1,1,2) [2025-02-03 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390053', 'tblTempUsageDetail_20' ) start [2025-02-03 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390053', 'tblTempUsageDetail_20' ) end [2025-02-03 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:46:22] Production.INFO: ==8427== Releasing lock... [2025-02-03 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:46:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-03 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:47:05 [end_date_ymd] => 2025-02-03 02:47:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:47:05' and `end` < '2025-02-03 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-02-03 02:47:18] Production.INFO: count ==524 [2025-02-03 02:47:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:47:05 - End Time 2025-02-03 02:47:05 [2025-02-03 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390058', 'tblTempUsageDetail_20' ) start [2025-02-03 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390058', 'tblTempUsageDetail_20' ) end [2025-02-03 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390058', 'tblTempVendorCDR_20' ) start [2025-02-03 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390058', 'tblTempVendorCDR_20' ) end [2025-02-03 02:47:18] Production.INFO: ProcessCDR(1,14390058,1,1,2) [2025-02-03 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390058', 'tblTempUsageDetail_20' ) start [2025-02-03 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390058', 'tblTempUsageDetail_20' ) end [2025-02-03 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:47:21] Production.INFO: ==8518== Releasing lock... [2025-02-03 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:47:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-03 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:48:05 [end_date_ymd] => 2025-02-03 02:48:05 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:48:05' and `end` < '2025-02-03 02: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-02-03 02:48:18] Production.INFO: count ==492 [2025-02-03 02:48:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:48:05 - End Time 2025-02-03 02:48:05 [2025-02-03 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390063', 'tblTempUsageDetail_20' ) start [2025-02-03 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390063', 'tblTempUsageDetail_20' ) end [2025-02-03 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390063', 'tblTempVendorCDR_20' ) start [2025-02-03 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390063', 'tblTempVendorCDR_20' ) end [2025-02-03 02:48:18] Production.INFO: ProcessCDR(1,14390063,1,1,2) [2025-02-03 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390063', 'tblTempUsageDetail_20' ) start [2025-02-03 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390063', 'tblTempUsageDetail_20' ) end [2025-02-03 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:48:22] Production.INFO: ==8599== Releasing lock... [2025-02-03 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:48:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-03 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:49:05 [end_date_ymd] => 2025-02-03 02:49:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:49:05' and `end` < '2025-02-03 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-02-03 02:49:18] Production.INFO: count ==459 [2025-02-03 02:49:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:49:05 - End Time 2025-02-03 02:49:05 [2025-02-03 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390068', 'tblTempUsageDetail_20' ) start [2025-02-03 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390068', 'tblTempUsageDetail_20' ) end [2025-02-03 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390068', 'tblTempVendorCDR_20' ) start [2025-02-03 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390068', 'tblTempVendorCDR_20' ) end [2025-02-03 02:49:18] Production.INFO: ProcessCDR(1,14390068,1,1,2) [2025-02-03 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390068', 'tblTempUsageDetail_20' ) start [2025-02-03 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390068', 'tblTempUsageDetail_20' ) end [2025-02-03 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:49:21] Production.INFO: ==8773== Releasing lock... [2025-02-03 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:49:21] Production.INFO: 32 MB #Memory Used# [2025-02-03 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:50:06 [end_date_ymd] => 2025-02-03 02:50:06 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:50:06' and `end` < '2025-02-03 02: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-02-03 02:50:19] Production.INFO: count ==444 [2025-02-03 02:50:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:50:06 - End Time 2025-02-03 02:50:06 [2025-02-03 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390074', 'tblTempUsageDetail_20' ) start [2025-02-03 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390074', 'tblTempUsageDetail_20' ) end [2025-02-03 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390074', 'tblTempVendorCDR_20' ) start [2025-02-03 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390074', 'tblTempVendorCDR_20' ) end [2025-02-03 02:50:19] Production.INFO: ProcessCDR(1,14390074,1,1,2) [2025-02-03 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390074', 'tblTempUsageDetail_20' ) start [2025-02-03 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390074', 'tblTempUsageDetail_20' ) end [2025-02-03 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:50:22] Production.INFO: ==9150== Releasing lock... [2025-02-03 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:50:22] Production.INFO: 32 MB #Memory Used# [2025-02-03 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:51:05 [end_date_ymd] => 2025-02-03 02:51:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:51:05' and `end` < '2025-02-03 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-02-03 02:51:18] Production.INFO: count ==415 [2025-02-03 02:51:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:51:05 - End Time 2025-02-03 02:51:05 [2025-02-03 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390079', 'tblTempUsageDetail_20' ) start [2025-02-03 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390079', 'tblTempUsageDetail_20' ) end [2025-02-03 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390079', 'tblTempVendorCDR_20' ) start [2025-02-03 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390079', 'tblTempVendorCDR_20' ) end [2025-02-03 02:51:18] Production.INFO: ProcessCDR(1,14390079,1,1,2) [2025-02-03 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390079', 'tblTempUsageDetail_20' ) start [2025-02-03 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390079', 'tblTempUsageDetail_20' ) end [2025-02-03 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:51:21] Production.INFO: ==9311== Releasing lock... [2025-02-03 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:51:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-03 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:52:05 [end_date_ymd] => 2025-02-03 02:52:05 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:52:05' and `end` < '2025-02-03 02: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-02-03 02:52:18] Production.INFO: count ==410 [2025-02-03 02:52:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:52:05 - End Time 2025-02-03 02:52:05 [2025-02-03 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390084', 'tblTempUsageDetail_20' ) start [2025-02-03 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390084', 'tblTempUsageDetail_20' ) end [2025-02-03 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390084', 'tblTempVendorCDR_20' ) start [2025-02-03 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390084', 'tblTempVendorCDR_20' ) end [2025-02-03 02:52:19] Production.INFO: ProcessCDR(1,14390084,1,1,2) [2025-02-03 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390084', 'tblTempUsageDetail_20' ) start [2025-02-03 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390084', 'tblTempUsageDetail_20' ) end [2025-02-03 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:52:22] Production.INFO: ==9436== Releasing lock... [2025-02-03 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:52:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-03 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:53:05 [end_date_ymd] => 2025-02-03 02:53:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:53:05' and `end` < '2025-02-03 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-02-03 02:53:19] Production.INFO: count ==410 [2025-02-03 02:53:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:53:05 - End Time 2025-02-03 02:53:05 [2025-02-03 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390089', 'tblTempUsageDetail_20' ) start [2025-02-03 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390089', 'tblTempUsageDetail_20' ) end [2025-02-03 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390089', 'tblTempVendorCDR_20' ) start [2025-02-03 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390089', 'tblTempVendorCDR_20' ) end [2025-02-03 02:53:19] Production.INFO: ProcessCDR(1,14390089,1,1,2) [2025-02-03 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390089', 'tblTempUsageDetail_20' ) start [2025-02-03 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390089', 'tblTempUsageDetail_20' ) end [2025-02-03 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:53:22] Production.INFO: ==9518== Releasing lock... [2025-02-03 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:53:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-03 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:54:05 [end_date_ymd] => 2025-02-03 02:54:05 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:54:05' and `end` < '2025-02-03 02: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-02-03 02:54:18] Production.INFO: count ==410 [2025-02-03 02:54:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:54:05 - End Time 2025-02-03 02:54:05 [2025-02-03 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390094', 'tblTempUsageDetail_20' ) start [2025-02-03 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390094', 'tblTempUsageDetail_20' ) end [2025-02-03 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390094', 'tblTempVendorCDR_20' ) start [2025-02-03 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390094', 'tblTempVendorCDR_20' ) end [2025-02-03 02:54:18] Production.INFO: ProcessCDR(1,14390094,1,1,2) [2025-02-03 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390094', 'tblTempUsageDetail_20' ) start [2025-02-03 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390094', 'tblTempUsageDetail_20' ) end [2025-02-03 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:54:21] Production.INFO: ==9602== Releasing lock... [2025-02-03 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:54:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-03 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:55:06 [end_date_ymd] => 2025-02-03 02:55:06 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:55:06' and `end` < '2025-02-03 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-02-03 02:55:20] Production.INFO: count ==410 [2025-02-03 02:55:20] Production.ERROR: pbx CDR StartTime 2025-02-02 23:55:06 - End Time 2025-02-03 02:55:06 [2025-02-03 02:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390099', 'tblTempUsageDetail_20' ) start [2025-02-03 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390099', 'tblTempUsageDetail_20' ) end [2025-02-03 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390099', 'tblTempVendorCDR_20' ) start [2025-02-03 02:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390099', 'tblTempVendorCDR_20' ) end [2025-02-03 02:55:20] Production.INFO: ProcessCDR(1,14390099,1,1,2) [2025-02-03 02:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390099', 'tblTempUsageDetail_20' ) start [2025-02-03 02:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390099', 'tblTempUsageDetail_20' ) end [2025-02-03 02:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:55:23] Production.INFO: ==9685== Releasing lock... [2025-02-03 02:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:55:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-03 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:56:05 [end_date_ymd] => 2025-02-03 02:56:05 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:56:05' and `end` < '2025-02-03 02: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-02-03 02:56:18] Production.INFO: count ==391 [2025-02-03 02:56:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:56:05 - End Time 2025-02-03 02:56:05 [2025-02-03 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390104', 'tblTempUsageDetail_20' ) start [2025-02-03 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390104', 'tblTempUsageDetail_20' ) end [2025-02-03 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390104', 'tblTempVendorCDR_20' ) start [2025-02-03 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390104', 'tblTempVendorCDR_20' ) end [2025-02-03 02:56:18] Production.INFO: ProcessCDR(1,14390104,1,1,2) [2025-02-03 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390104', 'tblTempUsageDetail_20' ) start [2025-02-03 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390104', 'tblTempUsageDetail_20' ) end [2025-02-03 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:56:21] Production.INFO: ==9772== Releasing lock... [2025-02-03 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:56:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-03 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:57:05 [end_date_ymd] => 2025-02-03 02:57:05 [RateCDR] => 1 ) [2025-02-03 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-02-02 23:57:05' and `end` < '2025-02-03 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-02-03 02:57:19] Production.INFO: count ==381 [2025-02-03 02:57:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:57:05 - End Time 2025-02-03 02:57:05 [2025-02-03 02:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390109', 'tblTempUsageDetail_20' ) start [2025-02-03 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390109', 'tblTempUsageDetail_20' ) end [2025-02-03 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390109', 'tblTempVendorCDR_20' ) start [2025-02-03 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390109', 'tblTempVendorCDR_20' ) end [2025-02-03 02:57:19] Production.INFO: ProcessCDR(1,14390109,1,1,2) [2025-02-03 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390109', 'tblTempUsageDetail_20' ) start [2025-02-03 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390109', 'tblTempUsageDetail_20' ) end [2025-02-03 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:57:22] Production.INFO: ==9854== Releasing lock... [2025-02-03 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:57:22] Production.INFO: 31 MB #Memory Used# [2025-02-03 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:58:05 [end_date_ymd] => 2025-02-03 02:58:05 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:58:05' and `end` < '2025-02-03 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-02-03 02:58:18] Production.INFO: count ==381 [2025-02-03 02:58:18] Production.ERROR: pbx CDR StartTime 2025-02-02 23:58:05 - End Time 2025-02-03 02:58:05 [2025-02-03 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390114', 'tblTempUsageDetail_20' ) start [2025-02-03 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390114', 'tblTempUsageDetail_20' ) end [2025-02-03 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390114', 'tblTempVendorCDR_20' ) start [2025-02-03 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390114', 'tblTempVendorCDR_20' ) end [2025-02-03 02:58:18] Production.INFO: ProcessCDR(1,14390114,1,1,2) [2025-02-03 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390114', 'tblTempUsageDetail_20' ) start [2025-02-03 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390114', 'tblTempUsageDetail_20' ) end [2025-02-03 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:58:21] Production.INFO: ==9943== Releasing lock... [2025-02-03 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:58:21] Production.INFO: 31 MB #Memory Used# [2025-02-03 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-02 23:59:06 [end_date_ymd] => 2025-02-03 02:59:06 [RateCDR] => 1 ) [2025-02-03 02: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-02-02 23:59:06' and `end` < '2025-02-03 02: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-02-03 02:59:19] Production.INFO: count ==381 [2025-02-03 02:59:19] Production.ERROR: pbx CDR StartTime 2025-02-02 23:59:06 - End Time 2025-02-03 02:59:06 [2025-02-03 02:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390119', 'tblTempUsageDetail_20' ) start [2025-02-03 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390119', 'tblTempUsageDetail_20' ) end [2025-02-03 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390119', 'tblTempVendorCDR_20' ) start [2025-02-03 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390119', 'tblTempVendorCDR_20' ) end [2025-02-03 02:59:19] Production.INFO: ProcessCDR(1,14390119,1,1,2) [2025-02-03 02:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390119', 'tblTempUsageDetail_20' ) start [2025-02-03 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390119', 'tblTempUsageDetail_20' ) end [2025-02-03 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 02:59:22] Production.INFO: ==10028== Releasing lock... [2025-02-03 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 02:59:22] Production.INFO: 31 MB #Memory Used# [2025-02-03 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:00:05 [end_date_ymd] => 2025-02-03 03:00:05 [RateCDR] => 1 ) [2025-02-03 03:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 00:00:05' and `end` < '2025-02-03 03:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 03:00:18] Production.INFO: count ==387 [2025-02-03 03:00:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:00:05 - End Time 2025-02-03 03:00:05 [2025-02-03 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390124', 'tblTempUsageDetail_20' ) start [2025-02-03 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390124', 'tblTempUsageDetail_20' ) end [2025-02-03 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390124', 'tblTempVendorCDR_20' ) start [2025-02-03 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390124', 'tblTempVendorCDR_20' ) end [2025-02-03 03:00:18] Production.INFO: ProcessCDR(1,14390124,1,1,2) [2025-02-03 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390124', 'tblTempUsageDetail_20' ) start [2025-02-03 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390124', 'tblTempUsageDetail_20' ) end [2025-02-03 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:00:22] Production.INFO: ==10112== Releasing lock... [2025-02-03 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:00:22] Production.INFO: 31 MB #Memory Used# [2025-02-03 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:01:05 [end_date_ymd] => 2025-02-03 03:01:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:01:05' and `end` < '2025-02-03 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-02-03 03:01:18] Production.INFO: count ==378 [2025-02-03 03:01:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:01:05 - End Time 2025-02-03 03:01:05 [2025-02-03 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390130', 'tblTempUsageDetail_20' ) start [2025-02-03 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390130', 'tblTempUsageDetail_20' ) end [2025-02-03 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390130', 'tblTempVendorCDR_20' ) start [2025-02-03 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390130', 'tblTempVendorCDR_20' ) end [2025-02-03 03:01:18] Production.INFO: ProcessCDR(1,14390130,1,1,2) [2025-02-03 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390130', 'tblTempUsageDetail_20' ) start [2025-02-03 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390130', 'tblTempUsageDetail_20' ) end [2025-02-03 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:01:21] Production.INFO: ==10206== Releasing lock... [2025-02-03 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:01:21] Production.INFO: 31 MB #Memory Used# [2025-02-03 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:02:05 [end_date_ymd] => 2025-02-03 03:02:05 [RateCDR] => 1 ) [2025-02-03 03: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-02-03 00:02:05' and `end` < '2025-02-03 03: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-02-03 03:02:18] Production.INFO: count ==351 [2025-02-03 03:02:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:02:05 - End Time 2025-02-03 03:02:05 [2025-02-03 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390135', 'tblTempUsageDetail_20' ) start [2025-02-03 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390135', 'tblTempUsageDetail_20' ) end [2025-02-03 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390135', 'tblTempVendorCDR_20' ) start [2025-02-03 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390135', 'tblTempVendorCDR_20' ) end [2025-02-03 03:02:18] Production.INFO: ProcessCDR(1,14390135,1,1,2) [2025-02-03 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390135', 'tblTempUsageDetail_20' ) start [2025-02-03 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390135', 'tblTempUsageDetail_20' ) end [2025-02-03 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:02:21] Production.INFO: ==10365== Releasing lock... [2025-02-03 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:02:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-03 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:03:05 [end_date_ymd] => 2025-02-03 03:03:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:03:05' and `end` < '2025-02-03 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-02-03 03:03:18] Production.INFO: count ==345 [2025-02-03 03:03:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:03:05 - End Time 2025-02-03 03:03:05 [2025-02-03 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390140', 'tblTempUsageDetail_20' ) start [2025-02-03 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390140', 'tblTempUsageDetail_20' ) end [2025-02-03 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390140', 'tblTempVendorCDR_20' ) start [2025-02-03 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390140', 'tblTempVendorCDR_20' ) end [2025-02-03 03:03:18] Production.INFO: ProcessCDR(1,14390140,1,1,2) [2025-02-03 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390140', 'tblTempUsageDetail_20' ) start [2025-02-03 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390140', 'tblTempUsageDetail_20' ) end [2025-02-03 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:03:21] Production.INFO: ==10443== Releasing lock... [2025-02-03 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:03:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-03 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:04:05 [end_date_ymd] => 2025-02-03 03:04:05 [RateCDR] => 1 ) [2025-02-03 03: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-02-03 00:04:05' and `end` < '2025-02-03 03: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-02-03 03:04:18] Production.INFO: count ==345 [2025-02-03 03:04:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:04:05 - End Time 2025-02-03 03:04:05 [2025-02-03 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390145', 'tblTempUsageDetail_20' ) start [2025-02-03 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390145', 'tblTempUsageDetail_20' ) end [2025-02-03 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390145', 'tblTempVendorCDR_20' ) start [2025-02-03 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390145', 'tblTempVendorCDR_20' ) end [2025-02-03 03:04:18] Production.INFO: ProcessCDR(1,14390145,1,1,2) [2025-02-03 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390145', 'tblTempUsageDetail_20' ) start [2025-02-03 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390145', 'tblTempUsageDetail_20' ) end [2025-02-03 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:04:21] Production.INFO: ==10532== Releasing lock... [2025-02-03 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:04:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-03 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:05:05 [end_date_ymd] => 2025-02-03 03:05:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:05:05' and `end` < '2025-02-03 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-02-03 03:05:18] Production.INFO: count ==345 [2025-02-03 03:05:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:05:05 - End Time 2025-02-03 03:05:05 [2025-02-03 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390150', 'tblTempUsageDetail_20' ) start [2025-02-03 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390150', 'tblTempUsageDetail_20' ) end [2025-02-03 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390150', 'tblTempVendorCDR_20' ) start [2025-02-03 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390150', 'tblTempVendorCDR_20' ) end [2025-02-03 03:05:18] Production.INFO: ProcessCDR(1,14390150,1,1,2) [2025-02-03 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390150', 'tblTempUsageDetail_20' ) start [2025-02-03 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390150', 'tblTempUsageDetail_20' ) end [2025-02-03 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:05:21] Production.INFO: ==10613== Releasing lock... [2025-02-03 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:05:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-03 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:06:05 [end_date_ymd] => 2025-02-03 03:06:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:06:05' and `end` < '2025-02-03 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-02-03 03:06:19] Production.INFO: count ==345 [2025-02-03 03:06:19] Production.ERROR: pbx CDR StartTime 2025-02-03 00:06:05 - End Time 2025-02-03 03:06:05 [2025-02-03 03:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390155', 'tblTempUsageDetail_20' ) start [2025-02-03 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390155', 'tblTempUsageDetail_20' ) end [2025-02-03 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390155', 'tblTempVendorCDR_20' ) start [2025-02-03 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390155', 'tblTempVendorCDR_20' ) end [2025-02-03 03:06:19] Production.INFO: ProcessCDR(1,14390155,1,1,2) [2025-02-03 03:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390155', 'tblTempUsageDetail_20' ) start [2025-02-03 03:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390155', 'tblTempUsageDetail_20' ) end [2025-02-03 03:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:06:23] Production.INFO: ==10767== Releasing lock... [2025-02-03 03:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:06:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-03 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:07:05 [end_date_ymd] => 2025-02-03 03:07:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:07:05' and `end` < '2025-02-03 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-02-03 03:07:18] Production.INFO: count ==340 [2025-02-03 03:07:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:07:05 - End Time 2025-02-03 03:07:05 [2025-02-03 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390160', 'tblTempUsageDetail_20' ) start [2025-02-03 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390160', 'tblTempUsageDetail_20' ) end [2025-02-03 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390160', 'tblTempVendorCDR_20' ) start [2025-02-03 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390160', 'tblTempVendorCDR_20' ) end [2025-02-03 03:07:18] Production.INFO: ProcessCDR(1,14390160,1,1,2) [2025-02-03 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390160', 'tblTempUsageDetail_20' ) start [2025-02-03 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390160', 'tblTempUsageDetail_20' ) end [2025-02-03 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:07:21] Production.INFO: ==10850== Releasing lock... [2025-02-03 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:07:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-03 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:08:05 [end_date_ymd] => 2025-02-03 03:08:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:08:05' and `end` < '2025-02-03 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-02-03 03:08:18] Production.INFO: count ==335 [2025-02-03 03:08:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:08:05 - End Time 2025-02-03 03:08:05 [2025-02-03 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390165', 'tblTempUsageDetail_20' ) start [2025-02-03 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390165', 'tblTempUsageDetail_20' ) end [2025-02-03 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390165', 'tblTempVendorCDR_20' ) start [2025-02-03 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390165', 'tblTempVendorCDR_20' ) end [2025-02-03 03:08:18] Production.INFO: ProcessCDR(1,14390165,1,1,2) [2025-02-03 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390165', 'tblTempUsageDetail_20' ) start [2025-02-03 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390165', 'tblTempUsageDetail_20' ) end [2025-02-03 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:08:21] Production.INFO: ==10967== Releasing lock... [2025-02-03 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:08:21] Production.INFO: 30 MB #Memory Used# [2025-02-03 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:09:05 [end_date_ymd] => 2025-02-03 03:09:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:09:05' and `end` < '2025-02-03 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-02-03 03:09:18] Production.INFO: count ==333 [2025-02-03 03:09:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:09:05 - End Time 2025-02-03 03:09:05 [2025-02-03 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390170', 'tblTempUsageDetail_20' ) start [2025-02-03 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390170', 'tblTempUsageDetail_20' ) end [2025-02-03 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390170', 'tblTempVendorCDR_20' ) start [2025-02-03 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390170', 'tblTempVendorCDR_20' ) end [2025-02-03 03:09:18] Production.INFO: ProcessCDR(1,14390170,1,1,2) [2025-02-03 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390170', 'tblTempUsageDetail_20' ) start [2025-02-03 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390170', 'tblTempUsageDetail_20' ) end [2025-02-03 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:09:21] Production.INFO: ==11126== Releasing lock... [2025-02-03 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-03 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:10:06 [end_date_ymd] => 2025-02-03 03:10:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:10:06' and `end` < '2025-02-03 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-02-03 03:10:20] Production.INFO: count ==327 [2025-02-03 03:10:20] Production.ERROR: pbx CDR StartTime 2025-02-03 00:10:06 - End Time 2025-02-03 03:10:06 [2025-02-03 03:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390176', 'tblTempUsageDetail_20' ) start [2025-02-03 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390176', 'tblTempUsageDetail_20' ) end [2025-02-03 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390176', 'tblTempVendorCDR_20' ) start [2025-02-03 03:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390176', 'tblTempVendorCDR_20' ) end [2025-02-03 03:10:20] Production.INFO: ProcessCDR(1,14390176,1,1,2) [2025-02-03 03:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390176', 'tblTempUsageDetail_20' ) start [2025-02-03 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390176', 'tblTempUsageDetail_20' ) end [2025-02-03 03:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:10:23] Production.INFO: ==11208== Releasing lock... [2025-02-03 03:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:10:23] Production.INFO: 30 MB #Memory Used# [2025-02-03 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:11:05 [end_date_ymd] => 2025-02-03 03:11:05 [RateCDR] => 1 ) [2025-02-03 03: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-02-03 00:11:05' and `end` < '2025-02-03 03: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-02-03 03:11:18] Production.INFO: count ==307 [2025-02-03 03:11:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:11:05 - End Time 2025-02-03 03:11:05 [2025-02-03 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390181', 'tblTempUsageDetail_20' ) start [2025-02-03 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390181', 'tblTempUsageDetail_20' ) end [2025-02-03 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390181', 'tblTempVendorCDR_20' ) start [2025-02-03 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390181', 'tblTempVendorCDR_20' ) end [2025-02-03 03:11:18] Production.INFO: ProcessCDR(1,14390181,1,1,2) [2025-02-03 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390181', 'tblTempUsageDetail_20' ) start [2025-02-03 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390181', 'tblTempUsageDetail_20' ) end [2025-02-03 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:11:21] Production.INFO: ==11292== Releasing lock... [2025-02-03 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:11:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-03 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:12:05 [end_date_ymd] => 2025-02-03 03:12:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:12:05' and `end` < '2025-02-03 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-02-03 03:12:18] Production.INFO: count ==307 [2025-02-03 03:12:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:12:05 - End Time 2025-02-03 03:12:05 [2025-02-03 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390186', 'tblTempUsageDetail_20' ) start [2025-02-03 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390186', 'tblTempUsageDetail_20' ) end [2025-02-03 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390186', 'tblTempVendorCDR_20' ) start [2025-02-03 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390186', 'tblTempVendorCDR_20' ) end [2025-02-03 03:12:18] Production.INFO: ProcessCDR(1,14390186,1,1,2) [2025-02-03 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390186', 'tblTempUsageDetail_20' ) start [2025-02-03 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390186', 'tblTempUsageDetail_20' ) end [2025-02-03 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:12:21] Production.INFO: ==11368== Releasing lock... [2025-02-03 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:12:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-03 03:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:13:04 [end_date_ymd] => 2025-02-03 03:13:04 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:13:04' and `end` < '2025-02-03 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-02-03 03:13:17] Production.INFO: count ==307 [2025-02-03 03:13:17] Production.ERROR: pbx CDR StartTime 2025-02-03 00:13:04 - End Time 2025-02-03 03:13:04 [2025-02-03 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390191', 'tblTempUsageDetail_20' ) start [2025-02-03 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390191', 'tblTempUsageDetail_20' ) end [2025-02-03 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390191', 'tblTempVendorCDR_20' ) start [2025-02-03 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390191', 'tblTempVendorCDR_20' ) end [2025-02-03 03:13:17] Production.INFO: ProcessCDR(1,14390191,1,1,2) [2025-02-03 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390191', 'tblTempUsageDetail_20' ) start [2025-02-03 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390191', 'tblTempUsageDetail_20' ) end [2025-02-03 03:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:13:20] Production.INFO: ==11523== Releasing lock... [2025-02-03 03:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:13:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-03 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:14:05 [end_date_ymd] => 2025-02-03 03:14:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:14:05' and `end` < '2025-02-03 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-02-03 03:14:18] Production.INFO: count ==291 [2025-02-03 03:14:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:14:05 - End Time 2025-02-03 03:14:05 [2025-02-03 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390196', 'tblTempUsageDetail_20' ) start [2025-02-03 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390196', 'tblTempUsageDetail_20' ) end [2025-02-03 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390196', 'tblTempVendorCDR_20' ) start [2025-02-03 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390196', 'tblTempVendorCDR_20' ) end [2025-02-03 03:14:18] Production.INFO: ProcessCDR(1,14390196,1,1,2) [2025-02-03 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390196', 'tblTempUsageDetail_20' ) start [2025-02-03 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390196', 'tblTempUsageDetail_20' ) end [2025-02-03 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:14:21] Production.INFO: ==11618== Releasing lock... [2025-02-03 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:14:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-03 03:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:15:06 [end_date_ymd] => 2025-02-03 03:15:06 [RateCDR] => 1 ) [2025-02-03 03: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-02-03 00:15:06' and `end` < '2025-02-03 03: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-02-03 03:15:19] Production.INFO: count ==276 [2025-02-03 03:15:19] Production.ERROR: pbx CDR StartTime 2025-02-03 00:15:06 - End Time 2025-02-03 03:15:06 [2025-02-03 03:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390201', 'tblTempUsageDetail_20' ) start [2025-02-03 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390201', 'tblTempUsageDetail_20' ) end [2025-02-03 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390201', 'tblTempVendorCDR_20' ) start [2025-02-03 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390201', 'tblTempVendorCDR_20' ) end [2025-02-03 03:15:19] Production.INFO: ProcessCDR(1,14390201,1,1,2) [2025-02-03 03:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390201', 'tblTempUsageDetail_20' ) start [2025-02-03 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390201', 'tblTempUsageDetail_20' ) end [2025-02-03 03:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:15:22] Production.INFO: ==11720== Releasing lock... [2025-02-03 03:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:15:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-03 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:16:05 [end_date_ymd] => 2025-02-03 03:16:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:16:05' and `end` < '2025-02-03 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-02-03 03:16:18] Production.INFO: count ==276 [2025-02-03 03:16:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:16:05 - End Time 2025-02-03 03:16:05 [2025-02-03 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390206', 'tblTempUsageDetail_20' ) start [2025-02-03 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390206', 'tblTempUsageDetail_20' ) end [2025-02-03 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390206', 'tblTempVendorCDR_20' ) start [2025-02-03 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390206', 'tblTempVendorCDR_20' ) end [2025-02-03 03:16:18] Production.INFO: ProcessCDR(1,14390206,1,1,2) [2025-02-03 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390206', 'tblTempUsageDetail_20' ) start [2025-02-03 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390206', 'tblTempUsageDetail_20' ) end [2025-02-03 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:16:21] Production.INFO: ==11801== Releasing lock... [2025-02-03 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-03 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:17:05 [end_date_ymd] => 2025-02-03 03:17:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:17:05' and `end` < '2025-02-03 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-02-03 03:17:18] Production.INFO: count ==276 [2025-02-03 03:17:19] Production.ERROR: pbx CDR StartTime 2025-02-03 00:17:05 - End Time 2025-02-03 03:17:05 [2025-02-03 03:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390211', 'tblTempUsageDetail_20' ) start [2025-02-03 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390211', 'tblTempUsageDetail_20' ) end [2025-02-03 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390211', 'tblTempVendorCDR_20' ) start [2025-02-03 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390211', 'tblTempVendorCDR_20' ) end [2025-02-03 03:17:19] Production.INFO: ProcessCDR(1,14390211,1,1,2) [2025-02-03 03:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390211', 'tblTempUsageDetail_20' ) start [2025-02-03 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390211', 'tblTempUsageDetail_20' ) end [2025-02-03 03:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:17:22] Production.INFO: ==11961== Releasing lock... [2025-02-03 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:17:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-03 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:18:05 [end_date_ymd] => 2025-02-03 03:18:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:18:05' and `end` < '2025-02-03 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-02-03 03:18:18] Production.INFO: count ==275 [2025-02-03 03:18:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:18:05 - End Time 2025-02-03 03:18:05 [2025-02-03 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390216', 'tblTempUsageDetail_20' ) start [2025-02-03 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390216', 'tblTempUsageDetail_20' ) end [2025-02-03 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390216', 'tblTempVendorCDR_20' ) start [2025-02-03 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390216', 'tblTempVendorCDR_20' ) end [2025-02-03 03:18:18] Production.INFO: ProcessCDR(1,14390216,1,1,2) [2025-02-03 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390216', 'tblTempUsageDetail_20' ) start [2025-02-03 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390216', 'tblTempUsageDetail_20' ) end [2025-02-03 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:18:21] Production.INFO: ==12043== Releasing lock... [2025-02-03 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:18:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-03 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:19:05 [end_date_ymd] => 2025-02-03 03:19:05 [RateCDR] => 1 ) [2025-02-03 03: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-02-03 00:19:05' and `end` < '2025-02-03 03: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-02-03 03:19:18] Production.INFO: count ==275 [2025-02-03 03:19:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:19:05 - End Time 2025-02-03 03:19:05 [2025-02-03 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390221', 'tblTempUsageDetail_20' ) start [2025-02-03 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390221', 'tblTempUsageDetail_20' ) end [2025-02-03 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390221', 'tblTempVendorCDR_20' ) start [2025-02-03 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390221', 'tblTempVendorCDR_20' ) end [2025-02-03 03:19:18] Production.INFO: ProcessCDR(1,14390221,1,1,2) [2025-02-03 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390221', 'tblTempUsageDetail_20' ) start [2025-02-03 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390221', 'tblTempUsageDetail_20' ) end [2025-02-03 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:19:21] Production.INFO: ==12123== Releasing lock... [2025-02-03 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:19:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-03 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:20:05 [end_date_ymd] => 2025-02-03 03:20:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:20:05' and `end` < '2025-02-03 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-02-03 03:20:18] Production.INFO: count ==273 [2025-02-03 03:20:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:20:05 - End Time 2025-02-03 03:20:05 [2025-02-03 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390226', 'tblTempUsageDetail_20' ) start [2025-02-03 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390226', 'tblTempUsageDetail_20' ) end [2025-02-03 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390226', 'tblTempVendorCDR_20' ) start [2025-02-03 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390226', 'tblTempVendorCDR_20' ) end [2025-02-03 03:20:18] Production.INFO: ProcessCDR(1,14390226,1,1,2) [2025-02-03 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390226', 'tblTempUsageDetail_20' ) start [2025-02-03 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390226', 'tblTempUsageDetail_20' ) end [2025-02-03 03:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:20:21] Production.INFO: ==12206== Releasing lock... [2025-02-03 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:20:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-03 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:21:05 [end_date_ymd] => 2025-02-03 03:21:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:21:05' and `end` < '2025-02-03 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-02-03 03:21:17] Production.INFO: count ==267 [2025-02-03 03:21:17] Production.ERROR: pbx CDR StartTime 2025-02-03 00:21:05 - End Time 2025-02-03 03:21:05 [2025-02-03 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390232', 'tblTempUsageDetail_20' ) start [2025-02-03 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390232', 'tblTempUsageDetail_20' ) end [2025-02-03 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390232', 'tblTempVendorCDR_20' ) start [2025-02-03 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390232', 'tblTempVendorCDR_20' ) end [2025-02-03 03:21:17] Production.INFO: ProcessCDR(1,14390232,1,1,2) [2025-02-03 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390232', 'tblTempUsageDetail_20' ) start [2025-02-03 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390232', 'tblTempUsageDetail_20' ) end [2025-02-03 03:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:21:20] Production.INFO: ==12283== Releasing lock... [2025-02-03 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:21:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-03 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:22:05 [end_date_ymd] => 2025-02-03 03:22:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:22:05' and `end` < '2025-02-03 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-02-03 03:22:18] Production.INFO: count ==267 [2025-02-03 03:22:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:22:05 - End Time 2025-02-03 03:22:05 [2025-02-03 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390237', 'tblTempUsageDetail_20' ) start [2025-02-03 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390237', 'tblTempUsageDetail_20' ) end [2025-02-03 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390237', 'tblTempVendorCDR_20' ) start [2025-02-03 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390237', 'tblTempVendorCDR_20' ) end [2025-02-03 03:22:18] Production.INFO: ProcessCDR(1,14390237,1,1,2) [2025-02-03 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390237', 'tblTempUsageDetail_20' ) start [2025-02-03 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390237', 'tblTempUsageDetail_20' ) end [2025-02-03 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:22:21] Production.INFO: ==12359== Releasing lock... [2025-02-03 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:22:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-03 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:23:05 [end_date_ymd] => 2025-02-03 03:23:05 [RateCDR] => 1 ) [2025-02-03 03: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-02-03 00:23:05' and `end` < '2025-02-03 03: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-02-03 03:23:18] Production.INFO: count ==267 [2025-02-03 03:23:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:23:05 - End Time 2025-02-03 03:23:05 [2025-02-03 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390242', 'tblTempUsageDetail_20' ) start [2025-02-03 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390242', 'tblTempUsageDetail_20' ) end [2025-02-03 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390242', 'tblTempVendorCDR_20' ) start [2025-02-03 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390242', 'tblTempVendorCDR_20' ) end [2025-02-03 03:23:18] Production.INFO: ProcessCDR(1,14390242,1,1,2) [2025-02-03 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390242', 'tblTempUsageDetail_20' ) start [2025-02-03 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390242', 'tblTempUsageDetail_20' ) end [2025-02-03 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:23:21] Production.INFO: ==12435== Releasing lock... [2025-02-03 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:23:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-03 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:24:05 [end_date_ymd] => 2025-02-03 03:24:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:24:05' and `end` < '2025-02-03 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-02-03 03:24:19] Production.INFO: count ==267 [2025-02-03 03:24:19] Production.ERROR: pbx CDR StartTime 2025-02-03 00:24:05 - End Time 2025-02-03 03:24:05 [2025-02-03 03:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390247', 'tblTempUsageDetail_20' ) start [2025-02-03 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390247', 'tblTempUsageDetail_20' ) end [2025-02-03 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390247', 'tblTempVendorCDR_20' ) start [2025-02-03 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390247', 'tblTempVendorCDR_20' ) end [2025-02-03 03:24:19] Production.INFO: ProcessCDR(1,14390247,1,1,2) [2025-02-03 03:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390247', 'tblTempUsageDetail_20' ) start [2025-02-03 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390247', 'tblTempUsageDetail_20' ) end [2025-02-03 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:24:22] Production.INFO: ==12511== Releasing lock... [2025-02-03 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:24:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-03 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:25:05 [end_date_ymd] => 2025-02-03 03:25:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:25:05' and `end` < '2025-02-03 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-02-03 03:25:18] Production.INFO: count ==267 [2025-02-03 03:25:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:25:05 - End Time 2025-02-03 03:25:05 [2025-02-03 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390252', 'tblTempUsageDetail_20' ) start [2025-02-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390252', 'tblTempUsageDetail_20' ) end [2025-02-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390252', 'tblTempVendorCDR_20' ) start [2025-02-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390252', 'tblTempVendorCDR_20' ) end [2025-02-03 03:25:18] Production.INFO: ProcessCDR(1,14390252,1,1,2) [2025-02-03 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390252', 'tblTempUsageDetail_20' ) start [2025-02-03 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390252', 'tblTempUsageDetail_20' ) end [2025-02-03 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:25:21] Production.INFO: ==12627== Releasing lock... [2025-02-03 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-03 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:26:05 [end_date_ymd] => 2025-02-03 03:26:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:26:05' and `end` < '2025-02-03 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-02-03 03:26:18] Production.INFO: count ==267 [2025-02-03 03:26:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:26:05 - End Time 2025-02-03 03:26:05 [2025-02-03 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390257', 'tblTempUsageDetail_20' ) start [2025-02-03 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390257', 'tblTempUsageDetail_20' ) end [2025-02-03 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390257', 'tblTempVendorCDR_20' ) start [2025-02-03 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390257', 'tblTempVendorCDR_20' ) end [2025-02-03 03:26:18] Production.INFO: ProcessCDR(1,14390257,1,1,2) [2025-02-03 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390257', 'tblTempUsageDetail_20' ) start [2025-02-03 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390257', 'tblTempUsageDetail_20' ) end [2025-02-03 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:26:21] Production.INFO: ==12703== Releasing lock... [2025-02-03 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:26:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-03 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:27:05 [end_date_ymd] => 2025-02-03 03:27:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:27:05' and `end` < '2025-02-03 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-02-03 03:27:18] Production.INFO: count ==267 [2025-02-03 03:27:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:27:05 - End Time 2025-02-03 03:27:05 [2025-02-03 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390262', 'tblTempUsageDetail_20' ) start [2025-02-03 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390262', 'tblTempUsageDetail_20' ) end [2025-02-03 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390262', 'tblTempVendorCDR_20' ) start [2025-02-03 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390262', 'tblTempVendorCDR_20' ) end [2025-02-03 03:27:18] Production.INFO: ProcessCDR(1,14390262,1,1,2) [2025-02-03 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390262', 'tblTempUsageDetail_20' ) start [2025-02-03 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390262', 'tblTempUsageDetail_20' ) end [2025-02-03 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:27:21] Production.INFO: ==12779== Releasing lock... [2025-02-03 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-03 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:28:05 [end_date_ymd] => 2025-02-03 03:28:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:28:05' and `end` < '2025-02-03 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-02-03 03:28:18] Production.INFO: count ==267 [2025-02-03 03:28:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:28:05 - End Time 2025-02-03 03:28:05 [2025-02-03 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390267', 'tblTempUsageDetail_20' ) start [2025-02-03 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390267', 'tblTempUsageDetail_20' ) end [2025-02-03 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390267', 'tblTempVendorCDR_20' ) start [2025-02-03 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390267', 'tblTempVendorCDR_20' ) end [2025-02-03 03:28:18] Production.INFO: ProcessCDR(1,14390267,1,1,2) [2025-02-03 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390267', 'tblTempUsageDetail_20' ) start [2025-02-03 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390267', 'tblTempUsageDetail_20' ) end [2025-02-03 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:28:21] Production.INFO: ==12857== Releasing lock... [2025-02-03 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:28:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-03 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:29:05 [end_date_ymd] => 2025-02-03 03:29:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:29:05' and `end` < '2025-02-03 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-02-03 03:29:19] Production.INFO: count ==266 [2025-02-03 03:29:19] Production.ERROR: pbx CDR StartTime 2025-02-03 00:29:05 - End Time 2025-02-03 03:29:05 [2025-02-03 03:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390272', 'tblTempUsageDetail_20' ) start [2025-02-03 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390272', 'tblTempUsageDetail_20' ) end [2025-02-03 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390272', 'tblTempVendorCDR_20' ) start [2025-02-03 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390272', 'tblTempVendorCDR_20' ) end [2025-02-03 03:29:19] Production.INFO: ProcessCDR(1,14390272,1,1,2) [2025-02-03 03:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390272', 'tblTempUsageDetail_20' ) start [2025-02-03 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390272', 'tblTempUsageDetail_20' ) end [2025-02-03 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:29:22] Production.INFO: ==12937== Releasing lock... [2025-02-03 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:29:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-03 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:30:05 [end_date_ymd] => 2025-02-03 03:30:05 [RateCDR] => 1 ) [2025-02-03 03: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-02-03 00:30:05' and `end` < '2025-02-03 03: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-02-03 03:30:19] Production.INFO: count ==260 [2025-02-03 03:30:19] Production.ERROR: pbx CDR StartTime 2025-02-03 00:30:05 - End Time 2025-02-03 03:30:05 [2025-02-03 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390277', 'tblTempUsageDetail_20' ) start [2025-02-03 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390277', 'tblTempUsageDetail_20' ) end [2025-02-03 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390277', 'tblTempVendorCDR_20' ) start [2025-02-03 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390277', 'tblTempVendorCDR_20' ) end [2025-02-03 03:30:19] Production.INFO: ProcessCDR(1,14390277,1,1,2) [2025-02-03 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390277', 'tblTempUsageDetail_20' ) start [2025-02-03 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390277', 'tblTempUsageDetail_20' ) end [2025-02-03 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:30:22] Production.INFO: ==13015== Releasing lock... [2025-02-03 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-03 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:31:06 [end_date_ymd] => 2025-02-03 03:31:06 [RateCDR] => 1 ) [2025-02-03 03: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-02-03 00:31:06' and `end` < '2025-02-03 03: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-02-03 03:31:19] Production.INFO: count ==244 [2025-02-03 03:31:19] Production.ERROR: pbx CDR StartTime 2025-02-03 00:31:06 - End Time 2025-02-03 03:31:06 [2025-02-03 03:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390283', 'tblTempUsageDetail_20' ) start [2025-02-03 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390283', 'tblTempUsageDetail_20' ) end [2025-02-03 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390283', 'tblTempVendorCDR_20' ) start [2025-02-03 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390283', 'tblTempVendorCDR_20' ) end [2025-02-03 03:31:19] Production.INFO: ProcessCDR(1,14390283,1,1,2) [2025-02-03 03:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390283', 'tblTempUsageDetail_20' ) start [2025-02-03 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390283', 'tblTempUsageDetail_20' ) end [2025-02-03 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:31:22] Production.INFO: ==13096== Releasing lock... [2025-02-03 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:31:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-03 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:32:05 [end_date_ymd] => 2025-02-03 03:32:05 [RateCDR] => 1 ) [2025-02-03 03: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-02-03 00:32:05' and `end` < '2025-02-03 03: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-02-03 03:32:18] Production.INFO: count ==230 [2025-02-03 03:32:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:32:05 - End Time 2025-02-03 03:32:05 [2025-02-03 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390288', 'tblTempUsageDetail_20' ) start [2025-02-03 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390288', 'tblTempUsageDetail_20' ) end [2025-02-03 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390288', 'tblTempVendorCDR_20' ) start [2025-02-03 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390288', 'tblTempVendorCDR_20' ) end [2025-02-03 03:32:18] Production.INFO: ProcessCDR(1,14390288,1,1,2) [2025-02-03 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390288', 'tblTempUsageDetail_20' ) start [2025-02-03 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390288', 'tblTempUsageDetail_20' ) end [2025-02-03 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:32:21] Production.INFO: ==13171== Releasing lock... [2025-02-03 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:32:21] Production.INFO: 29 MB #Memory Used# [2025-02-03 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:33:05 [end_date_ymd] => 2025-02-03 03:33:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:33:05' and `end` < '2025-02-03 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-02-03 03:33:18] Production.INFO: count ==230 [2025-02-03 03:33:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:33:05 - End Time 2025-02-03 03:33:05 [2025-02-03 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390293', 'tblTempUsageDetail_20' ) start [2025-02-03 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390293', 'tblTempUsageDetail_20' ) end [2025-02-03 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390293', 'tblTempVendorCDR_20' ) start [2025-02-03 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390293', 'tblTempVendorCDR_20' ) end [2025-02-03 03:33:18] Production.INFO: ProcessCDR(1,14390293,1,1,2) [2025-02-03 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390293', 'tblTempUsageDetail_20' ) start [2025-02-03 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390293', 'tblTempUsageDetail_20' ) end [2025-02-03 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:33:21] Production.INFO: ==13248== Releasing lock... [2025-02-03 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:33:21] Production.INFO: 29 MB #Memory Used# [2025-02-03 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:34:05 [end_date_ymd] => 2025-02-03 03:34:05 [RateCDR] => 1 ) [2025-02-03 03: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-02-03 00:34:05' and `end` < '2025-02-03 03: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-02-03 03:34:18] Production.INFO: count ==230 [2025-02-03 03:34:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:34:05 - End Time 2025-02-03 03:34:05 [2025-02-03 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390298', 'tblTempUsageDetail_20' ) start [2025-02-03 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390298', 'tblTempUsageDetail_20' ) end [2025-02-03 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390298', 'tblTempVendorCDR_20' ) start [2025-02-03 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390298', 'tblTempVendorCDR_20' ) end [2025-02-03 03:34:18] Production.INFO: ProcessCDR(1,14390298,1,1,2) [2025-02-03 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390298', 'tblTempUsageDetail_20' ) start [2025-02-03 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390298', 'tblTempUsageDetail_20' ) end [2025-02-03 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:34:21] Production.INFO: ==13354== Releasing lock... [2025-02-03 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:34:21] Production.INFO: 29 MB #Memory Used# [2025-02-03 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:35:05 [end_date_ymd] => 2025-02-03 03:35:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:35:05' and `end` < '2025-02-03 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-02-03 03:35:18] Production.INFO: count ==229 [2025-02-03 03:35:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:35:05 - End Time 2025-02-03 03:35:05 [2025-02-03 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390303', 'tblTempUsageDetail_20' ) start [2025-02-03 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390303', 'tblTempUsageDetail_20' ) end [2025-02-03 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390303', 'tblTempVendorCDR_20' ) start [2025-02-03 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390303', 'tblTempVendorCDR_20' ) end [2025-02-03 03:35:18] Production.INFO: ProcessCDR(1,14390303,1,1,2) [2025-02-03 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390303', 'tblTempUsageDetail_20' ) start [2025-02-03 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390303', 'tblTempUsageDetail_20' ) end [2025-02-03 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:35:21] Production.INFO: ==13436== Releasing lock... [2025-02-03 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:35:21] Production.INFO: 29 MB #Memory Used# [2025-02-03 03:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:36:04 [end_date_ymd] => 2025-02-03 03:36:04 [RateCDR] => 1 ) [2025-02-03 03: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-02-03 00:36:04' and `end` < '2025-02-03 03: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-02-03 03:36:18] Production.INFO: count ==211 [2025-02-03 03:36:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:36:04 - End Time 2025-02-03 03:36:04 [2025-02-03 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390308', 'tblTempUsageDetail_20' ) start [2025-02-03 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390308', 'tblTempUsageDetail_20' ) end [2025-02-03 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390308', 'tblTempVendorCDR_20' ) start [2025-02-03 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390308', 'tblTempVendorCDR_20' ) end [2025-02-03 03:36:18] Production.INFO: ProcessCDR(1,14390308,1,1,2) [2025-02-03 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390308', 'tblTempUsageDetail_20' ) start [2025-02-03 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390308', 'tblTempUsageDetail_20' ) end [2025-02-03 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:36:21] Production.INFO: ==13515== Releasing lock... [2025-02-03 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:36:21] Production.INFO: 29 MB #Memory Used# [2025-02-03 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:37:05 [end_date_ymd] => 2025-02-03 03:37:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:37:05' and `end` < '2025-02-03 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-02-03 03:37:18] Production.INFO: count ==206 [2025-02-03 03:37:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:37:05 - End Time 2025-02-03 03:37:05 [2025-02-03 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390313', 'tblTempUsageDetail_20' ) start [2025-02-03 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390313', 'tblTempUsageDetail_20' ) end [2025-02-03 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390313', 'tblTempVendorCDR_20' ) start [2025-02-03 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390313', 'tblTempVendorCDR_20' ) end [2025-02-03 03:37:18] Production.INFO: ProcessCDR(1,14390313,1,1,2) [2025-02-03 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390313', 'tblTempUsageDetail_20' ) start [2025-02-03 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390313', 'tblTempUsageDetail_20' ) end [2025-02-03 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:37:21] Production.INFO: ==13592== Releasing lock... [2025-02-03 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:37:21] Production.INFO: 29 MB #Memory Used# [2025-02-03 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:38:05 [end_date_ymd] => 2025-02-03 03:38:05 [RateCDR] => 1 ) [2025-02-03 03: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-02-03 00:38:05' and `end` < '2025-02-03 03: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-02-03 03:38:18] Production.INFO: count ==182 [2025-02-03 03:38:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:38:05 - End Time 2025-02-03 03:38:05 [2025-02-03 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390318', 'tblTempUsageDetail_20' ) start [2025-02-03 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390318', 'tblTempUsageDetail_20' ) end [2025-02-03 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390318', 'tblTempVendorCDR_20' ) start [2025-02-03 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390318', 'tblTempVendorCDR_20' ) end [2025-02-03 03:38:18] Production.INFO: ProcessCDR(1,14390318,1,1,2) [2025-02-03 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390318', 'tblTempUsageDetail_20' ) start [2025-02-03 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390318', 'tblTempUsageDetail_20' ) end [2025-02-03 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:38:21] Production.INFO: ==13669== Releasing lock... [2025-02-03 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-03 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:39:05 [end_date_ymd] => 2025-02-03 03:39:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:39:05' and `end` < '2025-02-03 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-02-03 03:39:18] Production.INFO: count ==182 [2025-02-03 03:39:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:39:05 - End Time 2025-02-03 03:39:05 [2025-02-03 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390323', 'tblTempUsageDetail_20' ) start [2025-02-03 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390323', 'tblTempUsageDetail_20' ) end [2025-02-03 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390323', 'tblTempVendorCDR_20' ) start [2025-02-03 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390323', 'tblTempVendorCDR_20' ) end [2025-02-03 03:39:18] Production.INFO: ProcessCDR(1,14390323,1,1,2) [2025-02-03 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390323', 'tblTempUsageDetail_20' ) start [2025-02-03 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390323', 'tblTempUsageDetail_20' ) end [2025-02-03 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:39:21] Production.INFO: ==13748== Releasing lock... [2025-02-03 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-03 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:40:06 [end_date_ymd] => 2025-02-03 03:40:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:40:06' and `end` < '2025-02-03 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-02-03 03:40:19] Production.INFO: count ==176 [2025-02-03 03:40:19] Production.ERROR: pbx CDR StartTime 2025-02-03 00:40:06 - End Time 2025-02-03 03:40:06 [2025-02-03 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390329', 'tblTempUsageDetail_20' ) start [2025-02-03 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390329', 'tblTempUsageDetail_20' ) end [2025-02-03 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390329', 'tblTempVendorCDR_20' ) start [2025-02-03 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390329', 'tblTempVendorCDR_20' ) end [2025-02-03 03:40:19] Production.INFO: ProcessCDR(1,14390329,1,1,2) [2025-02-03 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390329', 'tblTempUsageDetail_20' ) start [2025-02-03 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390329', 'tblTempUsageDetail_20' ) end [2025-02-03 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:40:22] Production.INFO: ==13872== Releasing lock... [2025-02-03 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-03 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:41:05 [end_date_ymd] => 2025-02-03 03:41:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:41:05' and `end` < '2025-02-03 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-02-03 03:41:18] Production.INFO: count ==164 [2025-02-03 03:41:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:41:05 - End Time 2025-02-03 03:41:05 [2025-02-03 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390334', 'tblTempUsageDetail_20' ) start [2025-02-03 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390334', 'tblTempUsageDetail_20' ) end [2025-02-03 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390334', 'tblTempVendorCDR_20' ) start [2025-02-03 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390334', 'tblTempVendorCDR_20' ) end [2025-02-03 03:41:18] Production.INFO: ProcessCDR(1,14390334,1,1,2) [2025-02-03 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390334', 'tblTempUsageDetail_20' ) start [2025-02-03 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390334', 'tblTempUsageDetail_20' ) end [2025-02-03 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:41:21] Production.INFO: ==13954== Releasing lock... [2025-02-03 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:42:06 [end_date_ymd] => 2025-02-03 03:42:06 [RateCDR] => 1 ) [2025-02-03 03: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-02-03 00:42:06' and `end` < '2025-02-03 03: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-02-03 03:42:18] Production.INFO: count ==164 [2025-02-03 03:42:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:42:06 - End Time 2025-02-03 03:42:06 [2025-02-03 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390339', 'tblTempUsageDetail_20' ) start [2025-02-03 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390339', 'tblTempUsageDetail_20' ) end [2025-02-03 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390339', 'tblTempVendorCDR_20' ) start [2025-02-03 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390339', 'tblTempVendorCDR_20' ) end [2025-02-03 03:42:18] Production.INFO: ProcessCDR(1,14390339,1,1,2) [2025-02-03 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390339', 'tblTempUsageDetail_20' ) start [2025-02-03 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390339', 'tblTempUsageDetail_20' ) end [2025-02-03 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:42:22] Production.INFO: ==14035== Releasing lock... [2025-02-03 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:42:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:43:05 [end_date_ymd] => 2025-02-03 03:43:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:43:05' and `end` < '2025-02-03 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-02-03 03:43:18] Production.INFO: count ==164 [2025-02-03 03:43:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:43:05 - End Time 2025-02-03 03:43:05 [2025-02-03 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390344', 'tblTempUsageDetail_20' ) start [2025-02-03 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390344', 'tblTempUsageDetail_20' ) end [2025-02-03 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390344', 'tblTempVendorCDR_20' ) start [2025-02-03 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390344', 'tblTempVendorCDR_20' ) end [2025-02-03 03:43:18] Production.INFO: ProcessCDR(1,14390344,1,1,2) [2025-02-03 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390344', 'tblTempUsageDetail_20' ) start [2025-02-03 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390344', 'tblTempUsageDetail_20' ) end [2025-02-03 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:43:22] Production.INFO: ==14109== Releasing lock... [2025-02-03 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:43:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:44:06 [end_date_ymd] => 2025-02-03 03:44:06 [RateCDR] => 1 ) [2025-02-03 03: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-02-03 00:44:06' and `end` < '2025-02-03 03: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-02-03 03:44:19] Production.INFO: count ==164 [2025-02-03 03:44:19] Production.ERROR: pbx CDR StartTime 2025-02-03 00:44:06 - End Time 2025-02-03 03:44:06 [2025-02-03 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390349', 'tblTempUsageDetail_20' ) start [2025-02-03 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390349', 'tblTempUsageDetail_20' ) end [2025-02-03 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390349', 'tblTempVendorCDR_20' ) start [2025-02-03 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390349', 'tblTempVendorCDR_20' ) end [2025-02-03 03:44:19] Production.INFO: ProcessCDR(1,14390349,1,1,2) [2025-02-03 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390349', 'tblTempUsageDetail_20' ) start [2025-02-03 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390349', 'tblTempUsageDetail_20' ) end [2025-02-03 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:44:22] Production.INFO: ==14193== Releasing lock... [2025-02-03 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:44:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:45:05 [end_date_ymd] => 2025-02-03 03:45:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:45:05' and `end` < '2025-02-03 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-02-03 03:45:18] Production.INFO: count ==164 [2025-02-03 03:45:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:45:05 - End Time 2025-02-03 03:45:05 [2025-02-03 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390354', 'tblTempUsageDetail_20' ) start [2025-02-03 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390354', 'tblTempUsageDetail_20' ) end [2025-02-03 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390354', 'tblTempVendorCDR_20' ) start [2025-02-03 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390354', 'tblTempVendorCDR_20' ) end [2025-02-03 03:45:18] Production.INFO: ProcessCDR(1,14390354,1,1,2) [2025-02-03 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390354', 'tblTempUsageDetail_20' ) start [2025-02-03 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390354', 'tblTempUsageDetail_20' ) end [2025-02-03 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:45:21] Production.INFO: ==14273== Releasing lock... [2025-02-03 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:46:05 [end_date_ymd] => 2025-02-03 03:46:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:46:05' and `end` < '2025-02-03 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-02-03 03:46:19] Production.INFO: count ==164 [2025-02-03 03:46:19] Production.ERROR: pbx CDR StartTime 2025-02-03 00:46:05 - End Time 2025-02-03 03:46:05 [2025-02-03 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390359', 'tblTempUsageDetail_20' ) start [2025-02-03 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390359', 'tblTempUsageDetail_20' ) end [2025-02-03 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390359', 'tblTempVendorCDR_20' ) start [2025-02-03 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390359', 'tblTempVendorCDR_20' ) end [2025-02-03 03:46:19] Production.INFO: ProcessCDR(1,14390359,1,1,2) [2025-02-03 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390359', 'tblTempUsageDetail_20' ) start [2025-02-03 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390359', 'tblTempUsageDetail_20' ) end [2025-02-03 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:46:22] Production.INFO: ==14354== Releasing lock... [2025-02-03 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:46:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 03:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:47:04 [end_date_ymd] => 2025-02-03 03:47:04 [RateCDR] => 1 ) [2025-02-03 03: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-02-03 00:47:04' and `end` < '2025-02-03 03: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-02-03 03:47:17] Production.INFO: count ==164 [2025-02-03 03:47:17] Production.ERROR: pbx CDR StartTime 2025-02-03 00:47:04 - End Time 2025-02-03 03:47:04 [2025-02-03 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390364', 'tblTempUsageDetail_20' ) start [2025-02-03 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390364', 'tblTempUsageDetail_20' ) end [2025-02-03 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390364', 'tblTempVendorCDR_20' ) start [2025-02-03 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390364', 'tblTempVendorCDR_20' ) end [2025-02-03 03:47:17] Production.INFO: ProcessCDR(1,14390364,1,1,2) [2025-02-03 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390364', 'tblTempUsageDetail_20' ) start [2025-02-03 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390364', 'tblTempUsageDetail_20' ) end [2025-02-03 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:47:21] Production.INFO: ==14435== Releasing lock... [2025-02-03 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:48:06 [end_date_ymd] => 2025-02-03 03:48:06 [RateCDR] => 1 ) [2025-02-03 03: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-02-03 00:48:06' and `end` < '2025-02-03 03: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-02-03 03:48:18] Production.INFO: count ==164 [2025-02-03 03:48:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:48:06 - End Time 2025-02-03 03:48:06 [2025-02-03 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390369', 'tblTempUsageDetail_20' ) start [2025-02-03 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390369', 'tblTempUsageDetail_20' ) end [2025-02-03 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390369', 'tblTempVendorCDR_20' ) start [2025-02-03 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390369', 'tblTempVendorCDR_20' ) end [2025-02-03 03:48:18] Production.INFO: ProcessCDR(1,14390369,1,1,2) [2025-02-03 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390369', 'tblTempUsageDetail_20' ) start [2025-02-03 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390369', 'tblTempUsageDetail_20' ) end [2025-02-03 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:48:22] Production.INFO: ==14519== Releasing lock... [2025-02-03 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:48:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:49:06 [end_date_ymd] => 2025-02-03 03:49:06 [RateCDR] => 1 ) [2025-02-03 03:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 00:49:06' and `end` < '2025-02-03 03:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 03:49:19] Production.INFO: count ==164 [2025-02-03 03:49:19] Production.ERROR: pbx CDR StartTime 2025-02-03 00:49:06 - End Time 2025-02-03 03:49:06 [2025-02-03 03:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390374', 'tblTempUsageDetail_20' ) start [2025-02-03 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390374', 'tblTempUsageDetail_20' ) end [2025-02-03 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390374', 'tblTempVendorCDR_20' ) start [2025-02-03 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390374', 'tblTempVendorCDR_20' ) end [2025-02-03 03:49:19] Production.INFO: ProcessCDR(1,14390374,1,1,2) [2025-02-03 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390374', 'tblTempUsageDetail_20' ) start [2025-02-03 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390374', 'tblTempUsageDetail_20' ) end [2025-02-03 03:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:49:23] Production.INFO: ==14599== Releasing lock... [2025-02-03 03:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:49:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:50:06 [end_date_ymd] => 2025-02-03 03:50:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:50:06' and `end` < '2025-02-03 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-02-03 03:50:19] Production.INFO: count ==160 [2025-02-03 03:50:19] Production.ERROR: pbx CDR StartTime 2025-02-03 00:50:06 - End Time 2025-02-03 03:50:06 [2025-02-03 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390380', 'tblTempUsageDetail_20' ) start [2025-02-03 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390380', 'tblTempUsageDetail_20' ) end [2025-02-03 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390380', 'tblTempVendorCDR_20' ) start [2025-02-03 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390380', 'tblTempVendorCDR_20' ) end [2025-02-03 03:50:19] Production.INFO: ProcessCDR(1,14390380,1,1,2) [2025-02-03 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390380', 'tblTempUsageDetail_20' ) start [2025-02-03 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390380', 'tblTempUsageDetail_20' ) end [2025-02-03 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:50:23] Production.INFO: ==14685== Releasing lock... [2025-02-03 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:50:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:51:05 [end_date_ymd] => 2025-02-03 03:51:05 [RateCDR] => 1 ) [2025-02-03 03: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-02-03 00:51:05' and `end` < '2025-02-03 03: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-02-03 03:51:18] Production.INFO: count ==137 [2025-02-03 03:51:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:51:05 - End Time 2025-02-03 03:51:05 [2025-02-03 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390385', 'tblTempUsageDetail_20' ) start [2025-02-03 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390385', 'tblTempUsageDetail_20' ) end [2025-02-03 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390385', 'tblTempVendorCDR_20' ) start [2025-02-03 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390385', 'tblTempVendorCDR_20' ) end [2025-02-03 03:51:18] Production.INFO: ProcessCDR(1,14390385,1,1,2) [2025-02-03 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390385', 'tblTempUsageDetail_20' ) start [2025-02-03 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390385', 'tblTempUsageDetail_20' ) end [2025-02-03 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:51:22] Production.INFO: ==14767== Releasing lock... [2025-02-03 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:51:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:52:05 [end_date_ymd] => 2025-02-03 03:52:05 [RateCDR] => 1 ) [2025-02-03 03: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-02-03 00:52:05' and `end` < '2025-02-03 03: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-02-03 03:52:18] Production.INFO: count ==137 [2025-02-03 03:52:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:52:05 - End Time 2025-02-03 03:52:05 [2025-02-03 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390390', 'tblTempUsageDetail_20' ) start [2025-02-03 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390390', 'tblTempUsageDetail_20' ) end [2025-02-03 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390390', 'tblTempVendorCDR_20' ) start [2025-02-03 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390390', 'tblTempVendorCDR_20' ) end [2025-02-03 03:52:18] Production.INFO: ProcessCDR(1,14390390,1,1,2) [2025-02-03 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390390', 'tblTempUsageDetail_20' ) start [2025-02-03 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390390', 'tblTempUsageDetail_20' ) end [2025-02-03 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:52:21] Production.INFO: ==14853== Releasing lock... [2025-02-03 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:52:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:53:05 [end_date_ymd] => 2025-02-03 03:53:05 [RateCDR] => 1 ) [2025-02-03 03: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-02-03 00:53:05' and `end` < '2025-02-03 03: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-02-03 03:53:18] Production.INFO: count ==137 [2025-02-03 03:53:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:53:05 - End Time 2025-02-03 03:53:05 [2025-02-03 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390395', 'tblTempUsageDetail_20' ) start [2025-02-03 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390395', 'tblTempUsageDetail_20' ) end [2025-02-03 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390395', 'tblTempVendorCDR_20' ) start [2025-02-03 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390395', 'tblTempVendorCDR_20' ) end [2025-02-03 03:53:18] Production.INFO: ProcessCDR(1,14390395,1,1,2) [2025-02-03 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390395', 'tblTempUsageDetail_20' ) start [2025-02-03 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390395', 'tblTempUsageDetail_20' ) end [2025-02-03 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:53:21] Production.INFO: ==14937== Releasing lock... [2025-02-03 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:54:06 [end_date_ymd] => 2025-02-03 03:54:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:54:06' and `end` < '2025-02-03 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-02-03 03:54:19] Production.INFO: count ==137 [2025-02-03 03:54:19] Production.ERROR: pbx CDR StartTime 2025-02-03 00:54:06 - End Time 2025-02-03 03:54:06 [2025-02-03 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390400', 'tblTempUsageDetail_20' ) start [2025-02-03 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390400', 'tblTempUsageDetail_20' ) end [2025-02-03 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390400', 'tblTempVendorCDR_20' ) start [2025-02-03 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390400', 'tblTempVendorCDR_20' ) end [2025-02-03 03:54:19] Production.INFO: ProcessCDR(1,14390400,1,1,2) [2025-02-03 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390400', 'tblTempUsageDetail_20' ) start [2025-02-03 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390400', 'tblTempUsageDetail_20' ) end [2025-02-03 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:54:22] Production.INFO: ==15028== Releasing lock... [2025-02-03 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:54:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:55:05 [end_date_ymd] => 2025-02-03 03:55:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:55:05' and `end` < '2025-02-03 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-02-03 03:55:19] Production.INFO: count ==137 [2025-02-03 03:55:19] Production.ERROR: pbx CDR StartTime 2025-02-03 00:55:05 - End Time 2025-02-03 03:55:05 [2025-02-03 03:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390405', 'tblTempUsageDetail_20' ) start [2025-02-03 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390405', 'tblTempUsageDetail_20' ) end [2025-02-03 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390405', 'tblTempVendorCDR_20' ) start [2025-02-03 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390405', 'tblTempVendorCDR_20' ) end [2025-02-03 03:55:19] Production.INFO: ProcessCDR(1,14390405,1,1,2) [2025-02-03 03:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390405', 'tblTempUsageDetail_20' ) start [2025-02-03 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390405', 'tblTempUsageDetail_20' ) end [2025-02-03 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:55:22] Production.INFO: ==15146== Releasing lock... [2025-02-03 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:55:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:56:05 [end_date_ymd] => 2025-02-03 03:56:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:56:05' and `end` < '2025-02-03 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-02-03 03:56:18] Production.INFO: count ==135 [2025-02-03 03:56:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:56:05 - End Time 2025-02-03 03:56:05 [2025-02-03 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390410', 'tblTempUsageDetail_20' ) start [2025-02-03 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390410', 'tblTempUsageDetail_20' ) end [2025-02-03 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390410', 'tblTempVendorCDR_20' ) start [2025-02-03 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390410', 'tblTempVendorCDR_20' ) end [2025-02-03 03:56:18] Production.INFO: ProcessCDR(1,14390410,1,1,2) [2025-02-03 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390410', 'tblTempUsageDetail_20' ) start [2025-02-03 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390410', 'tblTempUsageDetail_20' ) end [2025-02-03 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:56:21] Production.INFO: ==15238== Releasing lock... [2025-02-03 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:56:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:57:05 [end_date_ymd] => 2025-02-03 03:57:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:57:05' and `end` < '2025-02-03 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-02-03 03:57:18] Production.INFO: count ==135 [2025-02-03 03:57:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:57:05 - End Time 2025-02-03 03:57:05 [2025-02-03 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390415', 'tblTempUsageDetail_20' ) start [2025-02-03 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390415', 'tblTempUsageDetail_20' ) end [2025-02-03 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390415', 'tblTempVendorCDR_20' ) start [2025-02-03 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390415', 'tblTempVendorCDR_20' ) end [2025-02-03 03:57:18] Production.INFO: ProcessCDR(1,14390415,1,1,2) [2025-02-03 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390415', 'tblTempUsageDetail_20' ) start [2025-02-03 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390415', 'tblTempUsageDetail_20' ) end [2025-02-03 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:57:22] Production.INFO: ==15320== Releasing lock... [2025-02-03 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:57:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:58:05 [end_date_ymd] => 2025-02-03 03:58:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:58:05' and `end` < '2025-02-03 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-02-03 03:58:18] Production.INFO: count ==135 [2025-02-03 03:58:18] Production.ERROR: pbx CDR StartTime 2025-02-03 00:58:05 - End Time 2025-02-03 03:58:05 [2025-02-03 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390420', 'tblTempUsageDetail_20' ) start [2025-02-03 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390420', 'tblTempUsageDetail_20' ) end [2025-02-03 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390420', 'tblTempVendorCDR_20' ) start [2025-02-03 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390420', 'tblTempVendorCDR_20' ) end [2025-02-03 03:58:18] Production.INFO: ProcessCDR(1,14390420,1,1,2) [2025-02-03 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390420', 'tblTempUsageDetail_20' ) start [2025-02-03 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390420', 'tblTempUsageDetail_20' ) end [2025-02-03 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:58:22] Production.INFO: ==15402== Releasing lock... [2025-02-03 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:58:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 00:59:05 [end_date_ymd] => 2025-02-03 03:59:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 00:59:05' and `end` < '2025-02-03 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-02-03 03:59:19] Production.INFO: count ==135 [2025-02-03 03:59:19] Production.ERROR: pbx CDR StartTime 2025-02-03 00:59:05 - End Time 2025-02-03 03:59:05 [2025-02-03 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390425', 'tblTempUsageDetail_20' ) start [2025-02-03 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390425', 'tblTempUsageDetail_20' ) end [2025-02-03 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390425', 'tblTempVendorCDR_20' ) start [2025-02-03 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390425', 'tblTempVendorCDR_20' ) end [2025-02-03 03:59:19] Production.INFO: ProcessCDR(1,14390425,1,1,2) [2025-02-03 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390425', 'tblTempUsageDetail_20' ) start [2025-02-03 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390425', 'tblTempUsageDetail_20' ) end [2025-02-03 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 03:59:22] Production.INFO: ==15484== Releasing lock... [2025-02-03 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 03:59:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:00:07 [end_date_ymd] => 2025-02-03 04:00:07 [RateCDR] => 1 ) [2025-02-03 04:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 01:00:07' and `end` < '2025-02-03 04:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 04:00:20] Production.INFO: count ==129 [2025-02-03 04:00:20] Production.ERROR: pbx CDR StartTime 2025-02-03 01:00:07 - End Time 2025-02-03 04:00:07 [2025-02-03 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390432', 'tblTempUsageDetail_20' ) start [2025-02-03 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390432', 'tblTempUsageDetail_20' ) end [2025-02-03 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390432', 'tblTempVendorCDR_20' ) start [2025-02-03 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390432', 'tblTempVendorCDR_20' ) end [2025-02-03 04:00:20] Production.INFO: ProcessCDR(1,14390432,1,1,2) [2025-02-03 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390432', 'tblTempUsageDetail_20' ) start [2025-02-03 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390432', 'tblTempUsageDetail_20' ) end [2025-02-03 04:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:00:24] Production.INFO: ==15572== Releasing lock... [2025-02-03 04:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:00:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 04:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:01:04 [end_date_ymd] => 2025-02-03 04:01:04 [RateCDR] => 1 ) [2025-02-03 04: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-02-03 01:01:04' and `end` < '2025-02-03 04: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-02-03 04:01:18] Production.INFO: count ==127 [2025-02-03 04:01:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:01:04 - End Time 2025-02-03 04:01:04 [2025-02-03 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390437', 'tblTempUsageDetail_20' ) start [2025-02-03 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390437', 'tblTempUsageDetail_20' ) end [2025-02-03 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390437', 'tblTempVendorCDR_20' ) start [2025-02-03 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390437', 'tblTempVendorCDR_20' ) end [2025-02-03 04:01:18] Production.INFO: ProcessCDR(1,14390437,1,1,2) [2025-02-03 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390437', 'tblTempUsageDetail_20' ) start [2025-02-03 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390437', 'tblTempUsageDetail_20' ) end [2025-02-03 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:01:21] Production.INFO: ==15669== Releasing lock... [2025-02-03 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:01:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:02:05 [end_date_ymd] => 2025-02-03 04:02:05 [RateCDR] => 1 ) [2025-02-03 04: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-02-03 01:02:05' and `end` < '2025-02-03 04: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-02-03 04:02:18] Production.INFO: count ==122 [2025-02-03 04:02:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:02:05 - End Time 2025-02-03 04:02:05 [2025-02-03 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390442', 'tblTempUsageDetail_20' ) start [2025-02-03 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390442', 'tblTempUsageDetail_20' ) end [2025-02-03 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390442', 'tblTempVendorCDR_20' ) start [2025-02-03 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390442', 'tblTempVendorCDR_20' ) end [2025-02-03 04:02:18] Production.INFO: ProcessCDR(1,14390442,1,1,2) [2025-02-03 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390442', 'tblTempUsageDetail_20' ) start [2025-02-03 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390442', 'tblTempUsageDetail_20' ) end [2025-02-03 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:02:21] Production.INFO: ==15751== Releasing lock... [2025-02-03 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:02:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:03:05 [end_date_ymd] => 2025-02-03 04:03:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:03:05' and `end` < '2025-02-03 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-02-03 04:03:18] Production.INFO: count ==122 [2025-02-03 04:03:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:03:05 - End Time 2025-02-03 04:03:05 [2025-02-03 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390447', 'tblTempUsageDetail_20' ) start [2025-02-03 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390447', 'tblTempUsageDetail_20' ) end [2025-02-03 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390447', 'tblTempVendorCDR_20' ) start [2025-02-03 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390447', 'tblTempVendorCDR_20' ) end [2025-02-03 04:03:18] Production.INFO: ProcessCDR(1,14390447,1,1,2) [2025-02-03 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390447', 'tblTempUsageDetail_20' ) start [2025-02-03 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390447', 'tblTempUsageDetail_20' ) end [2025-02-03 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:03:22] Production.INFO: ==15839== Releasing lock... [2025-02-03 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:03:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:04:05 [end_date_ymd] => 2025-02-03 04:04:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:04:05' and `end` < '2025-02-03 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-02-03 04:04:19] Production.INFO: count ==121 [2025-02-03 04:04:19] Production.ERROR: pbx CDR StartTime 2025-02-03 01:04:05 - End Time 2025-02-03 04:04:05 [2025-02-03 04:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390452', 'tblTempUsageDetail_20' ) start [2025-02-03 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390452', 'tblTempUsageDetail_20' ) end [2025-02-03 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390452', 'tblTempVendorCDR_20' ) start [2025-02-03 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390452', 'tblTempVendorCDR_20' ) end [2025-02-03 04:04:19] Production.INFO: ProcessCDR(1,14390452,1,1,2) [2025-02-03 04:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390452', 'tblTempUsageDetail_20' ) start [2025-02-03 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390452', 'tblTempUsageDetail_20' ) end [2025-02-03 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:04:22] Production.INFO: ==15932== Releasing lock... [2025-02-03 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:04:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:05:05 [end_date_ymd] => 2025-02-03 04:05:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:05:05' and `end` < '2025-02-03 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-02-03 04:05:18] Production.INFO: count ==121 [2025-02-03 04:05:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:05:05 - End Time 2025-02-03 04:05:05 [2025-02-03 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390457', 'tblTempUsageDetail_20' ) start [2025-02-03 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390457', 'tblTempUsageDetail_20' ) end [2025-02-03 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390457', 'tblTempVendorCDR_20' ) start [2025-02-03 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390457', 'tblTempVendorCDR_20' ) end [2025-02-03 04:05:18] Production.INFO: ProcessCDR(1,14390457,1,1,2) [2025-02-03 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390457', 'tblTempUsageDetail_20' ) start [2025-02-03 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390457', 'tblTempUsageDetail_20' ) end [2025-02-03 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:05:21] Production.INFO: ==16011== Releasing lock... [2025-02-03 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:06:05 [end_date_ymd] => 2025-02-03 04:06:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:06:05' and `end` < '2025-02-03 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-02-03 04:06:18] Production.INFO: count ==121 [2025-02-03 04:06:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:06:05 - End Time 2025-02-03 04:06:05 [2025-02-03 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390462', 'tblTempUsageDetail_20' ) start [2025-02-03 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390462', 'tblTempUsageDetail_20' ) end [2025-02-03 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390462', 'tblTempVendorCDR_20' ) start [2025-02-03 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390462', 'tblTempVendorCDR_20' ) end [2025-02-03 04:06:18] Production.INFO: ProcessCDR(1,14390462,1,1,2) [2025-02-03 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390462', 'tblTempUsageDetail_20' ) start [2025-02-03 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390462', 'tblTempUsageDetail_20' ) end [2025-02-03 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:06:22] Production.INFO: ==16096== Releasing lock... [2025-02-03 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:06:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:07:04 [end_date_ymd] => 2025-02-03 04:07:04 [RateCDR] => 1 ) [2025-02-03 04: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-02-03 01:07:04' and `end` < '2025-02-03 04: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-02-03 04:07:17] Production.INFO: count ==121 [2025-02-03 04:07:17] Production.ERROR: pbx CDR StartTime 2025-02-03 01:07:04 - End Time 2025-02-03 04:07:04 [2025-02-03 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390467', 'tblTempUsageDetail_20' ) start [2025-02-03 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390467', 'tblTempUsageDetail_20' ) end [2025-02-03 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390467', 'tblTempVendorCDR_20' ) start [2025-02-03 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390467', 'tblTempVendorCDR_20' ) end [2025-02-03 04:07:17] Production.INFO: ProcessCDR(1,14390467,1,1,2) [2025-02-03 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390467', 'tblTempUsageDetail_20' ) start [2025-02-03 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390467', 'tblTempUsageDetail_20' ) end [2025-02-03 04:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:07:20] Production.INFO: ==16176== Releasing lock... [2025-02-03 04:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:07:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:08:05 [end_date_ymd] => 2025-02-03 04:08:05 [RateCDR] => 1 ) [2025-02-03 04: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-02-03 01:08:05' and `end` < '2025-02-03 04: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-02-03 04:08:18] Production.INFO: count ==121 [2025-02-03 04:08:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:08:05 - End Time 2025-02-03 04:08:05 [2025-02-03 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390472', 'tblTempUsageDetail_20' ) start [2025-02-03 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390472', 'tblTempUsageDetail_20' ) end [2025-02-03 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390472', 'tblTempVendorCDR_20' ) start [2025-02-03 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390472', 'tblTempVendorCDR_20' ) end [2025-02-03 04:08:18] Production.INFO: ProcessCDR(1,14390472,1,1,2) [2025-02-03 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390472', 'tblTempUsageDetail_20' ) start [2025-02-03 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390472', 'tblTempUsageDetail_20' ) end [2025-02-03 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:08:21] Production.INFO: ==16258== Releasing lock... [2025-02-03 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:09:06 [end_date_ymd] => 2025-02-03 04:09:06 [RateCDR] => 1 ) [2025-02-03 04:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 01:09:06' and `end` < '2025-02-03 04:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 04:09:19] Production.INFO: count ==121 [2025-02-03 04:09:19] Production.ERROR: pbx CDR StartTime 2025-02-03 01:09:06 - End Time 2025-02-03 04:09:06 [2025-02-03 04:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390477', 'tblTempUsageDetail_20' ) start [2025-02-03 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390477', 'tblTempUsageDetail_20' ) end [2025-02-03 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390477', 'tblTempVendorCDR_20' ) start [2025-02-03 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390477', 'tblTempVendorCDR_20' ) end [2025-02-03 04:09:19] Production.INFO: ProcessCDR(1,14390477,1,1,2) [2025-02-03 04:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390477', 'tblTempUsageDetail_20' ) start [2025-02-03 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390477', 'tblTempUsageDetail_20' ) end [2025-02-03 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:09:22] Production.INFO: ==16343== Releasing lock... [2025-02-03 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:09:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:10:05 [end_date_ymd] => 2025-02-03 04:10:05 [RateCDR] => 1 ) [2025-02-03 04: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-02-03 01:10:05' and `end` < '2025-02-03 04: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-02-03 04:10:18] Production.INFO: count ==119 [2025-02-03 04:10:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:10:05 - End Time 2025-02-03 04:10:05 [2025-02-03 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390482', 'tblTempUsageDetail_20' ) start [2025-02-03 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390482', 'tblTempUsageDetail_20' ) end [2025-02-03 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390482', 'tblTempVendorCDR_20' ) start [2025-02-03 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390482', 'tblTempVendorCDR_20' ) end [2025-02-03 04:10:18] Production.INFO: ProcessCDR(1,14390482,1,1,2) [2025-02-03 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390482', 'tblTempUsageDetail_20' ) start [2025-02-03 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390482', 'tblTempUsageDetail_20' ) end [2025-02-03 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:10:22] Production.INFO: ==16427== Releasing lock... [2025-02-03 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:10:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:11:05 [end_date_ymd] => 2025-02-03 04:11:05 [RateCDR] => 1 ) [2025-02-03 04: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-02-03 01:11:05' and `end` < '2025-02-03 04: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-02-03 04:11:19] Production.INFO: count ==119 [2025-02-03 04:11:19] Production.ERROR: pbx CDR StartTime 2025-02-03 01:11:05 - End Time 2025-02-03 04:11:05 [2025-02-03 04:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390488', 'tblTempUsageDetail_20' ) start [2025-02-03 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390488', 'tblTempUsageDetail_20' ) end [2025-02-03 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390488', 'tblTempVendorCDR_20' ) start [2025-02-03 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390488', 'tblTempVendorCDR_20' ) end [2025-02-03 04:11:19] Production.INFO: ProcessCDR(1,14390488,1,1,2) [2025-02-03 04:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390488', 'tblTempUsageDetail_20' ) start [2025-02-03 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390488', 'tblTempUsageDetail_20' ) end [2025-02-03 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:11:22] Production.INFO: ==16555== Releasing lock... [2025-02-03 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:11:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:12:05 [end_date_ymd] => 2025-02-03 04:12:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:12:05' and `end` < '2025-02-03 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-02-03 04:12:18] Production.INFO: count ==119 [2025-02-03 04:12:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:12:05 - End Time 2025-02-03 04:12:05 [2025-02-03 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390493', 'tblTempUsageDetail_20' ) start [2025-02-03 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390493', 'tblTempUsageDetail_20' ) end [2025-02-03 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390493', 'tblTempVendorCDR_20' ) start [2025-02-03 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390493', 'tblTempVendorCDR_20' ) end [2025-02-03 04:12:18] Production.INFO: ProcessCDR(1,14390493,1,1,2) [2025-02-03 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390493', 'tblTempUsageDetail_20' ) start [2025-02-03 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390493', 'tblTempUsageDetail_20' ) end [2025-02-03 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:12:21] Production.INFO: ==16636== Releasing lock... [2025-02-03 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:12:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:13:05 [end_date_ymd] => 2025-02-03 04:13:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:13:05' and `end` < '2025-02-03 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-02-03 04:13:18] Production.INFO: count ==119 [2025-02-03 04:13:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:13:05 - End Time 2025-02-03 04:13:05 [2025-02-03 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390498', 'tblTempUsageDetail_20' ) start [2025-02-03 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390498', 'tblTempUsageDetail_20' ) end [2025-02-03 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390498', 'tblTempVendorCDR_20' ) start [2025-02-03 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390498', 'tblTempVendorCDR_20' ) end [2025-02-03 04:13:18] Production.INFO: ProcessCDR(1,14390498,1,1,2) [2025-02-03 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390498', 'tblTempUsageDetail_20' ) start [2025-02-03 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390498', 'tblTempUsageDetail_20' ) end [2025-02-03 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:13:21] Production.INFO: ==16721== Releasing lock... [2025-02-03 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:14:05 [end_date_ymd] => 2025-02-03 04:14:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:14:05' and `end` < '2025-02-03 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-02-03 04:14:18] Production.INFO: count ==119 [2025-02-03 04:14:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:14:05 - End Time 2025-02-03 04:14:05 [2025-02-03 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390503', 'tblTempUsageDetail_20' ) start [2025-02-03 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390503', 'tblTempUsageDetail_20' ) end [2025-02-03 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390503', 'tblTempVendorCDR_20' ) start [2025-02-03 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390503', 'tblTempVendorCDR_20' ) end [2025-02-03 04:14:18] Production.INFO: ProcessCDR(1,14390503,1,1,2) [2025-02-03 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390503', 'tblTempUsageDetail_20' ) start [2025-02-03 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390503', 'tblTempUsageDetail_20' ) end [2025-02-03 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:14:21] Production.INFO: ==16805== Releasing lock... [2025-02-03 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:14:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:15:05 [end_date_ymd] => 2025-02-03 04:15:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:15:05' and `end` < '2025-02-03 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-02-03 04:15:18] Production.INFO: count ==119 [2025-02-03 04:15:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:15:05 - End Time 2025-02-03 04:15:05 [2025-02-03 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390508', 'tblTempUsageDetail_20' ) start [2025-02-03 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390508', 'tblTempUsageDetail_20' ) end [2025-02-03 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390508', 'tblTempVendorCDR_20' ) start [2025-02-03 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390508', 'tblTempVendorCDR_20' ) end [2025-02-03 04:15:18] Production.INFO: ProcessCDR(1,14390508,1,1,2) [2025-02-03 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390508', 'tblTempUsageDetail_20' ) start [2025-02-03 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390508', 'tblTempUsageDetail_20' ) end [2025-02-03 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:15:21] Production.INFO: ==16894== Releasing lock... [2025-02-03 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:16:04 [end_date_ymd] => 2025-02-03 04:16:04 [RateCDR] => 1 ) [2025-02-03 04: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-02-03 01:16:04' and `end` < '2025-02-03 04: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-02-03 04:16:17] Production.INFO: count ==119 [2025-02-03 04:16:17] Production.ERROR: pbx CDR StartTime 2025-02-03 01:16:04 - End Time 2025-02-03 04:16:04 [2025-02-03 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390513', 'tblTempUsageDetail_20' ) start [2025-02-03 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390513', 'tblTempUsageDetail_20' ) end [2025-02-03 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390513', 'tblTempVendorCDR_20' ) start [2025-02-03 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390513', 'tblTempVendorCDR_20' ) end [2025-02-03 04:16:17] Production.INFO: ProcessCDR(1,14390513,1,1,2) [2025-02-03 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390513', 'tblTempUsageDetail_20' ) start [2025-02-03 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390513', 'tblTempUsageDetail_20' ) end [2025-02-03 04:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:16:20] Production.INFO: ==16977== Releasing lock... [2025-02-03 04:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:16:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:17:05 [end_date_ymd] => 2025-02-03 04:17:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:17:05' and `end` < '2025-02-03 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-02-03 04:17:19] Production.INFO: count ==118 [2025-02-03 04:17:19] Production.ERROR: pbx CDR StartTime 2025-02-03 01:17:05 - End Time 2025-02-03 04:17:05 [2025-02-03 04:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390518', 'tblTempUsageDetail_20' ) start [2025-02-03 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390518', 'tblTempUsageDetail_20' ) end [2025-02-03 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390518', 'tblTempVendorCDR_20' ) start [2025-02-03 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390518', 'tblTempVendorCDR_20' ) end [2025-02-03 04:17:19] Production.INFO: ProcessCDR(1,14390518,1,1,2) [2025-02-03 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390518', 'tblTempUsageDetail_20' ) start [2025-02-03 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390518', 'tblTempUsageDetail_20' ) end [2025-02-03 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:17:21] Production.INFO: ==17055== Releasing lock... [2025-02-03 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:18:06 [end_date_ymd] => 2025-02-03 04:18:06 [RateCDR] => 1 ) [2025-02-03 04: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-02-03 01:18:06' and `end` < '2025-02-03 04: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-02-03 04:18:19] Production.INFO: count ==118 [2025-02-03 04:18:19] Production.ERROR: pbx CDR StartTime 2025-02-03 01:18:06 - End Time 2025-02-03 04:18:06 [2025-02-03 04:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390523', 'tblTempUsageDetail_20' ) start [2025-02-03 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390523', 'tblTempUsageDetail_20' ) end [2025-02-03 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390523', 'tblTempVendorCDR_20' ) start [2025-02-03 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390523', 'tblTempVendorCDR_20' ) end [2025-02-03 04:18:19] Production.INFO: ProcessCDR(1,14390523,1,1,2) [2025-02-03 04:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390523', 'tblTempUsageDetail_20' ) start [2025-02-03 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390523', 'tblTempUsageDetail_20' ) end [2025-02-03 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:18:22] Production.INFO: ==17148== Releasing lock... [2025-02-03 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:18:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:19:05 [end_date_ymd] => 2025-02-03 04:19:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:19:05' and `end` < '2025-02-03 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-02-03 04:19:18] Production.INFO: count ==118 [2025-02-03 04:19:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:19:05 - End Time 2025-02-03 04:19:05 [2025-02-03 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390528', 'tblTempUsageDetail_20' ) start [2025-02-03 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390528', 'tblTempUsageDetail_20' ) end [2025-02-03 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390528', 'tblTempVendorCDR_20' ) start [2025-02-03 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390528', 'tblTempVendorCDR_20' ) end [2025-02-03 04:19:18] Production.INFO: ProcessCDR(1,14390528,1,1,2) [2025-02-03 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390528', 'tblTempUsageDetail_20' ) start [2025-02-03 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390528', 'tblTempUsageDetail_20' ) end [2025-02-03 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:19:21] Production.INFO: ==17238== Releasing lock... [2025-02-03 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:19:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:20:06 [end_date_ymd] => 2025-02-03 04:20:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:20:06' and `end` < '2025-02-03 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-02-03 04:20:18] Production.INFO: count ==113 [2025-02-03 04:20:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:20:06 - End Time 2025-02-03 04:20:06 [2025-02-03 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390534', 'tblTempUsageDetail_20' ) start [2025-02-03 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390534', 'tblTempUsageDetail_20' ) end [2025-02-03 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390534', 'tblTempVendorCDR_20' ) start [2025-02-03 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390534', 'tblTempVendorCDR_20' ) end [2025-02-03 04:20:18] Production.INFO: ProcessCDR(1,14390534,1,1,2) [2025-02-03 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390534', 'tblTempUsageDetail_20' ) start [2025-02-03 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390534', 'tblTempUsageDetail_20' ) end [2025-02-03 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:20:21] Production.INFO: ==17319== Releasing lock... [2025-02-03 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:20:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:21:05 [end_date_ymd] => 2025-02-03 04:21:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:21:05' and `end` < '2025-02-03 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-02-03 04:21:18] Production.INFO: count ==111 [2025-02-03 04:21:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:21:05 - End Time 2025-02-03 04:21:05 [2025-02-03 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390539', 'tblTempUsageDetail_20' ) start [2025-02-03 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390539', 'tblTempUsageDetail_20' ) end [2025-02-03 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390539', 'tblTempVendorCDR_20' ) start [2025-02-03 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390539', 'tblTempVendorCDR_20' ) end [2025-02-03 04:21:18] Production.INFO: ProcessCDR(1,14390539,1,1,2) [2025-02-03 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390539', 'tblTempUsageDetail_20' ) start [2025-02-03 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390539', 'tblTempUsageDetail_20' ) end [2025-02-03 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:21:21] Production.INFO: ==17404== Releasing lock... [2025-02-03 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:21:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:22:05 [end_date_ymd] => 2025-02-03 04:22:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:22:05' and `end` < '2025-02-03 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-02-03 04:22:19] Production.INFO: count ==110 [2025-02-03 04:22:19] Production.ERROR: pbx CDR StartTime 2025-02-03 01:22:05 - End Time 2025-02-03 04:22:05 [2025-02-03 04:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390544', 'tblTempUsageDetail_20' ) start [2025-02-03 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390544', 'tblTempUsageDetail_20' ) end [2025-02-03 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390544', 'tblTempVendorCDR_20' ) start [2025-02-03 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390544', 'tblTempVendorCDR_20' ) end [2025-02-03 04:22:19] Production.INFO: ProcessCDR(1,14390544,1,1,2) [2025-02-03 04:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390544', 'tblTempUsageDetail_20' ) start [2025-02-03 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390544', 'tblTempUsageDetail_20' ) end [2025-02-03 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:22:22] Production.INFO: ==17487== Releasing lock... [2025-02-03 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:22:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:23:05 [end_date_ymd] => 2025-02-03 04:23:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:23:05' and `end` < '2025-02-03 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-02-03 04:23:17] Production.INFO: count ==110 [2025-02-03 04:23:17] Production.ERROR: pbx CDR StartTime 2025-02-03 01:23:05 - End Time 2025-02-03 04:23:05 [2025-02-03 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390549', 'tblTempUsageDetail_20' ) start [2025-02-03 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390549', 'tblTempUsageDetail_20' ) end [2025-02-03 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390549', 'tblTempVendorCDR_20' ) start [2025-02-03 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390549', 'tblTempVendorCDR_20' ) end [2025-02-03 04:23:17] Production.INFO: ProcessCDR(1,14390549,1,1,2) [2025-02-03 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390549', 'tblTempUsageDetail_20' ) start [2025-02-03 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390549', 'tblTempUsageDetail_20' ) end [2025-02-03 04:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:23:20] Production.INFO: ==17564== Releasing lock... [2025-02-03 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:23:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:24:05 [end_date_ymd] => 2025-02-03 04:24:05 [RateCDR] => 1 ) [2025-02-03 04: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-02-03 01:24:05' and `end` < '2025-02-03 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-02-03 04:24:19] Production.INFO: count ==110 [2025-02-03 04:24:19] Production.ERROR: pbx CDR StartTime 2025-02-03 01:24:05 - End Time 2025-02-03 04:24:05 [2025-02-03 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390554', 'tblTempUsageDetail_20' ) start [2025-02-03 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390554', 'tblTempUsageDetail_20' ) end [2025-02-03 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390554', 'tblTempVendorCDR_20' ) start [2025-02-03 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390554', 'tblTempVendorCDR_20' ) end [2025-02-03 04:24:19] Production.INFO: ProcessCDR(1,14390554,1,1,2) [2025-02-03 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390554', 'tblTempUsageDetail_20' ) start [2025-02-03 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390554', 'tblTempUsageDetail_20' ) end [2025-02-03 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:24:22] Production.INFO: ==17646== Releasing lock... [2025-02-03 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:24:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:25:05 [end_date_ymd] => 2025-02-03 04:25:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:25:05' and `end` < '2025-02-03 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-02-03 04:25:17] Production.INFO: count ==110 [2025-02-03 04:25:17] Production.ERROR: pbx CDR StartTime 2025-02-03 01:25:05 - End Time 2025-02-03 04:25:05 [2025-02-03 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390559', 'tblTempUsageDetail_20' ) start [2025-02-03 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390559', 'tblTempUsageDetail_20' ) end [2025-02-03 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390559', 'tblTempVendorCDR_20' ) start [2025-02-03 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390559', 'tblTempVendorCDR_20' ) end [2025-02-03 04:25:17] Production.INFO: ProcessCDR(1,14390559,1,1,2) [2025-02-03 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390559', 'tblTempUsageDetail_20' ) start [2025-02-03 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390559', 'tblTempUsageDetail_20' ) end [2025-02-03 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:25:20] Production.INFO: ==17732== Releasing lock... [2025-02-03 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:25:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:26:05 [end_date_ymd] => 2025-02-03 04:26:05 [RateCDR] => 1 ) [2025-02-03 04: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-02-03 01:26:05' and `end` < '2025-02-03 04: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-02-03 04:26:18] Production.INFO: count ==110 [2025-02-03 04:26:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:26:05 - End Time 2025-02-03 04:26:05 [2025-02-03 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390564', 'tblTempUsageDetail_20' ) start [2025-02-03 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390564', 'tblTempUsageDetail_20' ) end [2025-02-03 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390564', 'tblTempVendorCDR_20' ) start [2025-02-03 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390564', 'tblTempVendorCDR_20' ) end [2025-02-03 04:26:18] Production.INFO: ProcessCDR(1,14390564,1,1,2) [2025-02-03 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390564', 'tblTempUsageDetail_20' ) start [2025-02-03 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390564', 'tblTempUsageDetail_20' ) end [2025-02-03 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:26:21] Production.INFO: ==17859== Releasing lock... [2025-02-03 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:27:05 [end_date_ymd] => 2025-02-03 04:27:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:27:05' and `end` < '2025-02-03 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-02-03 04:27:18] Production.INFO: count ==110 [2025-02-03 04:27:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:27:05 - End Time 2025-02-03 04:27:05 [2025-02-03 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390569', 'tblTempUsageDetail_20' ) start [2025-02-03 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390569', 'tblTempUsageDetail_20' ) end [2025-02-03 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390569', 'tblTempVendorCDR_20' ) start [2025-02-03 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390569', 'tblTempVendorCDR_20' ) end [2025-02-03 04:27:18] Production.INFO: ProcessCDR(1,14390569,1,1,2) [2025-02-03 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390569', 'tblTempUsageDetail_20' ) start [2025-02-03 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390569', 'tblTempUsageDetail_20' ) end [2025-02-03 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:27:21] Production.INFO: ==17939== Releasing lock... [2025-02-03 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:28:05 [end_date_ymd] => 2025-02-03 04:28:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:28:05' and `end` < '2025-02-03 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-02-03 04:28:18] Production.INFO: count ==110 [2025-02-03 04:28:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:28:05 - End Time 2025-02-03 04:28:05 [2025-02-03 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390574', 'tblTempUsageDetail_20' ) start [2025-02-03 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390574', 'tblTempUsageDetail_20' ) end [2025-02-03 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390574', 'tblTempVendorCDR_20' ) start [2025-02-03 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390574', 'tblTempVendorCDR_20' ) end [2025-02-03 04:28:18] Production.INFO: ProcessCDR(1,14390574,1,1,2) [2025-02-03 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390574', 'tblTempUsageDetail_20' ) start [2025-02-03 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390574', 'tblTempUsageDetail_20' ) end [2025-02-03 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:28:21] Production.INFO: ==18022== Releasing lock... [2025-02-03 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:29:05 [end_date_ymd] => 2025-02-03 04:29:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:29:05' and `end` < '2025-02-03 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-02-03 04:29:18] Production.INFO: count ==110 [2025-02-03 04:29:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:29:05 - End Time 2025-02-03 04:29:05 [2025-02-03 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390579', 'tblTempUsageDetail_20' ) start [2025-02-03 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390579', 'tblTempUsageDetail_20' ) end [2025-02-03 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390579', 'tblTempVendorCDR_20' ) start [2025-02-03 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390579', 'tblTempVendorCDR_20' ) end [2025-02-03 04:29:18] Production.INFO: ProcessCDR(1,14390579,1,1,2) [2025-02-03 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390579', 'tblTempUsageDetail_20' ) start [2025-02-03 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390579', 'tblTempUsageDetail_20' ) end [2025-02-03 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:29:21] Production.INFO: ==18107== Releasing lock... [2025-02-03 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:30:05 [end_date_ymd] => 2025-02-03 04:30:05 [RateCDR] => 1 ) [2025-02-03 04: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-02-03 01:30:05' and `end` < '2025-02-03 04: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-02-03 04:30:18] Production.INFO: count ==112 [2025-02-03 04:30:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:30:05 - End Time 2025-02-03 04:30:05 [2025-02-03 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390584', 'tblTempUsageDetail_20' ) start [2025-02-03 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390584', 'tblTempUsageDetail_20' ) end [2025-02-03 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390584', 'tblTempVendorCDR_20' ) start [2025-02-03 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390584', 'tblTempVendorCDR_20' ) end [2025-02-03 04:30:18] Production.INFO: ProcessCDR(1,14390584,1,1,2) [2025-02-03 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390584', 'tblTempUsageDetail_20' ) start [2025-02-03 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390584', 'tblTempUsageDetail_20' ) end [2025-02-03 04:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:30:21] Production.INFO: ==18193== Releasing lock... [2025-02-03 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:30:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:31:06 [end_date_ymd] => 2025-02-03 04:31:06 [RateCDR] => 1 ) [2025-02-03 04: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-02-03 01:31:06' and `end` < '2025-02-03 04: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-02-03 04:31:19] Production.INFO: count ==113 [2025-02-03 04:31:19] Production.ERROR: pbx CDR StartTime 2025-02-03 01:31:06 - End Time 2025-02-03 04:31:06 [2025-02-03 04:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390591', 'tblTempUsageDetail_20' ) start [2025-02-03 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390591', 'tblTempUsageDetail_20' ) end [2025-02-03 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390591', 'tblTempVendorCDR_20' ) start [2025-02-03 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390591', 'tblTempVendorCDR_20' ) end [2025-02-03 04:31:19] Production.INFO: ProcessCDR(1,14390591,1,1,2) [2025-02-03 04:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390591', 'tblTempUsageDetail_20' ) start [2025-02-03 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390591', 'tblTempUsageDetail_20' ) end [2025-02-03 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:31:22] Production.INFO: ==18281== Releasing lock... [2025-02-03 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:31:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:32:05 [end_date_ymd] => 2025-02-03 04:32:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:32:05' and `end` < '2025-02-03 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-02-03 04:32:17] Production.INFO: count ==112 [2025-02-03 04:32:17] Production.ERROR: pbx CDR StartTime 2025-02-03 01:32:05 - End Time 2025-02-03 04:32:05 [2025-02-03 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390596', 'tblTempUsageDetail_20' ) start [2025-02-03 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390596', 'tblTempUsageDetail_20' ) end [2025-02-03 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390596', 'tblTempVendorCDR_20' ) start [2025-02-03 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390596', 'tblTempVendorCDR_20' ) end [2025-02-03 04:32:17] Production.INFO: ProcessCDR(1,14390596,1,1,2) [2025-02-03 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390596', 'tblTempUsageDetail_20' ) start [2025-02-03 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390596', 'tblTempUsageDetail_20' ) end [2025-02-03 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:32:21] Production.INFO: ==18391== Releasing lock... [2025-02-03 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:33:06 [end_date_ymd] => 2025-02-03 04:33:06 [RateCDR] => 1 ) [2025-02-03 04: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-02-03 01:33:06' and `end` < '2025-02-03 04: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-02-03 04:33:19] Production.INFO: count ==111 [2025-02-03 04:33:19] Production.ERROR: pbx CDR StartTime 2025-02-03 01:33:06 - End Time 2025-02-03 04:33:06 [2025-02-03 04:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390601', 'tblTempUsageDetail_20' ) start [2025-02-03 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390601', 'tblTempUsageDetail_20' ) end [2025-02-03 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390601', 'tblTempVendorCDR_20' ) start [2025-02-03 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390601', 'tblTempVendorCDR_20' ) end [2025-02-03 04:33:19] Production.INFO: ProcessCDR(1,14390601,1,1,2) [2025-02-03 04:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390601', 'tblTempUsageDetail_20' ) start [2025-02-03 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390601', 'tblTempUsageDetail_20' ) end [2025-02-03 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:33:22] Production.INFO: ==18479== Releasing lock... [2025-02-03 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:33:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:34:05 [end_date_ymd] => 2025-02-03 04:34:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:34:05' and `end` < '2025-02-03 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-02-03 04:34:19] Production.INFO: count ==111 [2025-02-03 04:34:19] Production.ERROR: pbx CDR StartTime 2025-02-03 01:34:05 - End Time 2025-02-03 04:34:05 [2025-02-03 04:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390606', 'tblTempUsageDetail_20' ) start [2025-02-03 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390606', 'tblTempUsageDetail_20' ) end [2025-02-03 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390606', 'tblTempVendorCDR_20' ) start [2025-02-03 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390606', 'tblTempVendorCDR_20' ) end [2025-02-03 04:34:19] Production.INFO: ProcessCDR(1,14390606,1,1,2) [2025-02-03 04:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390606', 'tblTempUsageDetail_20' ) start [2025-02-03 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390606', 'tblTempUsageDetail_20' ) end [2025-02-03 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:34:22] Production.INFO: ==18569== Releasing lock... [2025-02-03 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:34:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:35:05 [end_date_ymd] => 2025-02-03 04:35:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:35:05' and `end` < '2025-02-03 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-02-03 04:35:17] Production.INFO: count ==111 [2025-02-03 04:35:17] Production.ERROR: pbx CDR StartTime 2025-02-03 01:35:05 - End Time 2025-02-03 04:35:05 [2025-02-03 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390611', 'tblTempUsageDetail_20' ) start [2025-02-03 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390611', 'tblTempUsageDetail_20' ) end [2025-02-03 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390611', 'tblTempVendorCDR_20' ) start [2025-02-03 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390611', 'tblTempVendorCDR_20' ) end [2025-02-03 04:35:17] Production.INFO: ProcessCDR(1,14390611,1,1,2) [2025-02-03 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390611', 'tblTempUsageDetail_20' ) start [2025-02-03 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390611', 'tblTempUsageDetail_20' ) end [2025-02-03 04:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:35:20] Production.INFO: ==18652== Releasing lock... [2025-02-03 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:35:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:36:05 [end_date_ymd] => 2025-02-03 04:36:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:36:05' and `end` < '2025-02-03 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-02-03 04:36:18] Production.INFO: count ==111 [2025-02-03 04:36:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:36:05 - End Time 2025-02-03 04:36:05 [2025-02-03 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390616', 'tblTempUsageDetail_20' ) start [2025-02-03 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390616', 'tblTempUsageDetail_20' ) end [2025-02-03 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390616', 'tblTempVendorCDR_20' ) start [2025-02-03 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390616', 'tblTempVendorCDR_20' ) end [2025-02-03 04:36:18] Production.INFO: ProcessCDR(1,14390616,1,1,2) [2025-02-03 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390616', 'tblTempUsageDetail_20' ) start [2025-02-03 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390616', 'tblTempUsageDetail_20' ) end [2025-02-03 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:36:21] Production.INFO: ==18738== Releasing lock... [2025-02-03 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:37:05 [end_date_ymd] => 2025-02-03 04:37:05 [RateCDR] => 1 ) [2025-02-03 04: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-02-03 01:37:05' and `end` < '2025-02-03 04: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-02-03 04:37:18] Production.INFO: count ==111 [2025-02-03 04:37:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:37:05 - End Time 2025-02-03 04:37:05 [2025-02-03 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390621', 'tblTempUsageDetail_20' ) start [2025-02-03 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390621', 'tblTempUsageDetail_20' ) end [2025-02-03 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390621', 'tblTempVendorCDR_20' ) start [2025-02-03 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390621', 'tblTempVendorCDR_20' ) end [2025-02-03 04:37:18] Production.INFO: ProcessCDR(1,14390621,1,1,2) [2025-02-03 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390621', 'tblTempUsageDetail_20' ) start [2025-02-03 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390621', 'tblTempUsageDetail_20' ) end [2025-02-03 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:37:21] Production.INFO: ==18829== Releasing lock... [2025-02-03 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:38:06 [end_date_ymd] => 2025-02-03 04:38:06 [RateCDR] => 1 ) [2025-02-03 04: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-02-03 01:38:06' and `end` < '2025-02-03 04: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-02-03 04:38:19] Production.INFO: count ==111 [2025-02-03 04:38:19] Production.ERROR: pbx CDR StartTime 2025-02-03 01:38:06 - End Time 2025-02-03 04:38:06 [2025-02-03 04:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390626', 'tblTempUsageDetail_20' ) start [2025-02-03 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390626', 'tblTempUsageDetail_20' ) end [2025-02-03 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390626', 'tblTempVendorCDR_20' ) start [2025-02-03 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390626', 'tblTempVendorCDR_20' ) end [2025-02-03 04:38:19] Production.INFO: ProcessCDR(1,14390626,1,1,2) [2025-02-03 04:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390626', 'tblTempUsageDetail_20' ) start [2025-02-03 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390626', 'tblTempUsageDetail_20' ) end [2025-02-03 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:38:22] Production.INFO: ==18914== Releasing lock... [2025-02-03 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:38:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:39:05 [end_date_ymd] => 2025-02-03 04:39:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:39:05' and `end` < '2025-02-03 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-02-03 04:39:18] Production.INFO: count ==111 [2025-02-03 04:39:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:39:05 - End Time 2025-02-03 04:39:05 [2025-02-03 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390631', 'tblTempUsageDetail_20' ) start [2025-02-03 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390631', 'tblTempUsageDetail_20' ) end [2025-02-03 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390631', 'tblTempVendorCDR_20' ) start [2025-02-03 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390631', 'tblTempVendorCDR_20' ) end [2025-02-03 04:39:18] Production.INFO: ProcessCDR(1,14390631,1,1,2) [2025-02-03 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390631', 'tblTempUsageDetail_20' ) start [2025-02-03 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390631', 'tblTempUsageDetail_20' ) end [2025-02-03 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:39:21] Production.INFO: ==18998== Releasing lock... [2025-02-03 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:40:06 [end_date_ymd] => 2025-02-03 04:40:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:40:06' and `end` < '2025-02-03 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-02-03 04:40:19] Production.INFO: count ==111 [2025-02-03 04:40:19] Production.ERROR: pbx CDR StartTime 2025-02-03 01:40:06 - End Time 2025-02-03 04:40:06 [2025-02-03 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390636', 'tblTempUsageDetail_20' ) start [2025-02-03 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390636', 'tblTempUsageDetail_20' ) end [2025-02-03 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390636', 'tblTempVendorCDR_20' ) start [2025-02-03 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390636', 'tblTempVendorCDR_20' ) end [2025-02-03 04:40:19] Production.INFO: ProcessCDR(1,14390636,1,1,2) [2025-02-03 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390636', 'tblTempUsageDetail_20' ) start [2025-02-03 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390636', 'tblTempUsageDetail_20' ) end [2025-02-03 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:40:22] Production.INFO: ==19088== Releasing lock... [2025-02-03 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:41:05 [end_date_ymd] => 2025-02-03 04:41:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:41:05' and `end` < '2025-02-03 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-02-03 04:41:18] Production.INFO: count ==111 [2025-02-03 04:41:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:41:05 - End Time 2025-02-03 04:41:05 [2025-02-03 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390642', 'tblTempUsageDetail_20' ) start [2025-02-03 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390642', 'tblTempUsageDetail_20' ) end [2025-02-03 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390642', 'tblTempVendorCDR_20' ) start [2025-02-03 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390642', 'tblTempVendorCDR_20' ) end [2025-02-03 04:41:18] Production.INFO: ProcessCDR(1,14390642,1,1,2) [2025-02-03 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390642', 'tblTempUsageDetail_20' ) start [2025-02-03 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390642', 'tblTempUsageDetail_20' ) end [2025-02-03 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:41:21] Production.INFO: ==19172== Releasing lock... [2025-02-03 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:42:05 [end_date_ymd] => 2025-02-03 04:42:05 [RateCDR] => 1 ) [2025-02-03 04: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-02-03 01:42:05' and `end` < '2025-02-03 04: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-02-03 04:42:18] Production.INFO: count ==111 [2025-02-03 04:42:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:42:05 - End Time 2025-02-03 04:42:05 [2025-02-03 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390647', 'tblTempUsageDetail_20' ) start [2025-02-03 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390647', 'tblTempUsageDetail_20' ) end [2025-02-03 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390647', 'tblTempVendorCDR_20' ) start [2025-02-03 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390647', 'tblTempVendorCDR_20' ) end [2025-02-03 04:42:18] Production.INFO: ProcessCDR(1,14390647,1,1,2) [2025-02-03 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390647', 'tblTempUsageDetail_20' ) start [2025-02-03 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390647', 'tblTempUsageDetail_20' ) end [2025-02-03 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:42:22] Production.INFO: ==19293== Releasing lock... [2025-02-03 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:42:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:43:05 [end_date_ymd] => 2025-02-03 04:43:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:43:05' and `end` < '2025-02-03 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-02-03 04:43:18] Production.INFO: count ==111 [2025-02-03 04:43:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:43:05 - End Time 2025-02-03 04:43:05 [2025-02-03 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390652', 'tblTempUsageDetail_20' ) start [2025-02-03 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390652', 'tblTempUsageDetail_20' ) end [2025-02-03 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390652', 'tblTempVendorCDR_20' ) start [2025-02-03 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390652', 'tblTempVendorCDR_20' ) end [2025-02-03 04:43:18] Production.INFO: ProcessCDR(1,14390652,1,1,2) [2025-02-03 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390652', 'tblTempUsageDetail_20' ) start [2025-02-03 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390652', 'tblTempUsageDetail_20' ) end [2025-02-03 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:43:21] Production.INFO: ==19380== Releasing lock... [2025-02-03 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:44:05 [end_date_ymd] => 2025-02-03 04:44:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:44:05' and `end` < '2025-02-03 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-02-03 04:44:18] Production.INFO: count ==111 [2025-02-03 04:44:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:44:05 - End Time 2025-02-03 04:44:05 [2025-02-03 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390657', 'tblTempUsageDetail_20' ) start [2025-02-03 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390657', 'tblTempUsageDetail_20' ) end [2025-02-03 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390657', 'tblTempVendorCDR_20' ) start [2025-02-03 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390657', 'tblTempVendorCDR_20' ) end [2025-02-03 04:44:18] Production.INFO: ProcessCDR(1,14390657,1,1,2) [2025-02-03 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390657', 'tblTempUsageDetail_20' ) start [2025-02-03 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390657', 'tblTempUsageDetail_20' ) end [2025-02-03 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:44:22] Production.INFO: ==19463== Releasing lock... [2025-02-03 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:44:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:45:04 [end_date_ymd] => 2025-02-03 04:45:04 [RateCDR] => 1 ) [2025-02-03 04: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-02-03 01:45:04' and `end` < '2025-02-03 04: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-02-03 04:45:18] Production.INFO: count ==111 [2025-02-03 04:45:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:45:04 - End Time 2025-02-03 04:45:04 [2025-02-03 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390662', 'tblTempUsageDetail_20' ) start [2025-02-03 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390662', 'tblTempUsageDetail_20' ) end [2025-02-03 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390662', 'tblTempVendorCDR_20' ) start [2025-02-03 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390662', 'tblTempVendorCDR_20' ) end [2025-02-03 04:45:18] Production.INFO: ProcessCDR(1,14390662,1,1,2) [2025-02-03 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390662', 'tblTempUsageDetail_20' ) start [2025-02-03 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390662', 'tblTempUsageDetail_20' ) end [2025-02-03 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:45:21] Production.INFO: ==19545== Releasing lock... [2025-02-03 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:46:05 [end_date_ymd] => 2025-02-03 04:46:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:46:05' and `end` < '2025-02-03 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-02-03 04:46:20] Production.INFO: count ==111 [2025-02-03 04:46:20] Production.ERROR: pbx CDR StartTime 2025-02-03 01:46:05 - End Time 2025-02-03 04:46:05 [2025-02-03 04:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390667', 'tblTempUsageDetail_20' ) start [2025-02-03 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390667', 'tblTempUsageDetail_20' ) end [2025-02-03 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390667', 'tblTempVendorCDR_20' ) start [2025-02-03 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390667', 'tblTempVendorCDR_20' ) end [2025-02-03 04:46:20] Production.INFO: ProcessCDR(1,14390667,1,1,2) [2025-02-03 04:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390667', 'tblTempUsageDetail_20' ) start [2025-02-03 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390667', 'tblTempUsageDetail_20' ) end [2025-02-03 04:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:46:23] Production.INFO: ==19630== Releasing lock... [2025-02-03 04:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:46:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:47:05 [end_date_ymd] => 2025-02-03 04:47:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:47:05' and `end` < '2025-02-03 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-02-03 04:47:19] Production.INFO: count ==111 [2025-02-03 04:47:19] Production.ERROR: pbx CDR StartTime 2025-02-03 01:47:05 - End Time 2025-02-03 04:47:05 [2025-02-03 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390672', 'tblTempUsageDetail_20' ) start [2025-02-03 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390672', 'tblTempUsageDetail_20' ) end [2025-02-03 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390672', 'tblTempVendorCDR_20' ) start [2025-02-03 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390672', 'tblTempVendorCDR_20' ) end [2025-02-03 04:47:19] Production.INFO: ProcessCDR(1,14390672,1,1,2) [2025-02-03 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390672', 'tblTempUsageDetail_20' ) start [2025-02-03 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390672', 'tblTempUsageDetail_20' ) end [2025-02-03 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:47:22] Production.INFO: ==19710== Releasing lock... [2025-02-03 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:47:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:48:05 [end_date_ymd] => 2025-02-03 04:48:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:48:05' and `end` < '2025-02-03 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-02-03 04:48:19] Production.INFO: count ==111 [2025-02-03 04:48:19] Production.ERROR: pbx CDR StartTime 2025-02-03 01:48:05 - End Time 2025-02-03 04:48:05 [2025-02-03 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390677', 'tblTempUsageDetail_20' ) start [2025-02-03 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390677', 'tblTempUsageDetail_20' ) end [2025-02-03 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390677', 'tblTempVendorCDR_20' ) start [2025-02-03 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390677', 'tblTempVendorCDR_20' ) end [2025-02-03 04:48:19] Production.INFO: ProcessCDR(1,14390677,1,1,2) [2025-02-03 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390677', 'tblTempUsageDetail_20' ) start [2025-02-03 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390677', 'tblTempUsageDetail_20' ) end [2025-02-03 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:48:22] Production.INFO: ==19798== Releasing lock... [2025-02-03 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:48:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:49:05 [end_date_ymd] => 2025-02-03 04:49:05 [RateCDR] => 1 ) [2025-02-03 04: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-02-03 01:49:05' and `end` < '2025-02-03 04: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-02-03 04:49:18] Production.INFO: count ==111 [2025-02-03 04:49:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:49:05 - End Time 2025-02-03 04:49:05 [2025-02-03 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390682', 'tblTempUsageDetail_20' ) start [2025-02-03 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390682', 'tblTempUsageDetail_20' ) end [2025-02-03 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390682', 'tblTempVendorCDR_20' ) start [2025-02-03 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390682', 'tblTempVendorCDR_20' ) end [2025-02-03 04:49:18] Production.INFO: ProcessCDR(1,14390682,1,1,2) [2025-02-03 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390682', 'tblTempUsageDetail_20' ) start [2025-02-03 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390682', 'tblTempUsageDetail_20' ) end [2025-02-03 04:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:49:21] Production.INFO: ==19886== Releasing lock... [2025-02-03 04:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:50:05 [end_date_ymd] => 2025-02-03 04:50:05 [RateCDR] => 1 ) [2025-02-03 04: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-02-03 01:50:05' and `end` < '2025-02-03 04: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-02-03 04:50:19] Production.INFO: count ==107 [2025-02-03 04:50:19] Production.ERROR: pbx CDR StartTime 2025-02-03 01:50:05 - End Time 2025-02-03 04:50:05 [2025-02-03 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390688', 'tblTempUsageDetail_20' ) start [2025-02-03 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390688', 'tblTempUsageDetail_20' ) end [2025-02-03 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390688', 'tblTempVendorCDR_20' ) start [2025-02-03 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390688', 'tblTempVendorCDR_20' ) end [2025-02-03 04:50:19] Production.INFO: ProcessCDR(1,14390688,1,1,2) [2025-02-03 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390688', 'tblTempUsageDetail_20' ) start [2025-02-03 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390688', 'tblTempUsageDetail_20' ) end [2025-02-03 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:50:22] Production.INFO: ==19974== Releasing lock... [2025-02-03 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:51:05 [end_date_ymd] => 2025-02-03 04:51:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:51:05' and `end` < '2025-02-03 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-02-03 04:51:18] Production.INFO: count ==96 [2025-02-03 04:51:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:51:05 - End Time 2025-02-03 04:51:05 [2025-02-03 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390693', 'tblTempUsageDetail_20' ) start [2025-02-03 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390693', 'tblTempUsageDetail_20' ) end [2025-02-03 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390693', 'tblTempVendorCDR_20' ) start [2025-02-03 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390693', 'tblTempVendorCDR_20' ) end [2025-02-03 04:51:18] Production.INFO: ProcessCDR(1,14390693,1,1,2) [2025-02-03 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390693', 'tblTempUsageDetail_20' ) start [2025-02-03 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390693', 'tblTempUsageDetail_20' ) end [2025-02-03 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:51:21] Production.INFO: ==20061== Releasing lock... [2025-02-03 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:52:05 [end_date_ymd] => 2025-02-03 04:52:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:52:05' and `end` < '2025-02-03 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-02-03 04:52:18] Production.INFO: count ==95 [2025-02-03 04:52:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:52:05 - End Time 2025-02-03 04:52:05 [2025-02-03 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390698', 'tblTempUsageDetail_20' ) start [2025-02-03 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390698', 'tblTempUsageDetail_20' ) end [2025-02-03 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390698', 'tblTempVendorCDR_20' ) start [2025-02-03 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390698', 'tblTempVendorCDR_20' ) end [2025-02-03 04:52:18] Production.INFO: ProcessCDR(1,14390698,1,1,2) [2025-02-03 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390698', 'tblTempUsageDetail_20' ) start [2025-02-03 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390698', 'tblTempUsageDetail_20' ) end [2025-02-03 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:52:21] Production.INFO: ==20149== Releasing lock... [2025-02-03 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:52:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:53:05 [end_date_ymd] => 2025-02-03 04:53:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:53:05' and `end` < '2025-02-03 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-02-03 04:53:18] Production.INFO: count ==94 [2025-02-03 04:53:18] Production.ERROR: pbx CDR StartTime 2025-02-03 01:53:05 - End Time 2025-02-03 04:53:05 [2025-02-03 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390703', 'tblTempUsageDetail_20' ) start [2025-02-03 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390703', 'tblTempUsageDetail_20' ) end [2025-02-03 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390703', 'tblTempVendorCDR_20' ) start [2025-02-03 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390703', 'tblTempVendorCDR_20' ) end [2025-02-03 04:53:18] Production.INFO: ProcessCDR(1,14390703,1,1,2) [2025-02-03 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390703', 'tblTempUsageDetail_20' ) start [2025-02-03 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390703', 'tblTempUsageDetail_20' ) end [2025-02-03 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:53:21] Production.INFO: ==20233== Releasing lock... [2025-02-03 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:53:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:54:05 [end_date_ymd] => 2025-02-03 04:54:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:54:05' and `end` < '2025-02-03 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-02-03 04:54:19] Production.INFO: count ==94 [2025-02-03 04:54:19] Production.ERROR: pbx CDR StartTime 2025-02-03 01:54:05 - End Time 2025-02-03 04:54:05 [2025-02-03 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390708', 'tblTempUsageDetail_20' ) start [2025-02-03 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390708', 'tblTempUsageDetail_20' ) end [2025-02-03 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390708', 'tblTempVendorCDR_20' ) start [2025-02-03 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390708', 'tblTempVendorCDR_20' ) end [2025-02-03 04:54:19] Production.INFO: ProcessCDR(1,14390708,1,1,2) [2025-02-03 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390708', 'tblTempUsageDetail_20' ) start [2025-02-03 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390708', 'tblTempUsageDetail_20' ) end [2025-02-03 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:54:22] Production.INFO: ==20325== Releasing lock... [2025-02-03 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:54:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:55:05 [end_date_ymd] => 2025-02-03 04:55:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:55:05' and `end` < '2025-02-03 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-02-03 04:55:19] Production.INFO: count ==94 [2025-02-03 04:55:19] Production.ERROR: pbx CDR StartTime 2025-02-03 01:55:05 - End Time 2025-02-03 04:55:05 [2025-02-03 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390713', 'tblTempUsageDetail_20' ) start [2025-02-03 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390713', 'tblTempUsageDetail_20' ) end [2025-02-03 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390713', 'tblTempVendorCDR_20' ) start [2025-02-03 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390713', 'tblTempVendorCDR_20' ) end [2025-02-03 04:55:19] Production.INFO: ProcessCDR(1,14390713,1,1,2) [2025-02-03 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390713', 'tblTempUsageDetail_20' ) start [2025-02-03 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390713', 'tblTempUsageDetail_20' ) end [2025-02-03 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:55:22] Production.INFO: ==20416== Releasing lock... [2025-02-03 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:55:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:56:06 [end_date_ymd] => 2025-02-03 04:56:06 [RateCDR] => 1 ) [2025-02-03 04: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-02-03 01:56:06' and `end` < '2025-02-03 04: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-02-03 04:56:20] Production.INFO: count ==94 [2025-02-03 04:56:20] Production.ERROR: pbx CDR StartTime 2025-02-03 01:56:06 - End Time 2025-02-03 04:56:06 [2025-02-03 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390718', 'tblTempUsageDetail_20' ) start [2025-02-03 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390718', 'tblTempUsageDetail_20' ) end [2025-02-03 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390718', 'tblTempVendorCDR_20' ) start [2025-02-03 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390718', 'tblTempVendorCDR_20' ) end [2025-02-03 04:56:20] Production.INFO: ProcessCDR(1,14390718,1,1,2) [2025-02-03 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390718', 'tblTempUsageDetail_20' ) start [2025-02-03 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390718', 'tblTempUsageDetail_20' ) end [2025-02-03 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:56:23] Production.INFO: ==20503== Releasing lock... [2025-02-03 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:56:23] Production.INFO: 28 MB #Memory Used# [2025-02-03 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:57:05 [end_date_ymd] => 2025-02-03 04:57:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:57:05' and `end` < '2025-02-03 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-02-03 04:57:19] Production.INFO: count ==94 [2025-02-03 04:57:19] Production.ERROR: pbx CDR StartTime 2025-02-03 01:57:05 - End Time 2025-02-03 04:57:05 [2025-02-03 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390723', 'tblTempUsageDetail_20' ) start [2025-02-03 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390723', 'tblTempUsageDetail_20' ) end [2025-02-03 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390723', 'tblTempVendorCDR_20' ) start [2025-02-03 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390723', 'tblTempVendorCDR_20' ) end [2025-02-03 04:57:19] Production.INFO: ProcessCDR(1,14390723,1,1,2) [2025-02-03 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390723', 'tblTempUsageDetail_20' ) start [2025-02-03 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390723', 'tblTempUsageDetail_20' ) end [2025-02-03 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:57:22] Production.INFO: ==20639== Releasing lock... [2025-02-03 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:57:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:58:05 [end_date_ymd] => 2025-02-03 04:58:05 [RateCDR] => 1 ) [2025-02-03 04: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-02-03 01:58:05' and `end` < '2025-02-03 04: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-02-03 04:58:19] Production.INFO: count ==94 [2025-02-03 04:58:19] Production.ERROR: pbx CDR StartTime 2025-02-03 01:58:05 - End Time 2025-02-03 04:58:05 [2025-02-03 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390728', 'tblTempUsageDetail_20' ) start [2025-02-03 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390728', 'tblTempUsageDetail_20' ) end [2025-02-03 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390728', 'tblTempVendorCDR_20' ) start [2025-02-03 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390728', 'tblTempVendorCDR_20' ) end [2025-02-03 04:58:19] Production.INFO: ProcessCDR(1,14390728,1,1,2) [2025-02-03 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390728', 'tblTempUsageDetail_20' ) start [2025-02-03 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390728', 'tblTempUsageDetail_20' ) end [2025-02-03 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:58:23] Production.INFO: ==20729== Releasing lock... [2025-02-03 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:58:23] Production.INFO: 28 MB #Memory Used# [2025-02-03 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 01:59:05 [end_date_ymd] => 2025-02-03 04:59:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 01:59:05' and `end` < '2025-02-03 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-02-03 04:59:19] Production.INFO: count ==94 [2025-02-03 04:59:19] Production.ERROR: pbx CDR StartTime 2025-02-03 01:59:05 - End Time 2025-02-03 04:59:05 [2025-02-03 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390733', 'tblTempUsageDetail_20' ) start [2025-02-03 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390733', 'tblTempUsageDetail_20' ) end [2025-02-03 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390733', 'tblTempVendorCDR_20' ) start [2025-02-03 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390733', 'tblTempVendorCDR_20' ) end [2025-02-03 04:59:19] Production.INFO: ProcessCDR(1,14390733,1,1,2) [2025-02-03 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390733', 'tblTempUsageDetail_20' ) start [2025-02-03 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390733', 'tblTempUsageDetail_20' ) end [2025-02-03 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 04:59:22] Production.INFO: ==20823== Releasing lock... [2025-02-03 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 04:59:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:00:06 [end_date_ymd] => 2025-02-03 05:00:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:00:06' and `end` < '2025-02-03 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-02-03 05:00:20] Production.INFO: count ==89 [2025-02-03 05:00:20] Production.ERROR: pbx CDR StartTime 2025-02-03 02:00:06 - End Time 2025-02-03 05:00:06 [2025-02-03 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390739', 'tblTempUsageDetail_20' ) start [2025-02-03 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390739', 'tblTempUsageDetail_20' ) end [2025-02-03 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390739', 'tblTempVendorCDR_20' ) start [2025-02-03 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390739', 'tblTempVendorCDR_20' ) end [2025-02-03 05:00:20] Production.INFO: ProcessCDR(1,14390739,1,1,2) [2025-02-03 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390739', 'tblTempUsageDetail_20' ) start [2025-02-03 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390739', 'tblTempUsageDetail_20' ) end [2025-02-03 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:00:23] Production.INFO: ==20918== Releasing lock... [2025-02-03 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:00:23] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:01:05 [end_date_ymd] => 2025-02-03 05:01:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:01:05' and `end` < '2025-02-03 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-02-03 05:01:18] Production.INFO: count ==89 [2025-02-03 05:01:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:01:05 - End Time 2025-02-03 05:01:05 [2025-02-03 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390744', 'tblTempUsageDetail_20' ) start [2025-02-03 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390744', 'tblTempUsageDetail_20' ) end [2025-02-03 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390744', 'tblTempVendorCDR_20' ) start [2025-02-03 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390744', 'tblTempVendorCDR_20' ) end [2025-02-03 05:01:18] Production.INFO: ProcessCDR(1,14390744,1,1,2) [2025-02-03 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390744', 'tblTempUsageDetail_20' ) start [2025-02-03 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390744', 'tblTempUsageDetail_20' ) end [2025-02-03 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:01:21] Production.INFO: ==21013== Releasing lock... [2025-02-03 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:01:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:02:05 [end_date_ymd] => 2025-02-03 05:02:05 [RateCDR] => 1 ) [2025-02-03 05: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-02-03 02:02:05' and `end` < '2025-02-03 05: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-02-03 05:02:20] Production.INFO: count ==89 [2025-02-03 05:02:20] Production.ERROR: pbx CDR StartTime 2025-02-03 02:02:05 - End Time 2025-02-03 05:02:05 [2025-02-03 05:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390749', 'tblTempUsageDetail_20' ) start [2025-02-03 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390749', 'tblTempUsageDetail_20' ) end [2025-02-03 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390749', 'tblTempVendorCDR_20' ) start [2025-02-03 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390749', 'tblTempVendorCDR_20' ) end [2025-02-03 05:02:20] Production.INFO: ProcessCDR(1,14390749,1,1,2) [2025-02-03 05:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390749', 'tblTempUsageDetail_20' ) start [2025-02-03 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390749', 'tblTempUsageDetail_20' ) end [2025-02-03 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:02:23] Production.INFO: ==21112== Releasing lock... [2025-02-03 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:02:23] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:03:05 [end_date_ymd] => 2025-02-03 05:03:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:03:05' and `end` < '2025-02-03 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-02-03 05:03:18] Production.INFO: count ==88 [2025-02-03 05:03:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:03:05 - End Time 2025-02-03 05:03:05 [2025-02-03 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390754', 'tblTempUsageDetail_20' ) start [2025-02-03 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390754', 'tblTempUsageDetail_20' ) end [2025-02-03 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390754', 'tblTempVendorCDR_20' ) start [2025-02-03 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390754', 'tblTempVendorCDR_20' ) end [2025-02-03 05:03:18] Production.INFO: ProcessCDR(1,14390754,1,1,2) [2025-02-03 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390754', 'tblTempUsageDetail_20' ) start [2025-02-03 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390754', 'tblTempUsageDetail_20' ) end [2025-02-03 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:03:21] Production.INFO: ==21204== Releasing lock... [2025-02-03 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:03:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:04:06 [end_date_ymd] => 2025-02-03 05:04:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:04:06' and `end` < '2025-02-03 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-02-03 05:04:19] Production.INFO: count ==88 [2025-02-03 05:04:19] Production.ERROR: pbx CDR StartTime 2025-02-03 02:04:06 - End Time 2025-02-03 05:04:06 [2025-02-03 05:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390759', 'tblTempUsageDetail_20' ) start [2025-02-03 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390759', 'tblTempUsageDetail_20' ) end [2025-02-03 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390759', 'tblTempVendorCDR_20' ) start [2025-02-03 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390759', 'tblTempVendorCDR_20' ) end [2025-02-03 05:04:19] Production.INFO: ProcessCDR(1,14390759,1,1,2) [2025-02-03 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390759', 'tblTempUsageDetail_20' ) start [2025-02-03 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390759', 'tblTempUsageDetail_20' ) end [2025-02-03 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:04:22] Production.INFO: ==21296== Releasing lock... [2025-02-03 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:04:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:05:05 [end_date_ymd] => 2025-02-03 05:05:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:05:05' and `end` < '2025-02-03 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-02-03 05:05:18] Production.INFO: count ==88 [2025-02-03 05:05:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:05:05 - End Time 2025-02-03 05:05:05 [2025-02-03 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390764', 'tblTempUsageDetail_20' ) start [2025-02-03 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390764', 'tblTempUsageDetail_20' ) end [2025-02-03 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390764', 'tblTempVendorCDR_20' ) start [2025-02-03 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390764', 'tblTempVendorCDR_20' ) end [2025-02-03 05:05:18] Production.INFO: ProcessCDR(1,14390764,1,1,2) [2025-02-03 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390764', 'tblTempUsageDetail_20' ) start [2025-02-03 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390764', 'tblTempUsageDetail_20' ) end [2025-02-03 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:05:21] Production.INFO: ==21389== Releasing lock... [2025-02-03 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:05:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:06:05 [end_date_ymd] => 2025-02-03 05:06:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:06:05' and `end` < '2025-02-03 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-02-03 05:06:18] Production.INFO: count ==85 [2025-02-03 05:06:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:06:05 - End Time 2025-02-03 05:06:05 [2025-02-03 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390769', 'tblTempUsageDetail_20' ) start [2025-02-03 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390769', 'tblTempUsageDetail_20' ) end [2025-02-03 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390769', 'tblTempVendorCDR_20' ) start [2025-02-03 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390769', 'tblTempVendorCDR_20' ) end [2025-02-03 05:06:18] Production.INFO: ProcessCDR(1,14390769,1,1,2) [2025-02-03 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390769', 'tblTempUsageDetail_20' ) start [2025-02-03 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390769', 'tblTempUsageDetail_20' ) end [2025-02-03 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:06:21] Production.INFO: ==21472== Releasing lock... [2025-02-03 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:06:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:07:05 [end_date_ymd] => 2025-02-03 05:07:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:07:05' and `end` < '2025-02-03 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-02-03 05:07:18] Production.INFO: count ==85 [2025-02-03 05:07:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:07:05 - End Time 2025-02-03 05:07:05 [2025-02-03 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390774', 'tblTempUsageDetail_20' ) start [2025-02-03 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390774', 'tblTempUsageDetail_20' ) end [2025-02-03 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390774', 'tblTempVendorCDR_20' ) start [2025-02-03 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390774', 'tblTempVendorCDR_20' ) end [2025-02-03 05:07:18] Production.INFO: ProcessCDR(1,14390774,1,1,2) [2025-02-03 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390774', 'tblTempUsageDetail_20' ) start [2025-02-03 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390774', 'tblTempUsageDetail_20' ) end [2025-02-03 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:07:21] Production.INFO: ==21566== Releasing lock... [2025-02-03 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:07:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:08:05 [end_date_ymd] => 2025-02-03 05:08:05 [RateCDR] => 1 ) [2025-02-03 05: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-02-03 02:08:05' and `end` < '2025-02-03 05: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-02-03 05:08:18] Production.INFO: count ==85 [2025-02-03 05:08:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:08:05 - End Time 2025-02-03 05:08:05 [2025-02-03 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390779', 'tblTempUsageDetail_20' ) start [2025-02-03 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390779', 'tblTempUsageDetail_20' ) end [2025-02-03 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390779', 'tblTempVendorCDR_20' ) start [2025-02-03 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390779', 'tblTempVendorCDR_20' ) end [2025-02-03 05:08:18] Production.INFO: ProcessCDR(1,14390779,1,1,2) [2025-02-03 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390779', 'tblTempUsageDetail_20' ) start [2025-02-03 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390779', 'tblTempUsageDetail_20' ) end [2025-02-03 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:08:21] Production.INFO: ==21654== Releasing lock... [2025-02-03 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:08:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:09:06 [end_date_ymd] => 2025-02-03 05:09:06 [RateCDR] => 1 ) [2025-02-03 05:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 02:09:06' and `end` < '2025-02-03 05:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 05:09:18] Production.INFO: count ==84 [2025-02-03 05:09:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:09:06 - End Time 2025-02-03 05:09:06 [2025-02-03 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390784', 'tblTempUsageDetail_20' ) start [2025-02-03 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390784', 'tblTempUsageDetail_20' ) end [2025-02-03 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390784', 'tblTempVendorCDR_20' ) start [2025-02-03 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390784', 'tblTempVendorCDR_20' ) end [2025-02-03 05:09:18] Production.INFO: ProcessCDR(1,14390784,1,1,2) [2025-02-03 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390784', 'tblTempUsageDetail_20' ) start [2025-02-03 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390784', 'tblTempUsageDetail_20' ) end [2025-02-03 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:09:21] Production.INFO: ==21746== Releasing lock... [2025-02-03 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:09:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:10:05 [end_date_ymd] => 2025-02-03 05:10:05 [RateCDR] => 1 ) [2025-02-03 05: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-02-03 02:10:05' and `end` < '2025-02-03 05: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-02-03 05:10:18] Production.INFO: count ==84 [2025-02-03 05:10:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:10:05 - End Time 2025-02-03 05:10:05 [2025-02-03 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390789', 'tblTempUsageDetail_20' ) start [2025-02-03 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390789', 'tblTempUsageDetail_20' ) end [2025-02-03 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390789', 'tblTempVendorCDR_20' ) start [2025-02-03 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390789', 'tblTempVendorCDR_20' ) end [2025-02-03 05:10:18] Production.INFO: ProcessCDR(1,14390789,1,1,2) [2025-02-03 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390789', 'tblTempUsageDetail_20' ) start [2025-02-03 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390789', 'tblTempUsageDetail_20' ) end [2025-02-03 05:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:10:21] Production.INFO: ==21840== Releasing lock... [2025-02-03 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:10:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:11:05 [end_date_ymd] => 2025-02-03 05:11:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:11:05' and `end` < '2025-02-03 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-02-03 05:11:18] Production.INFO: count ==84 [2025-02-03 05:11:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:11:05 - End Time 2025-02-03 05:11:05 [2025-02-03 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390795', 'tblTempUsageDetail_20' ) start [2025-02-03 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390795', 'tblTempUsageDetail_20' ) end [2025-02-03 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390795', 'tblTempVendorCDR_20' ) start [2025-02-03 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390795', 'tblTempVendorCDR_20' ) end [2025-02-03 05:11:18] Production.INFO: ProcessCDR(1,14390795,1,1,2) [2025-02-03 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390795', 'tblTempUsageDetail_20' ) start [2025-02-03 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390795', 'tblTempUsageDetail_20' ) end [2025-02-03 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:11:21] Production.INFO: ==21936== Releasing lock... [2025-02-03 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:11:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:12:05 [end_date_ymd] => 2025-02-03 05:12:05 [RateCDR] => 1 ) [2025-02-03 05: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-02-03 02:12:05' and `end` < '2025-02-03 05: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-02-03 05:12:18] Production.INFO: count ==84 [2025-02-03 05:12:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:12:05 - End Time 2025-02-03 05:12:05 [2025-02-03 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390800', 'tblTempUsageDetail_20' ) start [2025-02-03 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390800', 'tblTempUsageDetail_20' ) end [2025-02-03 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390800', 'tblTempVendorCDR_20' ) start [2025-02-03 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390800', 'tblTempVendorCDR_20' ) end [2025-02-03 05:12:18] Production.INFO: ProcessCDR(1,14390800,1,1,2) [2025-02-03 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390800', 'tblTempUsageDetail_20' ) start [2025-02-03 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390800', 'tblTempUsageDetail_20' ) end [2025-02-03 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:12:22] Production.INFO: ==22036== Releasing lock... [2025-02-03 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:12:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:13:05 [end_date_ymd] => 2025-02-03 05:13:05 [RateCDR] => 1 ) [2025-02-03 05: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-02-03 02:13:05' and `end` < '2025-02-03 05: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-02-03 05:13:18] Production.INFO: count ==84 [2025-02-03 05:13:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:13:05 - End Time 2025-02-03 05:13:05 [2025-02-03 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390805', 'tblTempUsageDetail_20' ) start [2025-02-03 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390805', 'tblTempUsageDetail_20' ) end [2025-02-03 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390805', 'tblTempVendorCDR_20' ) start [2025-02-03 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390805', 'tblTempVendorCDR_20' ) end [2025-02-03 05:13:19] Production.INFO: ProcessCDR(1,14390805,1,1,2) [2025-02-03 05:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390805', 'tblTempUsageDetail_20' ) start [2025-02-03 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390805', 'tblTempUsageDetail_20' ) end [2025-02-03 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:13:22] Production.INFO: ==22176== Releasing lock... [2025-02-03 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:13:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:14:05 [end_date_ymd] => 2025-02-03 05:14:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:14:05' and `end` < '2025-02-03 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-02-03 05:14:18] Production.INFO: count ==83 [2025-02-03 05:14:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:14:05 - End Time 2025-02-03 05:14:05 [2025-02-03 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390810', 'tblTempUsageDetail_20' ) start [2025-02-03 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390810', 'tblTempUsageDetail_20' ) end [2025-02-03 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390810', 'tblTempVendorCDR_20' ) start [2025-02-03 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390810', 'tblTempVendorCDR_20' ) end [2025-02-03 05:14:18] Production.INFO: ProcessCDR(1,14390810,1,1,2) [2025-02-03 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390810', 'tblTempUsageDetail_20' ) start [2025-02-03 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390810', 'tblTempUsageDetail_20' ) end [2025-02-03 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:14:21] Production.INFO: ==22263== Releasing lock... [2025-02-03 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:14:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:15:05 [end_date_ymd] => 2025-02-03 05:15:05 [RateCDR] => 1 ) [2025-02-03 05: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-02-03 02:15:05' and `end` < '2025-02-03 05: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-02-03 05:15:18] Production.INFO: count ==83 [2025-02-03 05:15:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:15:05 - End Time 2025-02-03 05:15:05 [2025-02-03 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390815', 'tblTempUsageDetail_20' ) start [2025-02-03 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390815', 'tblTempUsageDetail_20' ) end [2025-02-03 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390815', 'tblTempVendorCDR_20' ) start [2025-02-03 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390815', 'tblTempVendorCDR_20' ) end [2025-02-03 05:15:18] Production.INFO: ProcessCDR(1,14390815,1,1,2) [2025-02-03 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390815', 'tblTempUsageDetail_20' ) start [2025-02-03 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390815', 'tblTempUsageDetail_20' ) end [2025-02-03 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:15:21] Production.INFO: ==22355== Releasing lock... [2025-02-03 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:15:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:16:05 [end_date_ymd] => 2025-02-03 05:16:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:16:05' and `end` < '2025-02-03 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-02-03 05:16:18] Production.INFO: count ==83 [2025-02-03 05:16:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:16:05 - End Time 2025-02-03 05:16:05 [2025-02-03 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390820', 'tblTempUsageDetail_20' ) start [2025-02-03 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390820', 'tblTempUsageDetail_20' ) end [2025-02-03 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390820', 'tblTempVendorCDR_20' ) start [2025-02-03 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390820', 'tblTempVendorCDR_20' ) end [2025-02-03 05:16:18] Production.INFO: ProcessCDR(1,14390820,1,1,2) [2025-02-03 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390820', 'tblTempUsageDetail_20' ) start [2025-02-03 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390820', 'tblTempUsageDetail_20' ) end [2025-02-03 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:16:21] Production.INFO: ==22449== Releasing lock... [2025-02-03 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:16:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:17:05 [end_date_ymd] => 2025-02-03 05:17:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:17:05' and `end` < '2025-02-03 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-02-03 05:17:18] Production.INFO: count ==83 [2025-02-03 05:17:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:17:05 - End Time 2025-02-03 05:17:05 [2025-02-03 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390825', 'tblTempUsageDetail_20' ) start [2025-02-03 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390825', 'tblTempUsageDetail_20' ) end [2025-02-03 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390825', 'tblTempVendorCDR_20' ) start [2025-02-03 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390825', 'tblTempVendorCDR_20' ) end [2025-02-03 05:17:18] Production.INFO: ProcessCDR(1,14390825,1,1,2) [2025-02-03 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390825', 'tblTempUsageDetail_20' ) start [2025-02-03 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390825', 'tblTempUsageDetail_20' ) end [2025-02-03 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:17:21] Production.INFO: ==22538== Releasing lock... [2025-02-03 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:17:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:18:05 [end_date_ymd] => 2025-02-03 05:18:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:18:05' and `end` < '2025-02-03 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-02-03 05:18:18] Production.INFO: count ==83 [2025-02-03 05:18:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:18:05 - End Time 2025-02-03 05:18:05 [2025-02-03 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390830', 'tblTempUsageDetail_20' ) start [2025-02-03 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390830', 'tblTempUsageDetail_20' ) end [2025-02-03 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390830', 'tblTempVendorCDR_20' ) start [2025-02-03 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390830', 'tblTempVendorCDR_20' ) end [2025-02-03 05:18:18] Production.INFO: ProcessCDR(1,14390830,1,1,2) [2025-02-03 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390830', 'tblTempUsageDetail_20' ) start [2025-02-03 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390830', 'tblTempUsageDetail_20' ) end [2025-02-03 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:18:21] Production.INFO: ==22629== Releasing lock... [2025-02-03 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:18:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:19:05 [end_date_ymd] => 2025-02-03 05:19:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:19:05' and `end` < '2025-02-03 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-02-03 05:19:19] Production.INFO: count ==83 [2025-02-03 05:19:19] Production.ERROR: pbx CDR StartTime 2025-02-03 02:19:05 - End Time 2025-02-03 05:19:05 [2025-02-03 05:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390835', 'tblTempUsageDetail_20' ) start [2025-02-03 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390835', 'tblTempUsageDetail_20' ) end [2025-02-03 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390835', 'tblTempVendorCDR_20' ) start [2025-02-03 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390835', 'tblTempVendorCDR_20' ) end [2025-02-03 05:19:19] Production.INFO: ProcessCDR(1,14390835,1,1,2) [2025-02-03 05:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390835', 'tblTempUsageDetail_20' ) start [2025-02-03 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390835', 'tblTempUsageDetail_20' ) end [2025-02-03 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:19:22] Production.INFO: ==22726== Releasing lock... [2025-02-03 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:19:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:20:05 [end_date_ymd] => 2025-02-03 05:20:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:20:05' and `end` < '2025-02-03 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-02-03 05:20:18] Production.INFO: count ==83 [2025-02-03 05:20:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:20:05 - End Time 2025-02-03 05:20:05 [2025-02-03 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390841', 'tblTempUsageDetail_20' ) start [2025-02-03 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390841', 'tblTempUsageDetail_20' ) end [2025-02-03 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390841', 'tblTempVendorCDR_20' ) start [2025-02-03 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390841', 'tblTempVendorCDR_20' ) end [2025-02-03 05:20:18] Production.INFO: ProcessCDR(1,14390841,1,1,2) [2025-02-03 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390841', 'tblTempUsageDetail_20' ) start [2025-02-03 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390841', 'tblTempUsageDetail_20' ) end [2025-02-03 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:20:21] Production.INFO: ==22819== Releasing lock... [2025-02-03 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:20:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:21:05 [end_date_ymd] => 2025-02-03 05:21:05 [RateCDR] => 1 ) [2025-02-03 05: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-02-03 02:21:05' and `end` < '2025-02-03 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-02-03 05:21:18] Production.INFO: count ==83 [2025-02-03 05:21:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:21:05 - End Time 2025-02-03 05:21:05 [2025-02-03 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390846', 'tblTempUsageDetail_20' ) start [2025-02-03 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390846', 'tblTempUsageDetail_20' ) end [2025-02-03 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390846', 'tblTempVendorCDR_20' ) start [2025-02-03 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390846', 'tblTempVendorCDR_20' ) end [2025-02-03 05:21:18] Production.INFO: ProcessCDR(1,14390846,1,1,2) [2025-02-03 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390846', 'tblTempUsageDetail_20' ) start [2025-02-03 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390846', 'tblTempUsageDetail_20' ) end [2025-02-03 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:21:21] Production.INFO: ==22915== Releasing lock... [2025-02-03 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:21:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:22:06 [end_date_ymd] => 2025-02-03 05:22:06 [RateCDR] => 1 ) [2025-02-03 05: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-02-03 02:22:06' and `end` < '2025-02-03 05: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-02-03 05:22:19] Production.INFO: count ==83 [2025-02-03 05:22:19] Production.ERROR: pbx CDR StartTime 2025-02-03 02:22:06 - End Time 2025-02-03 05:22:06 [2025-02-03 05:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390851', 'tblTempUsageDetail_20' ) start [2025-02-03 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390851', 'tblTempUsageDetail_20' ) end [2025-02-03 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390851', 'tblTempVendorCDR_20' ) start [2025-02-03 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390851', 'tblTempVendorCDR_20' ) end [2025-02-03 05:22:19] Production.INFO: ProcessCDR(1,14390851,1,1,2) [2025-02-03 05:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390851', 'tblTempUsageDetail_20' ) start [2025-02-03 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390851', 'tblTempUsageDetail_20' ) end [2025-02-03 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:22:22] Production.INFO: ==23008== Releasing lock... [2025-02-03 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:22:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:23:05 [end_date_ymd] => 2025-02-03 05:23:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:23:05' and `end` < '2025-02-03 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-02-03 05:23:19] Production.INFO: count ==83 [2025-02-03 05:23:19] Production.ERROR: pbx CDR StartTime 2025-02-03 02:23:05 - End Time 2025-02-03 05:23:05 [2025-02-03 05:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390856', 'tblTempUsageDetail_20' ) start [2025-02-03 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390856', 'tblTempUsageDetail_20' ) end [2025-02-03 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390856', 'tblTempVendorCDR_20' ) start [2025-02-03 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390856', 'tblTempVendorCDR_20' ) end [2025-02-03 05:23:19] Production.INFO: ProcessCDR(1,14390856,1,1,2) [2025-02-03 05:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390856', 'tblTempUsageDetail_20' ) start [2025-02-03 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390856', 'tblTempUsageDetail_20' ) end [2025-02-03 05:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:23:22] Production.INFO: ==23100== Releasing lock... [2025-02-03 05:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:23:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:24:06 [end_date_ymd] => 2025-02-03 05:24:06 [RateCDR] => 1 ) [2025-02-03 05: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-02-03 02:24:06' and `end` < '2025-02-03 05: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-02-03 05:24:19] Production.INFO: count ==83 [2025-02-03 05:24:19] Production.ERROR: pbx CDR StartTime 2025-02-03 02:24:06 - End Time 2025-02-03 05:24:06 [2025-02-03 05:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390861', 'tblTempUsageDetail_20' ) start [2025-02-03 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390861', 'tblTempUsageDetail_20' ) end [2025-02-03 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390861', 'tblTempVendorCDR_20' ) start [2025-02-03 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390861', 'tblTempVendorCDR_20' ) end [2025-02-03 05:24:19] Production.INFO: ProcessCDR(1,14390861,1,1,2) [2025-02-03 05:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390861', 'tblTempUsageDetail_20' ) start [2025-02-03 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390861', 'tblTempUsageDetail_20' ) end [2025-02-03 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:24:22] Production.INFO: ==23191== Releasing lock... [2025-02-03 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:24:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:25:05 [end_date_ymd] => 2025-02-03 05:25:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:25:05' and `end` < '2025-02-03 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-02-03 05:25:18] Production.INFO: count ==83 [2025-02-03 05:25:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:25:05 - End Time 2025-02-03 05:25:05 [2025-02-03 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390866', 'tblTempUsageDetail_20' ) start [2025-02-03 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390866', 'tblTempUsageDetail_20' ) end [2025-02-03 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390866', 'tblTempVendorCDR_20' ) start [2025-02-03 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390866', 'tblTempVendorCDR_20' ) end [2025-02-03 05:25:18] Production.INFO: ProcessCDR(1,14390866,1,1,2) [2025-02-03 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390866', 'tblTempUsageDetail_20' ) start [2025-02-03 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390866', 'tblTempUsageDetail_20' ) end [2025-02-03 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:25:21] Production.INFO: ==23274== Releasing lock... [2025-02-03 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:25:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:26:05 [end_date_ymd] => 2025-02-03 05:26:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:26:05' and `end` < '2025-02-03 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-02-03 05:26:19] Production.INFO: count ==83 [2025-02-03 05:26:19] Production.ERROR: pbx CDR StartTime 2025-02-03 02:26:05 - End Time 2025-02-03 05:26:05 [2025-02-03 05:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390871', 'tblTempUsageDetail_20' ) start [2025-02-03 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390871', 'tblTempUsageDetail_20' ) end [2025-02-03 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390871', 'tblTempVendorCDR_20' ) start [2025-02-03 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390871', 'tblTempVendorCDR_20' ) end [2025-02-03 05:26:19] Production.INFO: ProcessCDR(1,14390871,1,1,2) [2025-02-03 05:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390871', 'tblTempUsageDetail_20' ) start [2025-02-03 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390871', 'tblTempUsageDetail_20' ) end [2025-02-03 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:26:22] Production.INFO: ==23373== Releasing lock... [2025-02-03 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:26:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:27:05 [end_date_ymd] => 2025-02-03 05:27:05 [RateCDR] => 1 ) [2025-02-03 05: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-02-03 02:27:05' and `end` < '2025-02-03 05: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-02-03 05:27:19] Production.INFO: count ==83 [2025-02-03 05:27:19] Production.ERROR: pbx CDR StartTime 2025-02-03 02:27:05 - End Time 2025-02-03 05:27:05 [2025-02-03 05:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390876', 'tblTempUsageDetail_20' ) start [2025-02-03 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390876', 'tblTempUsageDetail_20' ) end [2025-02-03 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390876', 'tblTempVendorCDR_20' ) start [2025-02-03 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390876', 'tblTempVendorCDR_20' ) end [2025-02-03 05:27:19] Production.INFO: ProcessCDR(1,14390876,1,1,2) [2025-02-03 05:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390876', 'tblTempUsageDetail_20' ) start [2025-02-03 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390876', 'tblTempUsageDetail_20' ) end [2025-02-03 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:27:22] Production.INFO: ==23460== Releasing lock... [2025-02-03 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:27:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:28:06 [end_date_ymd] => 2025-02-03 05:28:06 [RateCDR] => 1 ) [2025-02-03 05: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-02-03 02:28:06' and `end` < '2025-02-03 05: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-02-03 05:28:19] Production.INFO: count ==83 [2025-02-03 05:28:19] Production.ERROR: pbx CDR StartTime 2025-02-03 02:28:06 - End Time 2025-02-03 05:28:06 [2025-02-03 05:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390881', 'tblTempUsageDetail_20' ) start [2025-02-03 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390881', 'tblTempUsageDetail_20' ) end [2025-02-03 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390881', 'tblTempVendorCDR_20' ) start [2025-02-03 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390881', 'tblTempVendorCDR_20' ) end [2025-02-03 05:28:19] Production.INFO: ProcessCDR(1,14390881,1,1,2) [2025-02-03 05:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390881', 'tblTempUsageDetail_20' ) start [2025-02-03 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390881', 'tblTempUsageDetail_20' ) end [2025-02-03 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:28:22] Production.INFO: ==23588== Releasing lock... [2025-02-03 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:28:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:29:05 [end_date_ymd] => 2025-02-03 05:29:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:29:05' and `end` < '2025-02-03 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-02-03 05:29:19] Production.INFO: count ==83 [2025-02-03 05:29:19] Production.ERROR: pbx CDR StartTime 2025-02-03 02:29:05 - End Time 2025-02-03 05:29:05 [2025-02-03 05:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390886', 'tblTempUsageDetail_20' ) start [2025-02-03 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390886', 'tblTempUsageDetail_20' ) end [2025-02-03 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390886', 'tblTempVendorCDR_20' ) start [2025-02-03 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390886', 'tblTempVendorCDR_20' ) end [2025-02-03 05:29:19] Production.INFO: ProcessCDR(1,14390886,1,1,2) [2025-02-03 05:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390886', 'tblTempUsageDetail_20' ) start [2025-02-03 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390886', 'tblTempUsageDetail_20' ) end [2025-02-03 05:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:29:22] Production.INFO: ==23677== Releasing lock... [2025-02-03 05:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:29:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:30:06 [end_date_ymd] => 2025-02-03 05:30:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:30:06' and `end` < '2025-02-03 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-02-03 05:30:19] Production.INFO: count ==80 [2025-02-03 05:30:19] Production.ERROR: pbx CDR StartTime 2025-02-03 02:30:06 - End Time 2025-02-03 05:30:06 [2025-02-03 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390891', 'tblTempUsageDetail_20' ) start [2025-02-03 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390891', 'tblTempUsageDetail_20' ) end [2025-02-03 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390891', 'tblTempVendorCDR_20' ) start [2025-02-03 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390891', 'tblTempVendorCDR_20' ) end [2025-02-03 05:30:19] Production.INFO: ProcessCDR(1,14390891,1,1,2) [2025-02-03 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390891', 'tblTempUsageDetail_20' ) start [2025-02-03 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390891', 'tblTempUsageDetail_20' ) end [2025-02-03 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:30:22] Production.INFO: ==23765== Releasing lock... [2025-02-03 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:30:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:31:05 [end_date_ymd] => 2025-02-03 05:31:05 [RateCDR] => 1 ) [2025-02-03 05: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-02-03 02:31:05' and `end` < '2025-02-03 05: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-02-03 05:31:17] Production.INFO: count ==80 [2025-02-03 05:31:17] Production.ERROR: pbx CDR StartTime 2025-02-03 02:31:05 - End Time 2025-02-03 05:31:05 [2025-02-03 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390897', 'tblTempUsageDetail_20' ) start [2025-02-03 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390897', 'tblTempUsageDetail_20' ) end [2025-02-03 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390897', 'tblTempVendorCDR_20' ) start [2025-02-03 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390897', 'tblTempVendorCDR_20' ) end [2025-02-03 05:31:17] Production.INFO: ProcessCDR(1,14390897,1,1,2) [2025-02-03 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390897', 'tblTempUsageDetail_20' ) start [2025-02-03 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390897', 'tblTempUsageDetail_20' ) end [2025-02-03 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:31:21] Production.INFO: ==23857== Releasing lock... [2025-02-03 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:31:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:32:05 [end_date_ymd] => 2025-02-03 05:32:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:32:05' and `end` < '2025-02-03 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-02-03 05:32:18] Production.INFO: count ==80 [2025-02-03 05:32:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:32:05 - End Time 2025-02-03 05:32:05 [2025-02-03 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390902', 'tblTempUsageDetail_20' ) start [2025-02-03 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390902', 'tblTempUsageDetail_20' ) end [2025-02-03 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390902', 'tblTempVendorCDR_20' ) start [2025-02-03 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390902', 'tblTempVendorCDR_20' ) end [2025-02-03 05:32:18] Production.INFO: ProcessCDR(1,14390902,1,1,2) [2025-02-03 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390902', 'tblTempUsageDetail_20' ) start [2025-02-03 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390902', 'tblTempUsageDetail_20' ) end [2025-02-03 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:32:21] Production.INFO: ==23950== Releasing lock... [2025-02-03 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:32:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:33:05 [end_date_ymd] => 2025-02-03 05:33:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:33:05' and `end` < '2025-02-03 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-02-03 05:33:19] Production.INFO: count ==80 [2025-02-03 05:33:19] Production.ERROR: pbx CDR StartTime 2025-02-03 02:33:05 - End Time 2025-02-03 05:33:05 [2025-02-03 05:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390907', 'tblTempUsageDetail_20' ) start [2025-02-03 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390907', 'tblTempUsageDetail_20' ) end [2025-02-03 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390907', 'tblTempVendorCDR_20' ) start [2025-02-03 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390907', 'tblTempVendorCDR_20' ) end [2025-02-03 05:33:19] Production.INFO: ProcessCDR(1,14390907,1,1,2) [2025-02-03 05:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390907', 'tblTempUsageDetail_20' ) start [2025-02-03 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390907', 'tblTempUsageDetail_20' ) end [2025-02-03 05:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:33:22] Production.INFO: ==24040== Releasing lock... [2025-02-03 05:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:33:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:34:05 [end_date_ymd] => 2025-02-03 05:34:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:34:05' and `end` < '2025-02-03 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-02-03 05:34:17] Production.INFO: count ==80 [2025-02-03 05:34:17] Production.ERROR: pbx CDR StartTime 2025-02-03 02:34:05 - End Time 2025-02-03 05:34:05 [2025-02-03 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390912', 'tblTempUsageDetail_20' ) start [2025-02-03 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390912', 'tblTempUsageDetail_20' ) end [2025-02-03 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390912', 'tblTempVendorCDR_20' ) start [2025-02-03 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390912', 'tblTempVendorCDR_20' ) end [2025-02-03 05:34:18] Production.INFO: ProcessCDR(1,14390912,1,1,2) [2025-02-03 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390912', 'tblTempUsageDetail_20' ) start [2025-02-03 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390912', 'tblTempUsageDetail_20' ) end [2025-02-03 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:34:21] Production.INFO: ==24125== Releasing lock... [2025-02-03 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:34:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:35:05 [end_date_ymd] => 2025-02-03 05:35:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:35:05' and `end` < '2025-02-03 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-02-03 05:35:18] Production.INFO: count ==80 [2025-02-03 05:35:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:35:05 - End Time 2025-02-03 05:35:05 [2025-02-03 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390917', 'tblTempUsageDetail_20' ) start [2025-02-03 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390917', 'tblTempUsageDetail_20' ) end [2025-02-03 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390917', 'tblTempVendorCDR_20' ) start [2025-02-03 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390917', 'tblTempVendorCDR_20' ) end [2025-02-03 05:35:18] Production.INFO: ProcessCDR(1,14390917,1,1,2) [2025-02-03 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390917', 'tblTempUsageDetail_20' ) start [2025-02-03 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390917', 'tblTempUsageDetail_20' ) end [2025-02-03 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:35:21] Production.INFO: ==24211== Releasing lock... [2025-02-03 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:35:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:36:05 [end_date_ymd] => 2025-02-03 05:36:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:36:05' and `end` < '2025-02-03 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-02-03 05:36:18] Production.INFO: count ==80 [2025-02-03 05:36:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:36:05 - End Time 2025-02-03 05:36:05 [2025-02-03 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390922', 'tblTempUsageDetail_20' ) start [2025-02-03 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390922', 'tblTempUsageDetail_20' ) end [2025-02-03 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390922', 'tblTempVendorCDR_20' ) start [2025-02-03 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390922', 'tblTempVendorCDR_20' ) end [2025-02-03 05:36:18] Production.INFO: ProcessCDR(1,14390922,1,1,2) [2025-02-03 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390922', 'tblTempUsageDetail_20' ) start [2025-02-03 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390922', 'tblTempUsageDetail_20' ) end [2025-02-03 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:36:21] Production.INFO: ==24290== Releasing lock... [2025-02-03 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:36:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:37:05 [end_date_ymd] => 2025-02-03 05:37:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:37:05' and `end` < '2025-02-03 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-02-03 05:37:18] Production.INFO: count ==80 [2025-02-03 05:37:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:37:05 - End Time 2025-02-03 05:37:05 [2025-02-03 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390927', 'tblTempUsageDetail_20' ) start [2025-02-03 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390927', 'tblTempUsageDetail_20' ) end [2025-02-03 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390927', 'tblTempVendorCDR_20' ) start [2025-02-03 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390927', 'tblTempVendorCDR_20' ) end [2025-02-03 05:37:18] Production.INFO: ProcessCDR(1,14390927,1,1,2) [2025-02-03 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390927', 'tblTempUsageDetail_20' ) start [2025-02-03 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390927', 'tblTempUsageDetail_20' ) end [2025-02-03 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:37:21] Production.INFO: ==24374== Releasing lock... [2025-02-03 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:37:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:38:05 [end_date_ymd] => 2025-02-03 05:38:05 [RateCDR] => 1 ) [2025-02-03 05: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-02-03 02:38:05' and `end` < '2025-02-03 05: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-02-03 05:38:18] Production.INFO: count ==80 [2025-02-03 05:38:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:38:05 - End Time 2025-02-03 05:38:05 [2025-02-03 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390932', 'tblTempUsageDetail_20' ) start [2025-02-03 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390932', 'tblTempUsageDetail_20' ) end [2025-02-03 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390932', 'tblTempVendorCDR_20' ) start [2025-02-03 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390932', 'tblTempVendorCDR_20' ) end [2025-02-03 05:38:18] Production.INFO: ProcessCDR(1,14390932,1,1,2) [2025-02-03 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390932', 'tblTempUsageDetail_20' ) start [2025-02-03 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390932', 'tblTempUsageDetail_20' ) end [2025-02-03 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:38:21] Production.INFO: ==24460== Releasing lock... [2025-02-03 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:38:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:39:05 [end_date_ymd] => 2025-02-03 05:39:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:39:05' and `end` < '2025-02-03 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-02-03 05:39:18] Production.INFO: count ==80 [2025-02-03 05:39:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:39:05 - End Time 2025-02-03 05:39:05 [2025-02-03 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390937', 'tblTempUsageDetail_20' ) start [2025-02-03 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390937', 'tblTempUsageDetail_20' ) end [2025-02-03 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390937', 'tblTempVendorCDR_20' ) start [2025-02-03 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390937', 'tblTempVendorCDR_20' ) end [2025-02-03 05:39:18] Production.INFO: ProcessCDR(1,14390937,1,1,2) [2025-02-03 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390937', 'tblTempUsageDetail_20' ) start [2025-02-03 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390937', 'tblTempUsageDetail_20' ) end [2025-02-03 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:39:21] Production.INFO: ==24544== Releasing lock... [2025-02-03 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:39:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:40:06 [end_date_ymd] => 2025-02-03 05:40:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:40:06' and `end` < '2025-02-03 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-02-03 05:40:18] Production.INFO: count ==77 [2025-02-03 05:40:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:40:06 - End Time 2025-02-03 05:40:06 [2025-02-03 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390942', 'tblTempUsageDetail_20' ) start [2025-02-03 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390942', 'tblTempUsageDetail_20' ) end [2025-02-03 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390942', 'tblTempVendorCDR_20' ) start [2025-02-03 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390942', 'tblTempVendorCDR_20' ) end [2025-02-03 05:40:18] Production.INFO: ProcessCDR(1,14390942,1,1,2) [2025-02-03 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390942', 'tblTempUsageDetail_20' ) start [2025-02-03 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390942', 'tblTempUsageDetail_20' ) end [2025-02-03 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:40:21] Production.INFO: ==24630== Releasing lock... [2025-02-03 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:40:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:41:05 [end_date_ymd] => 2025-02-03 05:41:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:41:05' and `end` < '2025-02-03 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-02-03 05:41:19] Production.INFO: count ==77 [2025-02-03 05:41:19] Production.ERROR: pbx CDR StartTime 2025-02-03 02:41:05 - End Time 2025-02-03 05:41:05 [2025-02-03 05:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390944', 'tblTempUsageDetail_20' ) start [2025-02-03 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390944', 'tblTempUsageDetail_20' ) end [2025-02-03 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390944', 'tblTempVendorCDR_20' ) start [2025-02-03 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390944', 'tblTempVendorCDR_20' ) end [2025-02-03 05:41:19] Production.INFO: ProcessCDR(1,14390944,1,1,2) [2025-02-03 05:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390944', 'tblTempUsageDetail_20' ) start [2025-02-03 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390944', 'tblTempUsageDetail_20' ) end [2025-02-03 05:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:41:22] Production.INFO: ==24713== Releasing lock... [2025-02-03 05:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:41:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:42:05 [end_date_ymd] => 2025-02-03 05:42:05 [RateCDR] => 1 ) [2025-02-03 05: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-02-03 02:42:05' and `end` < '2025-02-03 05: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-02-03 05:42:19] Production.INFO: count ==77 [2025-02-03 05:42:19] Production.ERROR: pbx CDR StartTime 2025-02-03 02:42:05 - End Time 2025-02-03 05:42:05 [2025-02-03 05:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390953', 'tblTempUsageDetail_20' ) start [2025-02-03 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390953', 'tblTempUsageDetail_20' ) end [2025-02-03 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390953', 'tblTempVendorCDR_20' ) start [2025-02-03 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390953', 'tblTempVendorCDR_20' ) end [2025-02-03 05:42:19] Production.INFO: ProcessCDR(1,14390953,1,1,2) [2025-02-03 05:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390953', 'tblTempUsageDetail_20' ) start [2025-02-03 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390953', 'tblTempUsageDetail_20' ) end [2025-02-03 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:42:22] Production.INFO: ==24797== Releasing lock... [2025-02-03 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:42:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:43:05 [end_date_ymd] => 2025-02-03 05:43:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:43:05' and `end` < '2025-02-03 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-02-03 05:43:17] Production.INFO: count ==77 [2025-02-03 05:43:17] Production.ERROR: pbx CDR StartTime 2025-02-03 02:43:05 - End Time 2025-02-03 05:43:05 [2025-02-03 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390958', 'tblTempUsageDetail_20' ) start [2025-02-03 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390958', 'tblTempUsageDetail_20' ) end [2025-02-03 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390958', 'tblTempVendorCDR_20' ) start [2025-02-03 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390958', 'tblTempVendorCDR_20' ) end [2025-02-03 05:43:17] Production.INFO: ProcessCDR(1,14390958,1,1,2) [2025-02-03 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390958', 'tblTempUsageDetail_20' ) start [2025-02-03 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390958', 'tblTempUsageDetail_20' ) end [2025-02-03 05:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:43:20] Production.INFO: ==24917== Releasing lock... [2025-02-03 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:43:20] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:44:05 [end_date_ymd] => 2025-02-03 05:44:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:44:05' and `end` < '2025-02-03 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-02-03 05:44:19] Production.INFO: count ==77 [2025-02-03 05:44:19] Production.ERROR: pbx CDR StartTime 2025-02-03 02:44:05 - End Time 2025-02-03 05:44:05 [2025-02-03 05:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390963', 'tblTempUsageDetail_20' ) start [2025-02-03 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390963', 'tblTempUsageDetail_20' ) end [2025-02-03 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390963', 'tblTempVendorCDR_20' ) start [2025-02-03 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390963', 'tblTempVendorCDR_20' ) end [2025-02-03 05:44:19] Production.INFO: ProcessCDR(1,14390963,1,1,2) [2025-02-03 05:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390963', 'tblTempUsageDetail_20' ) start [2025-02-03 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390963', 'tblTempUsageDetail_20' ) end [2025-02-03 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:44:21] Production.INFO: ==24999== Releasing lock... [2025-02-03 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:44:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:45:04 [end_date_ymd] => 2025-02-03 05:45:04 [RateCDR] => 1 ) [2025-02-03 05: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-02-03 02:45:04' and `end` < '2025-02-03 05: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-02-03 05:45:18] Production.INFO: count ==77 [2025-02-03 05:45:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:45:04 - End Time 2025-02-03 05:45:04 [2025-02-03 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390968', 'tblTempUsageDetail_20' ) start [2025-02-03 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390968', 'tblTempUsageDetail_20' ) end [2025-02-03 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390968', 'tblTempVendorCDR_20' ) start [2025-02-03 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390968', 'tblTempVendorCDR_20' ) end [2025-02-03 05:45:18] Production.INFO: ProcessCDR(1,14390968,1,1,2) [2025-02-03 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390968', 'tblTempUsageDetail_20' ) start [2025-02-03 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390968', 'tblTempUsageDetail_20' ) end [2025-02-03 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:45:21] Production.INFO: ==25078== Releasing lock... [2025-02-03 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:45:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:46:05 [end_date_ymd] => 2025-02-03 05:46:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:46:05' and `end` < '2025-02-03 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-02-03 05:46:19] Production.INFO: count ==77 [2025-02-03 05:46:19] Production.ERROR: pbx CDR StartTime 2025-02-03 02:46:05 - End Time 2025-02-03 05:46:05 [2025-02-03 05:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390973', 'tblTempUsageDetail_20' ) start [2025-02-03 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390973', 'tblTempUsageDetail_20' ) end [2025-02-03 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390973', 'tblTempVendorCDR_20' ) start [2025-02-03 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390973', 'tblTempVendorCDR_20' ) end [2025-02-03 05:46:19] Production.INFO: ProcessCDR(1,14390973,1,1,2) [2025-02-03 05:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390973', 'tblTempUsageDetail_20' ) start [2025-02-03 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390973', 'tblTempUsageDetail_20' ) end [2025-02-03 05:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:46:22] Production.INFO: ==25159== Releasing lock... [2025-02-03 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:46:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:47:05 [end_date_ymd] => 2025-02-03 05:47:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:47:05' and `end` < '2025-02-03 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-02-03 05:47:17] Production.INFO: count ==77 [2025-02-03 05:47:17] Production.ERROR: pbx CDR StartTime 2025-02-03 02:47:05 - End Time 2025-02-03 05:47:05 [2025-02-03 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390978', 'tblTempUsageDetail_20' ) start [2025-02-03 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390978', 'tblTempUsageDetail_20' ) end [2025-02-03 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390978', 'tblTempVendorCDR_20' ) start [2025-02-03 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390978', 'tblTempVendorCDR_20' ) end [2025-02-03 05:47:17] Production.INFO: ProcessCDR(1,14390978,1,1,2) [2025-02-03 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390978', 'tblTempUsageDetail_20' ) start [2025-02-03 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390978', 'tblTempUsageDetail_20' ) end [2025-02-03 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:47:20] Production.INFO: ==25236== Releasing lock... [2025-02-03 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:47:20] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:48:05 [end_date_ymd] => 2025-02-03 05:48:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:48:05' and `end` < '2025-02-03 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-02-03 05:48:18] Production.INFO: count ==77 [2025-02-03 05:48:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:48:05 - End Time 2025-02-03 05:48:05 [2025-02-03 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390983', 'tblTempUsageDetail_20' ) start [2025-02-03 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390983', 'tblTempUsageDetail_20' ) end [2025-02-03 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390983', 'tblTempVendorCDR_20' ) start [2025-02-03 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390983', 'tblTempVendorCDR_20' ) end [2025-02-03 05:48:18] Production.INFO: ProcessCDR(1,14390983,1,1,2) [2025-02-03 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390983', 'tblTempUsageDetail_20' ) start [2025-02-03 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390983', 'tblTempUsageDetail_20' ) end [2025-02-03 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:48:21] Production.INFO: ==25321== Releasing lock... [2025-02-03 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:48:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:49:04 [end_date_ymd] => 2025-02-03 05:49:04 [RateCDR] => 1 ) [2025-02-03 05: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-02-03 02:49:04' and `end` < '2025-02-03 05: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-02-03 05:49:17] Production.INFO: count ==77 [2025-02-03 05:49:17] Production.ERROR: pbx CDR StartTime 2025-02-03 02:49:04 - End Time 2025-02-03 05:49:04 [2025-02-03 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390988', 'tblTempUsageDetail_20' ) start [2025-02-03 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390988', 'tblTempUsageDetail_20' ) end [2025-02-03 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390988', 'tblTempVendorCDR_20' ) start [2025-02-03 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390988', 'tblTempVendorCDR_20' ) end [2025-02-03 05:49:17] Production.INFO: ProcessCDR(1,14390988,1,1,2) [2025-02-03 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390988', 'tblTempUsageDetail_20' ) start [2025-02-03 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390988', 'tblTempUsageDetail_20' ) end [2025-02-03 05:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:49:20] Production.INFO: ==25399== Releasing lock... [2025-02-03 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:49:20] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:50:05 [end_date_ymd] => 2025-02-03 05:50:05 [RateCDR] => 1 ) [2025-02-03 05: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-02-03 02:50:05' and `end` < '2025-02-03 05: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-02-03 05:50:18] Production.INFO: count ==77 [2025-02-03 05:50:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:50:05 - End Time 2025-02-03 05:50:05 [2025-02-03 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390993', 'tblTempUsageDetail_20' ) start [2025-02-03 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390993', 'tblTempUsageDetail_20' ) end [2025-02-03 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390993', 'tblTempVendorCDR_20' ) start [2025-02-03 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390993', 'tblTempVendorCDR_20' ) end [2025-02-03 05:50:18] Production.INFO: ProcessCDR(1,14390993,1,1,2) [2025-02-03 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390993', 'tblTempUsageDetail_20' ) start [2025-02-03 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390993', 'tblTempUsageDetail_20' ) end [2025-02-03 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:50:21] Production.INFO: ==25480== Releasing lock... [2025-02-03 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:50:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:51:05 [end_date_ymd] => 2025-02-03 05:51:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:51:05' and `end` < '2025-02-03 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-02-03 05:51:18] Production.INFO: count ==77 [2025-02-03 05:51:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:51:05 - End Time 2025-02-03 05:51:05 [2025-02-03 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390999', 'tblTempUsageDetail_20' ) start [2025-02-03 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14390999', 'tblTempUsageDetail_20' ) end [2025-02-03 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390999', 'tblTempVendorCDR_20' ) start [2025-02-03 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14390999', 'tblTempVendorCDR_20' ) end [2025-02-03 05:51:18] Production.INFO: ProcessCDR(1,14390999,1,1,2) [2025-02-03 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14390999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14390999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14390999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14390999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390999', 'tblTempUsageDetail_20' ) start [2025-02-03 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14390999', 'tblTempUsageDetail_20' ) end [2025-02-03 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:51:21] Production.INFO: ==25567== Releasing lock... [2025-02-03 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:51:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:52:05 [end_date_ymd] => 2025-02-03 05:52:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:52:05' and `end` < '2025-02-03 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-02-03 05:52:19] Production.INFO: count ==77 [2025-02-03 05:52:19] Production.ERROR: pbx CDR StartTime 2025-02-03 02:52:05 - End Time 2025-02-03 05:52:05 [2025-02-03 05:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391004', 'tblTempUsageDetail_20' ) start [2025-02-03 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391004', 'tblTempUsageDetail_20' ) end [2025-02-03 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391004', 'tblTempVendorCDR_20' ) start [2025-02-03 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391004', 'tblTempVendorCDR_20' ) end [2025-02-03 05:52:19] Production.INFO: ProcessCDR(1,14391004,1,1,2) [2025-02-03 05:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391004', 'tblTempUsageDetail_20' ) start [2025-02-03 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391004', 'tblTempUsageDetail_20' ) end [2025-02-03 05:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:52:22] Production.INFO: ==25650== Releasing lock... [2025-02-03 05:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:52:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:53:05 [end_date_ymd] => 2025-02-03 05:53:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:53:05' and `end` < '2025-02-03 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-02-03 05:53:18] Production.INFO: count ==77 [2025-02-03 05:53:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:53:05 - End Time 2025-02-03 05:53:05 [2025-02-03 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391009', 'tblTempUsageDetail_20' ) start [2025-02-03 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391009', 'tblTempUsageDetail_20' ) end [2025-02-03 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391009', 'tblTempVendorCDR_20' ) start [2025-02-03 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391009', 'tblTempVendorCDR_20' ) end [2025-02-03 05:53:18] Production.INFO: ProcessCDR(1,14391009,1,1,2) [2025-02-03 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391009', 'tblTempUsageDetail_20' ) start [2025-02-03 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391009', 'tblTempUsageDetail_20' ) end [2025-02-03 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:53:21] Production.INFO: ==25736== Releasing lock... [2025-02-03 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:53:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:54:05 [end_date_ymd] => 2025-02-03 05:54:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:54:05' and `end` < '2025-02-03 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-02-03 05:54:18] Production.INFO: count ==77 [2025-02-03 05:54:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:54:05 - End Time 2025-02-03 05:54:05 [2025-02-03 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391014', 'tblTempUsageDetail_20' ) start [2025-02-03 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391014', 'tblTempUsageDetail_20' ) end [2025-02-03 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391014', 'tblTempVendorCDR_20' ) start [2025-02-03 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391014', 'tblTempVendorCDR_20' ) end [2025-02-03 05:54:18] Production.INFO: ProcessCDR(1,14391014,1,1,2) [2025-02-03 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391014', 'tblTempUsageDetail_20' ) start [2025-02-03 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391014', 'tblTempUsageDetail_20' ) end [2025-02-03 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:54:21] Production.INFO: ==25814== Releasing lock... [2025-02-03 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:54:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:55:05 [end_date_ymd] => 2025-02-03 05:55:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:55:05' and `end` < '2025-02-03 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-02-03 05:55:19] Production.INFO: count ==77 [2025-02-03 05:55:19] Production.ERROR: pbx CDR StartTime 2025-02-03 02:55:05 - End Time 2025-02-03 05:55:05 [2025-02-03 05:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391019', 'tblTempUsageDetail_20' ) start [2025-02-03 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391019', 'tblTempUsageDetail_20' ) end [2025-02-03 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391019', 'tblTempVendorCDR_20' ) start [2025-02-03 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391019', 'tblTempVendorCDR_20' ) end [2025-02-03 05:55:19] Production.INFO: ProcessCDR(1,14391019,1,1,2) [2025-02-03 05:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391019', 'tblTempUsageDetail_20' ) start [2025-02-03 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391019', 'tblTempUsageDetail_20' ) end [2025-02-03 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:55:22] Production.INFO: ==25894== Releasing lock... [2025-02-03 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:55:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:56:04 [end_date_ymd] => 2025-02-03 05:56:04 [RateCDR] => 1 ) [2025-02-03 05: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-02-03 02:56:04' and `end` < '2025-02-03 05: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-02-03 05:56:17] Production.INFO: count ==77 [2025-02-03 05:56:17] Production.ERROR: pbx CDR StartTime 2025-02-03 02:56:04 - End Time 2025-02-03 05:56:04 [2025-02-03 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391024', 'tblTempUsageDetail_20' ) start [2025-02-03 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391024', 'tblTempUsageDetail_20' ) end [2025-02-03 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391024', 'tblTempVendorCDR_20' ) start [2025-02-03 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391024', 'tblTempVendorCDR_20' ) end [2025-02-03 05:56:17] Production.INFO: ProcessCDR(1,14391024,1,1,2) [2025-02-03 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391024', 'tblTempUsageDetail_20' ) start [2025-02-03 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391024', 'tblTempUsageDetail_20' ) end [2025-02-03 05:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:56:20] Production.INFO: ==25974== Releasing lock... [2025-02-03 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:56:20] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:57:05 [end_date_ymd] => 2025-02-03 05:57:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:57:05' and `end` < '2025-02-03 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-02-03 05:57:17] Production.INFO: count ==77 [2025-02-03 05:57:17] Production.ERROR: pbx CDR StartTime 2025-02-03 02:57:05 - End Time 2025-02-03 05:57:05 [2025-02-03 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391029', 'tblTempUsageDetail_20' ) start [2025-02-03 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391029', 'tblTempUsageDetail_20' ) end [2025-02-03 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391029', 'tblTempVendorCDR_20' ) start [2025-02-03 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391029', 'tblTempVendorCDR_20' ) end [2025-02-03 05:57:17] Production.INFO: ProcessCDR(1,14391029,1,1,2) [2025-02-03 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391029', 'tblTempUsageDetail_20' ) start [2025-02-03 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391029', 'tblTempUsageDetail_20' ) end [2025-02-03 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:57:20] Production.INFO: ==26053== Releasing lock... [2025-02-03 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:57:20] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:58:05 [end_date_ymd] => 2025-02-03 05:58:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:58:05' and `end` < '2025-02-03 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-02-03 05:58:18] Production.INFO: count ==77 [2025-02-03 05:58:18] Production.ERROR: pbx CDR StartTime 2025-02-03 02:58:05 - End Time 2025-02-03 05:58:05 [2025-02-03 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391034', 'tblTempUsageDetail_20' ) start [2025-02-03 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391034', 'tblTempUsageDetail_20' ) end [2025-02-03 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391034', 'tblTempVendorCDR_20' ) start [2025-02-03 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391034', 'tblTempVendorCDR_20' ) end [2025-02-03 05:58:18] Production.INFO: ProcessCDR(1,14391034,1,1,2) [2025-02-03 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391034', 'tblTempUsageDetail_20' ) start [2025-02-03 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391034', 'tblTempUsageDetail_20' ) end [2025-02-03 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:58:21] Production.INFO: ==26130== Releasing lock... [2025-02-03 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:58:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 02:59:05 [end_date_ymd] => 2025-02-03 05:59:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 02:59:05' and `end` < '2025-02-03 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-02-03 05:59:19] Production.INFO: count ==78 [2025-02-03 05:59:19] Production.ERROR: pbx CDR StartTime 2025-02-03 02:59:05 - End Time 2025-02-03 05:59:05 [2025-02-03 05:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391039', 'tblTempUsageDetail_20' ) start [2025-02-03 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391039', 'tblTempUsageDetail_20' ) end [2025-02-03 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391039', 'tblTempVendorCDR_20' ) start [2025-02-03 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391039', 'tblTempVendorCDR_20' ) end [2025-02-03 05:59:19] Production.INFO: ProcessCDR(1,14391039,1,1,2) [2025-02-03 05:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 05:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 05:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391039', 'tblTempUsageDetail_20' ) start [2025-02-03 05:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391039', 'tblTempUsageDetail_20' ) end [2025-02-03 05:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 05:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 05:59:23] Production.INFO: ==26248== Releasing lock... [2025-02-03 05:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 05:59:23] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:00:06 [end_date_ymd] => 2025-02-03 06:00:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:00:06' and `end` < '2025-02-03 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-02-03 06:00:18] Production.INFO: count ==76 [2025-02-03 06:00:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:00:06 - End Time 2025-02-03 06:00:06 [2025-02-03 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391044', 'tblTempUsageDetail_20' ) start [2025-02-03 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391044', 'tblTempUsageDetail_20' ) end [2025-02-03 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391044', 'tblTempVendorCDR_20' ) start [2025-02-03 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391044', 'tblTempVendorCDR_20' ) end [2025-02-03 06:00:18] Production.INFO: ProcessCDR(1,14391044,1,1,2) [2025-02-03 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391044', 'tblTempUsageDetail_20' ) start [2025-02-03 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391044', 'tblTempUsageDetail_20' ) end [2025-02-03 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:00:22] Production.INFO: ==26330== Releasing lock... [2025-02-03 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:00:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:01:05 [end_date_ymd] => 2025-02-03 06:01:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:01:05' and `end` < '2025-02-03 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-02-03 06:01:17] Production.INFO: count ==76 [2025-02-03 06:01:17] Production.ERROR: pbx CDR StartTime 2025-02-03 03:01:05 - End Time 2025-02-03 06:01:05 [2025-02-03 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391050', 'tblTempUsageDetail_20' ) start [2025-02-03 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391050', 'tblTempUsageDetail_20' ) end [2025-02-03 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391050', 'tblTempVendorCDR_20' ) start [2025-02-03 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391050', 'tblTempVendorCDR_20' ) end [2025-02-03 06:01:17] Production.INFO: ProcessCDR(1,14391050,1,1,2) [2025-02-03 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391050', 'tblTempUsageDetail_20' ) start [2025-02-03 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391050', 'tblTempUsageDetail_20' ) end [2025-02-03 06:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:01:20] Production.INFO: ==26424== Releasing lock... [2025-02-03 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:01:20] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:02:05 [end_date_ymd] => 2025-02-03 06:02:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:02:05' and `end` < '2025-02-03 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-02-03 06:02:18] Production.INFO: count ==76 [2025-02-03 06:02:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:02:05 - End Time 2025-02-03 06:02:05 [2025-02-03 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391055', 'tblTempUsageDetail_20' ) start [2025-02-03 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391055', 'tblTempUsageDetail_20' ) end [2025-02-03 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391055', 'tblTempVendorCDR_20' ) start [2025-02-03 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391055', 'tblTempVendorCDR_20' ) end [2025-02-03 06:02:18] Production.INFO: ProcessCDR(1,14391055,1,1,2) [2025-02-03 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391055', 'tblTempUsageDetail_20' ) start [2025-02-03 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391055', 'tblTempUsageDetail_20' ) end [2025-02-03 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:02:21] Production.INFO: ==26509== Releasing lock... [2025-02-03 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:02:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:03:04 [end_date_ymd] => 2025-02-03 06:03:04 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:03:04' and `end` < '2025-02-03 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-02-03 06:03:17] Production.INFO: count ==76 [2025-02-03 06:03:17] Production.ERROR: pbx CDR StartTime 2025-02-03 03:03:04 - End Time 2025-02-03 06:03:04 [2025-02-03 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391060', 'tblTempUsageDetail_20' ) start [2025-02-03 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391060', 'tblTempUsageDetail_20' ) end [2025-02-03 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391060', 'tblTempVendorCDR_20' ) start [2025-02-03 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391060', 'tblTempVendorCDR_20' ) end [2025-02-03 06:03:17] Production.INFO: ProcessCDR(1,14391060,1,1,2) [2025-02-03 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391060', 'tblTempUsageDetail_20' ) start [2025-02-03 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391060', 'tblTempUsageDetail_20' ) end [2025-02-03 06:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:03:20] Production.INFO: ==26585== Releasing lock... [2025-02-03 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:03:20] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:04:05 [end_date_ymd] => 2025-02-03 06:04:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:04:05' and `end` < '2025-02-03 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-02-03 06:04:19] Production.INFO: count ==76 [2025-02-03 06:04:19] Production.ERROR: pbx CDR StartTime 2025-02-03 03:04:05 - End Time 2025-02-03 06:04:05 [2025-02-03 06:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391065', 'tblTempUsageDetail_20' ) start [2025-02-03 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391065', 'tblTempUsageDetail_20' ) end [2025-02-03 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391065', 'tblTempVendorCDR_20' ) start [2025-02-03 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391065', 'tblTempVendorCDR_20' ) end [2025-02-03 06:04:19] Production.INFO: ProcessCDR(1,14391065,1,1,2) [2025-02-03 06:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391065', 'tblTempUsageDetail_20' ) start [2025-02-03 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391065', 'tblTempUsageDetail_20' ) end [2025-02-03 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:04:22] Production.INFO: ==26662== Releasing lock... [2025-02-03 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:04:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:05:06 [end_date_ymd] => 2025-02-03 06:05:06 [RateCDR] => 1 ) [2025-02-03 06: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-02-03 03:05:06' and `end` < '2025-02-03 06: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-02-03 06:05:19] Production.INFO: count ==76 [2025-02-03 06:05:19] Production.ERROR: pbx CDR StartTime 2025-02-03 03:05:06 - End Time 2025-02-03 06:05:06 [2025-02-03 06:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391070', 'tblTempUsageDetail_20' ) start [2025-02-03 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391070', 'tblTempUsageDetail_20' ) end [2025-02-03 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391070', 'tblTempVendorCDR_20' ) start [2025-02-03 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391070', 'tblTempVendorCDR_20' ) end [2025-02-03 06:05:19] Production.INFO: ProcessCDR(1,14391070,1,1,2) [2025-02-03 06:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391070', 'tblTempUsageDetail_20' ) start [2025-02-03 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391070', 'tblTempUsageDetail_20' ) end [2025-02-03 06:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:05:22] Production.INFO: ==26740== Releasing lock... [2025-02-03 06:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:05:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:06:05 [end_date_ymd] => 2025-02-03 06:06:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:06:05' and `end` < '2025-02-03 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-02-03 06:06:18] Production.INFO: count ==76 [2025-02-03 06:06:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:06:05 - End Time 2025-02-03 06:06:05 [2025-02-03 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391075', 'tblTempUsageDetail_20' ) start [2025-02-03 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391075', 'tblTempUsageDetail_20' ) end [2025-02-03 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391075', 'tblTempVendorCDR_20' ) start [2025-02-03 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391075', 'tblTempVendorCDR_20' ) end [2025-02-03 06:06:18] Production.INFO: ProcessCDR(1,14391075,1,1,2) [2025-02-03 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391075', 'tblTempUsageDetail_20' ) start [2025-02-03 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391075', 'tblTempUsageDetail_20' ) end [2025-02-03 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:06:21] Production.INFO: ==26820== Releasing lock... [2025-02-03 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:06:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:07:05 [end_date_ymd] => 2025-02-03 06:07:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:07:05' and `end` < '2025-02-03 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-02-03 06:07:18] Production.INFO: count ==76 [2025-02-03 06:07:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:07:05 - End Time 2025-02-03 06:07:05 [2025-02-03 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391080', 'tblTempUsageDetail_20' ) start [2025-02-03 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391080', 'tblTempUsageDetail_20' ) end [2025-02-03 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391080', 'tblTempVendorCDR_20' ) start [2025-02-03 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391080', 'tblTempVendorCDR_20' ) end [2025-02-03 06:07:18] Production.INFO: ProcessCDR(1,14391080,1,1,2) [2025-02-03 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391080', 'tblTempUsageDetail_20' ) start [2025-02-03 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391080', 'tblTempUsageDetail_20' ) end [2025-02-03 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:07:21] Production.INFO: ==26897== Releasing lock... [2025-02-03 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:07:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:08:05 [end_date_ymd] => 2025-02-03 06:08:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:08:05' and `end` < '2025-02-03 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-02-03 06:08:18] Production.INFO: count ==76 [2025-02-03 06:08:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:08:05 - End Time 2025-02-03 06:08:05 [2025-02-03 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391085', 'tblTempUsageDetail_20' ) start [2025-02-03 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391085', 'tblTempUsageDetail_20' ) end [2025-02-03 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391085', 'tblTempVendorCDR_20' ) start [2025-02-03 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391085', 'tblTempVendorCDR_20' ) end [2025-02-03 06:08:18] Production.INFO: ProcessCDR(1,14391085,1,1,2) [2025-02-03 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391085', 'tblTempUsageDetail_20' ) start [2025-02-03 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391085', 'tblTempUsageDetail_20' ) end [2025-02-03 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:08:21] Production.INFO: ==26979== Releasing lock... [2025-02-03 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:08:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:09:05 [end_date_ymd] => 2025-02-03 06:09:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:09:05' and `end` < '2025-02-03 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-02-03 06:09:18] Production.INFO: count ==76 [2025-02-03 06:09:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:09:05 - End Time 2025-02-03 06:09:05 [2025-02-03 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391090', 'tblTempUsageDetail_20' ) start [2025-02-03 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391090', 'tblTempUsageDetail_20' ) end [2025-02-03 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391090', 'tblTempVendorCDR_20' ) start [2025-02-03 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391090', 'tblTempVendorCDR_20' ) end [2025-02-03 06:09:18] Production.INFO: ProcessCDR(1,14391090,1,1,2) [2025-02-03 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391090', 'tblTempUsageDetail_20' ) start [2025-02-03 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391090', 'tblTempUsageDetail_20' ) end [2025-02-03 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:09:21] Production.INFO: ==27058== Releasing lock... [2025-02-03 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:09:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:10:06 [end_date_ymd] => 2025-02-03 06:10:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:10:06' and `end` < '2025-02-03 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-02-03 06:10:20] Production.INFO: count ==76 [2025-02-03 06:10:20] Production.ERROR: pbx CDR StartTime 2025-02-03 03:10:06 - End Time 2025-02-03 06:10:06 [2025-02-03 06:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391095', 'tblTempUsageDetail_20' ) start [2025-02-03 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391095', 'tblTempUsageDetail_20' ) end [2025-02-03 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391095', 'tblTempVendorCDR_20' ) start [2025-02-03 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391095', 'tblTempVendorCDR_20' ) end [2025-02-03 06:10:20] Production.INFO: ProcessCDR(1,14391095,1,1,2) [2025-02-03 06:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391095', 'tblTempUsageDetail_20' ) start [2025-02-03 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391095', 'tblTempUsageDetail_20' ) end [2025-02-03 06:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:10:23] Production.INFO: ==27137== Releasing lock... [2025-02-03 06:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:10:23] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:11:05 [end_date_ymd] => 2025-02-03 06:11:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:11:05' and `end` < '2025-02-03 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-02-03 06:11:18] Production.INFO: count ==76 [2025-02-03 06:11:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:11:05 - End Time 2025-02-03 06:11:05 [2025-02-03 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391101', 'tblTempUsageDetail_20' ) start [2025-02-03 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391101', 'tblTempUsageDetail_20' ) end [2025-02-03 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391101', 'tblTempVendorCDR_20' ) start [2025-02-03 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391101', 'tblTempVendorCDR_20' ) end [2025-02-03 06:11:18] Production.INFO: ProcessCDR(1,14391101,1,1,2) [2025-02-03 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391101', 'tblTempUsageDetail_20' ) start [2025-02-03 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391101', 'tblTempUsageDetail_20' ) end [2025-02-03 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:11:21] Production.INFO: ==27221== Releasing lock... [2025-02-03 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:11:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:12:05 [end_date_ymd] => 2025-02-03 06:12:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:12:05' and `end` < '2025-02-03 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-02-03 06:12:18] Production.INFO: count ==76 [2025-02-03 06:12:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:12:05 - End Time 2025-02-03 06:12:05 [2025-02-03 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391106', 'tblTempUsageDetail_20' ) start [2025-02-03 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391106', 'tblTempUsageDetail_20' ) end [2025-02-03 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391106', 'tblTempVendorCDR_20' ) start [2025-02-03 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391106', 'tblTempVendorCDR_20' ) end [2025-02-03 06:12:18] Production.INFO: ProcessCDR(1,14391106,1,1,2) [2025-02-03 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391106', 'tblTempUsageDetail_20' ) start [2025-02-03 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391106', 'tblTempUsageDetail_20' ) end [2025-02-03 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:12:21] Production.INFO: ==27291== Releasing lock... [2025-02-03 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:12:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:13:05 [end_date_ymd] => 2025-02-03 06:13:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:13:05' and `end` < '2025-02-03 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-02-03 06:13:18] Production.INFO: count ==76 [2025-02-03 06:13:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:13:05 - End Time 2025-02-03 06:13:05 [2025-02-03 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391111', 'tblTempUsageDetail_20' ) start [2025-02-03 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391111', 'tblTempUsageDetail_20' ) end [2025-02-03 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391111', 'tblTempVendorCDR_20' ) start [2025-02-03 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391111', 'tblTempVendorCDR_20' ) end [2025-02-03 06:13:18] Production.INFO: ProcessCDR(1,14391111,1,1,2) [2025-02-03 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391111', 'tblTempUsageDetail_20' ) start [2025-02-03 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391111', 'tblTempUsageDetail_20' ) end [2025-02-03 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:13:21] Production.INFO: ==27364== Releasing lock... [2025-02-03 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:13:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:14:05 [end_date_ymd] => 2025-02-03 06:14:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:14:05' and `end` < '2025-02-03 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-02-03 06:14:17] Production.INFO: count ==76 [2025-02-03 06:14:17] Production.ERROR: pbx CDR StartTime 2025-02-03 03:14:05 - End Time 2025-02-03 06:14:05 [2025-02-03 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391116', 'tblTempUsageDetail_20' ) start [2025-02-03 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391116', 'tblTempUsageDetail_20' ) end [2025-02-03 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391116', 'tblTempVendorCDR_20' ) start [2025-02-03 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391116', 'tblTempVendorCDR_20' ) end [2025-02-03 06:14:17] Production.INFO: ProcessCDR(1,14391116,1,1,2) [2025-02-03 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391116', 'tblTempUsageDetail_20' ) start [2025-02-03 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391116', 'tblTempUsageDetail_20' ) end [2025-02-03 06:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:14:20] Production.INFO: ==27475== Releasing lock... [2025-02-03 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:14:20] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:15:06 [end_date_ymd] => 2025-02-03 06:15:06 [RateCDR] => 1 ) [2025-02-03 06: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-02-03 03:15:06' and `end` < '2025-02-03 06: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-02-03 06:15:18] Production.INFO: count ==76 [2025-02-03 06:15:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:15:06 - End Time 2025-02-03 06:15:06 [2025-02-03 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391121', 'tblTempUsageDetail_20' ) start [2025-02-03 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391121', 'tblTempUsageDetail_20' ) end [2025-02-03 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391121', 'tblTempVendorCDR_20' ) start [2025-02-03 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391121', 'tblTempVendorCDR_20' ) end [2025-02-03 06:15:18] Production.INFO: ProcessCDR(1,14391121,1,1,2) [2025-02-03 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391121', 'tblTempUsageDetail_20' ) start [2025-02-03 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391121', 'tblTempUsageDetail_20' ) end [2025-02-03 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:15:21] Production.INFO: ==27549== Releasing lock... [2025-02-03 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:15:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:16:05 [end_date_ymd] => 2025-02-03 06:16:05 [RateCDR] => 1 ) [2025-02-03 06: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-02-03 03:16:05' and `end` < '2025-02-03 06: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-02-03 06:16:18] Production.INFO: count ==76 [2025-02-03 06:16:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:16:05 - End Time 2025-02-03 06:16:05 [2025-02-03 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391126', 'tblTempUsageDetail_20' ) start [2025-02-03 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391126', 'tblTempUsageDetail_20' ) end [2025-02-03 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391126', 'tblTempVendorCDR_20' ) start [2025-02-03 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391126', 'tblTempVendorCDR_20' ) end [2025-02-03 06:16:18] Production.INFO: ProcessCDR(1,14391126,1,1,2) [2025-02-03 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391126', 'tblTempUsageDetail_20' ) start [2025-02-03 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391126', 'tblTempUsageDetail_20' ) end [2025-02-03 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:16:21] Production.INFO: ==27618== Releasing lock... [2025-02-03 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:16:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:17:06 [end_date_ymd] => 2025-02-03 06:17:06 [RateCDR] => 1 ) [2025-02-03 06:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 03:17:06' and `end` < '2025-02-03 06:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 06:17:19] Production.INFO: count ==76 [2025-02-03 06:17:19] Production.ERROR: pbx CDR StartTime 2025-02-03 03:17:06 - End Time 2025-02-03 06:17:06 [2025-02-03 06:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391131', 'tblTempUsageDetail_20' ) start [2025-02-03 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391131', 'tblTempUsageDetail_20' ) end [2025-02-03 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391131', 'tblTempVendorCDR_20' ) start [2025-02-03 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391131', 'tblTempVendorCDR_20' ) end [2025-02-03 06:17:19] Production.INFO: ProcessCDR(1,14391131,1,1,2) [2025-02-03 06:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391131', 'tblTempUsageDetail_20' ) start [2025-02-03 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391131', 'tblTempUsageDetail_20' ) end [2025-02-03 06:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:17:22] Production.INFO: ==27692== Releasing lock... [2025-02-03 06:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:17:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:18:05 [end_date_ymd] => 2025-02-03 06:18:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:18:05' and `end` < '2025-02-03 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-02-03 06:18:17] Production.INFO: count ==76 [2025-02-03 06:18:17] Production.ERROR: pbx CDR StartTime 2025-02-03 03:18:05 - End Time 2025-02-03 06:18:05 [2025-02-03 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391136', 'tblTempUsageDetail_20' ) start [2025-02-03 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391136', 'tblTempUsageDetail_20' ) end [2025-02-03 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391136', 'tblTempVendorCDR_20' ) start [2025-02-03 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391136', 'tblTempVendorCDR_20' ) end [2025-02-03 06:18:17] Production.INFO: ProcessCDR(1,14391136,1,1,2) [2025-02-03 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391136', 'tblTempUsageDetail_20' ) start [2025-02-03 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391136', 'tblTempUsageDetail_20' ) end [2025-02-03 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:18:21] Production.INFO: ==27767== Releasing lock... [2025-02-03 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:18:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:19:05 [end_date_ymd] => 2025-02-03 06:19:05 [RateCDR] => 1 ) [2025-02-03 06: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-02-03 03:19:05' and `end` < '2025-02-03 06: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-02-03 06:19:18] Production.INFO: count ==76 [2025-02-03 06:19:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:19:05 - End Time 2025-02-03 06:19:05 [2025-02-03 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391141', 'tblTempUsageDetail_20' ) start [2025-02-03 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391141', 'tblTempUsageDetail_20' ) end [2025-02-03 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391141', 'tblTempVendorCDR_20' ) start [2025-02-03 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391141', 'tblTempVendorCDR_20' ) end [2025-02-03 06:19:18] Production.INFO: ProcessCDR(1,14391141,1,1,2) [2025-02-03 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391141', 'tblTempUsageDetail_20' ) start [2025-02-03 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391141', 'tblTempUsageDetail_20' ) end [2025-02-03 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:19:21] Production.INFO: ==27838== Releasing lock... [2025-02-03 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:19:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:20:05 [end_date_ymd] => 2025-02-03 06:20:05 [RateCDR] => 1 ) [2025-02-03 06: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-02-03 03:20:05' and `end` < '2025-02-03 06: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-02-03 06:20:18] Production.INFO: count ==76 [2025-02-03 06:20:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:20:05 - End Time 2025-02-03 06:20:05 [2025-02-03 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391147', 'tblTempUsageDetail_20' ) start [2025-02-03 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391147', 'tblTempUsageDetail_20' ) end [2025-02-03 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391147', 'tblTempVendorCDR_20' ) start [2025-02-03 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391147', 'tblTempVendorCDR_20' ) end [2025-02-03 06:20:18] Production.INFO: ProcessCDR(1,14391147,1,1,2) [2025-02-03 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391147', 'tblTempUsageDetail_20' ) start [2025-02-03 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391147', 'tblTempUsageDetail_20' ) end [2025-02-03 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:20:21] Production.INFO: ==27913== Releasing lock... [2025-02-03 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:20:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:21:05 [end_date_ymd] => 2025-02-03 06:21:05 [RateCDR] => 1 ) [2025-02-03 06: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-02-03 03:21:05' and `end` < '2025-02-03 06: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-02-03 06:21:19] Production.INFO: count ==76 [2025-02-03 06:21:19] Production.ERROR: pbx CDR StartTime 2025-02-03 03:21:05 - End Time 2025-02-03 06:21:05 [2025-02-03 06:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391152', 'tblTempUsageDetail_20' ) start [2025-02-03 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391152', 'tblTempUsageDetail_20' ) end [2025-02-03 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391152', 'tblTempVendorCDR_20' ) start [2025-02-03 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391152', 'tblTempVendorCDR_20' ) end [2025-02-03 06:21:19] Production.INFO: ProcessCDR(1,14391152,1,1,2) [2025-02-03 06:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391152', 'tblTempUsageDetail_20' ) start [2025-02-03 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391152', 'tblTempUsageDetail_20' ) end [2025-02-03 06:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:21:22] Production.INFO: ==27986== Releasing lock... [2025-02-03 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:21:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:22:05 [end_date_ymd] => 2025-02-03 06:22:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:22:05' and `end` < '2025-02-03 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-02-03 06:22:19] Production.INFO: count ==76 [2025-02-03 06:22:19] Production.ERROR: pbx CDR StartTime 2025-02-03 03:22:05 - End Time 2025-02-03 06:22:05 [2025-02-03 06:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391157', 'tblTempUsageDetail_20' ) start [2025-02-03 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391157', 'tblTempUsageDetail_20' ) end [2025-02-03 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391157', 'tblTempVendorCDR_20' ) start [2025-02-03 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391157', 'tblTempVendorCDR_20' ) end [2025-02-03 06:22:19] Production.INFO: ProcessCDR(1,14391157,1,1,2) [2025-02-03 06:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391157', 'tblTempUsageDetail_20' ) start [2025-02-03 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391157', 'tblTempUsageDetail_20' ) end [2025-02-03 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:22:22] Production.INFO: ==28057== Releasing lock... [2025-02-03 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:22:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:23:05 [end_date_ymd] => 2025-02-03 06:23:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:23:05' and `end` < '2025-02-03 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-02-03 06:23:18] Production.INFO: count ==76 [2025-02-03 06:23:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:23:05 - End Time 2025-02-03 06:23:05 [2025-02-03 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391162', 'tblTempUsageDetail_20' ) start [2025-02-03 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391162', 'tblTempUsageDetail_20' ) end [2025-02-03 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391162', 'tblTempVendorCDR_20' ) start [2025-02-03 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391162', 'tblTempVendorCDR_20' ) end [2025-02-03 06:23:18] Production.INFO: ProcessCDR(1,14391162,1,1,2) [2025-02-03 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391162', 'tblTempUsageDetail_20' ) start [2025-02-03 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391162', 'tblTempUsageDetail_20' ) end [2025-02-03 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:23:21] Production.INFO: ==28127== Releasing lock... [2025-02-03 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:23:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:24:05 [end_date_ymd] => 2025-02-03 06:24:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:24:05' and `end` < '2025-02-03 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-02-03 06:24:18] Production.INFO: count ==76 [2025-02-03 06:24:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:24:05 - End Time 2025-02-03 06:24:05 [2025-02-03 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391167', 'tblTempUsageDetail_20' ) start [2025-02-03 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391167', 'tblTempUsageDetail_20' ) end [2025-02-03 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391167', 'tblTempVendorCDR_20' ) start [2025-02-03 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391167', 'tblTempVendorCDR_20' ) end [2025-02-03 06:24:18] Production.INFO: ProcessCDR(1,14391167,1,1,2) [2025-02-03 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391167', 'tblTempUsageDetail_20' ) start [2025-02-03 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391167', 'tblTempUsageDetail_20' ) end [2025-02-03 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:24:21] Production.INFO: ==28201== Releasing lock... [2025-02-03 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:24:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:25:05 [end_date_ymd] => 2025-02-03 06:25:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:25:05' and `end` < '2025-02-03 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-02-03 06:25:18] Production.INFO: count ==76 [2025-02-03 06:25:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:25:05 - End Time 2025-02-03 06:25:05 [2025-02-03 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391172', 'tblTempUsageDetail_20' ) start [2025-02-03 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391172', 'tblTempUsageDetail_20' ) end [2025-02-03 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391172', 'tblTempVendorCDR_20' ) start [2025-02-03 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391172', 'tblTempVendorCDR_20' ) end [2025-02-03 06:25:18] Production.INFO: ProcessCDR(1,14391172,1,1,2) [2025-02-03 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391172', 'tblTempUsageDetail_20' ) start [2025-02-03 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391172', 'tblTempUsageDetail_20' ) end [2025-02-03 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:25:21] Production.INFO: ==28274== Releasing lock... [2025-02-03 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:25:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:26:05 [end_date_ymd] => 2025-02-03 06:26:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:26:05' and `end` < '2025-02-03 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-02-03 06:26:19] Production.INFO: count ==76 [2025-02-03 06:26:19] Production.ERROR: pbx CDR StartTime 2025-02-03 03:26:05 - End Time 2025-02-03 06:26:05 [2025-02-03 06:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391177', 'tblTempUsageDetail_20' ) start [2025-02-03 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391177', 'tblTempUsageDetail_20' ) end [2025-02-03 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391177', 'tblTempVendorCDR_20' ) start [2025-02-03 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391177', 'tblTempVendorCDR_20' ) end [2025-02-03 06:26:19] Production.INFO: ProcessCDR(1,14391177,1,1,2) [2025-02-03 06:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391177', 'tblTempUsageDetail_20' ) start [2025-02-03 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391177', 'tblTempUsageDetail_20' ) end [2025-02-03 06:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:26:22] Production.INFO: ==28346== Releasing lock... [2025-02-03 06:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:26:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:27:05 [end_date_ymd] => 2025-02-03 06:27:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:27:05' and `end` < '2025-02-03 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-02-03 06:27:19] Production.INFO: count ==76 [2025-02-03 06:27:19] Production.ERROR: pbx CDR StartTime 2025-02-03 03:27:05 - End Time 2025-02-03 06:27:05 [2025-02-03 06:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391182', 'tblTempUsageDetail_20' ) start [2025-02-03 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391182', 'tblTempUsageDetail_20' ) end [2025-02-03 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391182', 'tblTempVendorCDR_20' ) start [2025-02-03 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391182', 'tblTempVendorCDR_20' ) end [2025-02-03 06:27:19] Production.INFO: ProcessCDR(1,14391182,1,1,2) [2025-02-03 06:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391182', 'tblTempUsageDetail_20' ) start [2025-02-03 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391182', 'tblTempUsageDetail_20' ) end [2025-02-03 06:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:27:22] Production.INFO: ==28418== Releasing lock... [2025-02-03 06:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:27:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:28:05 [end_date_ymd] => 2025-02-03 06:28:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:28:05' and `end` < '2025-02-03 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-02-03 06:28:18] Production.INFO: count ==76 [2025-02-03 06:28:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:28:05 - End Time 2025-02-03 06:28:05 [2025-02-03 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391187', 'tblTempUsageDetail_20' ) start [2025-02-03 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391187', 'tblTempUsageDetail_20' ) end [2025-02-03 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391187', 'tblTempVendorCDR_20' ) start [2025-02-03 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391187', 'tblTempVendorCDR_20' ) end [2025-02-03 06:28:18] Production.INFO: ProcessCDR(1,14391187,1,1,2) [2025-02-03 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391187', 'tblTempUsageDetail_20' ) start [2025-02-03 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391187', 'tblTempUsageDetail_20' ) end [2025-02-03 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:28:21] Production.INFO: ==28487== Releasing lock... [2025-02-03 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:28:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:29:05 [end_date_ymd] => 2025-02-03 06:29:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:29:05' and `end` < '2025-02-03 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-02-03 06:29:19] Production.INFO: count ==76 [2025-02-03 06:29:19] Production.ERROR: pbx CDR StartTime 2025-02-03 03:29:05 - End Time 2025-02-03 06:29:05 [2025-02-03 06:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391192', 'tblTempUsageDetail_20' ) start [2025-02-03 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391192', 'tblTempUsageDetail_20' ) end [2025-02-03 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391192', 'tblTempVendorCDR_20' ) start [2025-02-03 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391192', 'tblTempVendorCDR_20' ) end [2025-02-03 06:29:19] Production.INFO: ProcessCDR(1,14391192,1,1,2) [2025-02-03 06:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391192', 'tblTempUsageDetail_20' ) start [2025-02-03 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391192', 'tblTempUsageDetail_20' ) end [2025-02-03 06:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:29:22] Production.INFO: ==28562== Releasing lock... [2025-02-03 06:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:29:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:30:05 [end_date_ymd] => 2025-02-03 06:30:05 [RateCDR] => 1 ) [2025-02-03 06: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-02-03 03:30:05' and `end` < '2025-02-03 06: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-02-03 06:30:18] Production.INFO: count ==78 [2025-02-03 06:30:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:30:05 - End Time 2025-02-03 06:30:05 [2025-02-03 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391198', 'tblTempUsageDetail_20' ) start [2025-02-03 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391198', 'tblTempUsageDetail_20' ) end [2025-02-03 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391198', 'tblTempVendorCDR_20' ) start [2025-02-03 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391198', 'tblTempVendorCDR_20' ) end [2025-02-03 06:30:18] Production.INFO: ProcessCDR(1,14391198,1,1,2) [2025-02-03 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391198', 'tblTempUsageDetail_20' ) start [2025-02-03 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391198', 'tblTempUsageDetail_20' ) end [2025-02-03 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:30:21] Production.INFO: ==28676== Releasing lock... [2025-02-03 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:30:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:31:05 [end_date_ymd] => 2025-02-03 06:31:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:31:05' and `end` < '2025-02-03 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-02-03 06:31:19] Production.INFO: count ==79 [2025-02-03 06:31:19] Production.ERROR: pbx CDR StartTime 2025-02-03 03:31:05 - End Time 2025-02-03 06:31:05 [2025-02-03 06:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391203', 'tblTempUsageDetail_20' ) start [2025-02-03 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391203', 'tblTempUsageDetail_20' ) end [2025-02-03 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391203', 'tblTempVendorCDR_20' ) start [2025-02-03 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391203', 'tblTempVendorCDR_20' ) end [2025-02-03 06:31:19] Production.INFO: ProcessCDR(1,14391203,1,1,2) [2025-02-03 06:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391203', 'tblTempUsageDetail_20' ) start [2025-02-03 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391203', 'tblTempUsageDetail_20' ) end [2025-02-03 06:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:31:22] Production.INFO: ==28756== Releasing lock... [2025-02-03 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:31:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:32:04 [end_date_ymd] => 2025-02-03 06:32:04 [RateCDR] => 1 ) [2025-02-03 06: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-02-03 03:32:04' and `end` < '2025-02-03 06: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-02-03 06:32:17] Production.INFO: count ==79 [2025-02-03 06:32:17] Production.ERROR: pbx CDR StartTime 2025-02-03 03:32:04 - End Time 2025-02-03 06:32:04 [2025-02-03 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391208', 'tblTempUsageDetail_20' ) start [2025-02-03 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391208', 'tblTempUsageDetail_20' ) end [2025-02-03 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391208', 'tblTempVendorCDR_20' ) start [2025-02-03 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391208', 'tblTempVendorCDR_20' ) end [2025-02-03 06:32:17] Production.INFO: ProcessCDR(1,14391208,1,1,2) [2025-02-03 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391208', 'tblTempUsageDetail_20' ) start [2025-02-03 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391208', 'tblTempUsageDetail_20' ) end [2025-02-03 06:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:32:20] Production.INFO: ==28832== Releasing lock... [2025-02-03 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:32:20] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:33:05 [end_date_ymd] => 2025-02-03 06:33:05 [RateCDR] => 1 ) [2025-02-03 06: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-02-03 03:33:05' and `end` < '2025-02-03 06: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-02-03 06:33:18] Production.INFO: count ==79 [2025-02-03 06:33:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:33:05 - End Time 2025-02-03 06:33:05 [2025-02-03 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391213', 'tblTempUsageDetail_20' ) start [2025-02-03 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391213', 'tblTempUsageDetail_20' ) end [2025-02-03 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391213', 'tblTempVendorCDR_20' ) start [2025-02-03 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391213', 'tblTempVendorCDR_20' ) end [2025-02-03 06:33:18] Production.INFO: ProcessCDR(1,14391213,1,1,2) [2025-02-03 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391213', 'tblTempUsageDetail_20' ) start [2025-02-03 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391213', 'tblTempUsageDetail_20' ) end [2025-02-03 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:33:21] Production.INFO: ==28906== Releasing lock... [2025-02-03 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:33:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:34:05 [end_date_ymd] => 2025-02-03 06:34:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:34:05' and `end` < '2025-02-03 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-02-03 06:34:20] Production.INFO: count ==79 [2025-02-03 06:34:20] Production.ERROR: pbx CDR StartTime 2025-02-03 03:34:05 - End Time 2025-02-03 06:34:05 [2025-02-03 06:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391218', 'tblTempUsageDetail_20' ) start [2025-02-03 06:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391218', 'tblTempUsageDetail_20' ) end [2025-02-03 06:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391218', 'tblTempVendorCDR_20' ) start [2025-02-03 06:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391218', 'tblTempVendorCDR_20' ) end [2025-02-03 06:34:20] Production.INFO: ProcessCDR(1,14391218,1,1,2) [2025-02-03 06:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391218', 'tblTempUsageDetail_20' ) start [2025-02-03 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391218', 'tblTempUsageDetail_20' ) end [2025-02-03 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:34:22] Production.INFO: ==28979== Releasing lock... [2025-02-03 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:34:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:35:05 [end_date_ymd] => 2025-02-03 06:35:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:35:05' and `end` < '2025-02-03 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-02-03 06:35:18] Production.INFO: count ==79 [2025-02-03 06:35:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:35:05 - End Time 2025-02-03 06:35:05 [2025-02-03 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391223', 'tblTempUsageDetail_20' ) start [2025-02-03 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391223', 'tblTempUsageDetail_20' ) end [2025-02-03 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391223', 'tblTempVendorCDR_20' ) start [2025-02-03 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391223', 'tblTempVendorCDR_20' ) end [2025-02-03 06:35:18] Production.INFO: ProcessCDR(1,14391223,1,1,2) [2025-02-03 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391223', 'tblTempUsageDetail_20' ) start [2025-02-03 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391223', 'tblTempUsageDetail_20' ) end [2025-02-03 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:35:21] Production.INFO: ==29050== Releasing lock... [2025-02-03 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:35:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:36:04 [end_date_ymd] => 2025-02-03 06:36:04 [RateCDR] => 1 ) [2025-02-03 06: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-02-03 03:36:04' and `end` < '2025-02-03 06: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-02-03 06:36:18] Production.INFO: count ==79 [2025-02-03 06:36:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:36:04 - End Time 2025-02-03 06:36:04 [2025-02-03 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391228', 'tblTempUsageDetail_20' ) start [2025-02-03 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391228', 'tblTempUsageDetail_20' ) end [2025-02-03 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391228', 'tblTempVendorCDR_20' ) start [2025-02-03 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391228', 'tblTempVendorCDR_20' ) end [2025-02-03 06:36:18] Production.INFO: ProcessCDR(1,14391228,1,1,2) [2025-02-03 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391228', 'tblTempUsageDetail_20' ) start [2025-02-03 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391228', 'tblTempUsageDetail_20' ) end [2025-02-03 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:36:21] Production.INFO: ==29124== Releasing lock... [2025-02-03 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:36:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:37:04 [end_date_ymd] => 2025-02-03 06:37:04 [RateCDR] => 1 ) [2025-02-03 06: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-02-03 03:37:04' and `end` < '2025-02-03 06: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-02-03 06:37:18] Production.INFO: count ==79 [2025-02-03 06:37:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:37:04 - End Time 2025-02-03 06:37:04 [2025-02-03 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391233', 'tblTempUsageDetail_20' ) start [2025-02-03 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391233', 'tblTempUsageDetail_20' ) end [2025-02-03 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391233', 'tblTempVendorCDR_20' ) start [2025-02-03 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391233', 'tblTempVendorCDR_20' ) end [2025-02-03 06:37:18] Production.INFO: ProcessCDR(1,14391233,1,1,2) [2025-02-03 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391233', 'tblTempUsageDetail_20' ) start [2025-02-03 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391233', 'tblTempUsageDetail_20' ) end [2025-02-03 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:37:21] Production.INFO: ==29193== Releasing lock... [2025-02-03 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:37:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:38:05 [end_date_ymd] => 2025-02-03 06:38:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:38:05' and `end` < '2025-02-03 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-02-03 06:38:18] Production.INFO: count ==79 [2025-02-03 06:38:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:38:05 - End Time 2025-02-03 06:38:05 [2025-02-03 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391238', 'tblTempUsageDetail_20' ) start [2025-02-03 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391238', 'tblTempUsageDetail_20' ) end [2025-02-03 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391238', 'tblTempVendorCDR_20' ) start [2025-02-03 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391238', 'tblTempVendorCDR_20' ) end [2025-02-03 06:38:18] Production.INFO: ProcessCDR(1,14391238,1,1,2) [2025-02-03 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391238', 'tblTempUsageDetail_20' ) start [2025-02-03 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391238', 'tblTempUsageDetail_20' ) end [2025-02-03 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:38:21] Production.INFO: ==29268== Releasing lock... [2025-02-03 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:38:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:39:05 [end_date_ymd] => 2025-02-03 06:39:05 [RateCDR] => 1 ) [2025-02-03 06: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-02-03 03:39:05' and `end` < '2025-02-03 06: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-02-03 06:39:17] Production.INFO: count ==79 [2025-02-03 06:39:17] Production.ERROR: pbx CDR StartTime 2025-02-03 03:39:05 - End Time 2025-02-03 06:39:05 [2025-02-03 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391242', 'tblTempUsageDetail_20' ) start [2025-02-03 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391242', 'tblTempUsageDetail_20' ) end [2025-02-03 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391242', 'tblTempVendorCDR_20' ) start [2025-02-03 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391242', 'tblTempVendorCDR_20' ) end [2025-02-03 06:39:17] Production.INFO: ProcessCDR(1,14391242,1,1,2) [2025-02-03 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391242', 'tblTempUsageDetail_20' ) start [2025-02-03 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391242', 'tblTempUsageDetail_20' ) end [2025-02-03 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:39:20] Production.INFO: ==29337== Releasing lock... [2025-02-03 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:39:20] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:40:06 [end_date_ymd] => 2025-02-03 06:40:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:40:06' and `end` < '2025-02-03 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-02-03 06:40:18] Production.INFO: count ==79 [2025-02-03 06:40:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:40:06 - End Time 2025-02-03 06:40:06 [2025-02-03 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391249', 'tblTempUsageDetail_20' ) start [2025-02-03 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391249', 'tblTempUsageDetail_20' ) end [2025-02-03 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391249', 'tblTempVendorCDR_20' ) start [2025-02-03 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391249', 'tblTempVendorCDR_20' ) end [2025-02-03 06:40:18] Production.INFO: ProcessCDR(1,14391249,1,1,2) [2025-02-03 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391249', 'tblTempUsageDetail_20' ) start [2025-02-03 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391249', 'tblTempUsageDetail_20' ) end [2025-02-03 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:40:21] Production.INFO: ==29410== Releasing lock... [2025-02-03 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:40:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:41:06 [end_date_ymd] => 2025-02-03 06:41:06 [RateCDR] => 1 ) [2025-02-03 06: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-02-03 03:41:06' and `end` < '2025-02-03 06: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-02-03 06:41:19] Production.INFO: count ==79 [2025-02-03 06:41:19] Production.ERROR: pbx CDR StartTime 2025-02-03 03:41:06 - End Time 2025-02-03 06:41:06 [2025-02-03 06:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391254', 'tblTempUsageDetail_20' ) start [2025-02-03 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391254', 'tblTempUsageDetail_20' ) end [2025-02-03 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391254', 'tblTempVendorCDR_20' ) start [2025-02-03 06:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391254', 'tblTempVendorCDR_20' ) end [2025-02-03 06:41:19] Production.INFO: ProcessCDR(1,14391254,1,1,2) [2025-02-03 06:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391254', 'tblTempUsageDetail_20' ) start [2025-02-03 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391254', 'tblTempUsageDetail_20' ) end [2025-02-03 06:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:41:22] Production.INFO: ==29491== Releasing lock... [2025-02-03 06:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:41:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:42:04 [end_date_ymd] => 2025-02-03 06:42:04 [RateCDR] => 1 ) [2025-02-03 06: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-02-03 03:42:04' and `end` < '2025-02-03 06: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-02-03 06:42:18] Production.INFO: count ==79 [2025-02-03 06:42:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:42:04 - End Time 2025-02-03 06:42:04 [2025-02-03 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391259', 'tblTempUsageDetail_20' ) start [2025-02-03 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391259', 'tblTempUsageDetail_20' ) end [2025-02-03 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391259', 'tblTempVendorCDR_20' ) start [2025-02-03 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391259', 'tblTempVendorCDR_20' ) end [2025-02-03 06:42:18] Production.INFO: ProcessCDR(1,14391259,1,1,2) [2025-02-03 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391259', 'tblTempUsageDetail_20' ) start [2025-02-03 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391259', 'tblTempUsageDetail_20' ) end [2025-02-03 06:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:42:21] Production.INFO: ==29563== Releasing lock... [2025-02-03 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:42:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:43:05 [end_date_ymd] => 2025-02-03 06:43:05 [RateCDR] => 1 ) [2025-02-03 06: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-02-03 03:43:05' and `end` < '2025-02-03 06: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-02-03 06:43:18] Production.INFO: count ==79 [2025-02-03 06:43:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:43:05 - End Time 2025-02-03 06:43:05 [2025-02-03 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391264', 'tblTempUsageDetail_20' ) start [2025-02-03 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391264', 'tblTempUsageDetail_20' ) end [2025-02-03 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391264', 'tblTempVendorCDR_20' ) start [2025-02-03 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391264', 'tblTempVendorCDR_20' ) end [2025-02-03 06:43:18] Production.INFO: ProcessCDR(1,14391264,1,1,2) [2025-02-03 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391264', 'tblTempUsageDetail_20' ) start [2025-02-03 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391264', 'tblTempUsageDetail_20' ) end [2025-02-03 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:43:21] Production.INFO: ==29638== Releasing lock... [2025-02-03 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:43:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:44:05 [end_date_ymd] => 2025-02-03 06:44:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:44:05' and `end` < '2025-02-03 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-02-03 06:44:18] Production.INFO: count ==79 [2025-02-03 06:44:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:44:05 - End Time 2025-02-03 06:44:05 [2025-02-03 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391269', 'tblTempUsageDetail_20' ) start [2025-02-03 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391269', 'tblTempUsageDetail_20' ) end [2025-02-03 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391269', 'tblTempVendorCDR_20' ) start [2025-02-03 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391269', 'tblTempVendorCDR_20' ) end [2025-02-03 06:44:18] Production.INFO: ProcessCDR(1,14391269,1,1,2) [2025-02-03 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391269', 'tblTempUsageDetail_20' ) start [2025-02-03 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391269', 'tblTempUsageDetail_20' ) end [2025-02-03 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:44:21] Production.INFO: ==29714== Releasing lock... [2025-02-03 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:44:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:45:05 [end_date_ymd] => 2025-02-03 06:45:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:45:05' and `end` < '2025-02-03 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-02-03 06:45:18] Production.INFO: count ==79 [2025-02-03 06:45:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:45:05 - End Time 2025-02-03 06:45:05 [2025-02-03 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391274', 'tblTempUsageDetail_20' ) start [2025-02-03 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391274', 'tblTempUsageDetail_20' ) end [2025-02-03 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391274', 'tblTempVendorCDR_20' ) start [2025-02-03 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391274', 'tblTempVendorCDR_20' ) end [2025-02-03 06:45:18] Production.INFO: ProcessCDR(1,14391274,1,1,2) [2025-02-03 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391274', 'tblTempUsageDetail_20' ) start [2025-02-03 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391274', 'tblTempUsageDetail_20' ) end [2025-02-03 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:45:21] Production.INFO: ==29830== Releasing lock... [2025-02-03 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:45:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:46:05 [end_date_ymd] => 2025-02-03 06:46:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:46:05' and `end` < '2025-02-03 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-02-03 06:46:19] Production.INFO: count ==79 [2025-02-03 06:46:19] Production.ERROR: pbx CDR StartTime 2025-02-03 03:46:05 - End Time 2025-02-03 06:46:05 [2025-02-03 06:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391279', 'tblTempUsageDetail_20' ) start [2025-02-03 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391279', 'tblTempUsageDetail_20' ) end [2025-02-03 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391279', 'tblTempVendorCDR_20' ) start [2025-02-03 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391279', 'tblTempVendorCDR_20' ) end [2025-02-03 06:46:19] Production.INFO: ProcessCDR(1,14391279,1,1,2) [2025-02-03 06:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391279', 'tblTempUsageDetail_20' ) start [2025-02-03 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391279', 'tblTempUsageDetail_20' ) end [2025-02-03 06:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:46:22] Production.INFO: ==29908== Releasing lock... [2025-02-03 06:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:46:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:47:04 [end_date_ymd] => 2025-02-03 06:47:04 [RateCDR] => 1 ) [2025-02-03 06: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-02-03 03:47:04' and `end` < '2025-02-03 06: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-02-03 06:47:17] Production.INFO: count ==79 [2025-02-03 06:47:17] Production.ERROR: pbx CDR StartTime 2025-02-03 03:47:04 - End Time 2025-02-03 06:47:04 [2025-02-03 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391284', 'tblTempUsageDetail_20' ) start [2025-02-03 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391284', 'tblTempUsageDetail_20' ) end [2025-02-03 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391284', 'tblTempVendorCDR_20' ) start [2025-02-03 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391284', 'tblTempVendorCDR_20' ) end [2025-02-03 06:47:17] Production.INFO: ProcessCDR(1,14391284,1,1,2) [2025-02-03 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391284', 'tblTempUsageDetail_20' ) start [2025-02-03 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391284', 'tblTempUsageDetail_20' ) end [2025-02-03 06:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:47:20] Production.INFO: ==29988== Releasing lock... [2025-02-03 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:47:20] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:48:05 [end_date_ymd] => 2025-02-03 06:48:05 [RateCDR] => 1 ) [2025-02-03 06: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-02-03 03:48:05' and `end` < '2025-02-03 06: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-02-03 06:48:17] Production.INFO: count ==79 [2025-02-03 06:48:17] Production.ERROR: pbx CDR StartTime 2025-02-03 03:48:05 - End Time 2025-02-03 06:48:05 [2025-02-03 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391289', 'tblTempUsageDetail_20' ) start [2025-02-03 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391289', 'tblTempUsageDetail_20' ) end [2025-02-03 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391289', 'tblTempVendorCDR_20' ) start [2025-02-03 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391289', 'tblTempVendorCDR_20' ) end [2025-02-03 06:48:17] Production.INFO: ProcessCDR(1,14391289,1,1,2) [2025-02-03 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391289', 'tblTempUsageDetail_20' ) start [2025-02-03 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391289', 'tblTempUsageDetail_20' ) end [2025-02-03 06:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:48:20] Production.INFO: ==30063== Releasing lock... [2025-02-03 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:48:20] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:49:05 [end_date_ymd] => 2025-02-03 06:49:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:49:05' and `end` < '2025-02-03 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-02-03 06:49:18] Production.INFO: count ==79 [2025-02-03 06:49:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:49:05 - End Time 2025-02-03 06:49:05 [2025-02-03 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391294', 'tblTempUsageDetail_20' ) start [2025-02-03 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391294', 'tblTempUsageDetail_20' ) end [2025-02-03 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391294', 'tblTempVendorCDR_20' ) start [2025-02-03 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391294', 'tblTempVendorCDR_20' ) end [2025-02-03 06:49:18] Production.INFO: ProcessCDR(1,14391294,1,1,2) [2025-02-03 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391294', 'tblTempUsageDetail_20' ) start [2025-02-03 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391294', 'tblTempUsageDetail_20' ) end [2025-02-03 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:49:21] Production.INFO: ==30144== Releasing lock... [2025-02-03 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:49:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:50:05 [end_date_ymd] => 2025-02-03 06:50:05 [RateCDR] => 1 ) [2025-02-03 06: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-02-03 03:50:05' and `end` < '2025-02-03 06: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-02-03 06:50:18] Production.INFO: count ==79 [2025-02-03 06:50:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:50:05 - End Time 2025-02-03 06:50:05 [2025-02-03 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391300', 'tblTempUsageDetail_20' ) start [2025-02-03 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391300', 'tblTempUsageDetail_20' ) end [2025-02-03 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391300', 'tblTempVendorCDR_20' ) start [2025-02-03 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391300', 'tblTempVendorCDR_20' ) end [2025-02-03 06:50:18] Production.INFO: ProcessCDR(1,14391300,1,1,2) [2025-02-03 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391300', 'tblTempUsageDetail_20' ) start [2025-02-03 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391300', 'tblTempUsageDetail_20' ) end [2025-02-03 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:50:21] Production.INFO: ==30233== Releasing lock... [2025-02-03 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:50:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:51:05 [end_date_ymd] => 2025-02-03 06:51:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:51:05' and `end` < '2025-02-03 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-02-03 06:51:18] Production.INFO: count ==79 [2025-02-03 06:51:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:51:05 - End Time 2025-02-03 06:51:05 [2025-02-03 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391305', 'tblTempUsageDetail_20' ) start [2025-02-03 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391305', 'tblTempUsageDetail_20' ) end [2025-02-03 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391305', 'tblTempVendorCDR_20' ) start [2025-02-03 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391305', 'tblTempVendorCDR_20' ) end [2025-02-03 06:51:18] Production.INFO: ProcessCDR(1,14391305,1,1,2) [2025-02-03 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391305', 'tblTempUsageDetail_20' ) start [2025-02-03 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391305', 'tblTempUsageDetail_20' ) end [2025-02-03 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:51:21] Production.INFO: ==30311== Releasing lock... [2025-02-03 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:51:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:52:05 [end_date_ymd] => 2025-02-03 06:52:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:52:05' and `end` < '2025-02-03 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-02-03 06:52:18] Production.INFO: count ==79 [2025-02-03 06:52:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:52:05 - End Time 2025-02-03 06:52:05 [2025-02-03 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391310', 'tblTempUsageDetail_20' ) start [2025-02-03 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391310', 'tblTempUsageDetail_20' ) end [2025-02-03 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391310', 'tblTempVendorCDR_20' ) start [2025-02-03 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391310', 'tblTempVendorCDR_20' ) end [2025-02-03 06:52:18] Production.INFO: ProcessCDR(1,14391310,1,1,2) [2025-02-03 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391310', 'tblTempUsageDetail_20' ) start [2025-02-03 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391310', 'tblTempUsageDetail_20' ) end [2025-02-03 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:52:21] Production.INFO: ==30392== Releasing lock... [2025-02-03 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:52:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:53:05 [end_date_ymd] => 2025-02-03 06:53:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:53:05' and `end` < '2025-02-03 06: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-02-03 06:53:18] Production.INFO: count ==79 [2025-02-03 06:53:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:53:05 - End Time 2025-02-03 06:53:05 [2025-02-03 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391315', 'tblTempUsageDetail_20' ) start [2025-02-03 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391315', 'tblTempUsageDetail_20' ) end [2025-02-03 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391315', 'tblTempVendorCDR_20' ) start [2025-02-03 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391315', 'tblTempVendorCDR_20' ) end [2025-02-03 06:53:18] Production.INFO: ProcessCDR(1,14391315,1,1,2) [2025-02-03 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391315', 'tblTempUsageDetail_20' ) start [2025-02-03 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391315', 'tblTempUsageDetail_20' ) end [2025-02-03 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:53:21] Production.INFO: ==30476== Releasing lock... [2025-02-03 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:53:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:54:04 [end_date_ymd] => 2025-02-03 06:54:04 [RateCDR] => 1 ) [2025-02-03 06:54: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-02-03 03:54:04' and `end` < '2025-02-03 06:54: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-02-03 06:54:18] Production.INFO: count ==79 [2025-02-03 06:54:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:54:04 - End Time 2025-02-03 06:54:04 [2025-02-03 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391320', 'tblTempUsageDetail_20' ) start [2025-02-03 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391320', 'tblTempUsageDetail_20' ) end [2025-02-03 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391320', 'tblTempVendorCDR_20' ) start [2025-02-03 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391320', 'tblTempVendorCDR_20' ) end [2025-02-03 06:54:18] Production.INFO: ProcessCDR(1,14391320,1,1,2) [2025-02-03 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391320', 'tblTempUsageDetail_20' ) start [2025-02-03 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391320', 'tblTempUsageDetail_20' ) end [2025-02-03 06:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:54:20] Production.INFO: ==30555== Releasing lock... [2025-02-03 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:54:20] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:55:05 [end_date_ymd] => 2025-02-03 06:55:05 [RateCDR] => 1 ) [2025-02-03 06: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-02-03 03:55:05' and `end` < '2025-02-03 06: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-02-03 06:55:18] Production.INFO: count ==79 [2025-02-03 06:55:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:55:05 - End Time 2025-02-03 06:55:05 [2025-02-03 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391325', 'tblTempUsageDetail_20' ) start [2025-02-03 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391325', 'tblTempUsageDetail_20' ) end [2025-02-03 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391325', 'tblTempVendorCDR_20' ) start [2025-02-03 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391325', 'tblTempVendorCDR_20' ) end [2025-02-03 06:55:18] Production.INFO: ProcessCDR(1,14391325,1,1,2) [2025-02-03 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391325', 'tblTempUsageDetail_20' ) start [2025-02-03 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391325', 'tblTempUsageDetail_20' ) end [2025-02-03 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:55:21] Production.INFO: ==30629== Releasing lock... [2025-02-03 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:55:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:56:05 [end_date_ymd] => 2025-02-03 06:56:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:56:05' and `end` < '2025-02-03 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-02-03 06:56:19] Production.INFO: count ==79 [2025-02-03 06:56:19] Production.ERROR: pbx CDR StartTime 2025-02-03 03:56:05 - End Time 2025-02-03 06:56:05 [2025-02-03 06:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391330', 'tblTempUsageDetail_20' ) start [2025-02-03 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391330', 'tblTempUsageDetail_20' ) end [2025-02-03 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391330', 'tblTempVendorCDR_20' ) start [2025-02-03 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391330', 'tblTempVendorCDR_20' ) end [2025-02-03 06:56:19] Production.INFO: ProcessCDR(1,14391330,1,1,2) [2025-02-03 06:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391330', 'tblTempUsageDetail_20' ) start [2025-02-03 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391330', 'tblTempUsageDetail_20' ) end [2025-02-03 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:56:21] Production.INFO: ==30709== Releasing lock... [2025-02-03 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:56:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:57:04 [end_date_ymd] => 2025-02-03 06:57:04 [RateCDR] => 1 ) [2025-02-03 06:57: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-02-03 03:57:04' and `end` < '2025-02-03 06: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-02-03 06:57:18] Production.INFO: count ==79 [2025-02-03 06:57:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:57:04 - End Time 2025-02-03 06:57:04 [2025-02-03 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391335', 'tblTempUsageDetail_20' ) start [2025-02-03 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391335', 'tblTempUsageDetail_20' ) end [2025-02-03 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391335', 'tblTempVendorCDR_20' ) start [2025-02-03 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391335', 'tblTempVendorCDR_20' ) end [2025-02-03 06:57:18] Production.INFO: ProcessCDR(1,14391335,1,1,2) [2025-02-03 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391335', 'tblTempUsageDetail_20' ) start [2025-02-03 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391335', 'tblTempUsageDetail_20' ) end [2025-02-03 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:57:21] Production.INFO: ==30793== Releasing lock... [2025-02-03 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:57:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:58:05 [end_date_ymd] => 2025-02-03 06:58:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 03:58:05' and `end` < '2025-02-03 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-02-03 06:58:18] Production.INFO: count ==79 [2025-02-03 06:58:18] Production.ERROR: pbx CDR StartTime 2025-02-03 03:58:05 - End Time 2025-02-03 06:58:05 [2025-02-03 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391340', 'tblTempUsageDetail_20' ) start [2025-02-03 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391340', 'tblTempUsageDetail_20' ) end [2025-02-03 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391340', 'tblTempVendorCDR_20' ) start [2025-02-03 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391340', 'tblTempVendorCDR_20' ) end [2025-02-03 06:58:18] Production.INFO: ProcessCDR(1,14391340,1,1,2) [2025-02-03 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391340', 'tblTempUsageDetail_20' ) start [2025-02-03 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391340', 'tblTempUsageDetail_20' ) end [2025-02-03 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:58:21] Production.INFO: ==30892== Releasing lock... [2025-02-03 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:58:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 03:59:05 [end_date_ymd] => 2025-02-03 06:59:05 [RateCDR] => 1 ) [2025-02-03 06: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-02-03 03:59:05' and `end` < '2025-02-03 06: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-02-03 06:59:19] Production.INFO: count ==79 [2025-02-03 06:59:19] Production.ERROR: pbx CDR StartTime 2025-02-03 03:59:05 - End Time 2025-02-03 06:59:05 [2025-02-03 06:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391345', 'tblTempUsageDetail_20' ) start [2025-02-03 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391345', 'tblTempUsageDetail_20' ) end [2025-02-03 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391345', 'tblTempVendorCDR_20' ) start [2025-02-03 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391345', 'tblTempVendorCDR_20' ) end [2025-02-03 06:59:19] Production.INFO: ProcessCDR(1,14391345,1,1,2) [2025-02-03 06:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 06:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391345', 'tblTempUsageDetail_20' ) start [2025-02-03 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391345', 'tblTempUsageDetail_20' ) end [2025-02-03 06:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 06:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 06:59:22] Production.INFO: ==30970== Releasing lock... [2025-02-03 06:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 06:59:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:00:06 [end_date_ymd] => 2025-02-03 07:00:06 [RateCDR] => 1 ) [2025-02-03 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 04:00:06' and `end` < '2025-02-03 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 07:00:18] Production.INFO: count ==79 [2025-02-03 07:00:18] Production.ERROR: pbx CDR StartTime 2025-02-03 04:00:06 - End Time 2025-02-03 07:00:06 [2025-02-03 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391351', 'tblTempUsageDetail_20' ) start [2025-02-03 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391351', 'tblTempUsageDetail_20' ) end [2025-02-03 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391351', 'tblTempVendorCDR_20' ) start [2025-02-03 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391351', 'tblTempVendorCDR_20' ) end [2025-02-03 07:00:19] Production.INFO: ProcessCDR(1,14391351,1,1,2) [2025-02-03 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391351', 'tblTempUsageDetail_20' ) start [2025-02-03 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391351', 'tblTempUsageDetail_20' ) end [2025-02-03 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:00:22] Production.INFO: ==31054== Releasing lock... [2025-02-03 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:00:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:01:05 [end_date_ymd] => 2025-02-03 07:01:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:01:05' and `end` < '2025-02-03 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-02-03 07:01:24] Production.INFO: count ==79 [2025-02-03 07:01:24] Production.ERROR: pbx CDR StartTime 2025-02-03 04:01:05 - End Time 2025-02-03 07:01:05 [2025-02-03 07:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391356', 'tblTempUsageDetail_20' ) start [2025-02-03 07:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391356', 'tblTempUsageDetail_20' ) end [2025-02-03 07:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391356', 'tblTempVendorCDR_20' ) start [2025-02-03 07:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391356', 'tblTempVendorCDR_20' ) end [2025-02-03 07:01:24] Production.INFO: ProcessCDR(1,14391356,1,1,2) [2025-02-03 07:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391356', 'tblTempUsageDetail_20' ) start [2025-02-03 07:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391356', 'tblTempUsageDetail_20' ) end [2025-02-03 07:01:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:01:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:01:27] Production.INFO: ==31222== Releasing lock... [2025-02-03 07:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:01:27] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:02:06 [end_date_ymd] => 2025-02-03 07:02:06 [RateCDR] => 1 ) [2025-02-03 07: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-02-03 04:02:06' and `end` < '2025-02-03 07: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-02-03 07:02:20] Production.INFO: count ==79 [2025-02-03 07:02:20] Production.ERROR: pbx CDR StartTime 2025-02-03 04:02:06 - End Time 2025-02-03 07:02:06 [2025-02-03 07:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391361', 'tblTempUsageDetail_20' ) start [2025-02-03 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391361', 'tblTempUsageDetail_20' ) end [2025-02-03 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391361', 'tblTempVendorCDR_20' ) start [2025-02-03 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391361', 'tblTempVendorCDR_20' ) end [2025-02-03 07:02:20] Production.INFO: ProcessCDR(1,14391361,1,1,2) [2025-02-03 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391361', 'tblTempUsageDetail_20' ) start [2025-02-03 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391361', 'tblTempUsageDetail_20' ) end [2025-02-03 07:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:02:24] Production.INFO: ==31348== Releasing lock... [2025-02-03 07:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:02:24] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:03:06 [end_date_ymd] => 2025-02-03 07:03:06 [RateCDR] => 1 ) [2025-02-03 07: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-02-03 04:03:06' and `end` < '2025-02-03 07: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-02-03 07:03:19] Production.INFO: count ==79 [2025-02-03 07:03:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:03:06 - End Time 2025-02-03 07:03:06 [2025-02-03 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391366', 'tblTempUsageDetail_20' ) start [2025-02-03 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391366', 'tblTempUsageDetail_20' ) end [2025-02-03 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391366', 'tblTempVendorCDR_20' ) start [2025-02-03 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391366', 'tblTempVendorCDR_20' ) end [2025-02-03 07:03:19] Production.INFO: ProcessCDR(1,14391366,1,1,2) [2025-02-03 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391366', 'tblTempUsageDetail_20' ) start [2025-02-03 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391366', 'tblTempUsageDetail_20' ) end [2025-02-03 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:03:23] Production.INFO: ==31428== Releasing lock... [2025-02-03 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:03:23] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:04:05 [end_date_ymd] => 2025-02-03 07:04:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:04:05' and `end` < '2025-02-03 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-02-03 07:04:20] Production.INFO: count ==79 [2025-02-03 07:04:20] Production.ERROR: pbx CDR StartTime 2025-02-03 04:04:05 - End Time 2025-02-03 07:04:05 [2025-02-03 07:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391371', 'tblTempUsageDetail_20' ) start [2025-02-03 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391371', 'tblTempUsageDetail_20' ) end [2025-02-03 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391371', 'tblTempVendorCDR_20' ) start [2025-02-03 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391371', 'tblTempVendorCDR_20' ) end [2025-02-03 07:04:20] Production.INFO: ProcessCDR(1,14391371,1,1,2) [2025-02-03 07:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391371', 'tblTempUsageDetail_20' ) start [2025-02-03 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391371', 'tblTempUsageDetail_20' ) end [2025-02-03 07:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:04:23] Production.INFO: ==31516== Releasing lock... [2025-02-03 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:04:23] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:05:06 [end_date_ymd] => 2025-02-03 07:05:06 [RateCDR] => 1 ) [2025-02-03 07: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-02-03 04:05:06' and `end` < '2025-02-03 07: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-02-03 07:05:20] Production.INFO: count ==79 [2025-02-03 07:05:20] Production.ERROR: pbx CDR StartTime 2025-02-03 04:05:06 - End Time 2025-02-03 07:05:06 [2025-02-03 07:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391376', 'tblTempUsageDetail_20' ) start [2025-02-03 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391376', 'tblTempUsageDetail_20' ) end [2025-02-03 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391376', 'tblTempVendorCDR_20' ) start [2025-02-03 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391376', 'tblTempVendorCDR_20' ) end [2025-02-03 07:05:20] Production.INFO: ProcessCDR(1,14391376,1,1,2) [2025-02-03 07:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391376', 'tblTempUsageDetail_20' ) start [2025-02-03 07:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391376', 'tblTempUsageDetail_20' ) end [2025-02-03 07:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:05:24] Production.INFO: ==31693== Releasing lock... [2025-02-03 07:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:05:24] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:06:05 [end_date_ymd] => 2025-02-03 07:06:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:06:05' and `end` < '2025-02-03 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-02-03 07:06:19] Production.INFO: count ==79 [2025-02-03 07:06:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:06:05 - End Time 2025-02-03 07:06:05 [2025-02-03 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391381', 'tblTempUsageDetail_20' ) start [2025-02-03 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391381', 'tblTempUsageDetail_20' ) end [2025-02-03 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391381', 'tblTempVendorCDR_20' ) start [2025-02-03 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391381', 'tblTempVendorCDR_20' ) end [2025-02-03 07:06:19] Production.INFO: ProcessCDR(1,14391381,1,1,2) [2025-02-03 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391381', 'tblTempUsageDetail_20' ) start [2025-02-03 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391381', 'tblTempUsageDetail_20' ) end [2025-02-03 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:06:22] Production.INFO: ==31769== Releasing lock... [2025-02-03 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:06:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:07:06 [end_date_ymd] => 2025-02-03 07:07:06 [RateCDR] => 1 ) [2025-02-03 07: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-02-03 04:07:06' and `end` < '2025-02-03 07: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-02-03 07:07:19] Production.INFO: count ==79 [2025-02-03 07:07:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:07:06 - End Time 2025-02-03 07:07:06 [2025-02-03 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391386', 'tblTempUsageDetail_20' ) start [2025-02-03 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391386', 'tblTempUsageDetail_20' ) end [2025-02-03 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391386', 'tblTempVendorCDR_20' ) start [2025-02-03 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391386', 'tblTempVendorCDR_20' ) end [2025-02-03 07:07:19] Production.INFO: ProcessCDR(1,14391386,1,1,2) [2025-02-03 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391386', 'tblTempUsageDetail_20' ) start [2025-02-03 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391386', 'tblTempUsageDetail_20' ) end [2025-02-03 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:07:23] Production.INFO: ==31849== Releasing lock... [2025-02-03 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:07:23] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:08:05 [end_date_ymd] => 2025-02-03 07:08:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:08:05' and `end` < '2025-02-03 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-02-03 07:08:19] Production.INFO: count ==79 [2025-02-03 07:08:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:08:05 - End Time 2025-02-03 07:08:05 [2025-02-03 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391391', 'tblTempUsageDetail_20' ) start [2025-02-03 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391391', 'tblTempUsageDetail_20' ) end [2025-02-03 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391391', 'tblTempVendorCDR_20' ) start [2025-02-03 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391391', 'tblTempVendorCDR_20' ) end [2025-02-03 07:08:19] Production.INFO: ProcessCDR(1,14391391,1,1,2) [2025-02-03 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391391', 'tblTempUsageDetail_20' ) start [2025-02-03 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391391', 'tblTempUsageDetail_20' ) end [2025-02-03 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:08:23] Production.INFO: ==31966== Releasing lock... [2025-02-03 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:08:23] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:09:06 [end_date_ymd] => 2025-02-03 07:09:06 [RateCDR] => 1 ) [2025-02-03 07:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 04:09:06' and `end` < '2025-02-03 07:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 07:09:20] Production.INFO: count ==79 [2025-02-03 07:09:20] Production.ERROR: pbx CDR StartTime 2025-02-03 04:09:06 - End Time 2025-02-03 07:09:06 [2025-02-03 07:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391396', 'tblTempUsageDetail_20' ) start [2025-02-03 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391396', 'tblTempUsageDetail_20' ) end [2025-02-03 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391396', 'tblTempVendorCDR_20' ) start [2025-02-03 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391396', 'tblTempVendorCDR_20' ) end [2025-02-03 07:09:20] Production.INFO: ProcessCDR(1,14391396,1,1,2) [2025-02-03 07:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391396', 'tblTempUsageDetail_20' ) start [2025-02-03 07:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391396', 'tblTempUsageDetail_20' ) end [2025-02-03 07:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:09:24] Production.INFO: ==32089== Releasing lock... [2025-02-03 07:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:09:24] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:10:06 [end_date_ymd] => 2025-02-03 07:10:06 [RateCDR] => 1 ) [2025-02-03 07: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-02-03 04:10:06' and `end` < '2025-02-03 07: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-02-03 07:10:21] Production.INFO: count ==79 [2025-02-03 07:10:21] Production.ERROR: pbx CDR StartTime 2025-02-03 04:10:06 - End Time 2025-02-03 07:10:06 [2025-02-03 07:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391400', 'tblTempUsageDetail_20' ) start [2025-02-03 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391400', 'tblTempUsageDetail_20' ) end [2025-02-03 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391400', 'tblTempVendorCDR_20' ) start [2025-02-03 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391400', 'tblTempVendorCDR_20' ) end [2025-02-03 07:10:21] Production.INFO: ProcessCDR(1,14391400,1,1,2) [2025-02-03 07:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391400', 'tblTempUsageDetail_20' ) start [2025-02-03 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391400', 'tblTempUsageDetail_20' ) end [2025-02-03 07:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:10:24] Production.INFO: ==32167== Releasing lock... [2025-02-03 07:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:10:24] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:11:06 [end_date_ymd] => 2025-02-03 07:11:06 [RateCDR] => 1 ) [2025-02-03 07: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-02-03 04:11:06' and `end` < '2025-02-03 07: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-02-03 07:11:20] Production.INFO: count ==79 [2025-02-03 07:11:20] Production.ERROR: pbx CDR StartTime 2025-02-03 04:11:06 - End Time 2025-02-03 07:11:06 [2025-02-03 07:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391407', 'tblTempUsageDetail_20' ) start [2025-02-03 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391407', 'tblTempUsageDetail_20' ) end [2025-02-03 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391407', 'tblTempVendorCDR_20' ) start [2025-02-03 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391407', 'tblTempVendorCDR_20' ) end [2025-02-03 07:11:20] Production.INFO: ProcessCDR(1,14391407,1,1,2) [2025-02-03 07:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391407', 'tblTempUsageDetail_20' ) start [2025-02-03 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391407', 'tblTempUsageDetail_20' ) end [2025-02-03 07:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:11:23] Production.INFO: ==32267== Releasing lock... [2025-02-03 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:11:23] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:12:05 [end_date_ymd] => 2025-02-03 07:12:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:12:05' and `end` < '2025-02-03 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-02-03 07:12:18] Production.INFO: count ==79 [2025-02-03 07:12:18] Production.ERROR: pbx CDR StartTime 2025-02-03 04:12:05 - End Time 2025-02-03 07:12:05 [2025-02-03 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391412', 'tblTempUsageDetail_20' ) start [2025-02-03 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391412', 'tblTempUsageDetail_20' ) end [2025-02-03 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391412', 'tblTempVendorCDR_20' ) start [2025-02-03 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391412', 'tblTempVendorCDR_20' ) end [2025-02-03 07:12:18] Production.INFO: ProcessCDR(1,14391412,1,1,2) [2025-02-03 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391412', 'tblTempUsageDetail_20' ) start [2025-02-03 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391412', 'tblTempUsageDetail_20' ) end [2025-02-03 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:12:22] Production.INFO: ==32428== Releasing lock... [2025-02-03 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:12:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:13:06 [end_date_ymd] => 2025-02-03 07:13:06 [RateCDR] => 1 ) [2025-02-03 07:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 04:13:06' and `end` < '2025-02-03 07:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 07:13:19] Production.INFO: count ==79 [2025-02-03 07:13:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:13:06 - End Time 2025-02-03 07:13:06 [2025-02-03 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391417', 'tblTempUsageDetail_20' ) start [2025-02-03 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391417', 'tblTempUsageDetail_20' ) end [2025-02-03 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391417', 'tblTempVendorCDR_20' ) start [2025-02-03 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391417', 'tblTempVendorCDR_20' ) end [2025-02-03 07:13:19] Production.INFO: ProcessCDR(1,14391417,1,1,2) [2025-02-03 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391417', 'tblTempUsageDetail_20' ) start [2025-02-03 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391417', 'tblTempUsageDetail_20' ) end [2025-02-03 07:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:13:23] Production.INFO: ==32510== Releasing lock... [2025-02-03 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:13:23] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:14:05 [end_date_ymd] => 2025-02-03 07:14:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:14:05' and `end` < '2025-02-03 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-02-03 07:14:19] Production.INFO: count ==79 [2025-02-03 07:14:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:14:05 - End Time 2025-02-03 07:14:05 [2025-02-03 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391422', 'tblTempUsageDetail_20' ) start [2025-02-03 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391422', 'tblTempUsageDetail_20' ) end [2025-02-03 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391422', 'tblTempVendorCDR_20' ) start [2025-02-03 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391422', 'tblTempVendorCDR_20' ) end [2025-02-03 07:14:19] Production.INFO: ProcessCDR(1,14391422,1,1,2) [2025-02-03 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391422', 'tblTempUsageDetail_20' ) start [2025-02-03 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391422', 'tblTempUsageDetail_20' ) end [2025-02-03 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:14:22] Production.INFO: ==32589== Releasing lock... [2025-02-03 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:14:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:15:06 [end_date_ymd] => 2025-02-03 07:15:06 [RateCDR] => 1 ) [2025-02-03 07: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-02-03 04:15:06' and `end` < '2025-02-03 07: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-02-03 07:15:21] Production.INFO: count ==81 [2025-02-03 07:15:21] Production.ERROR: pbx CDR StartTime 2025-02-03 04:15:06 - End Time 2025-02-03 07:15:06 [2025-02-03 07:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391427', 'tblTempUsageDetail_20' ) start [2025-02-03 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391427', 'tblTempUsageDetail_20' ) end [2025-02-03 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391427', 'tblTempVendorCDR_20' ) start [2025-02-03 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391427', 'tblTempVendorCDR_20' ) end [2025-02-03 07:15:21] Production.INFO: ProcessCDR(1,14391427,1,1,2) [2025-02-03 07:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391427', 'tblTempUsageDetail_20' ) start [2025-02-03 07:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391427', 'tblTempUsageDetail_20' ) end [2025-02-03 07:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:15:26] Production.INFO: ==32712== Releasing lock... [2025-02-03 07:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:15:26] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:16:05 [end_date_ymd] => 2025-02-03 07:16:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:16:05' and `end` < '2025-02-03 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-02-03 07:16:19] Production.INFO: count ==81 [2025-02-03 07:16:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:16:05 - End Time 2025-02-03 07:16:05 [2025-02-03 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391432', 'tblTempUsageDetail_20' ) start [2025-02-03 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391432', 'tblTempUsageDetail_20' ) end [2025-02-03 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391432', 'tblTempVendorCDR_20' ) start [2025-02-03 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391432', 'tblTempVendorCDR_20' ) end [2025-02-03 07:16:19] Production.INFO: ProcessCDR(1,14391432,1,1,2) [2025-02-03 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391432', 'tblTempUsageDetail_20' ) start [2025-02-03 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391432', 'tblTempUsageDetail_20' ) end [2025-02-03 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:16:22] Production.INFO: ==418== Releasing lock... [2025-02-03 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:16:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:17:06 [end_date_ymd] => 2025-02-03 07:17:06 [RateCDR] => 1 ) [2025-02-03 07:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 04:17:06' and `end` < '2025-02-03 07:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 07:17:19] Production.INFO: count ==81 [2025-02-03 07:17:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:17:06 - End Time 2025-02-03 07:17:06 [2025-02-03 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391437', 'tblTempUsageDetail_20' ) start [2025-02-03 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391437', 'tblTempUsageDetail_20' ) end [2025-02-03 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391437', 'tblTempVendorCDR_20' ) start [2025-02-03 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391437', 'tblTempVendorCDR_20' ) end [2025-02-03 07:17:19] Production.INFO: ProcessCDR(1,14391437,1,1,2) [2025-02-03 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391437', 'tblTempUsageDetail_20' ) start [2025-02-03 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391437', 'tblTempUsageDetail_20' ) end [2025-02-03 07:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:17:23] Production.INFO: ==507== Releasing lock... [2025-02-03 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:17:23] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:18:06 [end_date_ymd] => 2025-02-03 07:18:06 [RateCDR] => 1 ) [2025-02-03 07: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-02-03 04:18:06' and `end` < '2025-02-03 07: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-02-03 07:18:19] Production.INFO: count ==81 [2025-02-03 07:18:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:18:06 - End Time 2025-02-03 07:18:06 [2025-02-03 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391442', 'tblTempUsageDetail_20' ) start [2025-02-03 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391442', 'tblTempUsageDetail_20' ) end [2025-02-03 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391442', 'tblTempVendorCDR_20' ) start [2025-02-03 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391442', 'tblTempVendorCDR_20' ) end [2025-02-03 07:18:19] Production.INFO: ProcessCDR(1,14391442,1,1,2) [2025-02-03 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391442', 'tblTempUsageDetail_20' ) start [2025-02-03 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391442', 'tblTempUsageDetail_20' ) end [2025-02-03 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:18:22] Production.INFO: ==589== Releasing lock... [2025-02-03 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:18:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:19:05 [end_date_ymd] => 2025-02-03 07:19:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:19:05' and `end` < '2025-02-03 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-02-03 07:19:18] Production.INFO: count ==81 [2025-02-03 07:19:18] Production.ERROR: pbx CDR StartTime 2025-02-03 04:19:05 - End Time 2025-02-03 07:19:05 [2025-02-03 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391447', 'tblTempUsageDetail_20' ) start [2025-02-03 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391447', 'tblTempUsageDetail_20' ) end [2025-02-03 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391447', 'tblTempVendorCDR_20' ) start [2025-02-03 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391447', 'tblTempVendorCDR_20' ) end [2025-02-03 07:19:18] Production.INFO: ProcessCDR(1,14391447,1,1,2) [2025-02-03 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391447', 'tblTempUsageDetail_20' ) start [2025-02-03 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391447', 'tblTempUsageDetail_20' ) end [2025-02-03 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:19:21] Production.INFO: ==691== Releasing lock... [2025-02-03 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:19:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:20:06 [end_date_ymd] => 2025-02-03 07:20:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:20:06' and `end` < '2025-02-03 07: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-02-03 07:20:19] Production.INFO: count ==85 [2025-02-03 07:20:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:20:06 - End Time 2025-02-03 07:20:06 [2025-02-03 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391453', 'tblTempUsageDetail_20' ) start [2025-02-03 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391453', 'tblTempUsageDetail_20' ) end [2025-02-03 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391453', 'tblTempVendorCDR_20' ) start [2025-02-03 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391453', 'tblTempVendorCDR_20' ) end [2025-02-03 07:20:19] Production.INFO: ProcessCDR(1,14391453,1,1,2) [2025-02-03 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391453', 'tblTempUsageDetail_20' ) start [2025-02-03 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391453', 'tblTempUsageDetail_20' ) end [2025-02-03 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:20:22] Production.INFO: ==786== Releasing lock... [2025-02-03 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:20:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:21:06 [end_date_ymd] => 2025-02-03 07:21:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:21:06' and `end` < '2025-02-03 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-02-03 07:21:20] Production.INFO: count ==85 [2025-02-03 07:21:20] Production.ERROR: pbx CDR StartTime 2025-02-03 04:21:06 - End Time 2025-02-03 07:21:06 [2025-02-03 07:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391458', 'tblTempUsageDetail_20' ) start [2025-02-03 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391458', 'tblTempUsageDetail_20' ) end [2025-02-03 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391458', 'tblTempVendorCDR_20' ) start [2025-02-03 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391458', 'tblTempVendorCDR_20' ) end [2025-02-03 07:21:20] Production.INFO: ProcessCDR(1,14391458,1,1,2) [2025-02-03 07:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391458', 'tblTempUsageDetail_20' ) start [2025-02-03 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391458', 'tblTempUsageDetail_20' ) end [2025-02-03 07:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:21:23] Production.INFO: ==884== Releasing lock... [2025-02-03 07:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:21:23] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:22:05 [end_date_ymd] => 2025-02-03 07:22:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:22:05' and `end` < '2025-02-03 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-02-03 07:22:17] Production.INFO: count ==85 [2025-02-03 07:22:17] Production.ERROR: pbx CDR StartTime 2025-02-03 04:22:05 - End Time 2025-02-03 07:22:05 [2025-02-03 07:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391463', 'tblTempUsageDetail_20' ) start [2025-02-03 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391463', 'tblTempUsageDetail_20' ) end [2025-02-03 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391463', 'tblTempVendorCDR_20' ) start [2025-02-03 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391463', 'tblTempVendorCDR_20' ) end [2025-02-03 07:22:17] Production.INFO: ProcessCDR(1,14391463,1,1,2) [2025-02-03 07:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391463', 'tblTempUsageDetail_20' ) start [2025-02-03 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391463', 'tblTempUsageDetail_20' ) end [2025-02-03 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:22:21] Production.INFO: ==996== Releasing lock... [2025-02-03 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:22:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:23:06 [end_date_ymd] => 2025-02-03 07:23:06 [RateCDR] => 1 ) [2025-02-03 07: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-02-03 04:23:06' and `end` < '2025-02-03 07: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-02-03 07:23:18] Production.INFO: count ==85 [2025-02-03 07:23:18] Production.ERROR: pbx CDR StartTime 2025-02-03 04:23:06 - End Time 2025-02-03 07:23:06 [2025-02-03 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391468', 'tblTempUsageDetail_20' ) start [2025-02-03 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391468', 'tblTempUsageDetail_20' ) end [2025-02-03 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391468', 'tblTempVendorCDR_20' ) start [2025-02-03 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391468', 'tblTempVendorCDR_20' ) end [2025-02-03 07:23:18] Production.INFO: ProcessCDR(1,14391468,1,1,2) [2025-02-03 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391468', 'tblTempUsageDetail_20' ) start [2025-02-03 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391468', 'tblTempUsageDetail_20' ) end [2025-02-03 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:23:22] Production.INFO: ==1087== Releasing lock... [2025-02-03 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:23:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:24:05 [end_date_ymd] => 2025-02-03 07:24:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:24:05' and `end` < '2025-02-03 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-02-03 07:24:17] Production.INFO: count ==85 [2025-02-03 07:24:17] Production.ERROR: pbx CDR StartTime 2025-02-03 04:24:05 - End Time 2025-02-03 07:24:05 [2025-02-03 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391473', 'tblTempUsageDetail_20' ) start [2025-02-03 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391473', 'tblTempUsageDetail_20' ) end [2025-02-03 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391473', 'tblTempVendorCDR_20' ) start [2025-02-03 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391473', 'tblTempVendorCDR_20' ) end [2025-02-03 07:24:17] Production.INFO: ProcessCDR(1,14391473,1,1,2) [2025-02-03 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391473', 'tblTempUsageDetail_20' ) start [2025-02-03 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391473', 'tblTempUsageDetail_20' ) end [2025-02-03 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:24:21] Production.INFO: ==1175== Releasing lock... [2025-02-03 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:24:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:25:06 [end_date_ymd] => 2025-02-03 07:25:06 [RateCDR] => 1 ) [2025-02-03 07: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-02-03 04:25:06' and `end` < '2025-02-03 07: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-02-03 07:25:18] Production.INFO: count ==85 [2025-02-03 07:25:18] Production.ERROR: pbx CDR StartTime 2025-02-03 04:25:06 - End Time 2025-02-03 07:25:06 [2025-02-03 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391477', 'tblTempUsageDetail_20' ) start [2025-02-03 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391477', 'tblTempUsageDetail_20' ) end [2025-02-03 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391477', 'tblTempVendorCDR_20' ) start [2025-02-03 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391477', 'tblTempVendorCDR_20' ) end [2025-02-03 07:25:18] Production.INFO: ProcessCDR(1,14391477,1,1,2) [2025-02-03 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391477', 'tblTempUsageDetail_20' ) start [2025-02-03 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391477', 'tblTempUsageDetail_20' ) end [2025-02-03 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:25:22] Production.INFO: ==1261== Releasing lock... [2025-02-03 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:25:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:26:05 [end_date_ymd] => 2025-02-03 07:26:05 [RateCDR] => 1 ) [2025-02-03 07: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-02-03 04:26:05' and `end` < '2025-02-03 07: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-02-03 07:26:20] Production.INFO: count ==90 [2025-02-03 07:26:20] Production.ERROR: pbx CDR StartTime 2025-02-03 04:26:05 - End Time 2025-02-03 07:26:05 [2025-02-03 07:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391483', 'tblTempUsageDetail_20' ) start [2025-02-03 07:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391483', 'tblTempUsageDetail_20' ) end [2025-02-03 07:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391483', 'tblTempVendorCDR_20' ) start [2025-02-03 07:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391483', 'tblTempVendorCDR_20' ) end [2025-02-03 07:26:20] Production.INFO: ProcessCDR(1,14391483,1,1,2) [2025-02-03 07:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391483', 'tblTempUsageDetail_20' ) start [2025-02-03 07:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391483', 'tblTempUsageDetail_20' ) end [2025-02-03 07:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:26:23] Production.INFO: ==1340== Releasing lock... [2025-02-03 07:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:26:23] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:27:05 [end_date_ymd] => 2025-02-03 07:27:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:27:05' and `end` < '2025-02-03 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-02-03 07:27:18] Production.INFO: count ==90 [2025-02-03 07:27:18] Production.ERROR: pbx CDR StartTime 2025-02-03 04:27:05 - End Time 2025-02-03 07:27:05 [2025-02-03 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391488', 'tblTempUsageDetail_20' ) start [2025-02-03 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391488', 'tblTempUsageDetail_20' ) end [2025-02-03 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391488', 'tblTempVendorCDR_20' ) start [2025-02-03 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391488', 'tblTempVendorCDR_20' ) end [2025-02-03 07:27:18] Production.INFO: ProcessCDR(1,14391488,1,1,2) [2025-02-03 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391488', 'tblTempUsageDetail_20' ) start [2025-02-03 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391488', 'tblTempUsageDetail_20' ) end [2025-02-03 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:27:21] Production.INFO: ==1417== Releasing lock... [2025-02-03 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:27:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:28:06 [end_date_ymd] => 2025-02-03 07:28:06 [RateCDR] => 1 ) [2025-02-03 07: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-02-03 04:28:06' and `end` < '2025-02-03 07: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-02-03 07:28:20] Production.INFO: count ==91 [2025-02-03 07:28:20] Production.ERROR: pbx CDR StartTime 2025-02-03 04:28:06 - End Time 2025-02-03 07:28:06 [2025-02-03 07:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391493', 'tblTempUsageDetail_20' ) start [2025-02-03 07:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391493', 'tblTempUsageDetail_20' ) end [2025-02-03 07:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391493', 'tblTempVendorCDR_20' ) start [2025-02-03 07:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391493', 'tblTempVendorCDR_20' ) end [2025-02-03 07:28:20] Production.INFO: ProcessCDR(1,14391493,1,1,2) [2025-02-03 07:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391493', 'tblTempUsageDetail_20' ) start [2025-02-03 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391493', 'tblTempUsageDetail_20' ) end [2025-02-03 07:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:28:23] Production.INFO: ==1493== Releasing lock... [2025-02-03 07:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:28:23] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:29:05 [end_date_ymd] => 2025-02-03 07:29:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:29:05' and `end` < '2025-02-03 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-02-03 07:29:18] Production.INFO: count ==91 [2025-02-03 07:29:18] Production.ERROR: pbx CDR StartTime 2025-02-03 04:29:05 - End Time 2025-02-03 07:29:05 [2025-02-03 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391498', 'tblTempUsageDetail_20' ) start [2025-02-03 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391498', 'tblTempUsageDetail_20' ) end [2025-02-03 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391498', 'tblTempVendorCDR_20' ) start [2025-02-03 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391498', 'tblTempVendorCDR_20' ) end [2025-02-03 07:29:18] Production.INFO: ProcessCDR(1,14391498,1,1,2) [2025-02-03 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391498', 'tblTempUsageDetail_20' ) start [2025-02-03 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391498', 'tblTempUsageDetail_20' ) end [2025-02-03 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:29:22] Production.INFO: ==1609== Releasing lock... [2025-02-03 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:29:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:30:07 [end_date_ymd] => 2025-02-03 07:30:07 [RateCDR] => 1 ) [2025-02-03 07: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-02-03 04:30:07' and `end` < '2025-02-03 07: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-02-03 07:30:19] Production.INFO: count ==88 [2025-02-03 07:30:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:30:07 - End Time 2025-02-03 07:30:07 [2025-02-03 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391504', 'tblTempUsageDetail_20' ) start [2025-02-03 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391504', 'tblTempUsageDetail_20' ) end [2025-02-03 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391504', 'tblTempVendorCDR_20' ) start [2025-02-03 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391504', 'tblTempVendorCDR_20' ) end [2025-02-03 07:30:19] Production.INFO: ProcessCDR(1,14391504,1,1,2) [2025-02-03 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391504', 'tblTempUsageDetail_20' ) start [2025-02-03 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391504', 'tblTempUsageDetail_20' ) end [2025-02-03 07:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:30:23] Production.INFO: ==1693== Releasing lock... [2025-02-03 07:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:30:23] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:31:05 [end_date_ymd] => 2025-02-03 07:31:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:31:05' and `end` < '2025-02-03 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-02-03 07:31:19] Production.INFO: count ==88 [2025-02-03 07:31:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:31:05 - End Time 2025-02-03 07:31:05 [2025-02-03 07:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391509', 'tblTempUsageDetail_20' ) start [2025-02-03 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391509', 'tblTempUsageDetail_20' ) end [2025-02-03 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391509', 'tblTempVendorCDR_20' ) start [2025-02-03 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391509', 'tblTempVendorCDR_20' ) end [2025-02-03 07:31:19] Production.INFO: ProcessCDR(1,14391509,1,1,2) [2025-02-03 07:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391509', 'tblTempUsageDetail_20' ) start [2025-02-03 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391509', 'tblTempUsageDetail_20' ) end [2025-02-03 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:31:22] Production.INFO: ==1769== Releasing lock... [2025-02-03 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:31:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:32:06 [end_date_ymd] => 2025-02-03 07:32:06 [RateCDR] => 1 ) [2025-02-03 07: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-02-03 04:32:06' and `end` < '2025-02-03 07: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-02-03 07:32:18] Production.INFO: count ==88 [2025-02-03 07:32:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:32:06 - End Time 2025-02-03 07:32:06 [2025-02-03 07:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391514', 'tblTempUsageDetail_20' ) start [2025-02-03 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391514', 'tblTempUsageDetail_20' ) end [2025-02-03 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391514', 'tblTempVendorCDR_20' ) start [2025-02-03 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391514', 'tblTempVendorCDR_20' ) end [2025-02-03 07:32:19] Production.INFO: ProcessCDR(1,14391514,1,1,2) [2025-02-03 07:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391514', 'tblTempUsageDetail_20' ) start [2025-02-03 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391514', 'tblTempUsageDetail_20' ) end [2025-02-03 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:32:22] Production.INFO: ==1892== Releasing lock... [2025-02-03 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:32:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:33:05 [end_date_ymd] => 2025-02-03 07:33:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:33:05' and `end` < '2025-02-03 07: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-02-03 07:33:18] Production.INFO: count ==88 [2025-02-03 07:33:18] Production.ERROR: pbx CDR StartTime 2025-02-03 04:33:05 - End Time 2025-02-03 07:33:05 [2025-02-03 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391519', 'tblTempUsageDetail_20' ) start [2025-02-03 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391519', 'tblTempUsageDetail_20' ) end [2025-02-03 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391519', 'tblTempVendorCDR_20' ) start [2025-02-03 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391519', 'tblTempVendorCDR_20' ) end [2025-02-03 07:33:18] Production.INFO: ProcessCDR(1,14391519,1,1,2) [2025-02-03 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391519', 'tblTempUsageDetail_20' ) start [2025-02-03 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391519', 'tblTempUsageDetail_20' ) end [2025-02-03 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:33:22] Production.INFO: ==1984== Releasing lock... [2025-02-03 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:33:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:34:06 [end_date_ymd] => 2025-02-03 07:34:06 [RateCDR] => 1 ) [2025-02-03 07: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-02-03 04:34:06' and `end` < '2025-02-03 07: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-02-03 07:34:19] Production.INFO: count ==89 [2025-02-03 07:34:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:34:06 - End Time 2025-02-03 07:34:06 [2025-02-03 07:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391524', 'tblTempUsageDetail_20' ) start [2025-02-03 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391524', 'tblTempUsageDetail_20' ) end [2025-02-03 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391524', 'tblTempVendorCDR_20' ) start [2025-02-03 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391524', 'tblTempVendorCDR_20' ) end [2025-02-03 07:34:19] Production.INFO: ProcessCDR(1,14391524,1,1,2) [2025-02-03 07:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391524', 'tblTempUsageDetail_20' ) start [2025-02-03 07:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391524', 'tblTempUsageDetail_20' ) end [2025-02-03 07:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:34:24] Production.INFO: ==2081== Releasing lock... [2025-02-03 07:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:34:24] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:35:05 [end_date_ymd] => 2025-02-03 07:35:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:35:05' and `end` < '2025-02-03 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-02-03 07:35:19] Production.INFO: count ==90 [2025-02-03 07:35:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:35:05 - End Time 2025-02-03 07:35:05 [2025-02-03 07:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391529', 'tblTempUsageDetail_20' ) start [2025-02-03 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391529', 'tblTempUsageDetail_20' ) end [2025-02-03 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391529', 'tblTempVendorCDR_20' ) start [2025-02-03 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391529', 'tblTempVendorCDR_20' ) end [2025-02-03 07:35:19] Production.INFO: ProcessCDR(1,14391529,1,1,2) [2025-02-03 07:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391529', 'tblTempUsageDetail_20' ) start [2025-02-03 07:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391529', 'tblTempUsageDetail_20' ) end [2025-02-03 07:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:35:24] Production.INFO: ==2161== Releasing lock... [2025-02-03 07:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:35:24] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:36:05 [end_date_ymd] => 2025-02-03 07:36:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:36:05' and `end` < '2025-02-03 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-02-03 07:36:19] Production.INFO: count ==90 [2025-02-03 07:36:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:36:05 - End Time 2025-02-03 07:36:05 [2025-02-03 07:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391534', 'tblTempUsageDetail_20' ) start [2025-02-03 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391534', 'tblTempUsageDetail_20' ) end [2025-02-03 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391534', 'tblTempVendorCDR_20' ) start [2025-02-03 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391534', 'tblTempVendorCDR_20' ) end [2025-02-03 07:36:19] Production.INFO: ProcessCDR(1,14391534,1,1,2) [2025-02-03 07:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391534', 'tblTempUsageDetail_20' ) start [2025-02-03 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391534', 'tblTempUsageDetail_20' ) end [2025-02-03 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:36:22] Production.INFO: ==2237== Releasing lock... [2025-02-03 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:36:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:37:05 [end_date_ymd] => 2025-02-03 07:37:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:37:05' and `end` < '2025-02-03 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-02-03 07:37:18] Production.INFO: count ==90 [2025-02-03 07:37:18] Production.ERROR: pbx CDR StartTime 2025-02-03 04:37:05 - End Time 2025-02-03 07:37:05 [2025-02-03 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391539', 'tblTempUsageDetail_20' ) start [2025-02-03 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391539', 'tblTempUsageDetail_20' ) end [2025-02-03 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391539', 'tblTempVendorCDR_20' ) start [2025-02-03 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391539', 'tblTempVendorCDR_20' ) end [2025-02-03 07:37:18] Production.INFO: ProcessCDR(1,14391539,1,1,2) [2025-02-03 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391539', 'tblTempUsageDetail_20' ) start [2025-02-03 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391539', 'tblTempUsageDetail_20' ) end [2025-02-03 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:37:21] Production.INFO: ==2308== Releasing lock... [2025-02-03 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:37:21] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:38:05 [end_date_ymd] => 2025-02-03 07:38:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:38:05' and `end` < '2025-02-03 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-02-03 07:38:19] Production.INFO: count ==90 [2025-02-03 07:38:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:38:05 - End Time 2025-02-03 07:38:05 [2025-02-03 07:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391544', 'tblTempUsageDetail_20' ) start [2025-02-03 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391544', 'tblTempUsageDetail_20' ) end [2025-02-03 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391544', 'tblTempVendorCDR_20' ) start [2025-02-03 07:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391544', 'tblTempVendorCDR_20' ) end [2025-02-03 07:38:19] Production.INFO: ProcessCDR(1,14391544,1,1,2) [2025-02-03 07:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391544', 'tblTempUsageDetail_20' ) start [2025-02-03 07:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391544', 'tblTempUsageDetail_20' ) end [2025-02-03 07:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:38:22] Production.INFO: ==2383== Releasing lock... [2025-02-03 07:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:38:22] Production.INFO: 28 MB #Memory Used# [2025-02-03 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:39:05 [end_date_ymd] => 2025-02-03 07:39:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:39:05' and `end` < '2025-02-03 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-02-03 07:39:17] Production.INFO: count ==91 [2025-02-03 07:39:17] Production.ERROR: pbx CDR StartTime 2025-02-03 04:39:05 - End Time 2025-02-03 07:39:05 [2025-02-03 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391549', 'tblTempUsageDetail_20' ) start [2025-02-03 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391549', 'tblTempUsageDetail_20' ) end [2025-02-03 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391549', 'tblTempVendorCDR_20' ) start [2025-02-03 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391549', 'tblTempVendorCDR_20' ) end [2025-02-03 07:39:17] Production.INFO: ProcessCDR(1,14391549,1,1,2) [2025-02-03 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391549', 'tblTempUsageDetail_20' ) start [2025-02-03 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391549', 'tblTempUsageDetail_20' ) end [2025-02-03 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:39:21] Production.INFO: ==2461== Releasing lock... [2025-02-03 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:40:06 [end_date_ymd] => 2025-02-03 07:40:06 [RateCDR] => 1 ) [2025-02-03 07: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-02-03 04:40:06' and `end` < '2025-02-03 07: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-02-03 07:40:19] Production.INFO: count ==100 [2025-02-03 07:40:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:40:06 - End Time 2025-02-03 07:40:06 [2025-02-03 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391555', 'tblTempUsageDetail_20' ) start [2025-02-03 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391555', 'tblTempUsageDetail_20' ) end [2025-02-03 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391555', 'tblTempVendorCDR_20' ) start [2025-02-03 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391555', 'tblTempVendorCDR_20' ) end [2025-02-03 07:40:19] Production.INFO: ProcessCDR(1,14391555,1,1,2) [2025-02-03 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391555', 'tblTempUsageDetail_20' ) start [2025-02-03 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391555', 'tblTempUsageDetail_20' ) end [2025-02-03 07:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:40:23] Production.INFO: ==2551== Releasing lock... [2025-02-03 07:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:40:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 07:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:41:06 [end_date_ymd] => 2025-02-03 07:41:06 [RateCDR] => 1 ) [2025-02-03 07: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-02-03 04:41:06' and `end` < '2025-02-03 07: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-02-03 07:41:19] Production.INFO: count ==104 [2025-02-03 07:41:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:41:06 - End Time 2025-02-03 07:41:06 [2025-02-03 07:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391560', 'tblTempUsageDetail_20' ) start [2025-02-03 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391560', 'tblTempUsageDetail_20' ) end [2025-02-03 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391560', 'tblTempVendorCDR_20' ) start [2025-02-03 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391560', 'tblTempVendorCDR_20' ) end [2025-02-03 07:41:19] Production.INFO: ProcessCDR(1,14391560,1,1,2) [2025-02-03 07:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391560', 'tblTempUsageDetail_20' ) start [2025-02-03 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391560', 'tblTempUsageDetail_20' ) end [2025-02-03 07:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:41:22] Production.INFO: ==2633== Releasing lock... [2025-02-03 07:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:41:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:42:05 [end_date_ymd] => 2025-02-03 07:42:05 [RateCDR] => 1 ) [2025-02-03 07: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-02-03 04:42:05' and `end` < '2025-02-03 07: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-02-03 07:42:18] Production.INFO: count ==105 [2025-02-03 07:42:18] Production.ERROR: pbx CDR StartTime 2025-02-03 04:42:05 - End Time 2025-02-03 07:42:05 [2025-02-03 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391565', 'tblTempUsageDetail_20' ) start [2025-02-03 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391565', 'tblTempUsageDetail_20' ) end [2025-02-03 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391565', 'tblTempVendorCDR_20' ) start [2025-02-03 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391565', 'tblTempVendorCDR_20' ) end [2025-02-03 07:42:18] Production.INFO: ProcessCDR(1,14391565,1,1,2) [2025-02-03 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391565', 'tblTempUsageDetail_20' ) start [2025-02-03 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391565', 'tblTempUsageDetail_20' ) end [2025-02-03 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:42:21] Production.INFO: ==2706== Releasing lock... [2025-02-03 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 07:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:43:06 [end_date_ymd] => 2025-02-03 07:43:06 [RateCDR] => 1 ) [2025-02-03 07: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-02-03 04:43:06' and `end` < '2025-02-03 07: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-02-03 07:43:20] Production.INFO: count ==106 [2025-02-03 07:43:20] Production.ERROR: pbx CDR StartTime 2025-02-03 04:43:06 - End Time 2025-02-03 07:43:06 [2025-02-03 07:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391570', 'tblTempUsageDetail_20' ) start [2025-02-03 07:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391570', 'tblTempUsageDetail_20' ) end [2025-02-03 07:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391570', 'tblTempVendorCDR_20' ) start [2025-02-03 07:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391570', 'tblTempVendorCDR_20' ) end [2025-02-03 07:43:20] Production.INFO: ProcessCDR(1,14391570,1,1,2) [2025-02-03 07:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391570', 'tblTempUsageDetail_20' ) start [2025-02-03 07:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391570', 'tblTempUsageDetail_20' ) end [2025-02-03 07:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:43:23] Production.INFO: ==2783== Releasing lock... [2025-02-03 07:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:43:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 07:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:44:04 [end_date_ymd] => 2025-02-03 07:44:04 [RateCDR] => 1 ) [2025-02-03 07: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-02-03 04:44:04' and `end` < '2025-02-03 07: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-02-03 07:44:17] Production.INFO: count ==106 [2025-02-03 07:44:17] Production.ERROR: pbx CDR StartTime 2025-02-03 04:44:04 - End Time 2025-02-03 07:44:04 [2025-02-03 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391575', 'tblTempUsageDetail_20' ) start [2025-02-03 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391575', 'tblTempUsageDetail_20' ) end [2025-02-03 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391575', 'tblTempVendorCDR_20' ) start [2025-02-03 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391575', 'tblTempVendorCDR_20' ) end [2025-02-03 07:44:17] Production.INFO: ProcessCDR(1,14391575,1,1,2) [2025-02-03 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391575', 'tblTempUsageDetail_20' ) start [2025-02-03 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391575', 'tblTempUsageDetail_20' ) end [2025-02-03 07:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:44:20] Production.INFO: ==2858== Releasing lock... [2025-02-03 07:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:44:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:45:05 [end_date_ymd] => 2025-02-03 07:45:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:45:05' and `end` < '2025-02-03 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-02-03 07:45:18] Production.INFO: count ==106 [2025-02-03 07:45:18] Production.ERROR: pbx CDR StartTime 2025-02-03 04:45:05 - End Time 2025-02-03 07:45:05 [2025-02-03 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391580', 'tblTempUsageDetail_20' ) start [2025-02-03 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391580', 'tblTempUsageDetail_20' ) end [2025-02-03 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391580', 'tblTempVendorCDR_20' ) start [2025-02-03 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391580', 'tblTempVendorCDR_20' ) end [2025-02-03 07:45:18] Production.INFO: ProcessCDR(1,14391580,1,1,2) [2025-02-03 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391580', 'tblTempUsageDetail_20' ) start [2025-02-03 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391580', 'tblTempUsageDetail_20' ) end [2025-02-03 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:45:21] Production.INFO: ==2934== Releasing lock... [2025-02-03 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:46:05 [end_date_ymd] => 2025-02-03 07:46:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:46:05' and `end` < '2025-02-03 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-02-03 07:46:18] Production.INFO: count ==106 [2025-02-03 07:46:18] Production.ERROR: pbx CDR StartTime 2025-02-03 04:46:05 - End Time 2025-02-03 07:46:05 [2025-02-03 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391585', 'tblTempUsageDetail_20' ) start [2025-02-03 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391585', 'tblTempUsageDetail_20' ) end [2025-02-03 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391585', 'tblTempVendorCDR_20' ) start [2025-02-03 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391585', 'tblTempVendorCDR_20' ) end [2025-02-03 07:46:18] Production.INFO: ProcessCDR(1,14391585,1,1,2) [2025-02-03 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391585', 'tblTempUsageDetail_20' ) start [2025-02-03 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391585', 'tblTempUsageDetail_20' ) end [2025-02-03 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:46:21] Production.INFO: ==3010== Releasing lock... [2025-02-03 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:47:05 [end_date_ymd] => 2025-02-03 07:47:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:47:05' and `end` < '2025-02-03 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-02-03 07:47:18] Production.INFO: count ==106 [2025-02-03 07:47:18] Production.ERROR: pbx CDR StartTime 2025-02-03 04:47:05 - End Time 2025-02-03 07:47:05 [2025-02-03 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391590', 'tblTempUsageDetail_20' ) start [2025-02-03 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391590', 'tblTempUsageDetail_20' ) end [2025-02-03 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391590', 'tblTempVendorCDR_20' ) start [2025-02-03 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391590', 'tblTempVendorCDR_20' ) end [2025-02-03 07:47:18] Production.INFO: ProcessCDR(1,14391590,1,1,2) [2025-02-03 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391590', 'tblTempUsageDetail_20' ) start [2025-02-03 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391590', 'tblTempUsageDetail_20' ) end [2025-02-03 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:47:21] Production.INFO: ==3144== Releasing lock... [2025-02-03 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 07:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:48:04 [end_date_ymd] => 2025-02-03 07:48:04 [RateCDR] => 1 ) [2025-02-03 07: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-02-03 04:48:04' and `end` < '2025-02-03 07: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-02-03 07:48:17] Production.INFO: count ==106 [2025-02-03 07:48:17] Production.ERROR: pbx CDR StartTime 2025-02-03 04:48:04 - End Time 2025-02-03 07:48:04 [2025-02-03 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391592', 'tblTempUsageDetail_20' ) start [2025-02-03 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391592', 'tblTempUsageDetail_20' ) end [2025-02-03 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391592', 'tblTempVendorCDR_20' ) start [2025-02-03 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391592', 'tblTempVendorCDR_20' ) end [2025-02-03 07:48:17] Production.INFO: ProcessCDR(1,14391592,1,1,2) [2025-02-03 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391592', 'tblTempUsageDetail_20' ) start [2025-02-03 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391592', 'tblTempUsageDetail_20' ) end [2025-02-03 07:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:48:20] Production.INFO: ==3224== Releasing lock... [2025-02-03 07:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:48:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:49:05 [end_date_ymd] => 2025-02-03 07:49:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:49:05' and `end` < '2025-02-03 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-02-03 07:49:18] Production.INFO: count ==107 [2025-02-03 07:49:18] Production.ERROR: pbx CDR StartTime 2025-02-03 04:49:05 - End Time 2025-02-03 07:49:05 [2025-02-03 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391600', 'tblTempUsageDetail_20' ) start [2025-02-03 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391600', 'tblTempUsageDetail_20' ) end [2025-02-03 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391600', 'tblTempVendorCDR_20' ) start [2025-02-03 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391600', 'tblTempVendorCDR_20' ) end [2025-02-03 07:49:18] Production.INFO: ProcessCDR(1,14391600,1,1,2) [2025-02-03 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391600', 'tblTempUsageDetail_20' ) start [2025-02-03 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391600', 'tblTempUsageDetail_20' ) end [2025-02-03 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:49:21] Production.INFO: ==3298== Releasing lock... [2025-02-03 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:50:06 [end_date_ymd] => 2025-02-03 07:50:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:50:06' and `end` < '2025-02-03 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-02-03 07:50:19] Production.INFO: count ==115 [2025-02-03 07:50:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:50:06 - End Time 2025-02-03 07:50:06 [2025-02-03 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391605', 'tblTempUsageDetail_20' ) start [2025-02-03 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391605', 'tblTempUsageDetail_20' ) end [2025-02-03 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391605', 'tblTempVendorCDR_20' ) start [2025-02-03 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391605', 'tblTempVendorCDR_20' ) end [2025-02-03 07:50:19] Production.INFO: ProcessCDR(1,14391605,1,1,2) [2025-02-03 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391605', 'tblTempUsageDetail_20' ) start [2025-02-03 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391605', 'tblTempUsageDetail_20' ) end [2025-02-03 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:50:23] Production.INFO: ==3376== Releasing lock... [2025-02-03 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:50:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:51:05 [end_date_ymd] => 2025-02-03 07:51:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:51:05' and `end` < '2025-02-03 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-02-03 07:51:19] Production.INFO: count ==115 [2025-02-03 07:51:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:51:05 - End Time 2025-02-03 07:51:05 [2025-02-03 07:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391611', 'tblTempUsageDetail_20' ) start [2025-02-03 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391611', 'tblTempUsageDetail_20' ) end [2025-02-03 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391611', 'tblTempVendorCDR_20' ) start [2025-02-03 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391611', 'tblTempVendorCDR_20' ) end [2025-02-03 07:51:19] Production.INFO: ProcessCDR(1,14391611,1,1,2) [2025-02-03 07:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391611', 'tblTempUsageDetail_20' ) start [2025-02-03 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391611', 'tblTempUsageDetail_20' ) end [2025-02-03 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:51:22] Production.INFO: ==3452== Releasing lock... [2025-02-03 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:51:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:52:05 [end_date_ymd] => 2025-02-03 07:52:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:52:05' and `end` < '2025-02-03 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-02-03 07:52:18] Production.INFO: count ==115 [2025-02-03 07:52:18] Production.ERROR: pbx CDR StartTime 2025-02-03 04:52:05 - End Time 2025-02-03 07:52:05 [2025-02-03 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391616', 'tblTempUsageDetail_20' ) start [2025-02-03 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391616', 'tblTempUsageDetail_20' ) end [2025-02-03 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391616', 'tblTempVendorCDR_20' ) start [2025-02-03 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391616', 'tblTempVendorCDR_20' ) end [2025-02-03 07:52:18] Production.INFO: ProcessCDR(1,14391616,1,1,2) [2025-02-03 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391616', 'tblTempUsageDetail_20' ) start [2025-02-03 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391616', 'tblTempUsageDetail_20' ) end [2025-02-03 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:52:21] Production.INFO: ==3529== Releasing lock... [2025-02-03 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:53:05 [end_date_ymd] => 2025-02-03 07:53:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:53:05' and `end` < '2025-02-03 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-02-03 07:53:17] Production.INFO: count ==116 [2025-02-03 07:53:17] Production.ERROR: pbx CDR StartTime 2025-02-03 04:53:05 - End Time 2025-02-03 07:53:05 [2025-02-03 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391621', 'tblTempUsageDetail_20' ) start [2025-02-03 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391621', 'tblTempUsageDetail_20' ) end [2025-02-03 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391621', 'tblTempVendorCDR_20' ) start [2025-02-03 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391621', 'tblTempVendorCDR_20' ) end [2025-02-03 07:53:17] Production.INFO: ProcessCDR(1,14391621,1,1,2) [2025-02-03 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391621', 'tblTempUsageDetail_20' ) start [2025-02-03 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391621', 'tblTempUsageDetail_20' ) end [2025-02-03 07:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:53:21] Production.INFO: ==3605== Releasing lock... [2025-02-03 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 07:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:54:06 [end_date_ymd] => 2025-02-03 07:54:06 [RateCDR] => 1 ) [2025-02-03 07: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-02-03 04:54:06' and `end` < '2025-02-03 07: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-02-03 07:54:19] Production.INFO: count ==116 [2025-02-03 07:54:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:54:06 - End Time 2025-02-03 07:54:06 [2025-02-03 07:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391626', 'tblTempUsageDetail_20' ) start [2025-02-03 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391626', 'tblTempUsageDetail_20' ) end [2025-02-03 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391626', 'tblTempVendorCDR_20' ) start [2025-02-03 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391626', 'tblTempVendorCDR_20' ) end [2025-02-03 07:54:19] Production.INFO: ProcessCDR(1,14391626,1,1,2) [2025-02-03 07:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391626', 'tblTempUsageDetail_20' ) start [2025-02-03 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391626', 'tblTempUsageDetail_20' ) end [2025-02-03 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:54:22] Production.INFO: ==3692== Releasing lock... [2025-02-03 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:54:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:55:05 [end_date_ymd] => 2025-02-03 07:55:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:55:05' and `end` < '2025-02-03 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-02-03 07:55:18] Production.INFO: count ==116 [2025-02-03 07:55:18] Production.ERROR: pbx CDR StartTime 2025-02-03 04:55:05 - End Time 2025-02-03 07:55:05 [2025-02-03 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391631', 'tblTempUsageDetail_20' ) start [2025-02-03 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391631', 'tblTempUsageDetail_20' ) end [2025-02-03 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391631', 'tblTempVendorCDR_20' ) start [2025-02-03 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391631', 'tblTempVendorCDR_20' ) end [2025-02-03 07:55:18] Production.INFO: ProcessCDR(1,14391631,1,1,2) [2025-02-03 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391631', 'tblTempUsageDetail_20' ) start [2025-02-03 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391631', 'tblTempUsageDetail_20' ) end [2025-02-03 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:55:21] Production.INFO: ==3775== Releasing lock... [2025-02-03 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:55:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:56:05 [end_date_ymd] => 2025-02-03 07:56:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:56:05' and `end` < '2025-02-03 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-02-03 07:56:18] Production.INFO: count ==121 [2025-02-03 07:56:18] Production.ERROR: pbx CDR StartTime 2025-02-03 04:56:05 - End Time 2025-02-03 07:56:05 [2025-02-03 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391636', 'tblTempUsageDetail_20' ) start [2025-02-03 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391636', 'tblTempUsageDetail_20' ) end [2025-02-03 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391636', 'tblTempVendorCDR_20' ) start [2025-02-03 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391636', 'tblTempVendorCDR_20' ) end [2025-02-03 07:56:18] Production.INFO: ProcessCDR(1,14391636,1,1,2) [2025-02-03 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391636', 'tblTempUsageDetail_20' ) start [2025-02-03 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391636', 'tblTempUsageDetail_20' ) end [2025-02-03 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:56:21] Production.INFO: ==3858== Releasing lock... [2025-02-03 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:57:05 [end_date_ymd] => 2025-02-03 07:57:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:57:05' and `end` < '2025-02-03 07: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-02-03 07:57:17] Production.INFO: count ==121 [2025-02-03 07:57:17] Production.ERROR: pbx CDR StartTime 2025-02-03 04:57:05 - End Time 2025-02-03 07:57:05 [2025-02-03 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391638', 'tblTempUsageDetail_20' ) start [2025-02-03 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391638', 'tblTempUsageDetail_20' ) end [2025-02-03 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391638', 'tblTempVendorCDR_20' ) start [2025-02-03 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391638', 'tblTempVendorCDR_20' ) end [2025-02-03 07:57:17] Production.INFO: ProcessCDR(1,14391638,1,1,2) [2025-02-03 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391638', 'tblTempUsageDetail_20' ) start [2025-02-03 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391638', 'tblTempUsageDetail_20' ) end [2025-02-03 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:57:20] Production.INFO: ==3930== Releasing lock... [2025-02-03 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:57:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-03 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:58:05 [end_date_ymd] => 2025-02-03 07:58:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:58:05' and `end` < '2025-02-03 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-02-03 07:58:19] Production.INFO: count ==124 [2025-02-03 07:58:19] Production.ERROR: pbx CDR StartTime 2025-02-03 04:58:05 - End Time 2025-02-03 07:58:05 [2025-02-03 07:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391646', 'tblTempUsageDetail_20' ) start [2025-02-03 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391646', 'tblTempUsageDetail_20' ) end [2025-02-03 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391646', 'tblTempVendorCDR_20' ) start [2025-02-03 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391646', 'tblTempVendorCDR_20' ) end [2025-02-03 07:58:19] Production.INFO: ProcessCDR(1,14391646,1,1,2) [2025-02-03 07:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391646', 'tblTempUsageDetail_20' ) start [2025-02-03 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391646', 'tblTempUsageDetail_20' ) end [2025-02-03 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:58:22] Production.INFO: ==4003== Releasing lock... [2025-02-03 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:58:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 04:59:05 [end_date_ymd] => 2025-02-03 07:59:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 04:59:05' and `end` < '2025-02-03 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-02-03 07:59:18] Production.INFO: count ==125 [2025-02-03 07:59:18] Production.ERROR: pbx CDR StartTime 2025-02-03 04:59:05 - End Time 2025-02-03 07:59:05 [2025-02-03 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391651', 'tblTempUsageDetail_20' ) start [2025-02-03 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391651', 'tblTempUsageDetail_20' ) end [2025-02-03 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391651', 'tblTempVendorCDR_20' ) start [2025-02-03 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391651', 'tblTempVendorCDR_20' ) end [2025-02-03 07:59:18] Production.INFO: ProcessCDR(1,14391651,1,1,2) [2025-02-03 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 07:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391651', 'tblTempUsageDetail_20' ) start [2025-02-03 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391651', 'tblTempUsageDetail_20' ) end [2025-02-03 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 07:59:22] Production.INFO: ==4081== Releasing lock... [2025-02-03 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 07:59:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:00:06 [end_date_ymd] => 2025-02-03 08:00:06 [RateCDR] => 1 ) [2025-02-03 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 05:00:06' and `end` < '2025-02-03 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 08:00:19] Production.INFO: count ==126 [2025-02-03 08:00:19] Production.ERROR: pbx CDR StartTime 2025-02-03 05:00:06 - End Time 2025-02-03 08:00:06 [2025-02-03 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391657', 'tblTempUsageDetail_20' ) start [2025-02-03 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391657', 'tblTempUsageDetail_20' ) end [2025-02-03 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391657', 'tblTempVendorCDR_20' ) start [2025-02-03 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391657', 'tblTempVendorCDR_20' ) end [2025-02-03 08:00:19] Production.INFO: ProcessCDR(1,14391657,1,1,2) [2025-02-03 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391657', 'tblTempUsageDetail_20' ) start [2025-02-03 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391657', 'tblTempUsageDetail_20' ) end [2025-02-03 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:00:22] Production.INFO: ==4157== Releasing lock... [2025-02-03 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:01:05 [end_date_ymd] => 2025-02-03 08:01:05 [RateCDR] => 1 ) [2025-02-03 08: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-02-03 05:01:05' and `end` < '2025-02-03 08: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-02-03 08:01:18] Production.INFO: count ==126 [2025-02-03 08:01:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:01:05 - End Time 2025-02-03 08:01:05 [2025-02-03 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391662', 'tblTempUsageDetail_20' ) start [2025-02-03 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391662', 'tblTempUsageDetail_20' ) end [2025-02-03 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391662', 'tblTempVendorCDR_20' ) start [2025-02-03 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391662', 'tblTempVendorCDR_20' ) end [2025-02-03 08:01:18] Production.INFO: ProcessCDR(1,14391662,1,1,2) [2025-02-03 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391662', 'tblTempUsageDetail_20' ) start [2025-02-03 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391662', 'tblTempUsageDetail_20' ) end [2025-02-03 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:01:21] Production.INFO: ==4250== Releasing lock... [2025-02-03 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:02:05 [end_date_ymd] => 2025-02-03 08:02:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:02:05' and `end` < '2025-02-03 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-02-03 08:02:18] Production.INFO: count ==142 [2025-02-03 08:02:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:02:05 - End Time 2025-02-03 08:02:05 [2025-02-03 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391667', 'tblTempUsageDetail_20' ) start [2025-02-03 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391667', 'tblTempUsageDetail_20' ) end [2025-02-03 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391667', 'tblTempVendorCDR_20' ) start [2025-02-03 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391667', 'tblTempVendorCDR_20' ) end [2025-02-03 08:02:18] Production.INFO: ProcessCDR(1,14391667,1,1,2) [2025-02-03 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391667', 'tblTempUsageDetail_20' ) start [2025-02-03 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391667', 'tblTempUsageDetail_20' ) end [2025-02-03 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:02:21] Production.INFO: ==4361== Releasing lock... [2025-02-03 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:02:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-03 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:03:06 [end_date_ymd] => 2025-02-03 08:03:06 [RateCDR] => 1 ) [2025-02-03 08: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-02-03 05:03:06' and `end` < '2025-02-03 08: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-02-03 08:03:19] Production.INFO: count ==168 [2025-02-03 08:03:19] Production.ERROR: pbx CDR StartTime 2025-02-03 05:03:06 - End Time 2025-02-03 08:03:06 [2025-02-03 08:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391672', 'tblTempUsageDetail_20' ) start [2025-02-03 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391672', 'tblTempUsageDetail_20' ) end [2025-02-03 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391672', 'tblTempVendorCDR_20' ) start [2025-02-03 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391672', 'tblTempVendorCDR_20' ) end [2025-02-03 08:03:19] Production.INFO: ProcessCDR(1,14391672,1,1,2) [2025-02-03 08:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391672', 'tblTempUsageDetail_20' ) start [2025-02-03 08:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391672', 'tblTempUsageDetail_20' ) end [2025-02-03 08:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:03:24] Production.INFO: ==4436== Releasing lock... [2025-02-03 08:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:03:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-03 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:04:06 [end_date_ymd] => 2025-02-03 08:04:06 [RateCDR] => 1 ) [2025-02-03 08: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-02-03 05:04:06' and `end` < '2025-02-03 08: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-02-03 08:04:18] Production.INFO: count ==191 [2025-02-03 08:04:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:04:06 - End Time 2025-02-03 08:04:06 [2025-02-03 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391677', 'tblTempUsageDetail_20' ) start [2025-02-03 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391677', 'tblTempUsageDetail_20' ) end [2025-02-03 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391677', 'tblTempVendorCDR_20' ) start [2025-02-03 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391677', 'tblTempVendorCDR_20' ) end [2025-02-03 08:04:18] Production.INFO: ProcessCDR(1,14391677,1,1,2) [2025-02-03 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391677', 'tblTempUsageDetail_20' ) start [2025-02-03 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391677', 'tblTempUsageDetail_20' ) end [2025-02-03 08:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:04:23] Production.INFO: ==4506== Releasing lock... [2025-02-03 08:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:04:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-03 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:05:06 [end_date_ymd] => 2025-02-03 08:05:06 [RateCDR] => 1 ) [2025-02-03 08: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-02-03 05:05:06' and `end` < '2025-02-03 08: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-02-03 08:05:18] Production.INFO: count ==195 [2025-02-03 08:05:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:05:06 - End Time 2025-02-03 08:05:06 [2025-02-03 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391682', 'tblTempUsageDetail_20' ) start [2025-02-03 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391682', 'tblTempUsageDetail_20' ) end [2025-02-03 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391682', 'tblTempVendorCDR_20' ) start [2025-02-03 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391682', 'tblTempVendorCDR_20' ) end [2025-02-03 08:05:18] Production.INFO: ProcessCDR(1,14391682,1,1,2) [2025-02-03 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391682', 'tblTempUsageDetail_20' ) start [2025-02-03 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391682', 'tblTempUsageDetail_20' ) end [2025-02-03 08:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:05:23] Production.INFO: ==4585== Releasing lock... [2025-02-03 08:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:05:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-03 08:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:06:04 [end_date_ymd] => 2025-02-03 08:06:04 [RateCDR] => 1 ) [2025-02-03 08:06: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-02-03 05:06:04' and `end` < '2025-02-03 08:06: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-02-03 08:06:17] Production.INFO: count ==226 [2025-02-03 08:06:17] Production.ERROR: pbx CDR StartTime 2025-02-03 05:06:04 - End Time 2025-02-03 08:06:04 [2025-02-03 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391687', 'tblTempUsageDetail_20' ) start [2025-02-03 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391687', 'tblTempUsageDetail_20' ) end [2025-02-03 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391687', 'tblTempVendorCDR_20' ) start [2025-02-03 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391687', 'tblTempVendorCDR_20' ) end [2025-02-03 08:06:17] Production.INFO: ProcessCDR(1,14391687,1,1,2) [2025-02-03 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391687', 'tblTempUsageDetail_20' ) start [2025-02-03 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391687', 'tblTempUsageDetail_20' ) end [2025-02-03 08:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:06:20] Production.INFO: ==4659== Releasing lock... [2025-02-03 08:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:06:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-03 08:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:07:06 [end_date_ymd] => 2025-02-03 08:07:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:07:06' and `end` < '2025-02-03 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-02-03 08:07:18] Production.INFO: count ==233 [2025-02-03 08:07:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:07:06 - End Time 2025-02-03 08:07:06 [2025-02-03 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391692', 'tblTempUsageDetail_20' ) start [2025-02-03 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391692', 'tblTempUsageDetail_20' ) end [2025-02-03 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391692', 'tblTempVendorCDR_20' ) start [2025-02-03 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391692', 'tblTempVendorCDR_20' ) end [2025-02-03 08:07:18] Production.INFO: ProcessCDR(1,14391692,1,1,2) [2025-02-03 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391692', 'tblTempUsageDetail_20' ) start [2025-02-03 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391692', 'tblTempUsageDetail_20' ) end [2025-02-03 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:07:22] Production.INFO: ==4738== Releasing lock... [2025-02-03 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:07:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-03 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:08:05 [end_date_ymd] => 2025-02-03 08:08:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:08:05' and `end` < '2025-02-03 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-02-03 08:08:18] Production.INFO: count ==240 [2025-02-03 08:08:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:08:05 - End Time 2025-02-03 08:08:05 [2025-02-03 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391697', 'tblTempUsageDetail_20' ) start [2025-02-03 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391697', 'tblTempUsageDetail_20' ) end [2025-02-03 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391697', 'tblTempVendorCDR_20' ) start [2025-02-03 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391697', 'tblTempVendorCDR_20' ) end [2025-02-03 08:08:18] Production.INFO: ProcessCDR(1,14391697,1,1,2) [2025-02-03 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391697', 'tblTempUsageDetail_20' ) start [2025-02-03 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391697', 'tblTempUsageDetail_20' ) end [2025-02-03 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:08:21] Production.INFO: ==4810== Releasing lock... [2025-02-03 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:08:21] Production.INFO: 30 MB #Memory Used# [2025-02-03 08:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:09:06 [end_date_ymd] => 2025-02-03 08:09:06 [RateCDR] => 1 ) [2025-02-03 08:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 05:09:06' and `end` < '2025-02-03 08:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 08:09:18] Production.INFO: count ==243 [2025-02-03 08:09:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:09:06 - End Time 2025-02-03 08:09:06 [2025-02-03 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391702', 'tblTempUsageDetail_20' ) start [2025-02-03 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391702', 'tblTempUsageDetail_20' ) end [2025-02-03 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391702', 'tblTempVendorCDR_20' ) start [2025-02-03 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391702', 'tblTempVendorCDR_20' ) end [2025-02-03 08:09:18] Production.INFO: ProcessCDR(1,14391702,1,1,2) [2025-02-03 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391702', 'tblTempUsageDetail_20' ) start [2025-02-03 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391702', 'tblTempUsageDetail_20' ) end [2025-02-03 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:09:21] Production.INFO: ==4885== Releasing lock... [2025-02-03 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:09:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-03 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:10:05 [end_date_ymd] => 2025-02-03 08:10:05 [RateCDR] => 1 ) [2025-02-03 08: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-02-03 05:10:05' and `end` < '2025-02-03 08: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-02-03 08:10:18] Production.INFO: count ==247 [2025-02-03 08:10:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:10:05 - End Time 2025-02-03 08:10:05 [2025-02-03 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391708', 'tblTempUsageDetail_20' ) start [2025-02-03 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391708', 'tblTempUsageDetail_20' ) end [2025-02-03 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391708', 'tblTempVendorCDR_20' ) start [2025-02-03 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391708', 'tblTempVendorCDR_20' ) end [2025-02-03 08:10:18] Production.INFO: ProcessCDR(1,14391708,1,1,2) [2025-02-03 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391708', 'tblTempUsageDetail_20' ) start [2025-02-03 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391708', 'tblTempUsageDetail_20' ) end [2025-02-03 08:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:10:21] Production.INFO: ==4962== Releasing lock... [2025-02-03 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:10:21] Production.INFO: 30 MB #Memory Used# [2025-02-03 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:11:05 [end_date_ymd] => 2025-02-03 08:11:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:11:05' and `end` < '2025-02-03 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-02-03 08:11:20] Production.INFO: count ==283 [2025-02-03 08:11:20] Production.ERROR: pbx CDR StartTime 2025-02-03 05:11:05 - End Time 2025-02-03 08:11:05 [2025-02-03 08:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391713', 'tblTempUsageDetail_20' ) start [2025-02-03 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391713', 'tblTempUsageDetail_20' ) end [2025-02-03 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391713', 'tblTempVendorCDR_20' ) start [2025-02-03 08:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391713', 'tblTempVendorCDR_20' ) end [2025-02-03 08:11:20] Production.INFO: ProcessCDR(1,14391713,1,1,2) [2025-02-03 08:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391713', 'tblTempUsageDetail_20' ) start [2025-02-03 08:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391713', 'tblTempUsageDetail_20' ) end [2025-02-03 08:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:11:25] Production.INFO: ==5038== Releasing lock... [2025-02-03 08:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:11:25] Production.INFO: 30.25 MB #Memory Used# [2025-02-03 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:12:05 [end_date_ymd] => 2025-02-03 08:12:05 [RateCDR] => 1 ) [2025-02-03 08: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-02-03 05:12:05' and `end` < '2025-02-03 08: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-02-03 08:12:18] Production.INFO: count ==285 [2025-02-03 08:12:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:12:05 - End Time 2025-02-03 08:12:05 [2025-02-03 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391718', 'tblTempUsageDetail_20' ) start [2025-02-03 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391718', 'tblTempUsageDetail_20' ) end [2025-02-03 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391718', 'tblTempVendorCDR_20' ) start [2025-02-03 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391718', 'tblTempVendorCDR_20' ) end [2025-02-03 08:12:18] Production.INFO: ProcessCDR(1,14391718,1,1,2) [2025-02-03 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391718', 'tblTempUsageDetail_20' ) start [2025-02-03 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391718', 'tblTempUsageDetail_20' ) end [2025-02-03 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:12:21] Production.INFO: ==5113== Releasing lock... [2025-02-03 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:12:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-03 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:13:05 [end_date_ymd] => 2025-02-03 08:13:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:13:05' and `end` < '2025-02-03 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-02-03 08:13:18] Production.INFO: count ==296 [2025-02-03 08:13:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:13:05 - End Time 2025-02-03 08:13:05 [2025-02-03 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391723', 'tblTempUsageDetail_20' ) start [2025-02-03 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391723', 'tblTempUsageDetail_20' ) end [2025-02-03 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391723', 'tblTempVendorCDR_20' ) start [2025-02-03 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391723', 'tblTempVendorCDR_20' ) end [2025-02-03 08:13:18] Production.INFO: ProcessCDR(1,14391723,1,1,2) [2025-02-03 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391723', 'tblTempUsageDetail_20' ) start [2025-02-03 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391723', 'tblTempUsageDetail_20' ) end [2025-02-03 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:13:21] Production.INFO: ==5185== Releasing lock... [2025-02-03 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:13:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-03 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:14:05 [end_date_ymd] => 2025-02-03 08:14:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:14:05' and `end` < '2025-02-03 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-02-03 08:14:18] Production.INFO: count ==297 [2025-02-03 08:14:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:14:05 - End Time 2025-02-03 08:14:05 [2025-02-03 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391728', 'tblTempUsageDetail_20' ) start [2025-02-03 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391728', 'tblTempUsageDetail_20' ) end [2025-02-03 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391728', 'tblTempVendorCDR_20' ) start [2025-02-03 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391728', 'tblTempVendorCDR_20' ) end [2025-02-03 08:14:18] Production.INFO: ProcessCDR(1,14391728,1,1,2) [2025-02-03 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391728', 'tblTempUsageDetail_20' ) start [2025-02-03 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391728', 'tblTempUsageDetail_20' ) end [2025-02-03 08:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:14:23] Production.INFO: ==5259== Releasing lock... [2025-02-03 08:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:14:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-03 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:15:05 [end_date_ymd] => 2025-02-03 08:15:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:15:05' and `end` < '2025-02-03 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-02-03 08:15:18] Production.INFO: count ==308 [2025-02-03 08:15:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:15:05 - End Time 2025-02-03 08:15:05 [2025-02-03 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391733', 'tblTempUsageDetail_20' ) start [2025-02-03 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391733', 'tblTempUsageDetail_20' ) end [2025-02-03 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391733', 'tblTempVendorCDR_20' ) start [2025-02-03 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391733', 'tblTempVendorCDR_20' ) end [2025-02-03 08:15:18] Production.INFO: ProcessCDR(1,14391733,1,1,2) [2025-02-03 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391733', 'tblTempUsageDetail_20' ) start [2025-02-03 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391733', 'tblTempUsageDetail_20' ) end [2025-02-03 08:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:15:22] Production.INFO: ==5335== Releasing lock... [2025-02-03 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:15:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-03 08:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:16:06 [end_date_ymd] => 2025-02-03 08:16:06 [RateCDR] => 1 ) [2025-02-03 08: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-02-03 05:16:06' and `end` < '2025-02-03 08: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-02-03 08:16:18] Production.INFO: count ==315 [2025-02-03 08:16:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:16:06 - End Time 2025-02-03 08:16:06 [2025-02-03 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391738', 'tblTempUsageDetail_20' ) start [2025-02-03 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391738', 'tblTempUsageDetail_20' ) end [2025-02-03 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391738', 'tblTempVendorCDR_20' ) start [2025-02-03 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391738', 'tblTempVendorCDR_20' ) end [2025-02-03 08:16:18] Production.INFO: ProcessCDR(1,14391738,1,1,2) [2025-02-03 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391738', 'tblTempUsageDetail_20' ) start [2025-02-03 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391738', 'tblTempUsageDetail_20' ) end [2025-02-03 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:16:23] Production.INFO: ==5412== Releasing lock... [2025-02-03 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:16:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-03 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:17:05 [end_date_ymd] => 2025-02-03 08:17:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:17:05' and `end` < '2025-02-03 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-02-03 08:17:17] Production.INFO: count ==319 [2025-02-03 08:17:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:17:05 - End Time 2025-02-03 08:17:05 [2025-02-03 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391743', 'tblTempUsageDetail_20' ) start [2025-02-03 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391743', 'tblTempUsageDetail_20' ) end [2025-02-03 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391743', 'tblTempVendorCDR_20' ) start [2025-02-03 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391743', 'tblTempVendorCDR_20' ) end [2025-02-03 08:17:18] Production.INFO: ProcessCDR(1,14391743,1,1,2) [2025-02-03 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391743', 'tblTempUsageDetail_20' ) start [2025-02-03 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391743', 'tblTempUsageDetail_20' ) end [2025-02-03 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:17:22] Production.INFO: ==5503== Releasing lock... [2025-02-03 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:17:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-03 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:18:05 [end_date_ymd] => 2025-02-03 08:18:05 [RateCDR] => 1 ) [2025-02-03 08: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-02-03 05:18:05' and `end` < '2025-02-03 08: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-02-03 08:18:18] Production.INFO: count ==322 [2025-02-03 08:18:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:18:05 - End Time 2025-02-03 08:18:05 [2025-02-03 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391748', 'tblTempUsageDetail_20' ) start [2025-02-03 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391748', 'tblTempUsageDetail_20' ) end [2025-02-03 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391748', 'tblTempVendorCDR_20' ) start [2025-02-03 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391748', 'tblTempVendorCDR_20' ) end [2025-02-03 08:18:18] Production.INFO: ProcessCDR(1,14391748,1,1,2) [2025-02-03 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391748', 'tblTempUsageDetail_20' ) start [2025-02-03 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391748', 'tblTempUsageDetail_20' ) end [2025-02-03 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:18:21] Production.INFO: ==5665== Releasing lock... [2025-02-03 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-03 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:19:05 [end_date_ymd] => 2025-02-03 08:19:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:19:05' and `end` < '2025-02-03 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-02-03 08:19:17] Production.INFO: count ==335 [2025-02-03 08:19:17] Production.ERROR: pbx CDR StartTime 2025-02-03 05:19:05 - End Time 2025-02-03 08:19:05 [2025-02-03 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391753', 'tblTempUsageDetail_20' ) start [2025-02-03 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391753', 'tblTempUsageDetail_20' ) end [2025-02-03 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391753', 'tblTempVendorCDR_20' ) start [2025-02-03 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391753', 'tblTempVendorCDR_20' ) end [2025-02-03 08:19:17] Production.INFO: ProcessCDR(1,14391753,1,1,2) [2025-02-03 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391753', 'tblTempUsageDetail_20' ) start [2025-02-03 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391753', 'tblTempUsageDetail_20' ) end [2025-02-03 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:19:22] Production.INFO: ==5781== Releasing lock... [2025-02-03 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:19:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-03 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:20:06 [end_date_ymd] => 2025-02-03 08:20:06 [RateCDR] => 1 ) [2025-02-03 08: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-02-03 05:20:06' and `end` < '2025-02-03 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-02-03 08:20:19] Production.INFO: count ==354 [2025-02-03 08:20:19] Production.ERROR: pbx CDR StartTime 2025-02-03 05:20:06 - End Time 2025-02-03 08:20:06 [2025-02-03 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391758', 'tblTempUsageDetail_20' ) start [2025-02-03 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391758', 'tblTempUsageDetail_20' ) end [2025-02-03 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391758', 'tblTempVendorCDR_20' ) start [2025-02-03 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391758', 'tblTempVendorCDR_20' ) end [2025-02-03 08:20:19] Production.INFO: ProcessCDR(1,14391758,1,1,2) [2025-02-03 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391758', 'tblTempUsageDetail_20' ) start [2025-02-03 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391758', 'tblTempUsageDetail_20' ) end [2025-02-03 08:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:20:24] Production.INFO: ==5901== Releasing lock... [2025-02-03 08:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:20:24] Production.INFO: 31 MB #Memory Used# [2025-02-03 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:21:05 [end_date_ymd] => 2025-02-03 08:21:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:21:05' and `end` < '2025-02-03 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-02-03 08:21:17] Production.INFO: count ==380 [2025-02-03 08:21:17] Production.ERROR: pbx CDR StartTime 2025-02-03 05:21:05 - End Time 2025-02-03 08:21:05 [2025-02-03 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391764', 'tblTempUsageDetail_20' ) start [2025-02-03 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391764', 'tblTempUsageDetail_20' ) end [2025-02-03 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391764', 'tblTempVendorCDR_20' ) start [2025-02-03 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391764', 'tblTempVendorCDR_20' ) end [2025-02-03 08:21:17] Production.INFO: ProcessCDR(1,14391764,1,1,2) [2025-02-03 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391764', 'tblTempUsageDetail_20' ) start [2025-02-03 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391764', 'tblTempUsageDetail_20' ) end [2025-02-03 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:21:21] Production.INFO: ==6021== Releasing lock... [2025-02-03 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:21:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-03 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:22:05 [end_date_ymd] => 2025-02-03 08:22:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:22:05' and `end` < '2025-02-03 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-02-03 08:22:18] Production.INFO: count ==390 [2025-02-03 08:22:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:22:05 - End Time 2025-02-03 08:22:05 [2025-02-03 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391769', 'tblTempUsageDetail_20' ) start [2025-02-03 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391769', 'tblTempUsageDetail_20' ) end [2025-02-03 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391769', 'tblTempVendorCDR_20' ) start [2025-02-03 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391769', 'tblTempVendorCDR_20' ) end [2025-02-03 08:22:18] Production.INFO: ProcessCDR(1,14391769,1,1,2) [2025-02-03 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391769', 'tblTempUsageDetail_20' ) start [2025-02-03 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391769', 'tblTempUsageDetail_20' ) end [2025-02-03 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:22:21] Production.INFO: ==6137== Releasing lock... [2025-02-03 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:22:21] Production.INFO: 32 MB #Memory Used# [2025-02-03 08:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:23:06 [end_date_ymd] => 2025-02-03 08:23:06 [RateCDR] => 1 ) [2025-02-03 08: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-02-03 05:23:06' and `end` < '2025-02-03 08: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-02-03 08:23:21] Production.INFO: count ==396 [2025-02-03 08:23:21] Production.ERROR: pbx CDR StartTime 2025-02-03 05:23:06 - End Time 2025-02-03 08:23:06 [2025-02-03 08:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391774', 'tblTempUsageDetail_20' ) start [2025-02-03 08:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391774', 'tblTempUsageDetail_20' ) end [2025-02-03 08:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391774', 'tblTempVendorCDR_20' ) start [2025-02-03 08:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391774', 'tblTempVendorCDR_20' ) end [2025-02-03 08:23:21] Production.INFO: ProcessCDR(1,14391774,1,1,2) [2025-02-03 08:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391774', 'tblTempUsageDetail_20' ) start [2025-02-03 08:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391774', 'tblTempUsageDetail_20' ) end [2025-02-03 08:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:23:25] Production.INFO: ==6253== Releasing lock... [2025-02-03 08:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:23:25] Production.INFO: 31.5 MB #Memory Used# [2025-02-03 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:24:05 [end_date_ymd] => 2025-02-03 08:24:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:24:05' and `end` < '2025-02-03 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-02-03 08:24:18] Production.INFO: count ==403 [2025-02-03 08:24:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:24:05 - End Time 2025-02-03 08:24:05 [2025-02-03 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391779', 'tblTempUsageDetail_20' ) start [2025-02-03 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391779', 'tblTempUsageDetail_20' ) end [2025-02-03 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391779', 'tblTempVendorCDR_20' ) start [2025-02-03 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391779', 'tblTempVendorCDR_20' ) end [2025-02-03 08:24:18] Production.INFO: ProcessCDR(1,14391779,1,1,2) [2025-02-03 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391779', 'tblTempUsageDetail_20' ) start [2025-02-03 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391779', 'tblTempUsageDetail_20' ) end [2025-02-03 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:24:21] Production.INFO: ==6374== Releasing lock... [2025-02-03 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:24:21] Production.INFO: 32 MB #Memory Used# [2025-02-03 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:25:05 [end_date_ymd] => 2025-02-03 08:25:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:25:05' and `end` < '2025-02-03 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-02-03 08:25:18] Production.INFO: count ==403 [2025-02-03 08:25:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:25:05 - End Time 2025-02-03 08:25:05 [2025-02-03 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391784', 'tblTempUsageDetail_20' ) start [2025-02-03 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391784', 'tblTempUsageDetail_20' ) end [2025-02-03 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391784', 'tblTempVendorCDR_20' ) start [2025-02-03 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391784', 'tblTempVendorCDR_20' ) end [2025-02-03 08:25:18] Production.INFO: ProcessCDR(1,14391784,1,1,2) [2025-02-03 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391784', 'tblTempUsageDetail_20' ) start [2025-02-03 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391784', 'tblTempUsageDetail_20' ) end [2025-02-03 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:25:21] Production.INFO: ==6486== Releasing lock... [2025-02-03 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:25:21] Production.INFO: 32 MB #Memory Used# [2025-02-03 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:26:05 [end_date_ymd] => 2025-02-03 08:26:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:26:05' and `end` < '2025-02-03 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-02-03 08:26:18] Production.INFO: count ==416 [2025-02-03 08:26:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:26:05 - End Time 2025-02-03 08:26:05 [2025-02-03 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391789', 'tblTempUsageDetail_20' ) start [2025-02-03 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391789', 'tblTempUsageDetail_20' ) end [2025-02-03 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391789', 'tblTempVendorCDR_20' ) start [2025-02-03 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391789', 'tblTempVendorCDR_20' ) end [2025-02-03 08:26:18] Production.INFO: ProcessCDR(1,14391789,1,1,2) [2025-02-03 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391789', 'tblTempUsageDetail_20' ) start [2025-02-03 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391789', 'tblTempUsageDetail_20' ) end [2025-02-03 08:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:26:23] Production.INFO: ==6600== Releasing lock... [2025-02-03 08:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:26:23] Production.INFO: 32 MB #Memory Used# [2025-02-03 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:27:05 [end_date_ymd] => 2025-02-03 08:27:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:27:05' and `end` < '2025-02-03 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-02-03 08:27:18] Production.INFO: count ==418 [2025-02-03 08:27:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:27:05 - End Time 2025-02-03 08:27:05 [2025-02-03 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391794', 'tblTempUsageDetail_20' ) start [2025-02-03 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391794', 'tblTempUsageDetail_20' ) end [2025-02-03 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391794', 'tblTempVendorCDR_20' ) start [2025-02-03 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391794', 'tblTempVendorCDR_20' ) end [2025-02-03 08:27:18] Production.INFO: ProcessCDR(1,14391794,1,1,2) [2025-02-03 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391794', 'tblTempUsageDetail_20' ) start [2025-02-03 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391794', 'tblTempUsageDetail_20' ) end [2025-02-03 08:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:27:23] Production.INFO: ==6720== Releasing lock... [2025-02-03 08:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:27:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-03 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:28:05 [end_date_ymd] => 2025-02-03 08:28:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:28:05' and `end` < '2025-02-03 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-02-03 08:28:18] Production.INFO: count ==435 [2025-02-03 08:28:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:28:05 - End Time 2025-02-03 08:28:05 [2025-02-03 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391799', 'tblTempUsageDetail_20' ) start [2025-02-03 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391799', 'tblTempUsageDetail_20' ) end [2025-02-03 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391799', 'tblTempVendorCDR_20' ) start [2025-02-03 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391799', 'tblTempVendorCDR_20' ) end [2025-02-03 08:28:18] Production.INFO: ProcessCDR(1,14391799,1,1,2) [2025-02-03 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391799', 'tblTempUsageDetail_20' ) start [2025-02-03 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391799', 'tblTempUsageDetail_20' ) end [2025-02-03 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:28:21] Production.INFO: ==6842== Releasing lock... [2025-02-03 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:28:21] Production.INFO: 32 MB #Memory Used# [2025-02-03 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:29:05 [end_date_ymd] => 2025-02-03 08:29:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:29:05' and `end` < '2025-02-03 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-02-03 08:29:18] Production.INFO: count ==437 [2025-02-03 08:29:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:29:05 - End Time 2025-02-03 08:29:05 [2025-02-03 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391804', 'tblTempUsageDetail_20' ) start [2025-02-03 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391804', 'tblTempUsageDetail_20' ) end [2025-02-03 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391804', 'tblTempVendorCDR_20' ) start [2025-02-03 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391804', 'tblTempVendorCDR_20' ) end [2025-02-03 08:29:18] Production.INFO: ProcessCDR(1,14391804,1,1,2) [2025-02-03 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391804', 'tblTempUsageDetail_20' ) start [2025-02-03 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391804', 'tblTempUsageDetail_20' ) end [2025-02-03 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:29:23] Production.INFO: ==6959== Releasing lock... [2025-02-03 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:29:23] Production.INFO: 32 MB #Memory Used# [2025-02-03 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:30:06 [end_date_ymd] => 2025-02-03 08:30:06 [RateCDR] => 1 ) [2025-02-03 08: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-02-03 05:30:06' and `end` < '2025-02-03 08: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-02-03 08:30:19] Production.INFO: count ==453 [2025-02-03 08:30:19] Production.ERROR: pbx CDR StartTime 2025-02-03 05:30:06 - End Time 2025-02-03 08:30:06 [2025-02-03 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391810', 'tblTempUsageDetail_20' ) start [2025-02-03 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391810', 'tblTempUsageDetail_20' ) end [2025-02-03 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391810', 'tblTempVendorCDR_20' ) start [2025-02-03 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391810', 'tblTempVendorCDR_20' ) end [2025-02-03 08:30:19] Production.INFO: ProcessCDR(1,14391810,1,1,2) [2025-02-03 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391810', 'tblTempUsageDetail_20' ) start [2025-02-03 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391810', 'tblTempUsageDetail_20' ) end [2025-02-03 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:30:22] Production.INFO: ==7063== Releasing lock... [2025-02-03 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:30:22] Production.INFO: 32 MB #Memory Used# [2025-02-03 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:31:05 [end_date_ymd] => 2025-02-03 08:31:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:31:05' and `end` < '2025-02-03 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-02-03 08:31:18] Production.INFO: count ==490 [2025-02-03 08:31:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:31:05 - End Time 2025-02-03 08:31:05 [2025-02-03 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391815', 'tblTempUsageDetail_20' ) start [2025-02-03 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391815', 'tblTempUsageDetail_20' ) end [2025-02-03 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391815', 'tblTempVendorCDR_20' ) start [2025-02-03 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391815', 'tblTempVendorCDR_20' ) end [2025-02-03 08:31:18] Production.INFO: ProcessCDR(1,14391815,1,1,2) [2025-02-03 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391815', 'tblTempUsageDetail_20' ) start [2025-02-03 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391815', 'tblTempUsageDetail_20' ) end [2025-02-03 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:31:21] Production.INFO: ==7165== Releasing lock... [2025-02-03 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:31:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-03 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:32:05 [end_date_ymd] => 2025-02-03 08:32:05 [RateCDR] => 1 ) [2025-02-03 08: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-02-03 05:32:05' and `end` < '2025-02-03 08: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-02-03 08:32:19] Production.INFO: count ==492 [2025-02-03 08:32:19] Production.ERROR: pbx CDR StartTime 2025-02-03 05:32:05 - End Time 2025-02-03 08:32:05 [2025-02-03 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391817', 'tblTempUsageDetail_20' ) start [2025-02-03 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391817', 'tblTempUsageDetail_20' ) end [2025-02-03 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391817', 'tblTempVendorCDR_20' ) start [2025-02-03 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391817', 'tblTempVendorCDR_20' ) end [2025-02-03 08:32:19] Production.INFO: ProcessCDR(1,14391817,1,1,2) [2025-02-03 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391817', 'tblTempUsageDetail_20' ) start [2025-02-03 08:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391817', 'tblTempUsageDetail_20' ) end [2025-02-03 08:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:32:24] Production.INFO: ==7237== Releasing lock... [2025-02-03 08:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:32:24] Production.INFO: 32.25 MB #Memory Used# [2025-02-03 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:33:05 [end_date_ymd] => 2025-02-03 08:33:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:33:05' and `end` < '2025-02-03 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-02-03 08:33:19] Production.INFO: count ==506 [2025-02-03 08:33:19] Production.ERROR: pbx CDR StartTime 2025-02-03 05:33:05 - End Time 2025-02-03 08:33:05 [2025-02-03 08:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391825', 'tblTempUsageDetail_20' ) start [2025-02-03 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391825', 'tblTempUsageDetail_20' ) end [2025-02-03 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391825', 'tblTempVendorCDR_20' ) start [2025-02-03 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391825', 'tblTempVendorCDR_20' ) end [2025-02-03 08:33:19] Production.INFO: ProcessCDR(1,14391825,1,1,2) [2025-02-03 08:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391825', 'tblTempUsageDetail_20' ) start [2025-02-03 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391825', 'tblTempUsageDetail_20' ) end [2025-02-03 08:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:33:23] Production.INFO: ==7347== Releasing lock... [2025-02-03 08:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:33:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-03 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:34:05 [end_date_ymd] => 2025-02-03 08:34:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:34:05' and `end` < '2025-02-03 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-02-03 08:34:18] Production.INFO: count ==530 [2025-02-03 08:34:19] Production.ERROR: pbx CDR StartTime 2025-02-03 05:34:05 - End Time 2025-02-03 08:34:05 [2025-02-03 08:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391830', 'tblTempUsageDetail_20' ) start [2025-02-03 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391830', 'tblTempUsageDetail_20' ) end [2025-02-03 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391830', 'tblTempVendorCDR_20' ) start [2025-02-03 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391830', 'tblTempVendorCDR_20' ) end [2025-02-03 08:34:19] Production.INFO: ProcessCDR(1,14391830,1,1,2) [2025-02-03 08:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391830', 'tblTempUsageDetail_20' ) start [2025-02-03 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391830', 'tblTempUsageDetail_20' ) end [2025-02-03 08:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:34:23] Production.INFO: ==7418== Releasing lock... [2025-02-03 08:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:34:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-03 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:35:05 [end_date_ymd] => 2025-02-03 08:35:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:35:05' and `end` < '2025-02-03 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-02-03 08:35:17] Production.INFO: count ==535 [2025-02-03 08:35:17] Production.ERROR: pbx CDR StartTime 2025-02-03 05:35:05 - End Time 2025-02-03 08:35:05 [2025-02-03 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391835', 'tblTempUsageDetail_20' ) start [2025-02-03 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391835', 'tblTempUsageDetail_20' ) end [2025-02-03 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391835', 'tblTempVendorCDR_20' ) start [2025-02-03 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391835', 'tblTempVendorCDR_20' ) end [2025-02-03 08:35:17] Production.INFO: ProcessCDR(1,14391835,1,1,2) [2025-02-03 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391835', 'tblTempUsageDetail_20' ) start [2025-02-03 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391835', 'tblTempUsageDetail_20' ) end [2025-02-03 08:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:35:20] Production.INFO: ==7491== Releasing lock... [2025-02-03 08:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:35:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-03 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:36:05 [end_date_ymd] => 2025-02-03 08:36:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:36:05' and `end` < '2025-02-03 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-02-03 08:36:18] Production.INFO: count ==550 [2025-02-03 08:36:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:36:05 - End Time 2025-02-03 08:36:05 [2025-02-03 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391840', 'tblTempUsageDetail_20' ) start [2025-02-03 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391840', 'tblTempUsageDetail_20' ) end [2025-02-03 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391840', 'tblTempVendorCDR_20' ) start [2025-02-03 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391840', 'tblTempVendorCDR_20' ) end [2025-02-03 08:36:18] Production.INFO: ProcessCDR(1,14391840,1,1,2) [2025-02-03 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391840', 'tblTempUsageDetail_20' ) start [2025-02-03 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391840', 'tblTempUsageDetail_20' ) end [2025-02-03 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:36:21] Production.INFO: ==7562== Releasing lock... [2025-02-03 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:36:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-03 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:37:05 [end_date_ymd] => 2025-02-03 08:37:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:37:05' and `end` < '2025-02-03 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-02-03 08:37:18] Production.INFO: count ==580 [2025-02-03 08:37:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:37:05 - End Time 2025-02-03 08:37:05 [2025-02-03 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391845', 'tblTempUsageDetail_20' ) start [2025-02-03 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391845', 'tblTempUsageDetail_20' ) end [2025-02-03 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391845', 'tblTempVendorCDR_20' ) start [2025-02-03 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391845', 'tblTempVendorCDR_20' ) end [2025-02-03 08:37:18] Production.INFO: ProcessCDR(1,14391845,1,1,2) [2025-02-03 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391845', 'tblTempUsageDetail_20' ) start [2025-02-03 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391845', 'tblTempUsageDetail_20' ) end [2025-02-03 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:37:23] Production.INFO: ==7636== Releasing lock... [2025-02-03 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:37:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-03 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:38:05 [end_date_ymd] => 2025-02-03 08:38:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:38:05' and `end` < '2025-02-03 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-02-03 08:38:18] Production.INFO: count ==609 [2025-02-03 08:38:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:38:05 - End Time 2025-02-03 08:38:05 [2025-02-03 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391850', 'tblTempUsageDetail_20' ) start [2025-02-03 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391850', 'tblTempUsageDetail_20' ) end [2025-02-03 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391850', 'tblTempVendorCDR_20' ) start [2025-02-03 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391850', 'tblTempVendorCDR_20' ) end [2025-02-03 08:38:18] Production.INFO: ProcessCDR(1,14391850,1,1,2) [2025-02-03 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391850', 'tblTempUsageDetail_20' ) start [2025-02-03 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391850', 'tblTempUsageDetail_20' ) end [2025-02-03 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:38:23] Production.INFO: ==7707== Releasing lock... [2025-02-03 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:38:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-03 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:39:05 [end_date_ymd] => 2025-02-03 08:39:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:39:05' and `end` < '2025-02-03 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-02-03 08:39:18] Production.INFO: count ==619 [2025-02-03 08:39:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:39:05 - End Time 2025-02-03 08:39:05 [2025-02-03 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391855', 'tblTempUsageDetail_20' ) start [2025-02-03 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391855', 'tblTempUsageDetail_20' ) end [2025-02-03 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391855', 'tblTempVendorCDR_20' ) start [2025-02-03 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391855', 'tblTempVendorCDR_20' ) end [2025-02-03 08:39:18] Production.INFO: ProcessCDR(1,14391855,1,1,2) [2025-02-03 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391855', 'tblTempUsageDetail_20' ) start [2025-02-03 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391855', 'tblTempUsageDetail_20' ) end [2025-02-03 08:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:39:23] Production.INFO: ==7779== Releasing lock... [2025-02-03 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:39:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-03 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:40:05 [end_date_ymd] => 2025-02-03 08:40:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:40:05' and `end` < '2025-02-03 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-02-03 08:40:18] Production.INFO: count ==630 [2025-02-03 08:40:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:40:05 - End Time 2025-02-03 08:40:05 [2025-02-03 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391861', 'tblTempUsageDetail_20' ) start [2025-02-03 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391861', 'tblTempUsageDetail_20' ) end [2025-02-03 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391861', 'tblTempVendorCDR_20' ) start [2025-02-03 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391861', 'tblTempVendorCDR_20' ) end [2025-02-03 08:40:18] Production.INFO: ProcessCDR(1,14391861,1,1,2) [2025-02-03 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391861', 'tblTempUsageDetail_20' ) start [2025-02-03 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391861', 'tblTempUsageDetail_20' ) end [2025-02-03 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:40:23] Production.INFO: ==7851== Releasing lock... [2025-02-03 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:40:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-03 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:41:05 [end_date_ymd] => 2025-02-03 08:41:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:41:05' and `end` < '2025-02-03 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-02-03 08:41:19] Production.INFO: count ==697 [2025-02-03 08:41:19] Production.ERROR: pbx CDR StartTime 2025-02-03 05:41:05 - End Time 2025-02-03 08:41:05 [2025-02-03 08:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391866', 'tblTempUsageDetail_20' ) start [2025-02-03 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391866', 'tblTempUsageDetail_20' ) end [2025-02-03 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391866', 'tblTempVendorCDR_20' ) start [2025-02-03 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391866', 'tblTempVendorCDR_20' ) end [2025-02-03 08:41:19] Production.INFO: ProcessCDR(1,14391866,1,1,2) [2025-02-03 08:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391866', 'tblTempUsageDetail_20' ) start [2025-02-03 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391866', 'tblTempUsageDetail_20' ) end [2025-02-03 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:41:22] Production.INFO: ==7928== Releasing lock... [2025-02-03 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:41:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-03 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:42:05 [end_date_ymd] => 2025-02-03 08:42:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:42:05' and `end` < '2025-02-03 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-02-03 08:42:18] Production.INFO: count ==713 [2025-02-03 08:42:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:42:05 - End Time 2025-02-03 08:42:05 [2025-02-03 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391871', 'tblTempUsageDetail_20' ) start [2025-02-03 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391871', 'tblTempUsageDetail_20' ) end [2025-02-03 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391871', 'tblTempVendorCDR_20' ) start [2025-02-03 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391871', 'tblTempVendorCDR_20' ) end [2025-02-03 08:42:18] Production.INFO: ProcessCDR(1,14391871,1,1,2) [2025-02-03 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391871', 'tblTempUsageDetail_20' ) start [2025-02-03 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391871', 'tblTempUsageDetail_20' ) end [2025-02-03 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:42:23] Production.INFO: ==8001== Releasing lock... [2025-02-03 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:42:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-03 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:43:05 [end_date_ymd] => 2025-02-03 08:43:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:43:05' and `end` < '2025-02-03 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-02-03 08:43:18] Production.INFO: count ==732 [2025-02-03 08:43:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:43:05 - End Time 2025-02-03 08:43:05 [2025-02-03 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391876', 'tblTempUsageDetail_20' ) start [2025-02-03 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391876', 'tblTempUsageDetail_20' ) end [2025-02-03 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391876', 'tblTempVendorCDR_20' ) start [2025-02-03 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391876', 'tblTempVendorCDR_20' ) end [2025-02-03 08:43:18] Production.INFO: ProcessCDR(1,14391876,1,1,2) [2025-02-03 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391876', 'tblTempUsageDetail_20' ) start [2025-02-03 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391876', 'tblTempUsageDetail_20' ) end [2025-02-03 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:43:22] Production.INFO: ==8070== Releasing lock... [2025-02-03 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:43:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-03 08:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:44:06 [end_date_ymd] => 2025-02-03 08:44:06 [RateCDR] => 1 ) [2025-02-03 08: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-02-03 05:44:06' and `end` < '2025-02-03 08: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-02-03 08:44:20] Production.INFO: count ==738 [2025-02-03 08:44:20] Production.ERROR: pbx CDR StartTime 2025-02-03 05:44:06 - End Time 2025-02-03 08:44:06 [2025-02-03 08:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391881', 'tblTempUsageDetail_20' ) start [2025-02-03 08:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391881', 'tblTempUsageDetail_20' ) end [2025-02-03 08:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391881', 'tblTempVendorCDR_20' ) start [2025-02-03 08:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391881', 'tblTempVendorCDR_20' ) end [2025-02-03 08:44:20] Production.INFO: ProcessCDR(1,14391881,1,1,2) [2025-02-03 08:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391881', 'tblTempUsageDetail_20' ) start [2025-02-03 08:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391881', 'tblTempUsageDetail_20' ) end [2025-02-03 08:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:44:24] Production.INFO: ==8143== Releasing lock... [2025-02-03 08:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:44:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-03 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:45:05 [end_date_ymd] => 2025-02-03 08:45:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:45:05' and `end` < '2025-02-03 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-02-03 08:45:18] Production.INFO: count ==748 [2025-02-03 08:45:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:45:05 - End Time 2025-02-03 08:45:05 [2025-02-03 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391886', 'tblTempUsageDetail_20' ) start [2025-02-03 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391886', 'tblTempUsageDetail_20' ) end [2025-02-03 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391886', 'tblTempVendorCDR_20' ) start [2025-02-03 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391886', 'tblTempVendorCDR_20' ) end [2025-02-03 08:45:18] Production.INFO: ProcessCDR(1,14391886,1,1,2) [2025-02-03 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391886', 'tblTempUsageDetail_20' ) start [2025-02-03 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391886', 'tblTempUsageDetail_20' ) end [2025-02-03 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:45:23] Production.INFO: ==8217== Releasing lock... [2025-02-03 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:45:23] Production.INFO: 34 MB #Memory Used# [2025-02-03 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:46:05 [end_date_ymd] => 2025-02-03 08:46:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:46:05' and `end` < '2025-02-03 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-02-03 08:46:18] Production.INFO: count ==758 [2025-02-03 08:46:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:46:05 - End Time 2025-02-03 08:46:05 [2025-02-03 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391891', 'tblTempUsageDetail_20' ) start [2025-02-03 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391891', 'tblTempUsageDetail_20' ) end [2025-02-03 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391891', 'tblTempVendorCDR_20' ) start [2025-02-03 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391891', 'tblTempVendorCDR_20' ) end [2025-02-03 08:46:18] Production.INFO: ProcessCDR(1,14391891,1,1,2) [2025-02-03 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391891', 'tblTempUsageDetail_20' ) start [2025-02-03 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391891', 'tblTempUsageDetail_20' ) end [2025-02-03 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:46:23] Production.INFO: ==8301== Releasing lock... [2025-02-03 08:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:46:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-03 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:47:05 [end_date_ymd] => 2025-02-03 08:47:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:47:05' and `end` < '2025-02-03 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-02-03 08:47:19] Production.INFO: count ==758 [2025-02-03 08:47:19] Production.ERROR: pbx CDR StartTime 2025-02-03 05:47:05 - End Time 2025-02-03 08:47:05 [2025-02-03 08:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391896', 'tblTempUsageDetail_20' ) start [2025-02-03 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391896', 'tblTempUsageDetail_20' ) end [2025-02-03 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391896', 'tblTempVendorCDR_20' ) start [2025-02-03 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391896', 'tblTempVendorCDR_20' ) end [2025-02-03 08:47:19] Production.INFO: ProcessCDR(1,14391896,1,1,2) [2025-02-03 08:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391896', 'tblTempUsageDetail_20' ) start [2025-02-03 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391896', 'tblTempUsageDetail_20' ) end [2025-02-03 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:47:22] Production.INFO: ==8370== Releasing lock... [2025-02-03 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:47:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-03 08:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:48:06 [end_date_ymd] => 2025-02-03 08:48:06 [RateCDR] => 1 ) [2025-02-03 08: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-02-03 05:48:06' and `end` < '2025-02-03 08: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-02-03 08:48:18] Production.INFO: count ==767 [2025-02-03 08:48:19] Production.ERROR: pbx CDR StartTime 2025-02-03 05:48:06 - End Time 2025-02-03 08:48:06 [2025-02-03 08:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391901', 'tblTempUsageDetail_20' ) start [2025-02-03 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391901', 'tblTempUsageDetail_20' ) end [2025-02-03 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391901', 'tblTempVendorCDR_20' ) start [2025-02-03 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391901', 'tblTempVendorCDR_20' ) end [2025-02-03 08:48:19] Production.INFO: ProcessCDR(1,14391901,1,1,2) [2025-02-03 08:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391901', 'tblTempUsageDetail_20' ) start [2025-02-03 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391901', 'tblTempUsageDetail_20' ) end [2025-02-03 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:48:23] Production.INFO: ==8444== Releasing lock... [2025-02-03 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:48:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-03 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:49:05 [end_date_ymd] => 2025-02-03 08:49:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:49:05' and `end` < '2025-02-03 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-02-03 08:49:18] Production.INFO: count ==793 [2025-02-03 08:49:19] Production.ERROR: pbx CDR StartTime 2025-02-03 05:49:05 - End Time 2025-02-03 08:49:05 [2025-02-03 08:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391906', 'tblTempUsageDetail_20' ) start [2025-02-03 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391906', 'tblTempUsageDetail_20' ) end [2025-02-03 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391906', 'tblTempVendorCDR_20' ) start [2025-02-03 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391906', 'tblTempVendorCDR_20' ) end [2025-02-03 08:49:19] Production.INFO: ProcessCDR(1,14391906,1,1,2) [2025-02-03 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391906', 'tblTempUsageDetail_20' ) start [2025-02-03 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391906', 'tblTempUsageDetail_20' ) end [2025-02-03 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:49:22] Production.INFO: ==8554== Releasing lock... [2025-02-03 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:49:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:50:06 [end_date_ymd] => 2025-02-03 08:50:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:50:06' and `end` < '2025-02-03 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-02-03 08:50:19] Production.INFO: count ==815 [2025-02-03 08:50:19] Production.ERROR: pbx CDR StartTime 2025-02-03 05:50:06 - End Time 2025-02-03 08:50:06 [2025-02-03 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391911', 'tblTempUsageDetail_20' ) start [2025-02-03 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391911', 'tblTempUsageDetail_20' ) end [2025-02-03 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391911', 'tblTempVendorCDR_20' ) start [2025-02-03 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391911', 'tblTempVendorCDR_20' ) end [2025-02-03 08:50:19] Production.INFO: ProcessCDR(1,14391911,1,1,2) [2025-02-03 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391911', 'tblTempUsageDetail_20' ) start [2025-02-03 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391911', 'tblTempUsageDetail_20' ) end [2025-02-03 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:50:22] Production.INFO: ==8630== Releasing lock... [2025-02-03 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:50:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-03 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:51:05 [end_date_ymd] => 2025-02-03 08:51:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:51:05' and `end` < '2025-02-03 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-02-03 08:51:18] Production.INFO: count ==868 [2025-02-03 08:51:19] Production.ERROR: pbx CDR StartTime 2025-02-03 05:51:05 - End Time 2025-02-03 08:51:05 [2025-02-03 08:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391917', 'tblTempUsageDetail_20' ) start [2025-02-03 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391917', 'tblTempUsageDetail_20' ) end [2025-02-03 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391917', 'tblTempVendorCDR_20' ) start [2025-02-03 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391917', 'tblTempVendorCDR_20' ) end [2025-02-03 08:51:19] Production.INFO: ProcessCDR(1,14391917,1,1,2) [2025-02-03 08:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391917', 'tblTempUsageDetail_20' ) start [2025-02-03 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391917', 'tblTempUsageDetail_20' ) end [2025-02-03 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:51:23] Production.INFO: ==8720== Releasing lock... [2025-02-03 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:51:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-03 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:52:05 [end_date_ymd] => 2025-02-03 08:52:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:52:05' and `end` < '2025-02-03 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-02-03 08:52:18] Production.INFO: count ==880 [2025-02-03 08:52:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:52:05 - End Time 2025-02-03 08:52:05 [2025-02-03 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391922', 'tblTempUsageDetail_20' ) start [2025-02-03 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391922', 'tblTempUsageDetail_20' ) end [2025-02-03 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391922', 'tblTempVendorCDR_20' ) start [2025-02-03 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391922', 'tblTempVendorCDR_20' ) end [2025-02-03 08:52:18] Production.INFO: ProcessCDR(1,14391922,1,1,2) [2025-02-03 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391922', 'tblTempUsageDetail_20' ) start [2025-02-03 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391922', 'tblTempUsageDetail_20' ) end [2025-02-03 08:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:52:23] Production.INFO: ==8796== Releasing lock... [2025-02-03 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:52:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-03 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:53:05 [end_date_ymd] => 2025-02-03 08:53:05 [RateCDR] => 1 ) [2025-02-03 08: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-02-03 05:53:05' and `end` < '2025-02-03 08: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-02-03 08:53:18] Production.INFO: count ==880 [2025-02-03 08:53:19] Production.ERROR: pbx CDR StartTime 2025-02-03 05:53:05 - End Time 2025-02-03 08:53:05 [2025-02-03 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391927', 'tblTempUsageDetail_20' ) start [2025-02-03 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391927', 'tblTempUsageDetail_20' ) end [2025-02-03 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391927', 'tblTempVendorCDR_20' ) start [2025-02-03 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391927', 'tblTempVendorCDR_20' ) end [2025-02-03 08:53:19] Production.INFO: ProcessCDR(1,14391927,1,1,2) [2025-02-03 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391927', 'tblTempUsageDetail_20' ) start [2025-02-03 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391927', 'tblTempUsageDetail_20' ) end [2025-02-03 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:53:22] Production.INFO: ==8887== Releasing lock... [2025-02-03 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:53:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:54:05 [end_date_ymd] => 2025-02-03 08:54:05 [RateCDR] => 1 ) [2025-02-03 08: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-02-03 05:54:05' and `end` < '2025-02-03 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-02-03 08:54:18] Production.INFO: count ==880 [2025-02-03 08:54:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:54:05 - End Time 2025-02-03 08:54:05 [2025-02-03 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391932', 'tblTempUsageDetail_20' ) start [2025-02-03 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391932', 'tblTempUsageDetail_20' ) end [2025-02-03 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391932', 'tblTempVendorCDR_20' ) start [2025-02-03 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391932', 'tblTempVendorCDR_20' ) end [2025-02-03 08:54:18] Production.INFO: ProcessCDR(1,14391932,1,1,2) [2025-02-03 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391932', 'tblTempUsageDetail_20' ) start [2025-02-03 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391932', 'tblTempUsageDetail_20' ) end [2025-02-03 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:54:21] Production.INFO: ==8968== Releasing lock... [2025-02-03 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:54:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:55:05 [end_date_ymd] => 2025-02-03 08:55:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:55:05' and `end` < '2025-02-03 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-02-03 08:55:19] Production.INFO: count ==885 [2025-02-03 08:55:19] Production.ERROR: pbx CDR StartTime 2025-02-03 05:55:05 - End Time 2025-02-03 08:55:05 [2025-02-03 08:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391937', 'tblTempUsageDetail_20' ) start [2025-02-03 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391937', 'tblTempUsageDetail_20' ) end [2025-02-03 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391937', 'tblTempVendorCDR_20' ) start [2025-02-03 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391937', 'tblTempVendorCDR_20' ) end [2025-02-03 08:55:19] Production.INFO: ProcessCDR(1,14391937,1,1,2) [2025-02-03 08:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391937', 'tblTempUsageDetail_20' ) start [2025-02-03 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391937', 'tblTempUsageDetail_20' ) end [2025-02-03 08:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:55:22] Production.INFO: ==9056== Releasing lock... [2025-02-03 08:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:55:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:56:05 [end_date_ymd] => 2025-02-03 08:56:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:56:05' and `end` < '2025-02-03 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-02-03 08:56:18] Production.INFO: count ==897 [2025-02-03 08:56:19] Production.ERROR: pbx CDR StartTime 2025-02-03 05:56:05 - End Time 2025-02-03 08:56:05 [2025-02-03 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391942', 'tblTempUsageDetail_20' ) start [2025-02-03 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391942', 'tblTempUsageDetail_20' ) end [2025-02-03 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391942', 'tblTempVendorCDR_20' ) start [2025-02-03 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391942', 'tblTempVendorCDR_20' ) end [2025-02-03 08:56:19] Production.INFO: ProcessCDR(1,14391942,1,1,2) [2025-02-03 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391942', 'tblTempUsageDetail_20' ) start [2025-02-03 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391942', 'tblTempUsageDetail_20' ) end [2025-02-03 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:56:22] Production.INFO: ==9138== Releasing lock... [2025-02-03 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:56:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 08:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:57:06 [end_date_ymd] => 2025-02-03 08:57:06 [RateCDR] => 1 ) [2025-02-03 08: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-02-03 05:57:06' and `end` < '2025-02-03 08: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-02-03 08:57:19] Production.INFO: count ==904 [2025-02-03 08:57:19] Production.ERROR: pbx CDR StartTime 2025-02-03 05:57:06 - End Time 2025-02-03 08:57:06 [2025-02-03 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391947', 'tblTempUsageDetail_20' ) start [2025-02-03 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391947', 'tblTempUsageDetail_20' ) end [2025-02-03 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391947', 'tblTempVendorCDR_20' ) start [2025-02-03 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391947', 'tblTempVendorCDR_20' ) end [2025-02-03 08:57:19] Production.INFO: ProcessCDR(1,14391947,1,1,2) [2025-02-03 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391947', 'tblTempUsageDetail_20' ) start [2025-02-03 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391947', 'tblTempUsageDetail_20' ) end [2025-02-03 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:57:22] Production.INFO: ==9216== Releasing lock... [2025-02-03 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:57:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:58:05 [end_date_ymd] => 2025-02-03 08:58:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 05:58:05' and `end` < '2025-02-03 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-02-03 08:58:18] Production.INFO: count ==921 [2025-02-03 08:58:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:58:05 - End Time 2025-02-03 08:58:05 [2025-02-03 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391952', 'tblTempUsageDetail_20' ) start [2025-02-03 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391952', 'tblTempUsageDetail_20' ) end [2025-02-03 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391952', 'tblTempVendorCDR_20' ) start [2025-02-03 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391952', 'tblTempVendorCDR_20' ) end [2025-02-03 08:58:18] Production.INFO: ProcessCDR(1,14391952,1,1,2) [2025-02-03 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391952', 'tblTempUsageDetail_20' ) start [2025-02-03 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391952', 'tblTempUsageDetail_20' ) end [2025-02-03 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:58:21] Production.INFO: ==9300== Releasing lock... [2025-02-03 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:58:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 05:59:05 [end_date_ymd] => 2025-02-03 08:59:05 [RateCDR] => 1 ) [2025-02-03 08: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-02-03 05:59:05' and `end` < '2025-02-03 08: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-02-03 08:59:18] Production.INFO: count ==936 [2025-02-03 08:59:18] Production.ERROR: pbx CDR StartTime 2025-02-03 05:59:05 - End Time 2025-02-03 08:59:05 [2025-02-03 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391957', 'tblTempUsageDetail_20' ) start [2025-02-03 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391957', 'tblTempUsageDetail_20' ) end [2025-02-03 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391957', 'tblTempVendorCDR_20' ) start [2025-02-03 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391957', 'tblTempVendorCDR_20' ) end [2025-02-03 08:59:18] Production.INFO: ProcessCDR(1,14391957,1,1,2) [2025-02-03 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391957', 'tblTempUsageDetail_20' ) start [2025-02-03 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391957', 'tblTempUsageDetail_20' ) end [2025-02-03 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 08:59:21] Production.INFO: ==9388== Releasing lock... [2025-02-03 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 08:59:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-03 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:00:05 [end_date_ymd] => 2025-02-03 09:00:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:00:05' and `end` < '2025-02-03 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-02-03 09:00:18] Production.INFO: count ==947 [2025-02-03 09:00:18] Production.ERROR: pbx CDR StartTime 2025-02-03 06:00:05 - End Time 2025-02-03 09:00:05 [2025-02-03 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391962', 'tblTempUsageDetail_20' ) start [2025-02-03 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391962', 'tblTempUsageDetail_20' ) end [2025-02-03 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391962', 'tblTempVendorCDR_20' ) start [2025-02-03 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391962', 'tblTempVendorCDR_20' ) end [2025-02-03 09:00:19] Production.INFO: ProcessCDR(1,14391962,1,1,2) [2025-02-03 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391962', 'tblTempUsageDetail_20' ) start [2025-02-03 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391962', 'tblTempUsageDetail_20' ) end [2025-02-03 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:00:24] Production.INFO: ==9480== Releasing lock... [2025-02-03 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:00:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-03 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:01:05 [end_date_ymd] => 2025-02-03 09:01:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:01:05' and `end` < '2025-02-03 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-02-03 09:01:18] Production.INFO: count ==1034 [2025-02-03 09:01:18] Production.ERROR: pbx CDR StartTime 2025-02-03 06:01:05 - End Time 2025-02-03 09:01:05 [2025-02-03 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391968', 'tblTempUsageDetail_20' ) start [2025-02-03 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391968', 'tblTempUsageDetail_20' ) end [2025-02-03 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391968', 'tblTempVendorCDR_20' ) start [2025-02-03 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391968', 'tblTempVendorCDR_20' ) end [2025-02-03 09:01:19] Production.INFO: ProcessCDR(1,14391968,1,1,2) [2025-02-03 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391968', 'tblTempUsageDetail_20' ) start [2025-02-03 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391968', 'tblTempUsageDetail_20' ) end [2025-02-03 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:01:23] Production.INFO: ==9576== Releasing lock... [2025-02-03 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:01:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:02:06 [end_date_ymd] => 2025-02-03 09:02:06 [RateCDR] => 1 ) [2025-02-03 09: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-02-03 06:02:06' and `end` < '2025-02-03 09: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-02-03 09:02:19] Production.INFO: count ==1071 [2025-02-03 09:02:19] Production.ERROR: pbx CDR StartTime 2025-02-03 06:02:06 - End Time 2025-02-03 09:02:06 [2025-02-03 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391973', 'tblTempUsageDetail_20' ) start [2025-02-03 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391973', 'tblTempUsageDetail_20' ) end [2025-02-03 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391973', 'tblTempVendorCDR_20' ) start [2025-02-03 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391973', 'tblTempVendorCDR_20' ) end [2025-02-03 09:02:19] Production.INFO: ProcessCDR(1,14391973,1,1,2) [2025-02-03 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391973', 'tblTempUsageDetail_20' ) start [2025-02-03 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391973', 'tblTempUsageDetail_20' ) end [2025-02-03 09:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:02:22] Production.INFO: ==9665== Releasing lock... [2025-02-03 09:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:02:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 09:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:03:04 [end_date_ymd] => 2025-02-03 09:03:04 [RateCDR] => 1 ) [2025-02-03 09: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-02-03 06:03:04' and `end` < '2025-02-03 09: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-02-03 09:03:17] Production.INFO: count ==1102 [2025-02-03 09:03:18] Production.ERROR: pbx CDR StartTime 2025-02-03 06:03:04 - End Time 2025-02-03 09:03:04 [2025-02-03 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391978', 'tblTempUsageDetail_20' ) start [2025-02-03 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391978', 'tblTempUsageDetail_20' ) end [2025-02-03 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391978', 'tblTempVendorCDR_20' ) start [2025-02-03 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391978', 'tblTempVendorCDR_20' ) end [2025-02-03 09:03:18] Production.INFO: ProcessCDR(1,14391978,1,1,2) [2025-02-03 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391978', 'tblTempUsageDetail_20' ) start [2025-02-03 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391978', 'tblTempUsageDetail_20' ) end [2025-02-03 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:03:21] Production.INFO: ==9741== Releasing lock... [2025-02-03 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:03:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-03 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:04:05 [end_date_ymd] => 2025-02-03 09:04:05 [RateCDR] => 1 ) [2025-02-03 09: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-02-03 06:04:05' and `end` < '2025-02-03 09: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-02-03 09:04:18] Production.INFO: count ==1115 [2025-02-03 09:04:18] Production.ERROR: pbx CDR StartTime 2025-02-03 06:04:05 - End Time 2025-02-03 09:04:05 [2025-02-03 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391983', 'tblTempUsageDetail_20' ) start [2025-02-03 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391983', 'tblTempUsageDetail_20' ) end [2025-02-03 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391983', 'tblTempVendorCDR_20' ) start [2025-02-03 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391983', 'tblTempVendorCDR_20' ) end [2025-02-03 09:04:18] Production.INFO: ProcessCDR(1,14391983,1,1,2) [2025-02-03 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391983', 'tblTempUsageDetail_20' ) start [2025-02-03 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391983', 'tblTempUsageDetail_20' ) end [2025-02-03 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:04:23] Production.INFO: ==9872== Releasing lock... [2025-02-03 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:04:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-03 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:05:05 [end_date_ymd] => 2025-02-03 09:05:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:05:05' and `end` < '2025-02-03 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-02-03 09:05:18] Production.INFO: count ==1121 [2025-02-03 09:05:18] Production.ERROR: pbx CDR StartTime 2025-02-03 06:05:05 - End Time 2025-02-03 09:05:05 [2025-02-03 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391988', 'tblTempUsageDetail_20' ) start [2025-02-03 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391988', 'tblTempUsageDetail_20' ) end [2025-02-03 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391988', 'tblTempVendorCDR_20' ) start [2025-02-03 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391988', 'tblTempVendorCDR_20' ) end [2025-02-03 09:05:18] Production.INFO: ProcessCDR(1,14391988,1,1,2) [2025-02-03 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391988', 'tblTempUsageDetail_20' ) start [2025-02-03 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391988', 'tblTempUsageDetail_20' ) end [2025-02-03 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:05:23] Production.INFO: ==9960== Releasing lock... [2025-02-03 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:05:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-03 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:06:05 [end_date_ymd] => 2025-02-03 09:06:05 [RateCDR] => 1 ) [2025-02-03 09: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-02-03 06:06:05' and `end` < '2025-02-03 09: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-02-03 09:06:18] Production.INFO: count ==1128 [2025-02-03 09:06:18] Production.ERROR: pbx CDR StartTime 2025-02-03 06:06:05 - End Time 2025-02-03 09:06:05 [2025-02-03 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391993', 'tblTempUsageDetail_20' ) start [2025-02-03 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391993', 'tblTempUsageDetail_20' ) end [2025-02-03 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391993', 'tblTempVendorCDR_20' ) start [2025-02-03 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391993', 'tblTempVendorCDR_20' ) end [2025-02-03 09:06:19] Production.INFO: ProcessCDR(1,14391993,1,1,2) [2025-02-03 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391993', 'tblTempUsageDetail_20' ) start [2025-02-03 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391993', 'tblTempUsageDetail_20' ) end [2025-02-03 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:06:23] Production.INFO: ==10055== Releasing lock... [2025-02-03 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:06:23] Production.INFO: 37 MB #Memory Used# [2025-02-03 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:07:05 [end_date_ymd] => 2025-02-03 09:07:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:07:05' and `end` < '2025-02-03 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-02-03 09:07:18] Production.INFO: count ==1133 [2025-02-03 09:07:18] Production.ERROR: pbx CDR StartTime 2025-02-03 06:07:05 - End Time 2025-02-03 09:07:05 [2025-02-03 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391998', 'tblTempUsageDetail_20' ) start [2025-02-03 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14391998', 'tblTempUsageDetail_20' ) end [2025-02-03 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391998', 'tblTempVendorCDR_20' ) start [2025-02-03 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14391998', 'tblTempVendorCDR_20' ) end [2025-02-03 09:07:18] Production.INFO: ProcessCDR(1,14391998,1,1,2) [2025-02-03 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14391998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14391998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14391998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14391998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391998', 'tblTempUsageDetail_20' ) start [2025-02-03 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14391998', 'tblTempUsageDetail_20' ) end [2025-02-03 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:07:23] Production.INFO: ==10158== Releasing lock... [2025-02-03 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:07:23] Production.INFO: 37 MB #Memory Used# [2025-02-03 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:08:05 [end_date_ymd] => 2025-02-03 09:08:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:08:05' and `end` < '2025-02-03 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-02-03 09:08:19] Production.INFO: count ==1153 [2025-02-03 09:08:19] Production.ERROR: pbx CDR StartTime 2025-02-03 06:08:05 - End Time 2025-02-03 09:08:05 [2025-02-03 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392003', 'tblTempUsageDetail_20' ) start [2025-02-03 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392003', 'tblTempUsageDetail_20' ) end [2025-02-03 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392003', 'tblTempVendorCDR_20' ) start [2025-02-03 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392003', 'tblTempVendorCDR_20' ) end [2025-02-03 09:08:19] Production.INFO: ProcessCDR(1,14392003,1,1,2) [2025-02-03 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392003', 'tblTempUsageDetail_20' ) start [2025-02-03 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392003', 'tblTempUsageDetail_20' ) end [2025-02-03 09:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:08:24] Production.INFO: ==10267== Releasing lock... [2025-02-03 09:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:08:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-03 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:09:06 [end_date_ymd] => 2025-02-03 09:09:06 [RateCDR] => 1 ) [2025-02-03 09:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 06:09:06' and `end` < '2025-02-03 09:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 09:09:22] Production.INFO: count ==1182 [2025-02-03 09:09:22] Production.ERROR: pbx CDR StartTime 2025-02-03 06:09:06 - End Time 2025-02-03 09:09:06 [2025-02-03 09:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392008', 'tblTempUsageDetail_20' ) start [2025-02-03 09:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392008', 'tblTempUsageDetail_20' ) end [2025-02-03 09:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392008', 'tblTempVendorCDR_20' ) start [2025-02-03 09:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392008', 'tblTempVendorCDR_20' ) end [2025-02-03 09:09:23] Production.INFO: ProcessCDR(1,14392008,1,1,2) [2025-02-03 09:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392008', 'tblTempUsageDetail_20' ) start [2025-02-03 09:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392008', 'tblTempUsageDetail_20' ) end [2025-02-03 09:09:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:09:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:09:27] Production.INFO: ==10377== Releasing lock... [2025-02-03 09:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:09:27] Production.INFO: 37.5 MB #Memory Used# [2025-02-03 09:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:10:05 [end_date_ymd] => 2025-02-03 09:10:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:10:05' and `end` < '2025-02-03 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-02-03 09:10:18] Production.INFO: count ==1211 [2025-02-03 09:10:19] Production.ERROR: pbx CDR StartTime 2025-02-03 06:10:05 - End Time 2025-02-03 09:10:05 [2025-02-03 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392013', 'tblTempUsageDetail_20' ) start [2025-02-03 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392013', 'tblTempUsageDetail_20' ) end [2025-02-03 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392013', 'tblTempVendorCDR_20' ) start [2025-02-03 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392013', 'tblTempVendorCDR_20' ) end [2025-02-03 09:10:19] Production.INFO: ProcessCDR(1,14392013,1,1,2) [2025-02-03 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392013', 'tblTempUsageDetail_20' ) start [2025-02-03 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392013', 'tblTempUsageDetail_20' ) end [2025-02-03 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:10:24] Production.INFO: ==10483== Releasing lock... [2025-02-03 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:10:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-03 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:11:05 [end_date_ymd] => 2025-02-03 09:11:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:11:05' and `end` < '2025-02-03 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-02-03 09:11:18] Production.INFO: count ==1307 [2025-02-03 09:11:19] Production.ERROR: pbx CDR StartTime 2025-02-03 06:11:05 - End Time 2025-02-03 09:11:05 [2025-02-03 09:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392016', 'tblTempUsageDetail_20' ) start [2025-02-03 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392016', 'tblTempUsageDetail_20' ) end [2025-02-03 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392016', 'tblTempVendorCDR_20' ) start [2025-02-03 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392016', 'tblTempVendorCDR_20' ) end [2025-02-03 09:11:19] Production.INFO: ProcessCDR(1,14392016,1,1,2) [2025-02-03 09:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392016', 'tblTempUsageDetail_20' ) start [2025-02-03 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392016', 'tblTempUsageDetail_20' ) end [2025-02-03 09:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:11:22] Production.INFO: ==10600== Releasing lock... [2025-02-03 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:11:22] Production.INFO: 38 MB #Memory Used# [2025-02-03 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:12:05 [end_date_ymd] => 2025-02-03 09:12:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:12:05' and `end` < '2025-02-03 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-02-03 09:12:21] Production.INFO: count ==1327 [2025-02-03 09:12:21] Production.ERROR: pbx CDR StartTime 2025-02-03 06:12:05 - End Time 2025-02-03 09:12:05 [2025-02-03 09:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392024', 'tblTempUsageDetail_20' ) start [2025-02-03 09:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392024', 'tblTempUsageDetail_20' ) end [2025-02-03 09:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392024', 'tblTempVendorCDR_20' ) start [2025-02-03 09:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392024', 'tblTempVendorCDR_20' ) end [2025-02-03 09:12:21] Production.INFO: ProcessCDR(1,14392024,1,1,2) [2025-02-03 09:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392024', 'tblTempUsageDetail_20' ) start [2025-02-03 09:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392024', 'tblTempUsageDetail_20' ) end [2025-02-03 09:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:12:26] Production.INFO: ==10700== Releasing lock... [2025-02-03 09:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:12:26] Production.INFO: 38.5 MB #Memory Used# [2025-02-03 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:13:05 [end_date_ymd] => 2025-02-03 09:13:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:13:05' and `end` < '2025-02-03 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-02-03 09:13:19] Production.INFO: count ==1366 [2025-02-03 09:13:20] Production.ERROR: pbx CDR StartTime 2025-02-03 06:13:05 - End Time 2025-02-03 09:13:05 [2025-02-03 09:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392029', 'tblTempUsageDetail_20' ) start [2025-02-03 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392029', 'tblTempUsageDetail_20' ) end [2025-02-03 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392029', 'tblTempVendorCDR_20' ) start [2025-02-03 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392029', 'tblTempVendorCDR_20' ) end [2025-02-03 09:13:20] Production.INFO: ProcessCDR(1,14392029,1,1,2) [2025-02-03 09:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392029', 'tblTempUsageDetail_20' ) start [2025-02-03 09:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392029', 'tblTempUsageDetail_20' ) end [2025-02-03 09:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:13:25] Production.INFO: ==10790== Releasing lock... [2025-02-03 09:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:13:25] Production.INFO: 38.75 MB #Memory Used# [2025-02-03 09:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:14:04 [end_date_ymd] => 2025-02-03 09:14:04 [RateCDR] => 1 ) [2025-02-03 09:14: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-02-03 06:14:04' and `end` < '2025-02-03 09:14: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-02-03 09:14:22] Production.INFO: count ==1393 [2025-02-03 09:14:22] Production.ERROR: pbx CDR StartTime 2025-02-03 06:14:04 - End Time 2025-02-03 09:14:04 [2025-02-03 09:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392034', 'tblTempUsageDetail_20' ) start [2025-02-03 09:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392034', 'tblTempUsageDetail_20' ) end [2025-02-03 09:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392034', 'tblTempVendorCDR_20' ) start [2025-02-03 09:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392034', 'tblTempVendorCDR_20' ) end [2025-02-03 09:14:22] Production.INFO: ProcessCDR(1,14392034,1,1,2) [2025-02-03 09:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392034', 'tblTempUsageDetail_20' ) start [2025-02-03 09:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392034', 'tblTempUsageDetail_20' ) end [2025-02-03 09:14:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:14:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:14:27] Production.INFO: ==10876== Releasing lock... [2025-02-03 09:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:14:27] Production.INFO: 39 MB #Memory Used# [2025-02-03 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:15:05 [end_date_ymd] => 2025-02-03 09:15:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:15:05' and `end` < '2025-02-03 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-02-03 09:15:31] Production.INFO: count ==1412 [2025-02-03 09:15:31] Production.ERROR: pbx CDR StartTime 2025-02-03 06:15:05 - End Time 2025-02-03 09:15:05 [2025-02-03 09:15:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392039', 'tblTempUsageDetail_20' ) start [2025-02-03 09:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392039', 'tblTempUsageDetail_20' ) end [2025-02-03 09:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392039', 'tblTempVendorCDR_20' ) start [2025-02-03 09:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392039', 'tblTempVendorCDR_20' ) end [2025-02-03 09:15:31] Production.INFO: ProcessCDR(1,14392039,1,1,2) [2025-02-03 09:15:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:15:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:15:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:15:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392039', 'tblTempUsageDetail_20' ) start [2025-02-03 09:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392039', 'tblTempUsageDetail_20' ) end [2025-02-03 09:15:36] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:15:36] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:15:36] Production.INFO: ==10978== Releasing lock... [2025-02-03 09:15:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:15:36] Production.INFO: 39 MB #Memory Used# [2025-02-03 09:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:16:04 [end_date_ymd] => 2025-02-03 09:16:04 [RateCDR] => 1 ) [2025-02-03 09: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-02-03 06:16:04' and `end` < '2025-02-03 09: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-02-03 09:16:30] Production.INFO: count ==1439 [2025-02-03 09:16:30] Production.ERROR: pbx CDR StartTime 2025-02-03 06:16:04 - End Time 2025-02-03 09:16:04 [2025-02-03 09:16:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392044', 'tblTempUsageDetail_20' ) start [2025-02-03 09:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392044', 'tblTempUsageDetail_20' ) end [2025-02-03 09:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392044', 'tblTempVendorCDR_20' ) start [2025-02-03 09:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392044', 'tblTempVendorCDR_20' ) end [2025-02-03 09:16:30] Production.INFO: ProcessCDR(1,14392044,1,1,2) [2025-02-03 09:16:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:16:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:16:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:16:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:16:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392044', 'tblTempUsageDetail_20' ) start [2025-02-03 09:16:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392044', 'tblTempUsageDetail_20' ) end [2025-02-03 09:16:35] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:16:35] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:16:35] Production.INFO: ==11060== Releasing lock... [2025-02-03 09:16:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:16:35] Production.INFO: 39.25 MB #Memory Used# [2025-02-03 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:17:05 [end_date_ymd] => 2025-02-03 09:17:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:17:05' and `end` < '2025-02-03 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-02-03 09:17:22] Production.INFO: count ==1456 [2025-02-03 09:17:23] Production.ERROR: pbx CDR StartTime 2025-02-03 06:17:05 - End Time 2025-02-03 09:17:05 [2025-02-03 09:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392049', 'tblTempUsageDetail_20' ) start [2025-02-03 09:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392049', 'tblTempUsageDetail_20' ) end [2025-02-03 09:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392049', 'tblTempVendorCDR_20' ) start [2025-02-03 09:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392049', 'tblTempVendorCDR_20' ) end [2025-02-03 09:17:23] Production.INFO: ProcessCDR(1,14392049,1,1,2) [2025-02-03 09:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:17:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:17:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392049', 'tblTempUsageDetail_20' ) start [2025-02-03 09:17:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392049', 'tblTempUsageDetail_20' ) end [2025-02-03 09:17:36] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:17:36] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:17:37] Production.INFO: ==11156== Releasing lock... [2025-02-03 09:17:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:17:37] Production.INFO: 39.25 MB #Memory Used# [2025-02-03 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:18:05 [end_date_ymd] => 2025-02-03 09:18:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:18:05' and `end` < '2025-02-03 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-02-03 09:18:20] Production.INFO: count ==1489 [2025-02-03 09:18:20] Production.ERROR: pbx CDR StartTime 2025-02-03 06:18:05 - End Time 2025-02-03 09:18:05 [2025-02-03 09:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392054', 'tblTempUsageDetail_20' ) start [2025-02-03 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392054', 'tblTempUsageDetail_20' ) end [2025-02-03 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392054', 'tblTempVendorCDR_20' ) start [2025-02-03 09:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392054', 'tblTempVendorCDR_20' ) end [2025-02-03 09:18:20] Production.INFO: ProcessCDR(1,14392054,1,1,2) [2025-02-03 09:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392054', 'tblTempUsageDetail_20' ) start [2025-02-03 09:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392054', 'tblTempUsageDetail_20' ) end [2025-02-03 09:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:18:25] Production.INFO: ==11242== Releasing lock... [2025-02-03 09:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:18:25] Production.INFO: 39.5 MB #Memory Used# [2025-02-03 09:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:19:04 [end_date_ymd] => 2025-02-03 09:19:04 [RateCDR] => 1 ) [2025-02-03 09: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-02-03 06:19:04' and `end` < '2025-02-03 09: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-02-03 09:19:21] Production.INFO: count ==1537 [2025-02-03 09:19:21] Production.ERROR: pbx CDR StartTime 2025-02-03 06:19:04 - End Time 2025-02-03 09:19:04 [2025-02-03 09:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392059', 'tblTempUsageDetail_20' ) start [2025-02-03 09:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392059', 'tblTempUsageDetail_20' ) end [2025-02-03 09:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392059', 'tblTempVendorCDR_20' ) start [2025-02-03 09:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392059', 'tblTempVendorCDR_20' ) end [2025-02-03 09:19:21] Production.INFO: ProcessCDR(1,14392059,1,1,2) [2025-02-03 09:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392059', 'tblTempUsageDetail_20' ) start [2025-02-03 09:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392059', 'tblTempUsageDetail_20' ) end [2025-02-03 09:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:19:26] Production.INFO: ==11318== Releasing lock... [2025-02-03 09:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:19:26] Production.INFO: 40.25 MB #Memory Used# [2025-02-03 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:20:05 [end_date_ymd] => 2025-02-03 09:20:05 [RateCDR] => 1 ) [2025-02-03 09: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-02-03 06:20:05' and `end` < '2025-02-03 09: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-02-03 09:20:19] Production.INFO: count ==1564 [2025-02-03 09:20:19] Production.ERROR: pbx CDR StartTime 2025-02-03 06:20:05 - End Time 2025-02-03 09:20:05 [2025-02-03 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392064', 'tblTempUsageDetail_20' ) start [2025-02-03 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392064', 'tblTempUsageDetail_20' ) end [2025-02-03 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392064', 'tblTempVendorCDR_20' ) start [2025-02-03 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392064', 'tblTempVendorCDR_20' ) end [2025-02-03 09:20:19] Production.INFO: ProcessCDR(1,14392064,1,1,2) [2025-02-03 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392064', 'tblTempUsageDetail_20' ) start [2025-02-03 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392064', 'tblTempUsageDetail_20' ) end [2025-02-03 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:20:24] Production.INFO: ==11437== Releasing lock... [2025-02-03 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:20:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-03 09:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:21:04 [end_date_ymd] => 2025-02-03 09:21:04 [RateCDR] => 1 ) [2025-02-03 09: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-02-03 06:21:04' and `end` < '2025-02-03 09: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-02-03 09:21:26] Production.INFO: count ==1672 [2025-02-03 09:21:26] Production.ERROR: pbx CDR StartTime 2025-02-03 06:21:04 - End Time 2025-02-03 09:21:04 [2025-02-03 09:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392070', 'tblTempUsageDetail_20' ) start [2025-02-03 09:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392070', 'tblTempUsageDetail_20' ) end [2025-02-03 09:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392070', 'tblTempVendorCDR_20' ) start [2025-02-03 09:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392070', 'tblTempVendorCDR_20' ) end [2025-02-03 09:21:26] Production.INFO: ProcessCDR(1,14392070,1,1,2) [2025-02-03 09:21:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392070', 'tblTempUsageDetail_20' ) start [2025-02-03 09:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392070', 'tblTempUsageDetail_20' ) end [2025-02-03 09:21:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:21:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:21:31] Production.INFO: ==11511== Releasing lock... [2025-02-03 09:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:21:31] Production.INFO: 41.25 MB #Memory Used# [2025-02-03 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:22:06 [end_date_ymd] => 2025-02-03 09:22:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:22:06' and `end` < '2025-02-03 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-02-03 09:22:25] Production.INFO: count ==1681 [2025-02-03 09:22:26] Production.ERROR: pbx CDR StartTime 2025-02-03 06:22:06 - End Time 2025-02-03 09:22:06 [2025-02-03 09:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392075', 'tblTempUsageDetail_20' ) start [2025-02-03 09:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392075', 'tblTempUsageDetail_20' ) end [2025-02-03 09:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392075', 'tblTempVendorCDR_20' ) start [2025-02-03 09:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392075', 'tblTempVendorCDR_20' ) end [2025-02-03 09:22:26] Production.INFO: ProcessCDR(1,14392075,1,1,2) [2025-02-03 09:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392075', 'tblTempUsageDetail_20' ) start [2025-02-03 09:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392075', 'tblTempUsageDetail_20' ) end [2025-02-03 09:22:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:22:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:22:30] Production.INFO: ==11594== Releasing lock... [2025-02-03 09:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:22:30] Production.INFO: 41 MB #Memory Used# [2025-02-03 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:23:05 [end_date_ymd] => 2025-02-03 09:23:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:23:05' and `end` < '2025-02-03 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-02-03 09:23:21] Production.INFO: count ==1706 [2025-02-03 09:23:22] Production.ERROR: pbx CDR StartTime 2025-02-03 06:23:05 - End Time 2025-02-03 09:23:05 [2025-02-03 09:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392080', 'tblTempUsageDetail_20' ) start [2025-02-03 09:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392080', 'tblTempUsageDetail_20' ) end [2025-02-03 09:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392080', 'tblTempVendorCDR_20' ) start [2025-02-03 09:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392080', 'tblTempVendorCDR_20' ) end [2025-02-03 09:23:22] Production.INFO: ProcessCDR(1,14392080,1,1,2) [2025-02-03 09:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392080', 'tblTempUsageDetail_20' ) start [2025-02-03 09:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392080', 'tblTempUsageDetail_20' ) end [2025-02-03 09:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:23:26] Production.INFO: ==11675== Releasing lock... [2025-02-03 09:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:23:26] Production.INFO: 41.25 MB #Memory Used# [2025-02-03 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:24:05 [end_date_ymd] => 2025-02-03 09:24:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:24:05' and `end` < '2025-02-03 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-02-03 09:24:21] Production.INFO: count ==1737 [2025-02-03 09:24:21] Production.ERROR: pbx CDR StartTime 2025-02-03 06:24:05 - End Time 2025-02-03 09:24:05 [2025-02-03 09:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392085', 'tblTempUsageDetail_20' ) start [2025-02-03 09:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392085', 'tblTempUsageDetail_20' ) end [2025-02-03 09:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392085', 'tblTempVendorCDR_20' ) start [2025-02-03 09:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392085', 'tblTempVendorCDR_20' ) end [2025-02-03 09:24:22] Production.INFO: ProcessCDR(1,14392085,1,1,2) [2025-02-03 09:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392085', 'tblTempUsageDetail_20' ) start [2025-02-03 09:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392085', 'tblTempUsageDetail_20' ) end [2025-02-03 09:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:24:26] Production.INFO: ==11749== Releasing lock... [2025-02-03 09:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:24:26] Production.INFO: 41.5 MB #Memory Used# [2025-02-03 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:25:06 [end_date_ymd] => 2025-02-03 09:25:06 [RateCDR] => 1 ) [2025-02-03 09: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-02-03 06:25:06' and `end` < '2025-02-03 09: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-02-03 09:25:27] Production.INFO: count ==1757 [2025-02-03 09:25:28] Production.ERROR: pbx CDR StartTime 2025-02-03 06:25:06 - End Time 2025-02-03 09:25:06 [2025-02-03 09:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392090', 'tblTempUsageDetail_20' ) start [2025-02-03 09:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392090', 'tblTempUsageDetail_20' ) end [2025-02-03 09:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392090', 'tblTempVendorCDR_20' ) start [2025-02-03 09:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392090', 'tblTempVendorCDR_20' ) end [2025-02-03 09:25:28] Production.INFO: ProcessCDR(1,14392090,1,1,2) [2025-02-03 09:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392090', 'tblTempUsageDetail_20' ) start [2025-02-03 09:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392090', 'tblTempUsageDetail_20' ) end [2025-02-03 09:25:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:25:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:25:33] Production.INFO: ==11831== Releasing lock... [2025-02-03 09:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:25:33] Production.INFO: 41.75 MB #Memory Used# [2025-02-03 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:26:05 [end_date_ymd] => 2025-02-03 09:26:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:26:05' and `end` < '2025-02-03 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-02-03 09:26:23] Production.INFO: count ==1778 [2025-02-03 09:26:24] Production.ERROR: pbx CDR StartTime 2025-02-03 06:26:05 - End Time 2025-02-03 09:26:05 [2025-02-03 09:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392095', 'tblTempUsageDetail_20' ) start [2025-02-03 09:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392095', 'tblTempUsageDetail_20' ) end [2025-02-03 09:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392095', 'tblTempVendorCDR_20' ) start [2025-02-03 09:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392095', 'tblTempVendorCDR_20' ) end [2025-02-03 09:26:24] Production.INFO: ProcessCDR(1,14392095,1,1,2) [2025-02-03 09:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392095', 'tblTempUsageDetail_20' ) start [2025-02-03 09:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392095', 'tblTempUsageDetail_20' ) end [2025-02-03 09:26:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:26:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:26:29] Production.INFO: ==11912== Releasing lock... [2025-02-03 09:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:26:29] Production.INFO: 42 MB #Memory Used# [2025-02-03 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:27:05 [end_date_ymd] => 2025-02-03 09:27:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:27:05' and `end` < '2025-02-03 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-02-03 09:27:21] Production.INFO: count ==1790 [2025-02-03 09:27:21] Production.ERROR: pbx CDR StartTime 2025-02-03 06:27:05 - End Time 2025-02-03 09:27:05 [2025-02-03 09:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392100', 'tblTempUsageDetail_20' ) start [2025-02-03 09:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392100', 'tblTempUsageDetail_20' ) end [2025-02-03 09:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392100', 'tblTempVendorCDR_20' ) start [2025-02-03 09:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392100', 'tblTempVendorCDR_20' ) end [2025-02-03 09:27:21] Production.INFO: ProcessCDR(1,14392100,1,1,2) [2025-02-03 09:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392100', 'tblTempUsageDetail_20' ) start [2025-02-03 09:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392100', 'tblTempUsageDetail_20' ) end [2025-02-03 09:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:27:26] Production.INFO: ==11990== Releasing lock... [2025-02-03 09:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:27:26] Production.INFO: 42 MB #Memory Used# [2025-02-03 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:28:05 [end_date_ymd] => 2025-02-03 09:28:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:28:05' and `end` < '2025-02-03 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-02-03 09:28:24] Production.INFO: count ==1796 [2025-02-03 09:28:25] Production.ERROR: pbx CDR StartTime 2025-02-03 06:28:05 - End Time 2025-02-03 09:28:05 [2025-02-03 09:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392105', 'tblTempUsageDetail_20' ) start [2025-02-03 09:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392105', 'tblTempUsageDetail_20' ) end [2025-02-03 09:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392105', 'tblTempVendorCDR_20' ) start [2025-02-03 09:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392105', 'tblTempVendorCDR_20' ) end [2025-02-03 09:28:25] Production.INFO: ProcessCDR(1,14392105,1,1,2) [2025-02-03 09:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392105', 'tblTempUsageDetail_20' ) start [2025-02-03 09:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392105', 'tblTempUsageDetail_20' ) end [2025-02-03 09:28:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:28:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:28:29] Production.INFO: ==12069== Releasing lock... [2025-02-03 09:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:28:29] Production.INFO: 42.25 MB #Memory Used# [2025-02-03 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:29:05 [end_date_ymd] => 2025-02-03 09:29:05 [RateCDR] => 1 ) [2025-02-03 09: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-02-03 06:29:05' and `end` < '2025-02-03 09: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-02-03 09:29:21] Production.INFO: count ==1811 [2025-02-03 09:29:22] Production.ERROR: pbx CDR StartTime 2025-02-03 06:29:05 - End Time 2025-02-03 09:29:05 [2025-02-03 09:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392110', 'tblTempUsageDetail_20' ) start [2025-02-03 09:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392110', 'tblTempUsageDetail_20' ) end [2025-02-03 09:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392110', 'tblTempVendorCDR_20' ) start [2025-02-03 09:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392110', 'tblTempVendorCDR_20' ) end [2025-02-03 09:29:22] Production.INFO: ProcessCDR(1,14392110,1,1,2) [2025-02-03 09:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392110', 'tblTempUsageDetail_20' ) start [2025-02-03 09:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392110', 'tblTempUsageDetail_20' ) end [2025-02-03 09:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:29:26] Production.INFO: ==12150== Releasing lock... [2025-02-03 09:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:29:26] Production.INFO: 42.25 MB #Memory Used# [2025-02-03 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:30:05 [end_date_ymd] => 2025-02-03 09:30:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:30:05' and `end` < '2025-02-03 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-02-03 09:30:22] Production.INFO: count ==1817 [2025-02-03 09:30:23] Production.ERROR: pbx CDR StartTime 2025-02-03 06:30:05 - End Time 2025-02-03 09:30:05 [2025-02-03 09:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392115', 'tblTempUsageDetail_20' ) start [2025-02-03 09:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392115', 'tblTempUsageDetail_20' ) end [2025-02-03 09:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392115', 'tblTempVendorCDR_20' ) start [2025-02-03 09:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392115', 'tblTempVendorCDR_20' ) end [2025-02-03 09:30:23] Production.INFO: ProcessCDR(1,14392115,1,1,2) [2025-02-03 09:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392115', 'tblTempUsageDetail_20' ) start [2025-02-03 09:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392115', 'tblTempUsageDetail_20' ) end [2025-02-03 09:30:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:30:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:30:28] Production.INFO: ==12234== Releasing lock... [2025-02-03 09:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:30:28] Production.INFO: 42 MB #Memory Used# [2025-02-03 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:31:05 [end_date_ymd] => 2025-02-03 09:31:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:31:05' and `end` < '2025-02-03 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-02-03 09:31:20] Production.INFO: count ==1933 [2025-02-03 09:31:20] Production.ERROR: pbx CDR StartTime 2025-02-03 06:31:05 - End Time 2025-02-03 09:31:05 [2025-02-03 09:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392121', 'tblTempUsageDetail_20' ) start [2025-02-03 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392121', 'tblTempUsageDetail_20' ) end [2025-02-03 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392121', 'tblTempVendorCDR_20' ) start [2025-02-03 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392121', 'tblTempVendorCDR_20' ) end [2025-02-03 09:31:20] Production.INFO: ProcessCDR(1,14392121,1,1,2) [2025-02-03 09:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392121', 'tblTempUsageDetail_20' ) start [2025-02-03 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392121', 'tblTempUsageDetail_20' ) end [2025-02-03 09:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:31:25] Production.INFO: ==12313== Releasing lock... [2025-02-03 09:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:31:25] Production.INFO: 43 MB #Memory Used# [2025-02-03 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:32:06 [end_date_ymd] => 2025-02-03 09:32:06 [RateCDR] => 1 ) [2025-02-03 09: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-02-03 06:32:06' and `end` < '2025-02-03 09: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-02-03 09:32:20] Production.INFO: count ==1937 [2025-02-03 09:32:20] Production.ERROR: pbx CDR StartTime 2025-02-03 06:32:06 - End Time 2025-02-03 09:32:06 [2025-02-03 09:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392126', 'tblTempUsageDetail_20' ) start [2025-02-03 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392126', 'tblTempUsageDetail_20' ) end [2025-02-03 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392126', 'tblTempVendorCDR_20' ) start [2025-02-03 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392126', 'tblTempVendorCDR_20' ) end [2025-02-03 09:32:20] Production.INFO: ProcessCDR(1,14392126,1,1,2) [2025-02-03 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392126', 'tblTempUsageDetail_20' ) start [2025-02-03 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392126', 'tblTempUsageDetail_20' ) end [2025-02-03 09:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:32:25] Production.INFO: ==12395== Releasing lock... [2025-02-03 09:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:32:25] Production.INFO: 42.75 MB #Memory Used# [2025-02-03 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:33:05 [end_date_ymd] => 2025-02-03 09:33:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:33:05' and `end` < '2025-02-03 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-02-03 09:33:23] Production.INFO: count ==1948 [2025-02-03 09:33:23] Production.ERROR: pbx CDR StartTime 2025-02-03 06:33:05 - End Time 2025-02-03 09:33:05 [2025-02-03 09:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392131', 'tblTempUsageDetail_20' ) start [2025-02-03 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392131', 'tblTempUsageDetail_20' ) end [2025-02-03 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392131', 'tblTempVendorCDR_20' ) start [2025-02-03 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392131', 'tblTempVendorCDR_20' ) end [2025-02-03 09:33:23] Production.INFO: ProcessCDR(1,14392131,1,1,2) [2025-02-03 09:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392131', 'tblTempUsageDetail_20' ) start [2025-02-03 09:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392131', 'tblTempUsageDetail_20' ) end [2025-02-03 09:33:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:33:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:33:28] Production.INFO: ==12477== Releasing lock... [2025-02-03 09:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:33:28] Production.INFO: 43.5 MB #Memory Used# [2025-02-03 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:34:05 [end_date_ymd] => 2025-02-03 09:34:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:34:05' and `end` < '2025-02-03 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-02-03 09:34:22] Production.INFO: count ==1957 [2025-02-03 09:34:23] Production.ERROR: pbx CDR StartTime 2025-02-03 06:34:05 - End Time 2025-02-03 09:34:05 [2025-02-03 09:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392136', 'tblTempUsageDetail_20' ) start [2025-02-03 09:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392136', 'tblTempUsageDetail_20' ) end [2025-02-03 09:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392136', 'tblTempVendorCDR_20' ) start [2025-02-03 09:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392136', 'tblTempVendorCDR_20' ) end [2025-02-03 09:34:23] Production.INFO: ProcessCDR(1,14392136,1,1,2) [2025-02-03 09:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392136', 'tblTempUsageDetail_20' ) start [2025-02-03 09:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392136', 'tblTempUsageDetail_20' ) end [2025-02-03 09:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:34:27] Production.INFO: ==12553== Releasing lock... [2025-02-03 09:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:34:27] Production.INFO: 43.5 MB #Memory Used# [2025-02-03 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:35:05 [end_date_ymd] => 2025-02-03 09:35:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:35:05' and `end` < '2025-02-03 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-02-03 09:35:22] Production.INFO: count ==1976 [2025-02-03 09:35:23] Production.ERROR: pbx CDR StartTime 2025-02-03 06:35:05 - End Time 2025-02-03 09:35:05 [2025-02-03 09:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392141', 'tblTempUsageDetail_20' ) start [2025-02-03 09:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392141', 'tblTempUsageDetail_20' ) end [2025-02-03 09:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392141', 'tblTempVendorCDR_20' ) start [2025-02-03 09:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392141', 'tblTempVendorCDR_20' ) end [2025-02-03 09:35:23] Production.INFO: ProcessCDR(1,14392141,1,1,2) [2025-02-03 09:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392141', 'tblTempUsageDetail_20' ) start [2025-02-03 09:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392141', 'tblTempUsageDetail_20' ) end [2025-02-03 09:35:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:35:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:35:27] Production.INFO: ==12668== Releasing lock... [2025-02-03 09:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:35:27] Production.INFO: 43.25 MB #Memory Used# [2025-02-03 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:36:05 [end_date_ymd] => 2025-02-03 09:36:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:36:05' and `end` < '2025-02-03 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-02-03 09:36:20] Production.INFO: count ==1988 [2025-02-03 09:36:20] Production.ERROR: pbx CDR StartTime 2025-02-03 06:36:05 - End Time 2025-02-03 09:36:05 [2025-02-03 09:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392146', 'tblTempUsageDetail_20' ) start [2025-02-03 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392146', 'tblTempUsageDetail_20' ) end [2025-02-03 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392146', 'tblTempVendorCDR_20' ) start [2025-02-03 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392146', 'tblTempVendorCDR_20' ) end [2025-02-03 09:36:20] Production.INFO: ProcessCDR(1,14392146,1,1,2) [2025-02-03 09:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392146', 'tblTempUsageDetail_20' ) start [2025-02-03 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392146', 'tblTempUsageDetail_20' ) end [2025-02-03 09:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:36:25] Production.INFO: ==12752== Releasing lock... [2025-02-03 09:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:36:25] Production.INFO: 43.5 MB #Memory Used# [2025-02-03 09:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:37:04 [end_date_ymd] => 2025-02-03 09:37:04 [RateCDR] => 1 ) [2025-02-03 09: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-02-03 06:37:04' and `end` < '2025-02-03 09: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-02-03 09:37:18] Production.INFO: count ==1990 [2025-02-03 09:37:18] Production.ERROR: pbx CDR StartTime 2025-02-03 06:37:04 - End Time 2025-02-03 09:37:04 [2025-02-03 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392151', 'tblTempUsageDetail_20' ) start [2025-02-03 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392151', 'tblTempUsageDetail_20' ) end [2025-02-03 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392151', 'tblTempVendorCDR_20' ) start [2025-02-03 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392151', 'tblTempVendorCDR_20' ) end [2025-02-03 09:37:18] Production.INFO: ProcessCDR(1,14392151,1,1,2) [2025-02-03 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392151', 'tblTempUsageDetail_20' ) start [2025-02-03 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392151', 'tblTempUsageDetail_20' ) end [2025-02-03 09:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:37:23] Production.INFO: ==12833== Releasing lock... [2025-02-03 09:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:37:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-03 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:38:05 [end_date_ymd] => 2025-02-03 09:38:05 [RateCDR] => 1 ) [2025-02-03 09: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-02-03 06:38:05' and `end` < '2025-02-03 09: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-02-03 09:38:20] Production.INFO: count ==2014 [2025-02-03 09:38:21] Production.ERROR: pbx CDR StartTime 2025-02-03 06:38:05 - End Time 2025-02-03 09:38:05 [2025-02-03 09:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392156', 'tblTempUsageDetail_20' ) start [2025-02-03 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392156', 'tblTempUsageDetail_20' ) end [2025-02-03 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392156', 'tblTempVendorCDR_20' ) start [2025-02-03 09:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392156', 'tblTempVendorCDR_20' ) end [2025-02-03 09:38:21] Production.INFO: ProcessCDR(1,14392156,1,1,2) [2025-02-03 09:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392156', 'tblTempUsageDetail_20' ) start [2025-02-03 09:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392156', 'tblTempUsageDetail_20' ) end [2025-02-03 09:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:38:26] Production.INFO: ==12904== Releasing lock... [2025-02-03 09:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:38:26] Production.INFO: 43.5 MB #Memory Used# [2025-02-03 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:39:05 [end_date_ymd] => 2025-02-03 09:39:05 [RateCDR] => 1 ) [2025-02-03 09: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-02-03 06:39:05' and `end` < '2025-02-03 09: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-02-03 09:39:21] Production.INFO: count ==2035 [2025-02-03 09:39:22] Production.ERROR: pbx CDR StartTime 2025-02-03 06:39:05 - End Time 2025-02-03 09:39:05 [2025-02-03 09:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392161', 'tblTempUsageDetail_20' ) start [2025-02-03 09:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392161', 'tblTempUsageDetail_20' ) end [2025-02-03 09:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392161', 'tblTempVendorCDR_20' ) start [2025-02-03 09:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392161', 'tblTempVendorCDR_20' ) end [2025-02-03 09:39:22] Production.INFO: ProcessCDR(1,14392161,1,1,2) [2025-02-03 09:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392161', 'tblTempUsageDetail_20' ) start [2025-02-03 09:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392161', 'tblTempUsageDetail_20' ) end [2025-02-03 09:39:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:39:27] Production.INFO: ==12990== Releasing lock... [2025-02-03 09:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:39:27] Production.INFO: 43.5 MB #Memory Used# [2025-02-03 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:40:06 [end_date_ymd] => 2025-02-03 09:40:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:40:06' and `end` < '2025-02-03 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-02-03 09:40:20] Production.INFO: count ==2063 [2025-02-03 09:40:21] Production.ERROR: pbx CDR StartTime 2025-02-03 06:40:06 - End Time 2025-02-03 09:40:06 [2025-02-03 09:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392166', 'tblTempUsageDetail_20' ) start [2025-02-03 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392166', 'tblTempUsageDetail_20' ) end [2025-02-03 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392166', 'tblTempVendorCDR_20' ) start [2025-02-03 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392166', 'tblTempVendorCDR_20' ) end [2025-02-03 09:40:21] Production.INFO: ProcessCDR(1,14392166,1,1,2) [2025-02-03 09:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392166', 'tblTempUsageDetail_20' ) start [2025-02-03 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392166', 'tblTempUsageDetail_20' ) end [2025-02-03 09:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:40:25] Production.INFO: ==13074== Releasing lock... [2025-02-03 09:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:40:25] Production.INFO: 44 MB #Memory Used# [2025-02-03 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:41:05 [end_date_ymd] => 2025-02-03 09:41:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:41:05' and `end` < '2025-02-03 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-02-03 09:41:23] Production.INFO: count ==2134 [2025-02-03 09:41:24] Production.ERROR: pbx CDR StartTime 2025-02-03 06:41:05 - End Time 2025-02-03 09:41:05 [2025-02-03 09:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392172', 'tblTempUsageDetail_20' ) start [2025-02-03 09:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392172', 'tblTempUsageDetail_20' ) end [2025-02-03 09:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392172', 'tblTempVendorCDR_20' ) start [2025-02-03 09:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392172', 'tblTempVendorCDR_20' ) end [2025-02-03 09:41:24] Production.INFO: ProcessCDR(1,14392172,1,1,2) [2025-02-03 09:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392172', 'tblTempUsageDetail_20' ) start [2025-02-03 09:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392172', 'tblTempUsageDetail_20' ) end [2025-02-03 09:41:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:41:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:41:29] Production.INFO: ==13153== Releasing lock... [2025-02-03 09:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:41:29] Production.INFO: 44.25 MB #Memory Used# [2025-02-03 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:42:05 [end_date_ymd] => 2025-02-03 09:42:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:42:05' and `end` < '2025-02-03 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-02-03 09:42:21] Production.INFO: count ==2140 [2025-02-03 09:42:21] Production.ERROR: pbx CDR StartTime 2025-02-03 06:42:05 - End Time 2025-02-03 09:42:05 [2025-02-03 09:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392177', 'tblTempUsageDetail_20' ) start [2025-02-03 09:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392177', 'tblTempUsageDetail_20' ) end [2025-02-03 09:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392177', 'tblTempVendorCDR_20' ) start [2025-02-03 09:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392177', 'tblTempVendorCDR_20' ) end [2025-02-03 09:42:21] Production.INFO: ProcessCDR(1,14392177,1,1,2) [2025-02-03 09:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392177', 'tblTempUsageDetail_20' ) start [2025-02-03 09:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392177', 'tblTempUsageDetail_20' ) end [2025-02-03 09:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:42:26] Production.INFO: ==13228== Releasing lock... [2025-02-03 09:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:42:26] Production.INFO: 44.25 MB #Memory Used# [2025-02-03 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:43:05 [end_date_ymd] => 2025-02-03 09:43:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:43:05' and `end` < '2025-02-03 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-02-03 09:43:19] Production.INFO: count ==2146 [2025-02-03 09:43:20] Production.ERROR: pbx CDR StartTime 2025-02-03 06:43:05 - End Time 2025-02-03 09:43:05 [2025-02-03 09:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392182', 'tblTempUsageDetail_20' ) start [2025-02-03 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392182', 'tblTempUsageDetail_20' ) end [2025-02-03 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392182', 'tblTempVendorCDR_20' ) start [2025-02-03 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392182', 'tblTempVendorCDR_20' ) end [2025-02-03 09:43:20] Production.INFO: ProcessCDR(1,14392182,1,1,2) [2025-02-03 09:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392182', 'tblTempUsageDetail_20' ) start [2025-02-03 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392182', 'tblTempUsageDetail_20' ) end [2025-02-03 09:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:43:25] Production.INFO: ==13304== Releasing lock... [2025-02-03 09:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:43:25] Production.INFO: 44.75 MB #Memory Used# [2025-02-03 09:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:44:04 [end_date_ymd] => 2025-02-03 09:44:04 [RateCDR] => 1 ) [2025-02-03 09: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-02-03 06:44:04' and `end` < '2025-02-03 09: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-02-03 09:44:18] Production.INFO: count ==2170 [2025-02-03 09:44:19] Production.ERROR: pbx CDR StartTime 2025-02-03 06:44:04 - End Time 2025-02-03 09:44:04 [2025-02-03 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392187', 'tblTempUsageDetail_20' ) start [2025-02-03 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392187', 'tblTempUsageDetail_20' ) end [2025-02-03 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392187', 'tblTempVendorCDR_20' ) start [2025-02-03 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392187', 'tblTempVendorCDR_20' ) end [2025-02-03 09:44:19] Production.INFO: ProcessCDR(1,14392187,1,1,2) [2025-02-03 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392187', 'tblTempUsageDetail_20' ) start [2025-02-03 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392187', 'tblTempUsageDetail_20' ) end [2025-02-03 09:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:44:22] Production.INFO: ==13391== Releasing lock... [2025-02-03 09:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:44:22] Production.INFO: 44.5 MB #Memory Used# [2025-02-03 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:45:05 [end_date_ymd] => 2025-02-03 09:45:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:45:05' and `end` < '2025-02-03 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-02-03 09:45:22] Production.INFO: count ==2178 [2025-02-03 09:45:23] Production.ERROR: pbx CDR StartTime 2025-02-03 06:45:05 - End Time 2025-02-03 09:45:05 [2025-02-03 09:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392192', 'tblTempUsageDetail_20' ) start [2025-02-03 09:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392192', 'tblTempUsageDetail_20' ) end [2025-02-03 09:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392192', 'tblTempVendorCDR_20' ) start [2025-02-03 09:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392192', 'tblTempVendorCDR_20' ) end [2025-02-03 09:45:23] Production.INFO: ProcessCDR(1,14392192,1,1,2) [2025-02-03 09:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392192', 'tblTempUsageDetail_20' ) start [2025-02-03 09:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392192', 'tblTempUsageDetail_20' ) end [2025-02-03 09:45:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:45:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:45:27] Production.INFO: ==13467== Releasing lock... [2025-02-03 09:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:45:27] Production.INFO: 44.75 MB #Memory Used# [2025-02-03 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:46:05 [end_date_ymd] => 2025-02-03 09:46:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:46:05' and `end` < '2025-02-03 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-02-03 09:46:25] Production.INFO: count ==2199 [2025-02-03 09:46:26] Production.ERROR: pbx CDR StartTime 2025-02-03 06:46:05 - End Time 2025-02-03 09:46:05 [2025-02-03 09:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392197', 'tblTempUsageDetail_20' ) start [2025-02-03 09:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392197', 'tblTempUsageDetail_20' ) end [2025-02-03 09:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392197', 'tblTempVendorCDR_20' ) start [2025-02-03 09:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392197', 'tblTempVendorCDR_20' ) end [2025-02-03 09:46:26] Production.INFO: ProcessCDR(1,14392197,1,1,2) [2025-02-03 09:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392197', 'tblTempUsageDetail_20' ) start [2025-02-03 09:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392197', 'tblTempUsageDetail_20' ) end [2025-02-03 09:46:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:46:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:46:30] Production.INFO: ==13546== Releasing lock... [2025-02-03 09:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:46:30] Production.INFO: 44.75 MB #Memory Used# [2025-02-03 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:47:05 [end_date_ymd] => 2025-02-03 09:47:05 [RateCDR] => 1 ) [2025-02-03 09: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-02-03 06:47:05' and `end` < '2025-02-03 09: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-02-03 09:47:19] Production.INFO: count ==2212 [2025-02-03 09:47:20] Production.ERROR: pbx CDR StartTime 2025-02-03 06:47:05 - End Time 2025-02-03 09:47:05 [2025-02-03 09:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392202', 'tblTempUsageDetail_20' ) start [2025-02-03 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392202', 'tblTempUsageDetail_20' ) end [2025-02-03 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392202', 'tblTempVendorCDR_20' ) start [2025-02-03 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392202', 'tblTempVendorCDR_20' ) end [2025-02-03 09:47:20] Production.INFO: ProcessCDR(1,14392202,1,1,2) [2025-02-03 09:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392202', 'tblTempUsageDetail_20' ) start [2025-02-03 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392202', 'tblTempUsageDetail_20' ) end [2025-02-03 09:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:47:25] Production.INFO: ==13620== Releasing lock... [2025-02-03 09:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:47:25] Production.INFO: 44.75 MB #Memory Used# [2025-02-03 09:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:48:06 [end_date_ymd] => 2025-02-03 09:48:06 [RateCDR] => 1 ) [2025-02-03 09: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-02-03 06:48:06' and `end` < '2025-02-03 09: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-02-03 09:48:19] Production.INFO: count ==2223 [2025-02-03 09:48:20] Production.ERROR: pbx CDR StartTime 2025-02-03 06:48:06 - End Time 2025-02-03 09:48:06 [2025-02-03 09:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392207', 'tblTempUsageDetail_20' ) start [2025-02-03 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392207', 'tblTempUsageDetail_20' ) end [2025-02-03 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392207', 'tblTempVendorCDR_20' ) start [2025-02-03 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392207', 'tblTempVendorCDR_20' ) end [2025-02-03 09:48:20] Production.INFO: ProcessCDR(1,14392207,1,1,2) [2025-02-03 09:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392207', 'tblTempUsageDetail_20' ) start [2025-02-03 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392207', 'tblTempUsageDetail_20' ) end [2025-02-03 09:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:48:25] Production.INFO: ==13698== Releasing lock... [2025-02-03 09:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:48:25] Production.INFO: 45 MB #Memory Used# [2025-02-03 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:49:05 [end_date_ymd] => 2025-02-03 09:49:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:49:05' and `end` < '2025-02-03 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-02-03 09:49:20] Production.INFO: count ==2229 [2025-02-03 09:49:20] Production.ERROR: pbx CDR StartTime 2025-02-03 06:49:05 - End Time 2025-02-03 09:49:05 [2025-02-03 09:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392212', 'tblTempUsageDetail_20' ) start [2025-02-03 09:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392212', 'tblTempUsageDetail_20' ) end [2025-02-03 09:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392212', 'tblTempVendorCDR_20' ) start [2025-02-03 09:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392212', 'tblTempVendorCDR_20' ) end [2025-02-03 09:49:21] Production.INFO: ProcessCDR(1,14392212,1,1,2) [2025-02-03 09:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392212', 'tblTempUsageDetail_20' ) start [2025-02-03 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392212', 'tblTempUsageDetail_20' ) end [2025-02-03 09:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:49:25] Production.INFO: ==13775== Releasing lock... [2025-02-03 09:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:49:25] Production.INFO: 45 MB #Memory Used# [2025-02-03 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:50:06 [end_date_ymd] => 2025-02-03 09:50:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:50:06' and `end` < '2025-02-03 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-02-03 09:50:32] Production.INFO: count ==2244 [2025-02-03 09:50:33] Production.ERROR: pbx CDR StartTime 2025-02-03 06:50:06 - End Time 2025-02-03 09:50:06 [2025-02-03 09:50:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392217', 'tblTempUsageDetail_20' ) start [2025-02-03 09:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392217', 'tblTempUsageDetail_20' ) end [2025-02-03 09:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392217', 'tblTempVendorCDR_20' ) start [2025-02-03 09:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392217', 'tblTempVendorCDR_20' ) end [2025-02-03 09:50:33] Production.INFO: ProcessCDR(1,14392217,1,1,2) [2025-02-03 09:50:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:50:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:50:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:50:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:50:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392217', 'tblTempUsageDetail_20' ) start [2025-02-03 09:50:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392217', 'tblTempUsageDetail_20' ) end [2025-02-03 09:50:38] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:50:38] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:50:38] Production.INFO: ==13892== Releasing lock... [2025-02-03 09:50:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:50:38] Production.INFO: 45 MB #Memory Used# [2025-02-03 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:51:05 [end_date_ymd] => 2025-02-03 09:51:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:51:05' and `end` < '2025-02-03 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-02-03 09:51:26] Production.INFO: count ==2338 [2025-02-03 09:51:27] Production.ERROR: pbx CDR StartTime 2025-02-03 06:51:05 - End Time 2025-02-03 09:51:05 [2025-02-03 09:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392223', 'tblTempUsageDetail_20' ) start [2025-02-03 09:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392223', 'tblTempUsageDetail_20' ) end [2025-02-03 09:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392223', 'tblTempVendorCDR_20' ) start [2025-02-03 09:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392223', 'tblTempVendorCDR_20' ) end [2025-02-03 09:51:27] Production.INFO: ProcessCDR(1,14392223,1,1,2) [2025-02-03 09:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392223', 'tblTempUsageDetail_20' ) start [2025-02-03 09:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392223', 'tblTempUsageDetail_20' ) end [2025-02-03 09:51:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:51:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:51:31] Production.INFO: ==13969== Releasing lock... [2025-02-03 09:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:51:31] Production.INFO: 45.5 MB #Memory Used# [2025-02-03 09:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:52:06 [end_date_ymd] => 2025-02-03 09:52:06 [RateCDR] => 1 ) [2025-02-03 09: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-02-03 06:52:06' and `end` < '2025-02-03 09: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-02-03 09:52:22] Production.INFO: count ==2360 [2025-02-03 09:52:23] Production.ERROR: pbx CDR StartTime 2025-02-03 06:52:06 - End Time 2025-02-03 09:52:06 [2025-02-03 09:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392228', 'tblTempUsageDetail_20' ) start [2025-02-03 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392228', 'tblTempUsageDetail_20' ) end [2025-02-03 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392228', 'tblTempVendorCDR_20' ) start [2025-02-03 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392228', 'tblTempVendorCDR_20' ) end [2025-02-03 09:52:23] Production.INFO: ProcessCDR(1,14392228,1,1,2) [2025-02-03 09:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392228', 'tblTempUsageDetail_20' ) start [2025-02-03 09:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392228', 'tblTempUsageDetail_20' ) end [2025-02-03 09:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:52:27] Production.INFO: ==14040== Releasing lock... [2025-02-03 09:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:52:27] Production.INFO: 46 MB #Memory Used# [2025-02-03 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:53:05 [end_date_ymd] => 2025-02-03 09:53:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:53:05' and `end` < '2025-02-03 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-02-03 09:53:25] Production.INFO: count ==2388 [2025-02-03 09:53:26] Production.ERROR: pbx CDR StartTime 2025-02-03 06:53:05 - End Time 2025-02-03 09:53:05 [2025-02-03 09:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392233', 'tblTempUsageDetail_20' ) start [2025-02-03 09:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392233', 'tblTempUsageDetail_20' ) end [2025-02-03 09:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392233', 'tblTempVendorCDR_20' ) start [2025-02-03 09:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392233', 'tblTempVendorCDR_20' ) end [2025-02-03 09:53:26] Production.INFO: ProcessCDR(1,14392233,1,1,2) [2025-02-03 09:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392233', 'tblTempUsageDetail_20' ) start [2025-02-03 09:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392233', 'tblTempUsageDetail_20' ) end [2025-02-03 09:53:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:53:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:53:31] Production.INFO: ==14116== Releasing lock... [2025-02-03 09:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:53:31] Production.INFO: 46 MB #Memory Used# [2025-02-03 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:54:05 [end_date_ymd] => 2025-02-03 09:54:05 [RateCDR] => 1 ) [2025-02-03 09: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-02-03 06:54:05' and `end` < '2025-02-03 09: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-02-03 09:54:26] Production.INFO: count ==2402 [2025-02-03 09:54:27] Production.ERROR: pbx CDR StartTime 2025-02-03 06:54:05 - End Time 2025-02-03 09:54:05 [2025-02-03 09:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392238', 'tblTempUsageDetail_20' ) start [2025-02-03 09:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392238', 'tblTempUsageDetail_20' ) end [2025-02-03 09:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392238', 'tblTempVendorCDR_20' ) start [2025-02-03 09:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392238', 'tblTempVendorCDR_20' ) end [2025-02-03 09:54:27] Production.INFO: ProcessCDR(1,14392238,1,1,2) [2025-02-03 09:54:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392238', 'tblTempUsageDetail_20' ) start [2025-02-03 09:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392238', 'tblTempUsageDetail_20' ) end [2025-02-03 09:54:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:54:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:54:32] Production.INFO: ==14192== Releasing lock... [2025-02-03 09:54:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:54:32] Production.INFO: 46 MB #Memory Used# [2025-02-03 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:55:05 [end_date_ymd] => 2025-02-03 09:55:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:55:05' and `end` < '2025-02-03 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-02-03 09:55:24] Production.INFO: count ==2407 [2025-02-03 09:55:25] Production.ERROR: pbx CDR StartTime 2025-02-03 06:55:05 - End Time 2025-02-03 09:55:05 [2025-02-03 09:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392243', 'tblTempUsageDetail_20' ) start [2025-02-03 09:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392243', 'tblTempUsageDetail_20' ) end [2025-02-03 09:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392243', 'tblTempVendorCDR_20' ) start [2025-02-03 09:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392243', 'tblTempVendorCDR_20' ) end [2025-02-03 09:55:25] Production.INFO: ProcessCDR(1,14392243,1,1,2) [2025-02-03 09:55:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392243', 'tblTempUsageDetail_20' ) start [2025-02-03 09:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392243', 'tblTempUsageDetail_20' ) end [2025-02-03 09:55:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:55:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:55:30] Production.INFO: ==14272== Releasing lock... [2025-02-03 09:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:55:30] Production.INFO: 46.25 MB #Memory Used# [2025-02-03 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:56:05 [end_date_ymd] => 2025-02-03 09:56:05 [RateCDR] => 1 ) [2025-02-03 09: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-02-03 06:56:05' and `end` < '2025-02-03 09: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-02-03 09:56:22] Production.INFO: count ==2435 [2025-02-03 09:56:23] Production.ERROR: pbx CDR StartTime 2025-02-03 06:56:05 - End Time 2025-02-03 09:56:05 [2025-02-03 09:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392248', 'tblTempUsageDetail_20' ) start [2025-02-03 09:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392248', 'tblTempUsageDetail_20' ) end [2025-02-03 09:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392248', 'tblTempVendorCDR_20' ) start [2025-02-03 09:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392248', 'tblTempVendorCDR_20' ) end [2025-02-03 09:56:23] Production.INFO: ProcessCDR(1,14392248,1,1,2) [2025-02-03 09:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392248', 'tblTempUsageDetail_20' ) start [2025-02-03 09:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392248', 'tblTempUsageDetail_20' ) end [2025-02-03 09:56:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:56:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:56:29] Production.INFO: ==14352== Releasing lock... [2025-02-03 09:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:56:29] Production.INFO: 46.25 MB #Memory Used# [2025-02-03 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:57:05 [end_date_ymd] => 2025-02-03 09:57:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:57:05' and `end` < '2025-02-03 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-02-03 09:57:20] Production.INFO: count ==2467 [2025-02-03 09:57:21] Production.ERROR: pbx CDR StartTime 2025-02-03 06:57:05 - End Time 2025-02-03 09:57:05 [2025-02-03 09:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392253', 'tblTempUsageDetail_20' ) start [2025-02-03 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392253', 'tblTempUsageDetail_20' ) end [2025-02-03 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392253', 'tblTempVendorCDR_20' ) start [2025-02-03 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392253', 'tblTempVendorCDR_20' ) end [2025-02-03 09:57:21] Production.INFO: ProcessCDR(1,14392253,1,1,2) [2025-02-03 09:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392253', 'tblTempUsageDetail_20' ) start [2025-02-03 09:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392253', 'tblTempUsageDetail_20' ) end [2025-02-03 09:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:57:26] Production.INFO: ==14431== Releasing lock... [2025-02-03 09:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:57:26] Production.INFO: 46.5 MB #Memory Used# [2025-02-03 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:58:05 [end_date_ymd] => 2025-02-03 09:58:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:58:05' and `end` < '2025-02-03 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-02-03 09:58:23] Production.INFO: count ==2496 [2025-02-03 09:58:24] Production.ERROR: pbx CDR StartTime 2025-02-03 06:58:05 - End Time 2025-02-03 09:58:05 [2025-02-03 09:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392258', 'tblTempUsageDetail_20' ) start [2025-02-03 09:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392258', 'tblTempUsageDetail_20' ) end [2025-02-03 09:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392258', 'tblTempVendorCDR_20' ) start [2025-02-03 09:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392258', 'tblTempVendorCDR_20' ) end [2025-02-03 09:58:24] Production.INFO: ProcessCDR(1,14392258,1,1,2) [2025-02-03 09:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392258', 'tblTempUsageDetail_20' ) start [2025-02-03 09:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392258', 'tblTempUsageDetail_20' ) end [2025-02-03 09:58:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:58:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:58:28] Production.INFO: ==14507== Releasing lock... [2025-02-03 09:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:58:28] Production.INFO: 46.75 MB #Memory Used# [2025-02-03 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 06:59:05 [end_date_ymd] => 2025-02-03 09:59:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 06:59:05' and `end` < '2025-02-03 09: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-02-03 09:59:19] Production.INFO: count ==2519 [2025-02-03 09:59:20] Production.ERROR: pbx CDR StartTime 2025-02-03 06:59:05 - End Time 2025-02-03 09:59:05 [2025-02-03 09:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392263', 'tblTempUsageDetail_20' ) start [2025-02-03 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392263', 'tblTempUsageDetail_20' ) end [2025-02-03 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392263', 'tblTempVendorCDR_20' ) start [2025-02-03 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392263', 'tblTempVendorCDR_20' ) end [2025-02-03 09:59:20] Production.INFO: ProcessCDR(1,14392263,1,1,2) [2025-02-03 09:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392263', 'tblTempUsageDetail_20' ) start [2025-02-03 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392263', 'tblTempUsageDetail_20' ) end [2025-02-03 09:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 09:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 09:59:24] Production.INFO: ==14580== Releasing lock... [2025-02-03 09:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 09:59:24] Production.INFO: 47 MB #Memory Used# [2025-02-03 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:00:06 [end_date_ymd] => 2025-02-03 10:00:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:00:06' and `end` < '2025-02-03 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-02-03 10:00:24] Production.INFO: count ==2545 [2025-02-03 10:00:25] Production.ERROR: pbx CDR StartTime 2025-02-03 07:00:06 - End Time 2025-02-03 10:00:06 [2025-02-03 10:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392269', 'tblTempUsageDetail_20' ) start [2025-02-03 10:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392269', 'tblTempUsageDetail_20' ) end [2025-02-03 10:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392269', 'tblTempVendorCDR_20' ) start [2025-02-03 10:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392269', 'tblTempVendorCDR_20' ) end [2025-02-03 10:00:25] Production.INFO: ProcessCDR(1,14392269,1,1,2) [2025-02-03 10:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392269', 'tblTempUsageDetail_20' ) start [2025-02-03 10:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392269', 'tblTempUsageDetail_20' ) end [2025-02-03 10:00:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:00:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:00:30] Production.INFO: ==14662== Releasing lock... [2025-02-03 10:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:00:30] Production.INFO: 47.25 MB #Memory Used# [2025-02-03 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:01:05 [end_date_ymd] => 2025-02-03 10:01:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:01:05' and `end` < '2025-02-03 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-02-03 10:01:21] Production.INFO: count ==2644 [2025-02-03 10:01:22] Production.ERROR: pbx CDR StartTime 2025-02-03 07:01:05 - End Time 2025-02-03 10:01:05 [2025-02-03 10:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392274', 'tblTempUsageDetail_20' ) start [2025-02-03 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392274', 'tblTempUsageDetail_20' ) end [2025-02-03 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392274', 'tblTempVendorCDR_20' ) start [2025-02-03 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392274', 'tblTempVendorCDR_20' ) end [2025-02-03 10:01:22] Production.INFO: ProcessCDR(1,14392274,1,1,2) [2025-02-03 10:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392274', 'tblTempUsageDetail_20' ) start [2025-02-03 10:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392274', 'tblTempUsageDetail_20' ) end [2025-02-03 10:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:01:26] Production.INFO: ==14756== Releasing lock... [2025-02-03 10:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:01:26] Production.INFO: 48 MB #Memory Used# [2025-02-03 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:02:06 [end_date_ymd] => 2025-02-03 10:02:06 [RateCDR] => 1 ) [2025-02-03 10: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-02-03 07:02:06' and `end` < '2025-02-03 10: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-02-03 10:02:23] Production.INFO: count ==2707 [2025-02-03 10:02:24] Production.ERROR: pbx CDR StartTime 2025-02-03 07:02:06 - End Time 2025-02-03 10:02:06 [2025-02-03 10:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392279', 'tblTempUsageDetail_20' ) start [2025-02-03 10:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392279', 'tblTempUsageDetail_20' ) end [2025-02-03 10:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392279', 'tblTempVendorCDR_20' ) start [2025-02-03 10:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392279', 'tblTempVendorCDR_20' ) end [2025-02-03 10:02:25] Production.INFO: ProcessCDR(1,14392279,1,1,2) [2025-02-03 10:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392279', 'tblTempUsageDetail_20' ) start [2025-02-03 10:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392279', 'tblTempUsageDetail_20' ) end [2025-02-03 10:02:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:02:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:02:29] Production.INFO: ==14831== Releasing lock... [2025-02-03 10:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:02:29] Production.INFO: 48.5 MB #Memory Used# [2025-02-03 10:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:03:04 [end_date_ymd] => 2025-02-03 10:03:04 [RateCDR] => 1 ) [2025-02-03 10: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-02-03 07:03:04' and `end` < '2025-02-03 10: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-02-03 10:03:25] Production.INFO: count ==2746 [2025-02-03 10:03:26] Production.ERROR: pbx CDR StartTime 2025-02-03 07:03:04 - End Time 2025-02-03 10:03:04 [2025-02-03 10:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392281', 'tblTempUsageDetail_20' ) start [2025-02-03 10:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392281', 'tblTempUsageDetail_20' ) end [2025-02-03 10:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392281', 'tblTempVendorCDR_20' ) start [2025-02-03 10:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392281', 'tblTempVendorCDR_20' ) end [2025-02-03 10:03:26] Production.INFO: ProcessCDR(1,14392281,1,1,2) [2025-02-03 10:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392281', 'tblTempUsageDetail_20' ) start [2025-02-03 10:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392281', 'tblTempUsageDetail_20' ) end [2025-02-03 10:03:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:03:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:03:31] Production.INFO: ==14903== Releasing lock... [2025-02-03 10:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:03:31] Production.INFO: 48.75 MB #Memory Used# [2025-02-03 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:04:05 [end_date_ymd] => 2025-02-03 10:04:05 [RateCDR] => 1 ) [2025-02-03 10: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-02-03 07:04:05' and `end` < '2025-02-03 10: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-02-03 10:04:28] Production.INFO: count ==2758 [2025-02-03 10:04:29] Production.ERROR: pbx CDR StartTime 2025-02-03 07:04:05 - End Time 2025-02-03 10:04:05 [2025-02-03 10:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392289', 'tblTempUsageDetail_20' ) start [2025-02-03 10:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392289', 'tblTempUsageDetail_20' ) end [2025-02-03 10:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392289', 'tblTempVendorCDR_20' ) start [2025-02-03 10:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392289', 'tblTempVendorCDR_20' ) end [2025-02-03 10:04:30] Production.INFO: ProcessCDR(1,14392289,1,1,2) [2025-02-03 10:04:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:04:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392289', 'tblTempUsageDetail_20' ) start [2025-02-03 10:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392289', 'tblTempUsageDetail_20' ) end [2025-02-03 10:04:35] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:04:35] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:04:35] Production.INFO: ==14986== Releasing lock... [2025-02-03 10:04:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:04:35] Production.INFO: 48.75 MB #Memory Used# [2025-02-03 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:05:05 [end_date_ymd] => 2025-02-03 10:05:05 [RateCDR] => 1 ) [2025-02-03 10: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-02-03 07:05:05' and `end` < '2025-02-03 10: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-02-03 10:05:25] Production.INFO: count ==2822 [2025-02-03 10:05:26] Production.ERROR: pbx CDR StartTime 2025-02-03 07:05:05 - End Time 2025-02-03 10:05:05 [2025-02-03 10:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392294', 'tblTempUsageDetail_20' ) start [2025-02-03 10:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392294', 'tblTempUsageDetail_20' ) end [2025-02-03 10:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392294', 'tblTempVendorCDR_20' ) start [2025-02-03 10:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392294', 'tblTempVendorCDR_20' ) end [2025-02-03 10:05:26] Production.INFO: ProcessCDR(1,14392294,1,1,2) [2025-02-03 10:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392294', 'tblTempUsageDetail_20' ) start [2025-02-03 10:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392294', 'tblTempUsageDetail_20' ) end [2025-02-03 10:05:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:05:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:05:31] Production.INFO: ==15063== Releasing lock... [2025-02-03 10:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:05:31] Production.INFO: 49.75 MB #Memory Used# [2025-02-03 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:06:05 [end_date_ymd] => 2025-02-03 10:06:05 [RateCDR] => 1 ) [2025-02-03 10: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-02-03 07:06:05' and `end` < '2025-02-03 10: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-02-03 10:06:23] Production.INFO: count ==2855 [2025-02-03 10:06:24] Production.ERROR: pbx CDR StartTime 2025-02-03 07:06:05 - End Time 2025-02-03 10:06:05 [2025-02-03 10:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392299', 'tblTempUsageDetail_20' ) start [2025-02-03 10:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392299', 'tblTempUsageDetail_20' ) end [2025-02-03 10:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392299', 'tblTempVendorCDR_20' ) start [2025-02-03 10:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392299', 'tblTempVendorCDR_20' ) end [2025-02-03 10:06:24] Production.INFO: ProcessCDR(1,14392299,1,1,2) [2025-02-03 10:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392299', 'tblTempUsageDetail_20' ) start [2025-02-03 10:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392299', 'tblTempUsageDetail_20' ) end [2025-02-03 10:06:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:06:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:06:29] Production.INFO: ==15179== Releasing lock... [2025-02-03 10:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:06:29] Production.INFO: 49 MB #Memory Used# [2025-02-03 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:07:05 [end_date_ymd] => 2025-02-03 10:07:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:07:05' and `end` < '2025-02-03 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-02-03 10:07:25] Production.INFO: count ==2877 [2025-02-03 10:07:26] Production.ERROR: pbx CDR StartTime 2025-02-03 07:07:05 - End Time 2025-02-03 10:07:05 [2025-02-03 10:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392304', 'tblTempUsageDetail_20' ) start [2025-02-03 10:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392304', 'tblTempUsageDetail_20' ) end [2025-02-03 10:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392304', 'tblTempVendorCDR_20' ) start [2025-02-03 10:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392304', 'tblTempVendorCDR_20' ) end [2025-02-03 10:07:26] Production.INFO: ProcessCDR(1,14392304,1,1,2) [2025-02-03 10:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392304', 'tblTempUsageDetail_20' ) start [2025-02-03 10:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392304', 'tblTempUsageDetail_20' ) end [2025-02-03 10:07:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:07:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:07:31] Production.INFO: ==15251== Releasing lock... [2025-02-03 10:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:07:31] Production.INFO: 49.25 MB #Memory Used# [2025-02-03 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:08:05 [end_date_ymd] => 2025-02-03 10:08:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:08:05' and `end` < '2025-02-03 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-02-03 10:08:34] Production.INFO: count ==2896 [2025-02-03 10:08:35] Production.ERROR: pbx CDR StartTime 2025-02-03 07:08:05 - End Time 2025-02-03 10:08:05 [2025-02-03 10:08:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:08:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392309', 'tblTempUsageDetail_20' ) start [2025-02-03 10:08:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392309', 'tblTempUsageDetail_20' ) end [2025-02-03 10:08:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392309', 'tblTempVendorCDR_20' ) start [2025-02-03 10:08:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392309', 'tblTempVendorCDR_20' ) end [2025-02-03 10:08:35] Production.INFO: ProcessCDR(1,14392309,1,1,2) [2025-02-03 10:08:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:08:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:08:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:08:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:08:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392309', 'tblTempUsageDetail_20' ) start [2025-02-03 10:08:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392309', 'tblTempUsageDetail_20' ) end [2025-02-03 10:08:40] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:08:40] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:08:40] Production.INFO: ==15327== Releasing lock... [2025-02-03 10:08:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:08:40] Production.INFO: 49.5 MB #Memory Used# [2025-02-03 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:09:06 [end_date_ymd] => 2025-02-03 10:09:06 [RateCDR] => 1 ) [2025-02-03 10:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 07:09:06' and `end` < '2025-02-03 10:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 10:09:29] Production.INFO: count ==2928 [2025-02-03 10:09:30] Production.ERROR: pbx CDR StartTime 2025-02-03 07:09:06 - End Time 2025-02-03 10:09:06 [2025-02-03 10:09:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392314', 'tblTempUsageDetail_20' ) start [2025-02-03 10:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392314', 'tblTempUsageDetail_20' ) end [2025-02-03 10:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392314', 'tblTempVendorCDR_20' ) start [2025-02-03 10:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392314', 'tblTempVendorCDR_20' ) end [2025-02-03 10:09:30] Production.INFO: ProcessCDR(1,14392314,1,1,2) [2025-02-03 10:09:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:09:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:09:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:09:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392314', 'tblTempUsageDetail_20' ) start [2025-02-03 10:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392314', 'tblTempUsageDetail_20' ) end [2025-02-03 10:09:34] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:09:34] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:09:34] Production.INFO: ==15401== Releasing lock... [2025-02-03 10:09:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:09:34] Production.INFO: 49.5 MB #Memory Used# [2025-02-03 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:10:06 [end_date_ymd] => 2025-02-03 10:10:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:10:06' and `end` < '2025-02-03 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-02-03 10:10:25] Production.INFO: count ==2974 [2025-02-03 10:10:26] Production.ERROR: pbx CDR StartTime 2025-02-03 07:10:06 - End Time 2025-02-03 10:10:06 [2025-02-03 10:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392320', 'tblTempUsageDetail_20' ) start [2025-02-03 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392320', 'tblTempUsageDetail_20' ) end [2025-02-03 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392320', 'tblTempVendorCDR_20' ) start [2025-02-03 10:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392320', 'tblTempVendorCDR_20' ) end [2025-02-03 10:10:26] Production.INFO: ProcessCDR(1,14392320,1,1,2) [2025-02-03 10:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392320', 'tblTempUsageDetail_20' ) start [2025-02-03 10:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392320', 'tblTempUsageDetail_20' ) end [2025-02-03 10:10:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:10:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:10:31] Production.INFO: ==15477== Releasing lock... [2025-02-03 10:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:10:31] Production.INFO: 50 MB #Memory Used# [2025-02-03 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:11:05 [end_date_ymd] => 2025-02-03 10:11:05 [RateCDR] => 1 ) [2025-02-03 10: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-02-03 07:11:05' and `end` < '2025-02-03 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-02-03 10:11:27] Production.INFO: count ==3108 [2025-02-03 10:11:28] Production.ERROR: pbx CDR StartTime 2025-02-03 07:11:05 - End Time 2025-02-03 10:11:05 [2025-02-03 10:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392325', 'tblTempUsageDetail_20' ) start [2025-02-03 10:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392325', 'tblTempUsageDetail_20' ) end [2025-02-03 10:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392325', 'tblTempVendorCDR_20' ) start [2025-02-03 10:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392325', 'tblTempVendorCDR_20' ) end [2025-02-03 10:11:28] Production.INFO: ProcessCDR(1,14392325,1,1,2) [2025-02-03 10:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:11:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392325', 'tblTempUsageDetail_20' ) start [2025-02-03 10:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392325', 'tblTempUsageDetail_20' ) end [2025-02-03 10:11:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:11:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:11:33] Production.INFO: ==15556== Releasing lock... [2025-02-03 10:11:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:11:33] Production.INFO: 51.25 MB #Memory Used# [2025-02-03 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:12:05 [end_date_ymd] => 2025-02-03 10:12:05 [RateCDR] => 1 ) [2025-02-03 10: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-02-03 07:12:05' and `end` < '2025-02-03 10: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-02-03 10:12:24] Production.INFO: count ==3149 [2025-02-03 10:12:25] Production.ERROR: pbx CDR StartTime 2025-02-03 07:12:05 - End Time 2025-02-03 10:12:05 [2025-02-03 10:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392330', 'tblTempUsageDetail_20' ) start [2025-02-03 10:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392330', 'tblTempUsageDetail_20' ) end [2025-02-03 10:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392330', 'tblTempVendorCDR_20' ) start [2025-02-03 10:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392330', 'tblTempVendorCDR_20' ) end [2025-02-03 10:12:26] Production.INFO: ProcessCDR(1,14392330,1,1,2) [2025-02-03 10:12:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392330', 'tblTempUsageDetail_20' ) start [2025-02-03 10:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392330', 'tblTempUsageDetail_20' ) end [2025-02-03 10:12:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:12:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:12:30] Production.INFO: ==15634== Releasing lock... [2025-02-03 10:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:12:30] Production.INFO: 51.5 MB #Memory Used# [2025-02-03 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:13:05 [end_date_ymd] => 2025-02-03 10:13:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:13:05' and `end` < '2025-02-03 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-02-03 10:13:20] Production.INFO: count ==3189 [2025-02-03 10:13:22] Production.ERROR: pbx CDR StartTime 2025-02-03 07:13:05 - End Time 2025-02-03 10:13:05 [2025-02-03 10:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392335', 'tblTempUsageDetail_20' ) start [2025-02-03 10:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392335', 'tblTempUsageDetail_20' ) end [2025-02-03 10:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392335', 'tblTempVendorCDR_20' ) start [2025-02-03 10:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392335', 'tblTempVendorCDR_20' ) end [2025-02-03 10:13:22] Production.INFO: ProcessCDR(1,14392335,1,1,2) [2025-02-03 10:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392335', 'tblTempUsageDetail_20' ) start [2025-02-03 10:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392335', 'tblTempUsageDetail_20' ) end [2025-02-03 10:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:13:26] Production.INFO: ==15712== Releasing lock... [2025-02-03 10:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:13:26] Production.INFO: 51.75 MB #Memory Used# [2025-02-03 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:14:05 [end_date_ymd] => 2025-02-03 10:14:05 [RateCDR] => 1 ) [2025-02-03 10: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-02-03 07:14:05' and `end` < '2025-02-03 10: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-02-03 10:14:20] Production.INFO: count ==3214 [2025-02-03 10:14:21] Production.ERROR: pbx CDR StartTime 2025-02-03 07:14:05 - End Time 2025-02-03 10:14:05 [2025-02-03 10:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392340', 'tblTempUsageDetail_20' ) start [2025-02-03 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392340', 'tblTempUsageDetail_20' ) end [2025-02-03 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392340', 'tblTempVendorCDR_20' ) start [2025-02-03 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392340', 'tblTempVendorCDR_20' ) end [2025-02-03 10:14:21] Production.INFO: ProcessCDR(1,14392340,1,1,2) [2025-02-03 10:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392340', 'tblTempUsageDetail_20' ) start [2025-02-03 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392340', 'tblTempUsageDetail_20' ) end [2025-02-03 10:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:14:26] Production.INFO: ==15789== Releasing lock... [2025-02-03 10:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:14:26] Production.INFO: 52 MB #Memory Used# [2025-02-03 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:15:05 [end_date_ymd] => 2025-02-03 10:15:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:15:05' and `end` < '2025-02-03 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-02-03 10:15:20] Production.INFO: count ==3269 [2025-02-03 10:15:22] Production.ERROR: pbx CDR StartTime 2025-02-03 07:15:05 - End Time 2025-02-03 10:15:05 [2025-02-03 10:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392345', 'tblTempUsageDetail_20' ) start [2025-02-03 10:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392345', 'tblTempUsageDetail_20' ) end [2025-02-03 10:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392345', 'tblTempVendorCDR_20' ) start [2025-02-03 10:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392345', 'tblTempVendorCDR_20' ) end [2025-02-03 10:15:22] Production.INFO: ProcessCDR(1,14392345,1,1,2) [2025-02-03 10:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392345', 'tblTempUsageDetail_20' ) start [2025-02-03 10:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392345', 'tblTempUsageDetail_20' ) end [2025-02-03 10:15:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:15:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:15:27] Production.INFO: ==15865== Releasing lock... [2025-02-03 10:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:15:27] Production.INFO: 52.5 MB #Memory Used# [2025-02-03 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:16:05 [end_date_ymd] => 2025-02-03 10:16:05 [RateCDR] => 1 ) [2025-02-03 10: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-02-03 07:16:05' and `end` < '2025-02-03 10: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-02-03 10:16:26] Production.INFO: count ==3316 [2025-02-03 10:16:27] Production.ERROR: pbx CDR StartTime 2025-02-03 07:16:05 - End Time 2025-02-03 10:16:05 [2025-02-03 10:16:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392350', 'tblTempUsageDetail_20' ) start [2025-02-03 10:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392350', 'tblTempUsageDetail_20' ) end [2025-02-03 10:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392350', 'tblTempVendorCDR_20' ) start [2025-02-03 10:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392350', 'tblTempVendorCDR_20' ) end [2025-02-03 10:16:27] Production.INFO: ProcessCDR(1,14392350,1,1,2) [2025-02-03 10:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:16:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:16:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:16:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392350', 'tblTempUsageDetail_20' ) start [2025-02-03 10:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392350', 'tblTempUsageDetail_20' ) end [2025-02-03 10:16:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:16:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:16:32] Production.INFO: ==15948== Releasing lock... [2025-02-03 10:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:16:32] Production.INFO: 52.75 MB #Memory Used# [2025-02-03 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:17:05 [end_date_ymd] => 2025-02-03 10:17:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:17:05' and `end` < '2025-02-03 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-02-03 10:17:24] Production.INFO: count ==3370 [2025-02-03 10:17:25] Production.ERROR: pbx CDR StartTime 2025-02-03 07:17:05 - End Time 2025-02-03 10:17:05 [2025-02-03 10:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392355', 'tblTempUsageDetail_20' ) start [2025-02-03 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392355', 'tblTempUsageDetail_20' ) end [2025-02-03 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392355', 'tblTempVendorCDR_20' ) start [2025-02-03 10:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392355', 'tblTempVendorCDR_20' ) end [2025-02-03 10:17:25] Production.INFO: ProcessCDR(1,14392355,1,1,2) [2025-02-03 10:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392355', 'tblTempUsageDetail_20' ) start [2025-02-03 10:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392355', 'tblTempUsageDetail_20' ) end [2025-02-03 10:17:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:17:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:17:30] Production.INFO: ==16024== Releasing lock... [2025-02-03 10:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:17:30] Production.INFO: 53 MB #Memory Used# [2025-02-03 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:18:05 [end_date_ymd] => 2025-02-03 10:18:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:18:05' and `end` < '2025-02-03 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-02-03 10:18:23] Production.INFO: count ==3407 [2025-02-03 10:18:24] Production.ERROR: pbx CDR StartTime 2025-02-03 07:18:05 - End Time 2025-02-03 10:18:05 [2025-02-03 10:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392360', 'tblTempUsageDetail_20' ) start [2025-02-03 10:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392360', 'tblTempUsageDetail_20' ) end [2025-02-03 10:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392360', 'tblTempVendorCDR_20' ) start [2025-02-03 10:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392360', 'tblTempVendorCDR_20' ) end [2025-02-03 10:18:24] Production.INFO: ProcessCDR(1,14392360,1,1,2) [2025-02-03 10:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392360', 'tblTempUsageDetail_20' ) start [2025-02-03 10:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392360', 'tblTempUsageDetail_20' ) end [2025-02-03 10:18:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:18:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:18:29] Production.INFO: ==16105== Releasing lock... [2025-02-03 10:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:18:29] Production.INFO: 53.5 MB #Memory Used# [2025-02-03 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:19:05 [end_date_ymd] => 2025-02-03 10:19:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:19:05' and `end` < '2025-02-03 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-02-03 10:19:23] Production.INFO: count ==3426 [2025-02-03 10:19:24] Production.ERROR: pbx CDR StartTime 2025-02-03 07:19:05 - End Time 2025-02-03 10:19:05 [2025-02-03 10:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392365', 'tblTempUsageDetail_20' ) start [2025-02-03 10:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392365', 'tblTempUsageDetail_20' ) end [2025-02-03 10:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392365', 'tblTempVendorCDR_20' ) start [2025-02-03 10:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392365', 'tblTempVendorCDR_20' ) end [2025-02-03 10:19:24] Production.INFO: ProcessCDR(1,14392365,1,1,2) [2025-02-03 10:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392365', 'tblTempUsageDetail_20' ) start [2025-02-03 10:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392365', 'tblTempUsageDetail_20' ) end [2025-02-03 10:19:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:19:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:19:29] Production.INFO: ==16181== Releasing lock... [2025-02-03 10:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:19:29] Production.INFO: 53.5 MB #Memory Used# [2025-02-03 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:20:06 [end_date_ymd] => 2025-02-03 10:20:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:20:06' and `end` < '2025-02-03 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-02-03 10:20:24] Production.INFO: count ==3435 [2025-02-03 10:20:25] Production.ERROR: pbx CDR StartTime 2025-02-03 07:20:06 - End Time 2025-02-03 10:20:06 [2025-02-03 10:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392370', 'tblTempUsageDetail_20' ) start [2025-02-03 10:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392370', 'tblTempUsageDetail_20' ) end [2025-02-03 10:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392370', 'tblTempVendorCDR_20' ) start [2025-02-03 10:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392370', 'tblTempVendorCDR_20' ) end [2025-02-03 10:20:25] Production.INFO: ProcessCDR(1,14392370,1,1,2) [2025-02-03 10:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392370', 'tblTempUsageDetail_20' ) start [2025-02-03 10:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392370', 'tblTempUsageDetail_20' ) end [2025-02-03 10:20:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:20:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:20:30] Production.INFO: ==16262== Releasing lock... [2025-02-03 10:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:20:30] Production.INFO: 53.5 MB #Memory Used# [2025-02-03 10:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:21:04 [end_date_ymd] => 2025-02-03 10:21:04 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:21:04' and `end` < '2025-02-03 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-02-03 10:21:18] Production.INFO: count ==3543 [2025-02-03 10:21:19] Production.ERROR: pbx CDR StartTime 2025-02-03 07:21:04 - End Time 2025-02-03 10:21:04 [2025-02-03 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392376', 'tblTempUsageDetail_20' ) start [2025-02-03 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392376', 'tblTempUsageDetail_20' ) end [2025-02-03 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392376', 'tblTempVendorCDR_20' ) start [2025-02-03 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392376', 'tblTempVendorCDR_20' ) end [2025-02-03 10:21:20] Production.INFO: ProcessCDR(1,14392376,1,1,2) [2025-02-03 10:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392376', 'tblTempUsageDetail_20' ) start [2025-02-03 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392376', 'tblTempUsageDetail_20' ) end [2025-02-03 10:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:21:25] Production.INFO: ==16383== Releasing lock... [2025-02-03 10:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:21:25] Production.INFO: 54.75 MB #Memory Used# [2025-02-03 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:22:05 [end_date_ymd] => 2025-02-03 10:22:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:22:05' and `end` < '2025-02-03 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-02-03 10:22:24] Production.INFO: count ==3572 [2025-02-03 10:22:25] Production.ERROR: pbx CDR StartTime 2025-02-03 07:22:05 - End Time 2025-02-03 10:22:05 [2025-02-03 10:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392381', 'tblTempUsageDetail_20' ) start [2025-02-03 10:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392381', 'tblTempUsageDetail_20' ) end [2025-02-03 10:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392381', 'tblTempVendorCDR_20' ) start [2025-02-03 10:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392381', 'tblTempVendorCDR_20' ) end [2025-02-03 10:22:26] Production.INFO: ProcessCDR(1,14392381,1,1,2) [2025-02-03 10:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392381', 'tblTempUsageDetail_20' ) start [2025-02-03 10:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392381', 'tblTempUsageDetail_20' ) end [2025-02-03 10:22:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:22:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:22:30] Production.INFO: ==16461== Releasing lock... [2025-02-03 10:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:22:30] Production.INFO: 54.75 MB #Memory Used# [2025-02-03 10:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:23:06 [end_date_ymd] => 2025-02-03 10:23:06 [RateCDR] => 1 ) [2025-02-03 10: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-02-03 07:23:06' and `end` < '2025-02-03 10: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-02-03 10:23:29] Production.INFO: count ==3593 [2025-02-03 10:23:30] Production.ERROR: pbx CDR StartTime 2025-02-03 07:23:06 - End Time 2025-02-03 10:23:06 [2025-02-03 10:23:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392386', 'tblTempUsageDetail_20' ) start [2025-02-03 10:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392386', 'tblTempUsageDetail_20' ) end [2025-02-03 10:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392386', 'tblTempVendorCDR_20' ) start [2025-02-03 10:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392386', 'tblTempVendorCDR_20' ) end [2025-02-03 10:23:30] Production.INFO: ProcessCDR(1,14392386,1,1,2) [2025-02-03 10:23:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:23:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:23:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:23:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:23:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392386', 'tblTempUsageDetail_20' ) start [2025-02-03 10:23:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392386', 'tblTempUsageDetail_20' ) end [2025-02-03 10:23:35] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:23:35] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:23:35] Production.INFO: ==16547== Releasing lock... [2025-02-03 10:23:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:23:35] Production.INFO: 54.75 MB #Memory Used# [2025-02-03 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:24:05 [end_date_ymd] => 2025-02-03 10:24:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:24:05' and `end` < '2025-02-03 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-02-03 10:24:24] Production.INFO: count ==3614 [2025-02-03 10:24:25] Production.ERROR: pbx CDR StartTime 2025-02-03 07:24:05 - End Time 2025-02-03 10:24:05 [2025-02-03 10:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392391', 'tblTempUsageDetail_20' ) start [2025-02-03 10:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392391', 'tblTempUsageDetail_20' ) end [2025-02-03 10:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392391', 'tblTempVendorCDR_20' ) start [2025-02-03 10:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392391', 'tblTempVendorCDR_20' ) end [2025-02-03 10:24:25] Production.INFO: ProcessCDR(1,14392391,1,1,2) [2025-02-03 10:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:24:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:24:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392391', 'tblTempUsageDetail_20' ) start [2025-02-03 10:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392391', 'tblTempUsageDetail_20' ) end [2025-02-03 10:24:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:24:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:24:30] Production.INFO: ==16623== Releasing lock... [2025-02-03 10:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:24:30] Production.INFO: 55.5 MB #Memory Used# [2025-02-03 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:25:05 [end_date_ymd] => 2025-02-03 10:25:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:25:05' and `end` < '2025-02-03 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-02-03 10:25:20] Production.INFO: count ==3622 [2025-02-03 10:25:22] Production.ERROR: pbx CDR StartTime 2025-02-03 07:25:05 - End Time 2025-02-03 10:25:05 [2025-02-03 10:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392396', 'tblTempUsageDetail_20' ) start [2025-02-03 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392396', 'tblTempUsageDetail_20' ) end [2025-02-03 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392396', 'tblTempVendorCDR_20' ) start [2025-02-03 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392396', 'tblTempVendorCDR_20' ) end [2025-02-03 10:25:22] Production.INFO: ProcessCDR(1,14392396,1,1,2) [2025-02-03 10:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392396', 'tblTempUsageDetail_20' ) start [2025-02-03 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392396', 'tblTempUsageDetail_20' ) end [2025-02-03 10:25:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:25:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:25:26] Production.INFO: ==16705== Releasing lock... [2025-02-03 10:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:25:26] Production.INFO: 55 MB #Memory Used# [2025-02-03 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:26:05 [end_date_ymd] => 2025-02-03 10:26:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:26:05' and `end` < '2025-02-03 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-02-03 10:26:18] Production.INFO: count ==3643 [2025-02-03 10:26:20] Production.ERROR: pbx CDR StartTime 2025-02-03 07:26:05 - End Time 2025-02-03 10:26:05 [2025-02-03 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392401', 'tblTempUsageDetail_20' ) start [2025-02-03 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392401', 'tblTempUsageDetail_20' ) end [2025-02-03 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392401', 'tblTempVendorCDR_20' ) start [2025-02-03 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392401', 'tblTempVendorCDR_20' ) end [2025-02-03 10:26:20] Production.INFO: ProcessCDR(1,14392401,1,1,2) [2025-02-03 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392401', 'tblTempUsageDetail_20' ) start [2025-02-03 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392401', 'tblTempUsageDetail_20' ) end [2025-02-03 10:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:26:25] Production.INFO: ==16797== Releasing lock... [2025-02-03 10:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:26:25] Production.INFO: 55.25 MB #Memory Used# [2025-02-03 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:27:05 [end_date_ymd] => 2025-02-03 10:27:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:27:05' and `end` < '2025-02-03 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-02-03 10:27:24] Production.INFO: count ==3680 [2025-02-03 10:27:25] Production.ERROR: pbx CDR StartTime 2025-02-03 07:27:05 - End Time 2025-02-03 10:27:05 [2025-02-03 10:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392406', 'tblTempUsageDetail_20' ) start [2025-02-03 10:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392406', 'tblTempUsageDetail_20' ) end [2025-02-03 10:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392406', 'tblTempVendorCDR_20' ) start [2025-02-03 10:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392406', 'tblTempVendorCDR_20' ) end [2025-02-03 10:27:25] Production.INFO: ProcessCDR(1,14392406,1,1,2) [2025-02-03 10:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392406', 'tblTempUsageDetail_20' ) start [2025-02-03 10:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392406', 'tblTempUsageDetail_20' ) end [2025-02-03 10:27:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:27:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:27:30] Production.INFO: ==16920== Releasing lock... [2025-02-03 10:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:27:30] Production.INFO: 55.5 MB #Memory Used# [2025-02-03 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:28:05 [end_date_ymd] => 2025-02-03 10:28:05 [RateCDR] => 1 ) [2025-02-03 10: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-02-03 07:28:05' and `end` < '2025-02-03 10: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-02-03 10:28:26] Production.INFO: count ==3708 [2025-02-03 10:28:27] Production.ERROR: pbx CDR StartTime 2025-02-03 07:28:05 - End Time 2025-02-03 10:28:05 [2025-02-03 10:28:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392411', 'tblTempUsageDetail_20' ) start [2025-02-03 10:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392411', 'tblTempUsageDetail_20' ) end [2025-02-03 10:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392411', 'tblTempVendorCDR_20' ) start [2025-02-03 10:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392411', 'tblTempVendorCDR_20' ) end [2025-02-03 10:28:27] Production.INFO: ProcessCDR(1,14392411,1,1,2) [2025-02-03 10:28:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:28:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:28:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:28:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392411', 'tblTempUsageDetail_20' ) start [2025-02-03 10:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392411', 'tblTempUsageDetail_20' ) end [2025-02-03 10:28:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:28:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:28:32] Production.INFO: ==17043== Releasing lock... [2025-02-03 10:28:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:28:32] Production.INFO: 55.75 MB #Memory Used# [2025-02-03 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:29:05 [end_date_ymd] => 2025-02-03 10:29:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:29:05' and `end` < '2025-02-03 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-02-03 10:29:22] Production.INFO: count ==3778 [2025-02-03 10:29:23] Production.ERROR: pbx CDR StartTime 2025-02-03 07:29:05 - End Time 2025-02-03 10:29:05 [2025-02-03 10:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392416', 'tblTempUsageDetail_20' ) start [2025-02-03 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392416', 'tblTempUsageDetail_20' ) end [2025-02-03 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392416', 'tblTempVendorCDR_20' ) start [2025-02-03 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392416', 'tblTempVendorCDR_20' ) end [2025-02-03 10:29:23] Production.INFO: ProcessCDR(1,14392416,1,1,2) [2025-02-03 10:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392416', 'tblTempUsageDetail_20' ) start [2025-02-03 10:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392416', 'tblTempUsageDetail_20' ) end [2025-02-03 10:29:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:29:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:29:28] Production.INFO: ==17165== Releasing lock... [2025-02-03 10:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:29:28] Production.INFO: 56.25 MB #Memory Used# [2025-02-03 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:30:05 [end_date_ymd] => 2025-02-03 10:30:05 [RateCDR] => 1 ) [2025-02-03 10: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-02-03 07:30:05' and `end` < '2025-02-03 10: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-02-03 10:30:22] Production.INFO: count ==3801 [2025-02-03 10:30:24] Production.ERROR: pbx CDR StartTime 2025-02-03 07:30:05 - End Time 2025-02-03 10:30:05 [2025-02-03 10:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392422', 'tblTempUsageDetail_20' ) start [2025-02-03 10:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392422', 'tblTempUsageDetail_20' ) end [2025-02-03 10:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392422', 'tblTempVendorCDR_20' ) start [2025-02-03 10:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392422', 'tblTempVendorCDR_20' ) end [2025-02-03 10:30:24] Production.INFO: ProcessCDR(1,14392422,1,1,2) [2025-02-03 10:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392422', 'tblTempUsageDetail_20' ) start [2025-02-03 10:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392422', 'tblTempUsageDetail_20' ) end [2025-02-03 10:30:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:30:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:30:28] Production.INFO: ==17298== Releasing lock... [2025-02-03 10:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:30:28] Production.INFO: 56.25 MB #Memory Used# [2025-02-03 10:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:31:04 [end_date_ymd] => 2025-02-03 10:31:04 [RateCDR] => 1 ) [2025-02-03 10: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-02-03 07:31:04' and `end` < '2025-02-03 10: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-02-03 10:31:23] Production.INFO: count ==3914 [2025-02-03 10:31:24] Production.ERROR: pbx CDR StartTime 2025-02-03 07:31:04 - End Time 2025-02-03 10:31:04 [2025-02-03 10:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392427', 'tblTempUsageDetail_20' ) start [2025-02-03 10:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392427', 'tblTempUsageDetail_20' ) end [2025-02-03 10:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392427', 'tblTempVendorCDR_20' ) start [2025-02-03 10:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392427', 'tblTempVendorCDR_20' ) end [2025-02-03 10:31:25] Production.INFO: ProcessCDR(1,14392427,1,1,2) [2025-02-03 10:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392427', 'tblTempUsageDetail_20' ) start [2025-02-03 10:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392427', 'tblTempUsageDetail_20' ) end [2025-02-03 10:31:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:31:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:31:29] Production.INFO: ==17421== Releasing lock... [2025-02-03 10:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:31:29] Production.INFO: 57.25 MB #Memory Used# [2025-02-03 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:32:05 [end_date_ymd] => 2025-02-03 10:32:05 [RateCDR] => 1 ) [2025-02-03 10: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-02-03 07:32:05' and `end` < '2025-02-03 10: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-02-03 10:32:27] Production.INFO: count ==3937 [2025-02-03 10:32:29] Production.ERROR: pbx CDR StartTime 2025-02-03 07:32:05 - End Time 2025-02-03 10:32:05 [2025-02-03 10:32:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392432', 'tblTempUsageDetail_20' ) start [2025-02-03 10:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392432', 'tblTempUsageDetail_20' ) end [2025-02-03 10:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392432', 'tblTempVendorCDR_20' ) start [2025-02-03 10:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392432', 'tblTempVendorCDR_20' ) end [2025-02-03 10:32:29] Production.INFO: ProcessCDR(1,14392432,1,1,2) [2025-02-03 10:32:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:32:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:32:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:32:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392432', 'tblTempUsageDetail_20' ) start [2025-02-03 10:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392432', 'tblTempUsageDetail_20' ) end [2025-02-03 10:32:34] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:32:34] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:32:34] Production.INFO: ==17541== Releasing lock... [2025-02-03 10:32:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:32:34] Production.INFO: 57.25 MB #Memory Used# [2025-02-03 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:33:05 [end_date_ymd] => 2025-02-03 10:33:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:33:05' and `end` < '2025-02-03 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-02-03 10:33:23] Production.INFO: count ==3975 [2025-02-03 10:33:25] Production.ERROR: pbx CDR StartTime 2025-02-03 07:33:05 - End Time 2025-02-03 10:33:05 [2025-02-03 10:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392437', 'tblTempUsageDetail_20' ) start [2025-02-03 10:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392437', 'tblTempUsageDetail_20' ) end [2025-02-03 10:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392437', 'tblTempVendorCDR_20' ) start [2025-02-03 10:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392437', 'tblTempVendorCDR_20' ) end [2025-02-03 10:33:25] Production.INFO: ProcessCDR(1,14392437,1,1,2) [2025-02-03 10:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392437', 'tblTempUsageDetail_20' ) start [2025-02-03 10:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392437', 'tblTempUsageDetail_20' ) end [2025-02-03 10:33:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:33:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:33:29] Production.INFO: ==17666== Releasing lock... [2025-02-03 10:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:33:29] Production.INFO: 57.75 MB #Memory Used# [2025-02-03 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:34:05 [end_date_ymd] => 2025-02-03 10:34:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:34:05' and `end` < '2025-02-03 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-02-03 10:34:21] Production.INFO: count ==3997 [2025-02-03 10:34:22] Production.ERROR: pbx CDR StartTime 2025-02-03 07:34:05 - End Time 2025-02-03 10:34:05 [2025-02-03 10:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392442', 'tblTempUsageDetail_20' ) start [2025-02-03 10:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392442', 'tblTempUsageDetail_20' ) end [2025-02-03 10:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392442', 'tblTempVendorCDR_20' ) start [2025-02-03 10:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392442', 'tblTempVendorCDR_20' ) end [2025-02-03 10:34:22] Production.INFO: ProcessCDR(1,14392442,1,1,2) [2025-02-03 10:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392442', 'tblTempUsageDetail_20' ) start [2025-02-03 10:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392442', 'tblTempUsageDetail_20' ) end [2025-02-03 10:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:34:27] Production.INFO: ==17788== Releasing lock... [2025-02-03 10:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:34:27] Production.INFO: 57.75 MB #Memory Used# [2025-02-03 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:35:06 [end_date_ymd] => 2025-02-03 10:35:06 [RateCDR] => 1 ) [2025-02-03 10: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-02-03 07:35:06' and `end` < '2025-02-03 10: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-02-03 10:35:23] Production.INFO: count ==4015 [2025-02-03 10:35:25] Production.ERROR: pbx CDR StartTime 2025-02-03 07:35:06 - End Time 2025-02-03 10:35:06 [2025-02-03 10:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392447', 'tblTempUsageDetail_20' ) start [2025-02-03 10:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392447', 'tblTempUsageDetail_20' ) end [2025-02-03 10:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392447', 'tblTempVendorCDR_20' ) start [2025-02-03 10:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392447', 'tblTempVendorCDR_20' ) end [2025-02-03 10:35:25] Production.INFO: ProcessCDR(1,14392447,1,1,2) [2025-02-03 10:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392447', 'tblTempUsageDetail_20' ) start [2025-02-03 10:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392447', 'tblTempUsageDetail_20' ) end [2025-02-03 10:35:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:35:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:35:30] Production.INFO: ==17907== Releasing lock... [2025-02-03 10:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:35:30] Production.INFO: 58 MB #Memory Used# [2025-02-03 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:36:06 [end_date_ymd] => 2025-02-03 10:36:06 [RateCDR] => 1 ) [2025-02-03 10: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-02-03 07:36:06' and `end` < '2025-02-03 10: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-02-03 10:36:25] Production.INFO: count ==4031 [2025-02-03 10:36:27] Production.ERROR: pbx CDR StartTime 2025-02-03 07:36:06 - End Time 2025-02-03 10:36:06 [2025-02-03 10:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392452', 'tblTempUsageDetail_20' ) start [2025-02-03 10:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392452', 'tblTempUsageDetail_20' ) end [2025-02-03 10:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392452', 'tblTempVendorCDR_20' ) start [2025-02-03 10:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392452', 'tblTempVendorCDR_20' ) end [2025-02-03 10:36:27] Production.INFO: ProcessCDR(1,14392452,1,1,2) [2025-02-03 10:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:36:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392452', 'tblTempUsageDetail_20' ) start [2025-02-03 10:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392452', 'tblTempUsageDetail_20' ) end [2025-02-03 10:36:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:36:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:36:33] Production.INFO: ==18026== Releasing lock... [2025-02-03 10:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:36:33] Production.INFO: 58 MB #Memory Used# [2025-02-03 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:37:05 [end_date_ymd] => 2025-02-03 10:37:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:37:05' and `end` < '2025-02-03 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-02-03 10:37:29] Production.INFO: count ==4063 [2025-02-03 10:37:31] Production.ERROR: pbx CDR StartTime 2025-02-03 07:37:05 - End Time 2025-02-03 10:37:05 [2025-02-03 10:37:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392457', 'tblTempUsageDetail_20' ) start [2025-02-03 10:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392457', 'tblTempUsageDetail_20' ) end [2025-02-03 10:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392457', 'tblTempVendorCDR_20' ) start [2025-02-03 10:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392457', 'tblTempVendorCDR_20' ) end [2025-02-03 10:37:31] Production.INFO: ProcessCDR(1,14392457,1,1,2) [2025-02-03 10:37:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:37:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:37:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:37:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:37:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392457', 'tblTempUsageDetail_20' ) start [2025-02-03 10:37:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392457', 'tblTempUsageDetail_20' ) end [2025-02-03 10:37:36] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:37:36] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:37:36] Production.INFO: ==18173== Releasing lock... [2025-02-03 10:37:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:37:36] Production.INFO: 58.25 MB #Memory Used# [2025-02-03 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:38:05 [end_date_ymd] => 2025-02-03 10:38:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:38:05' and `end` < '2025-02-03 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-02-03 10:38:21] Production.INFO: count ==4092 [2025-02-03 10:38:22] Production.ERROR: pbx CDR StartTime 2025-02-03 07:38:05 - End Time 2025-02-03 10:38:05 [2025-02-03 10:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392462', 'tblTempUsageDetail_20' ) start [2025-02-03 10:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392462', 'tblTempUsageDetail_20' ) end [2025-02-03 10:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392462', 'tblTempVendorCDR_20' ) start [2025-02-03 10:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392462', 'tblTempVendorCDR_20' ) end [2025-02-03 10:38:22] Production.INFO: ProcessCDR(1,14392462,1,1,2) [2025-02-03 10:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392462', 'tblTempUsageDetail_20' ) start [2025-02-03 10:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392462', 'tblTempUsageDetail_20' ) end [2025-02-03 10:38:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:38:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:38:27] Production.INFO: ==18249== Releasing lock... [2025-02-03 10:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:38:27] Production.INFO: 58.5 MB #Memory Used# [2025-02-03 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:39:05 [end_date_ymd] => 2025-02-03 10:39:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:39:05' and `end` < '2025-02-03 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-02-03 10:39:19] Production.INFO: count ==4110 [2025-02-03 10:39:21] Production.ERROR: pbx CDR StartTime 2025-02-03 07:39:05 - End Time 2025-02-03 10:39:05 [2025-02-03 10:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392467', 'tblTempUsageDetail_20' ) start [2025-02-03 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392467', 'tblTempUsageDetail_20' ) end [2025-02-03 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392467', 'tblTempVendorCDR_20' ) start [2025-02-03 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392467', 'tblTempVendorCDR_20' ) end [2025-02-03 10:39:21] Production.INFO: ProcessCDR(1,14392467,1,1,2) [2025-02-03 10:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392467', 'tblTempUsageDetail_20' ) start [2025-02-03 10:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392467', 'tblTempUsageDetail_20' ) end [2025-02-03 10:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:39:26] Production.INFO: ==18323== Releasing lock... [2025-02-03 10:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:39:26] Production.INFO: 58.75 MB #Memory Used# [2025-02-03 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:40:06 [end_date_ymd] => 2025-02-03 10:40:06 [RateCDR] => 1 ) [2025-02-03 10: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-02-03 07:40:06' and `end` < '2025-02-03 10: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-02-03 10:40:30] Production.INFO: count ==4127 [2025-02-03 10:40:32] Production.ERROR: pbx CDR StartTime 2025-02-03 07:40:06 - End Time 2025-02-03 10:40:06 [2025-02-03 10:40:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392473', 'tblTempUsageDetail_20' ) start [2025-02-03 10:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392473', 'tblTempUsageDetail_20' ) end [2025-02-03 10:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392473', 'tblTempVendorCDR_20' ) start [2025-02-03 10:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392473', 'tblTempVendorCDR_20' ) end [2025-02-03 10:40:32] Production.INFO: ProcessCDR(1,14392473,1,1,2) [2025-02-03 10:40:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:40:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:40:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:40:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392473', 'tblTempUsageDetail_20' ) start [2025-02-03 10:40:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392473', 'tblTempUsageDetail_20' ) end [2025-02-03 10:40:37] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:40:37] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:40:37] Production.INFO: ==18397== Releasing lock... [2025-02-03 10:40:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:40:37] Production.INFO: 58.75 MB #Memory Used# [2025-02-03 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:41:05 [end_date_ymd] => 2025-02-03 10:41:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:41:05' and `end` < '2025-02-03 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-02-03 10:41:27] Production.INFO: count ==4222 [2025-02-03 10:41:29] Production.ERROR: pbx CDR StartTime 2025-02-03 07:41:05 - End Time 2025-02-03 10:41:05 [2025-02-03 10:41:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392478', 'tblTempUsageDetail_20' ) start [2025-02-03 10:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392478', 'tblTempUsageDetail_20' ) end [2025-02-03 10:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392478', 'tblTempVendorCDR_20' ) start [2025-02-03 10:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392478', 'tblTempVendorCDR_20' ) end [2025-02-03 10:41:29] Production.INFO: ProcessCDR(1,14392478,1,1,2) [2025-02-03 10:41:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:41:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:41:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:41:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:41:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392478', 'tblTempUsageDetail_20' ) start [2025-02-03 10:41:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392478', 'tblTempUsageDetail_20' ) end [2025-02-03 10:41:34] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:41:34] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:41:34] Production.INFO: ==18475== Releasing lock... [2025-02-03 10:41:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:41:34] Production.INFO: 59.5 MB #Memory Used# [2025-02-03 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:42:05 [end_date_ymd] => 2025-02-03 10:42:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:42:05' and `end` < '2025-02-03 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-02-03 10:42:25] Production.INFO: count ==4243 [2025-02-03 10:42:27] Production.ERROR: pbx CDR StartTime 2025-02-03 07:42:05 - End Time 2025-02-03 10:42:05 [2025-02-03 10:42:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392483', 'tblTempUsageDetail_20' ) start [2025-02-03 10:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392483', 'tblTempUsageDetail_20' ) end [2025-02-03 10:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392483', 'tblTempVendorCDR_20' ) start [2025-02-03 10:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392483', 'tblTempVendorCDR_20' ) end [2025-02-03 10:42:27] Production.INFO: ProcessCDR(1,14392483,1,1,2) [2025-02-03 10:42:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392483', 'tblTempUsageDetail_20' ) start [2025-02-03 10:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392483', 'tblTempUsageDetail_20' ) end [2025-02-03 10:42:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:42:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:42:32] Production.INFO: ==18554== Releasing lock... [2025-02-03 10:42:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:42:32] Production.INFO: 59.75 MB #Memory Used# [2025-02-03 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:43:05 [end_date_ymd] => 2025-02-03 10:43:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:43:05' and `end` < '2025-02-03 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-02-03 10:43:24] Production.INFO: count ==4262 [2025-02-03 10:43:26] Production.ERROR: pbx CDR StartTime 2025-02-03 07:43:05 - End Time 2025-02-03 10:43:05 [2025-02-03 10:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392488', 'tblTempUsageDetail_20' ) start [2025-02-03 10:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392488', 'tblTempUsageDetail_20' ) end [2025-02-03 10:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392488', 'tblTempVendorCDR_20' ) start [2025-02-03 10:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392488', 'tblTempVendorCDR_20' ) end [2025-02-03 10:43:26] Production.INFO: ProcessCDR(1,14392488,1,1,2) [2025-02-03 10:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392488', 'tblTempUsageDetail_20' ) start [2025-02-03 10:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392488', 'tblTempUsageDetail_20' ) end [2025-02-03 10:43:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:43:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:43:30] Production.INFO: ==18627== Releasing lock... [2025-02-03 10:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:43:30] Production.INFO: 59.75 MB #Memory Used# [2025-02-03 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:44:05 [end_date_ymd] => 2025-02-03 10:44:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:44:05' and `end` < '2025-02-03 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-02-03 10:44:22] Production.INFO: count ==4285 [2025-02-03 10:44:24] Production.ERROR: pbx CDR StartTime 2025-02-03 07:44:05 - End Time 2025-02-03 10:44:05 [2025-02-03 10:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392493', 'tblTempUsageDetail_20' ) start [2025-02-03 10:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392493', 'tblTempUsageDetail_20' ) end [2025-02-03 10:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392493', 'tblTempVendorCDR_20' ) start [2025-02-03 10:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392493', 'tblTempVendorCDR_20' ) end [2025-02-03 10:44:24] Production.INFO: ProcessCDR(1,14392493,1,1,2) [2025-02-03 10:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392493', 'tblTempUsageDetail_20' ) start [2025-02-03 10:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392493', 'tblTempUsageDetail_20' ) end [2025-02-03 10:44:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:44:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:44:29] Production.INFO: ==18701== Releasing lock... [2025-02-03 10:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:44:29] Production.INFO: 60 MB #Memory Used# [2025-02-03 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:45:05 [end_date_ymd] => 2025-02-03 10:45:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:45:05' and `end` < '2025-02-03 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-02-03 10:45:28] Production.INFO: count ==4296 [2025-02-03 10:45:29] Production.ERROR: pbx CDR StartTime 2025-02-03 07:45:05 - End Time 2025-02-03 10:45:05 [2025-02-03 10:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392498', 'tblTempUsageDetail_20' ) start [2025-02-03 10:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392498', 'tblTempUsageDetail_20' ) end [2025-02-03 10:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392498', 'tblTempVendorCDR_20' ) start [2025-02-03 10:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392498', 'tblTempVendorCDR_20' ) end [2025-02-03 10:45:29] Production.INFO: ProcessCDR(1,14392498,1,1,2) [2025-02-03 10:45:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:45:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:45:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:45:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392498', 'tblTempUsageDetail_20' ) start [2025-02-03 10:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392498', 'tblTempUsageDetail_20' ) end [2025-02-03 10:45:34] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:45:34] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:45:34] Production.INFO: ==18779== Releasing lock... [2025-02-03 10:45:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:45:34] Production.INFO: 60 MB #Memory Used# [2025-02-03 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:46:05 [end_date_ymd] => 2025-02-03 10:46:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:46:05' and `end` < '2025-02-03 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-02-03 10:46:22] Production.INFO: count ==4313 [2025-02-03 10:46:24] Production.ERROR: pbx CDR StartTime 2025-02-03 07:46:05 - End Time 2025-02-03 10:46:05 [2025-02-03 10:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392503', 'tblTempUsageDetail_20' ) start [2025-02-03 10:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392503', 'tblTempUsageDetail_20' ) end [2025-02-03 10:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392503', 'tblTempVendorCDR_20' ) start [2025-02-03 10:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392503', 'tblTempVendorCDR_20' ) end [2025-02-03 10:46:24] Production.INFO: ProcessCDR(1,14392503,1,1,2) [2025-02-03 10:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392503', 'tblTempUsageDetail_20' ) start [2025-02-03 10:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392503', 'tblTempUsageDetail_20' ) end [2025-02-03 10:46:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:46:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:46:29] Production.INFO: ==18857== Releasing lock... [2025-02-03 10:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:46:29] Production.INFO: 60.25 MB #Memory Used# [2025-02-03 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:47:05 [end_date_ymd] => 2025-02-03 10:47:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:47:05' and `end` < '2025-02-03 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-02-03 10:47:21] Production.INFO: count ==4319 [2025-02-03 10:47:23] Production.ERROR: pbx CDR StartTime 2025-02-03 07:47:05 - End Time 2025-02-03 10:47:05 [2025-02-03 10:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392508', 'tblTempUsageDetail_20' ) start [2025-02-03 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392508', 'tblTempUsageDetail_20' ) end [2025-02-03 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392508', 'tblTempVendorCDR_20' ) start [2025-02-03 10:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392508', 'tblTempVendorCDR_20' ) end [2025-02-03 10:47:23] Production.INFO: ProcessCDR(1,14392508,1,1,2) [2025-02-03 10:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392508', 'tblTempUsageDetail_20' ) start [2025-02-03 10:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392508', 'tblTempUsageDetail_20' ) end [2025-02-03 10:47:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:47:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:47:28] Production.INFO: ==18931== Releasing lock... [2025-02-03 10:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:47:28] Production.INFO: 60.25 MB #Memory Used# [2025-02-03 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:48:05 [end_date_ymd] => 2025-02-03 10:48:05 [RateCDR] => 1 ) [2025-02-03 10: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-02-03 07:48:05' and `end` < '2025-02-03 10: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-02-03 10:48:20] Production.INFO: count ==4334 [2025-02-03 10:48:22] Production.ERROR: pbx CDR StartTime 2025-02-03 07:48:05 - End Time 2025-02-03 10:48:05 [2025-02-03 10:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392513', 'tblTempUsageDetail_20' ) start [2025-02-03 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392513', 'tblTempUsageDetail_20' ) end [2025-02-03 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392513', 'tblTempVendorCDR_20' ) start [2025-02-03 10:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392513', 'tblTempVendorCDR_20' ) end [2025-02-03 10:48:22] Production.INFO: ProcessCDR(1,14392513,1,1,2) [2025-02-03 10:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392513', 'tblTempUsageDetail_20' ) start [2025-02-03 10:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392513', 'tblTempUsageDetail_20' ) end [2025-02-03 10:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:48:27] Production.INFO: ==19002== Releasing lock... [2025-02-03 10:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:48:27] Production.INFO: 60.5 MB #Memory Used# [2025-02-03 10:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:49:06 [end_date_ymd] => 2025-02-03 10:49:06 [RateCDR] => 1 ) [2025-02-03 10:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 07:49:06' and `end` < '2025-02-03 10:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 10:49:24] Production.INFO: count ==4379 [2025-02-03 10:49:26] Production.ERROR: pbx CDR StartTime 2025-02-03 07:49:06 - End Time 2025-02-03 10:49:06 [2025-02-03 10:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392518', 'tblTempUsageDetail_20' ) start [2025-02-03 10:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392518', 'tblTempUsageDetail_20' ) end [2025-02-03 10:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392518', 'tblTempVendorCDR_20' ) start [2025-02-03 10:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392518', 'tblTempVendorCDR_20' ) end [2025-02-03 10:49:26] Production.INFO: ProcessCDR(1,14392518,1,1,2) [2025-02-03 10:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392518', 'tblTempUsageDetail_20' ) start [2025-02-03 10:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392518', 'tblTempUsageDetail_20' ) end [2025-02-03 10:49:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:49:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:49:31] Production.INFO: ==19077== Releasing lock... [2025-02-03 10:49:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:49:31] Production.INFO: 60.75 MB #Memory Used# [2025-02-03 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:50:05 [end_date_ymd] => 2025-02-03 10:50:05 [RateCDR] => 1 ) [2025-02-03 10: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-02-03 07:50:05' and `end` < '2025-02-03 10: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-02-03 10:50:27] Production.INFO: count ==4387 [2025-02-03 10:50:29] Production.ERROR: pbx CDR StartTime 2025-02-03 07:50:05 - End Time 2025-02-03 10:50:05 [2025-02-03 10:50:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392524', 'tblTempUsageDetail_20' ) start [2025-02-03 10:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392524', 'tblTempUsageDetail_20' ) end [2025-02-03 10:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392524', 'tblTempVendorCDR_20' ) start [2025-02-03 10:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392524', 'tblTempVendorCDR_20' ) end [2025-02-03 10:50:29] Production.INFO: ProcessCDR(1,14392524,1,1,2) [2025-02-03 10:50:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392524', 'tblTempUsageDetail_20' ) start [2025-02-03 10:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392524', 'tblTempUsageDetail_20' ) end [2025-02-03 10:50:34] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:50:34] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:50:34] Production.INFO: ==19158== Releasing lock... [2025-02-03 10:50:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:50:34] Production.INFO: 60.75 MB #Memory Used# [2025-02-03 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:51:05 [end_date_ymd] => 2025-02-03 10:51:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:51:05' and `end` < '2025-02-03 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-02-03 10:51:24] Production.INFO: count ==4478 [2025-02-03 10:51:26] Production.ERROR: pbx CDR StartTime 2025-02-03 07:51:05 - End Time 2025-02-03 10:51:05 [2025-02-03 10:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392529', 'tblTempUsageDetail_20' ) start [2025-02-03 10:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392529', 'tblTempUsageDetail_20' ) end [2025-02-03 10:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392529', 'tblTempVendorCDR_20' ) start [2025-02-03 10:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392529', 'tblTempVendorCDR_20' ) end [2025-02-03 10:51:27] Production.INFO: ProcessCDR(1,14392529,1,1,2) [2025-02-03 10:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392529', 'tblTempUsageDetail_20' ) start [2025-02-03 10:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392529', 'tblTempUsageDetail_20' ) end [2025-02-03 10:51:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:51:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:51:31] Production.INFO: ==19231== Releasing lock... [2025-02-03 10:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:51:31] Production.INFO: 61.5 MB #Memory Used# [2025-02-03 10:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:52:04 [end_date_ymd] => 2025-02-03 10:52:04 [RateCDR] => 1 ) [2025-02-03 10: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-02-03 07:52:04' and `end` < '2025-02-03 10: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-02-03 10:52:25] Production.INFO: count ==4499 [2025-02-03 10:52:27] Production.ERROR: pbx CDR StartTime 2025-02-03 07:52:04 - End Time 2025-02-03 10:52:04 [2025-02-03 10:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392534', 'tblTempUsageDetail_20' ) start [2025-02-03 10:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392534', 'tblTempUsageDetail_20' ) end [2025-02-03 10:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392534', 'tblTempVendorCDR_20' ) start [2025-02-03 10:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392534', 'tblTempVendorCDR_20' ) end [2025-02-03 10:52:27] Production.INFO: ProcessCDR(1,14392534,1,1,2) [2025-02-03 10:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392534', 'tblTempUsageDetail_20' ) start [2025-02-03 10:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392534', 'tblTempUsageDetail_20' ) end [2025-02-03 10:52:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:52:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:52:31] Production.INFO: ==19345== Releasing lock... [2025-02-03 10:52:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:52:31] Production.INFO: 61.5 MB #Memory Used# [2025-02-03 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:53:05 [end_date_ymd] => 2025-02-03 10:53:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:53:05' and `end` < '2025-02-03 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-02-03 10:53:23] Production.INFO: count ==4513 [2025-02-03 10:53:25] Production.ERROR: pbx CDR StartTime 2025-02-03 07:53:05 - End Time 2025-02-03 10:53:05 [2025-02-03 10:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392539', 'tblTempUsageDetail_20' ) start [2025-02-03 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392539', 'tblTempUsageDetail_20' ) end [2025-02-03 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392539', 'tblTempVendorCDR_20' ) start [2025-02-03 10:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392539', 'tblTempVendorCDR_20' ) end [2025-02-03 10:53:25] Production.INFO: ProcessCDR(1,14392539,1,1,2) [2025-02-03 10:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392539', 'tblTempUsageDetail_20' ) start [2025-02-03 10:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392539', 'tblTempUsageDetail_20' ) end [2025-02-03 10:53:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:53:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:53:30] Production.INFO: ==19420== Releasing lock... [2025-02-03 10:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:53:30] Production.INFO: 61.75 MB #Memory Used# [2025-02-03 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:54:05 [end_date_ymd] => 2025-02-03 10:54:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:54:05' and `end` < '2025-02-03 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-02-03 10:54:19] Production.INFO: count ==4516 [2025-02-03 10:54:21] Production.ERROR: pbx CDR StartTime 2025-02-03 07:54:05 - End Time 2025-02-03 10:54:05 [2025-02-03 10:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392544', 'tblTempUsageDetail_20' ) start [2025-02-03 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392544', 'tblTempUsageDetail_20' ) end [2025-02-03 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392544', 'tblTempVendorCDR_20' ) start [2025-02-03 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392544', 'tblTempVendorCDR_20' ) end [2025-02-03 10:54:21] Production.INFO: ProcessCDR(1,14392544,1,1,2) [2025-02-03 10:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392544', 'tblTempUsageDetail_20' ) start [2025-02-03 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392544', 'tblTempUsageDetail_20' ) end [2025-02-03 10:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:54:26] Production.INFO: ==19494== Releasing lock... [2025-02-03 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:54:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-03 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:55:05 [end_date_ymd] => 2025-02-03 10:55:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:55:05' and `end` < '2025-02-03 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-02-03 10:55:23] Production.INFO: count ==4521 [2025-02-03 10:55:25] Production.ERROR: pbx CDR StartTime 2025-02-03 07:55:05 - End Time 2025-02-03 10:55:05 [2025-02-03 10:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392549', 'tblTempUsageDetail_20' ) start [2025-02-03 10:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392549', 'tblTempUsageDetail_20' ) end [2025-02-03 10:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392549', 'tblTempVendorCDR_20' ) start [2025-02-03 10:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392549', 'tblTempVendorCDR_20' ) end [2025-02-03 10:55:25] Production.INFO: ProcessCDR(1,14392549,1,1,2) [2025-02-03 10:55:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392549', 'tblTempUsageDetail_20' ) start [2025-02-03 10:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392549', 'tblTempUsageDetail_20' ) end [2025-02-03 10:55:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:55:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:55:30] Production.INFO: ==19566== Releasing lock... [2025-02-03 10:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:55:30] Production.INFO: 61.75 MB #Memory Used# [2025-02-03 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:56:06 [end_date_ymd] => 2025-02-03 10:56:06 [RateCDR] => 1 ) [2025-02-03 10: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-02-03 07:56:06' and `end` < '2025-02-03 10: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-02-03 10:56:33] Production.INFO: count ==4537 [2025-02-03 10:56:35] Production.ERROR: pbx CDR StartTime 2025-02-03 07:56:06 - End Time 2025-02-03 10:56:06 [2025-02-03 10:56:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:56:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392554', 'tblTempUsageDetail_20' ) start [2025-02-03 10:56:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392554', 'tblTempUsageDetail_20' ) end [2025-02-03 10:56:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392554', 'tblTempVendorCDR_20' ) start [2025-02-03 10:56:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392554', 'tblTempVendorCDR_20' ) end [2025-02-03 10:56:35] Production.INFO: ProcessCDR(1,14392554,1,1,2) [2025-02-03 10:56:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:56:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:56:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:56:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:56:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392554', 'tblTempUsageDetail_20' ) start [2025-02-03 10:56:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392554', 'tblTempUsageDetail_20' ) end [2025-02-03 10:56:40] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:56:40] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:56:40] Production.INFO: ==19643== Releasing lock... [2025-02-03 10:56:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:56:40] Production.INFO: 62 MB #Memory Used# [2025-02-03 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:57:05 [end_date_ymd] => 2025-02-03 10:57:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:57:05' and `end` < '2025-02-03 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-02-03 10:57:23] Production.INFO: count ==4554 [2025-02-03 10:57:25] Production.ERROR: pbx CDR StartTime 2025-02-03 07:57:05 - End Time 2025-02-03 10:57:05 [2025-02-03 10:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392559', 'tblTempUsageDetail_20' ) start [2025-02-03 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392559', 'tblTempUsageDetail_20' ) end [2025-02-03 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392559', 'tblTempVendorCDR_20' ) start [2025-02-03 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392559', 'tblTempVendorCDR_20' ) end [2025-02-03 10:57:25] Production.INFO: ProcessCDR(1,14392559,1,1,2) [2025-02-03 10:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392559', 'tblTempUsageDetail_20' ) start [2025-02-03 10:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392559', 'tblTempUsageDetail_20' ) end [2025-02-03 10:57:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:57:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:57:30] Production.INFO: ==19717== Releasing lock... [2025-02-03 10:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:57:30] Production.INFO: 62 MB #Memory Used# [2025-02-03 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:58:05 [end_date_ymd] => 2025-02-03 10:58:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:58:05' and `end` < '2025-02-03 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-02-03 10:58:22] Production.INFO: count ==4560 [2025-02-03 10:58:24] Production.ERROR: pbx CDR StartTime 2025-02-03 07:58:05 - End Time 2025-02-03 10:58:05 [2025-02-03 10:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392564', 'tblTempUsageDetail_20' ) start [2025-02-03 10:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392564', 'tblTempUsageDetail_20' ) end [2025-02-03 10:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392564', 'tblTempVendorCDR_20' ) start [2025-02-03 10:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392564', 'tblTempVendorCDR_20' ) end [2025-02-03 10:58:25] Production.INFO: ProcessCDR(1,14392564,1,1,2) [2025-02-03 10:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392564', 'tblTempUsageDetail_20' ) start [2025-02-03 10:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392564', 'tblTempUsageDetail_20' ) end [2025-02-03 10:58:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:58:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:58:29] Production.INFO: ==19790== Releasing lock... [2025-02-03 10:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:58:29] Production.INFO: 62 MB #Memory Used# [2025-02-03 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 07:59:05 [end_date_ymd] => 2025-02-03 10:59:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 07:59:05' and `end` < '2025-02-03 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-02-03 10:59:22] Production.INFO: count ==4577 [2025-02-03 10:59:24] Production.ERROR: pbx CDR StartTime 2025-02-03 07:59:05 - End Time 2025-02-03 10:59:05 [2025-02-03 10:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 10:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392569', 'tblTempUsageDetail_20' ) start [2025-02-03 10:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392569', 'tblTempUsageDetail_20' ) end [2025-02-03 10:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392569', 'tblTempVendorCDR_20' ) start [2025-02-03 10:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392569', 'tblTempVendorCDR_20' ) end [2025-02-03 10:59:24] Production.INFO: ProcessCDR(1,14392569,1,1,2) [2025-02-03 10:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 10:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 10:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392569', 'tblTempUsageDetail_20' ) start [2025-02-03 10:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392569', 'tblTempUsageDetail_20' ) end [2025-02-03 10:59:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 10:59:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 10:59:30] Production.INFO: ==19861== Releasing lock... [2025-02-03 10:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 10:59:30] Production.INFO: 62.25 MB #Memory Used# [2025-02-03 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:00:06 [end_date_ymd] => 2025-02-03 11:00:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:00:06' and `end` < '2025-02-03 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-02-03 11:00:27] Production.INFO: count ==4613 [2025-02-03 11:00:29] Production.ERROR: pbx CDR StartTime 2025-02-03 08:00:06 - End Time 2025-02-03 11:00:06 [2025-02-03 11:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392575', 'tblTempUsageDetail_20' ) start [2025-02-03 11:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392575', 'tblTempUsageDetail_20' ) end [2025-02-03 11:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392575', 'tblTempVendorCDR_20' ) start [2025-02-03 11:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392575', 'tblTempVendorCDR_20' ) end [2025-02-03 11:00:29] Production.INFO: ProcessCDR(1,14392575,1,1,2) [2025-02-03 11:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392575', 'tblTempUsageDetail_20' ) start [2025-02-03 11:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392575', 'tblTempUsageDetail_20' ) end [2025-02-03 11:00:34] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:00:34] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:00:34] Production.INFO: ==19940== Releasing lock... [2025-02-03 11:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:00:34] Production.INFO: 62.5 MB #Memory Used# [2025-02-03 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:01:05 [end_date_ymd] => 2025-02-03 11:01:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:01:05' and `end` < '2025-02-03 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-02-03 11:01:22] Production.INFO: count ==4699 [2025-02-03 11:01:24] Production.ERROR: pbx CDR StartTime 2025-02-03 08:01:05 - End Time 2025-02-03 11:01:05 [2025-02-03 11:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392580', 'tblTempUsageDetail_20' ) start [2025-02-03 11:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392580', 'tblTempUsageDetail_20' ) end [2025-02-03 11:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392580', 'tblTempVendorCDR_20' ) start [2025-02-03 11:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392580', 'tblTempVendorCDR_20' ) end [2025-02-03 11:01:24] Production.INFO: ProcessCDR(1,14392580,1,1,2) [2025-02-03 11:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392580', 'tblTempUsageDetail_20' ) start [2025-02-03 11:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392580', 'tblTempUsageDetail_20' ) end [2025-02-03 11:01:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:01:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:01:28] Production.INFO: ==20024== Releasing lock... [2025-02-03 11:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:01:28] Production.INFO: 63 MB #Memory Used# [2025-02-03 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:02:06 [end_date_ymd] => 2025-02-03 11:02:06 [RateCDR] => 1 ) [2025-02-03 11: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-02-03 08:02:06' and `end` < '2025-02-03 11: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-02-03 11:02:24] Production.INFO: count ==4698 [2025-02-03 11:02:26] Production.ERROR: pbx CDR StartTime 2025-02-03 08:02:06 - End Time 2025-02-03 11:02:06 [2025-02-03 11:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392585', 'tblTempUsageDetail_20' ) start [2025-02-03 11:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392585', 'tblTempUsageDetail_20' ) end [2025-02-03 11:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392585', 'tblTempVendorCDR_20' ) start [2025-02-03 11:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392585', 'tblTempVendorCDR_20' ) end [2025-02-03 11:02:26] Production.INFO: ProcessCDR(1,14392585,1,1,2) [2025-02-03 11:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392585', 'tblTempUsageDetail_20' ) start [2025-02-03 11:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392585', 'tblTempUsageDetail_20' ) end [2025-02-03 11:02:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:02:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:02:31] Production.INFO: ==20182== Releasing lock... [2025-02-03 11:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:02:31] Production.INFO: 63 MB #Memory Used# [2025-02-03 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:03:05 [end_date_ymd] => 2025-02-03 11:03:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:03:05' and `end` < '2025-02-03 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-02-03 11:03:25] Production.INFO: count ==4709 [2025-02-03 11:03:27] Production.ERROR: pbx CDR StartTime 2025-02-03 08:03:05 - End Time 2025-02-03 11:03:05 [2025-02-03 11:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392590', 'tblTempUsageDetail_20' ) start [2025-02-03 11:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392590', 'tblTempUsageDetail_20' ) end [2025-02-03 11:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392590', 'tblTempVendorCDR_20' ) start [2025-02-03 11:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392590', 'tblTempVendorCDR_20' ) end [2025-02-03 11:03:27] Production.INFO: ProcessCDR(1,14392590,1,1,2) [2025-02-03 11:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392590', 'tblTempUsageDetail_20' ) start [2025-02-03 11:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392590', 'tblTempUsageDetail_20' ) end [2025-02-03 11:03:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:03:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:03:32] Production.INFO: ==20253== Releasing lock... [2025-02-03 11:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:03:32] Production.INFO: 63.25 MB #Memory Used# [2025-02-03 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:04:06 [end_date_ymd] => 2025-02-03 11:04:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:04:06' and `end` < '2025-02-03 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-02-03 11:04:24] Production.INFO: count ==4686 [2025-02-03 11:04:26] Production.ERROR: pbx CDR StartTime 2025-02-03 08:04:06 - End Time 2025-02-03 11:04:06 [2025-02-03 11:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392595', 'tblTempUsageDetail_20' ) start [2025-02-03 11:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392595', 'tblTempUsageDetail_20' ) end [2025-02-03 11:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392595', 'tblTempVendorCDR_20' ) start [2025-02-03 11:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392595', 'tblTempVendorCDR_20' ) end [2025-02-03 11:04:26] Production.INFO: ProcessCDR(1,14392595,1,1,2) [2025-02-03 11:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392595', 'tblTempUsageDetail_20' ) start [2025-02-03 11:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392595', 'tblTempUsageDetail_20' ) end [2025-02-03 11:04:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:04:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:04:31] Production.INFO: ==20328== Releasing lock... [2025-02-03 11:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:04:31] Production.INFO: 63 MB #Memory Used# [2025-02-03 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:05:05 [end_date_ymd] => 2025-02-03 11:05:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:05:05' and `end` < '2025-02-03 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-02-03 11:05:21] Production.INFO: count ==4687 [2025-02-03 11:05:23] Production.ERROR: pbx CDR StartTime 2025-02-03 08:05:05 - End Time 2025-02-03 11:05:05 [2025-02-03 11:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392600', 'tblTempUsageDetail_20' ) start [2025-02-03 11:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392600', 'tblTempUsageDetail_20' ) end [2025-02-03 11:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392600', 'tblTempVendorCDR_20' ) start [2025-02-03 11:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392600', 'tblTempVendorCDR_20' ) end [2025-02-03 11:05:23] Production.INFO: ProcessCDR(1,14392600,1,1,2) [2025-02-03 11:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392600', 'tblTempUsageDetail_20' ) start [2025-02-03 11:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392600', 'tblTempUsageDetail_20' ) end [2025-02-03 11:05:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:05:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:05:28] Production.INFO: ==20477== Releasing lock... [2025-02-03 11:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:05:28] Production.INFO: 63 MB #Memory Used# [2025-02-03 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:06:05 [end_date_ymd] => 2025-02-03 11:06:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:06:05' and `end` < '2025-02-03 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-02-03 11:06:24] Production.INFO: count ==4694 [2025-02-03 11:06:26] Production.ERROR: pbx CDR StartTime 2025-02-03 08:06:05 - End Time 2025-02-03 11:06:05 [2025-02-03 11:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392605', 'tblTempUsageDetail_20' ) start [2025-02-03 11:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392605', 'tblTempUsageDetail_20' ) end [2025-02-03 11:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392605', 'tblTempVendorCDR_20' ) start [2025-02-03 11:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392605', 'tblTempVendorCDR_20' ) end [2025-02-03 11:06:26] Production.INFO: ProcessCDR(1,14392605,1,1,2) [2025-02-03 11:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392605', 'tblTempUsageDetail_20' ) start [2025-02-03 11:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392605', 'tblTempUsageDetail_20' ) end [2025-02-03 11:06:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:06:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:06:31] Production.INFO: ==20572== Releasing lock... [2025-02-03 11:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:06:31] Production.INFO: 63 MB #Memory Used# [2025-02-03 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:07:05 [end_date_ymd] => 2025-02-03 11:07:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:07:05' and `end` < '2025-02-03 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-02-03 11:07:22] Production.INFO: count ==4702 [2025-02-03 11:07:24] Production.ERROR: pbx CDR StartTime 2025-02-03 08:07:05 - End Time 2025-02-03 11:07:05 [2025-02-03 11:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392610', 'tblTempUsageDetail_20' ) start [2025-02-03 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392610', 'tblTempUsageDetail_20' ) end [2025-02-03 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392610', 'tblTempVendorCDR_20' ) start [2025-02-03 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392610', 'tblTempVendorCDR_20' ) end [2025-02-03 11:07:24] Production.INFO: ProcessCDR(1,14392610,1,1,2) [2025-02-03 11:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392610', 'tblTempUsageDetail_20' ) start [2025-02-03 11:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392610', 'tblTempUsageDetail_20' ) end [2025-02-03 11:07:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:07:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:07:29] Production.INFO: ==20643== Releasing lock... [2025-02-03 11:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:07:29] Production.INFO: 63.25 MB #Memory Used# [2025-02-03 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:08:05 [end_date_ymd] => 2025-02-03 11:08:05 [RateCDR] => 1 ) [2025-02-03 11: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-02-03 08:08:05' and `end` < '2025-02-03 11: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-02-03 11:08:18] Production.INFO: count ==4700 [2025-02-03 11:08:20] Production.ERROR: pbx CDR StartTime 2025-02-03 08:08:05 - End Time 2025-02-03 11:08:05 [2025-02-03 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392615', 'tblTempUsageDetail_20' ) start [2025-02-03 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392615', 'tblTempUsageDetail_20' ) end [2025-02-03 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392615', 'tblTempVendorCDR_20' ) start [2025-02-03 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392615', 'tblTempVendorCDR_20' ) end [2025-02-03 11:08:21] Production.INFO: ProcessCDR(1,14392615,1,1,2) [2025-02-03 11:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392615', 'tblTempUsageDetail_20' ) start [2025-02-03 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392615', 'tblTempUsageDetail_20' ) end [2025-02-03 11:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:08:25] Production.INFO: ==20755== Releasing lock... [2025-02-03 11:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:08:25] Production.INFO: 63.25 MB #Memory Used# [2025-02-03 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:09:05 [end_date_ymd] => 2025-02-03 11:09:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:09:05' and `end` < '2025-02-03 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-02-03 11:09:24] Production.INFO: count ==4712 [2025-02-03 11:09:26] Production.ERROR: pbx CDR StartTime 2025-02-03 08:09:05 - End Time 2025-02-03 11:09:05 [2025-02-03 11:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392620', 'tblTempUsageDetail_20' ) start [2025-02-03 11:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392620', 'tblTempUsageDetail_20' ) end [2025-02-03 11:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392620', 'tblTempVendorCDR_20' ) start [2025-02-03 11:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392620', 'tblTempVendorCDR_20' ) end [2025-02-03 11:09:26] Production.INFO: ProcessCDR(1,14392620,1,1,2) [2025-02-03 11:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392620', 'tblTempUsageDetail_20' ) start [2025-02-03 11:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392620', 'tblTempUsageDetail_20' ) end [2025-02-03 11:09:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:09:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:09:31] Production.INFO: ==20904== Releasing lock... [2025-02-03 11:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:09:31] Production.INFO: 63.25 MB #Memory Used# [2025-02-03 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:10:06 [end_date_ymd] => 2025-02-03 11:10:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:10:06' and `end` < '2025-02-03 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-02-03 11:10:25] Production.INFO: count ==4718 [2025-02-03 11:10:27] Production.ERROR: pbx CDR StartTime 2025-02-03 08:10:06 - End Time 2025-02-03 11:10:06 [2025-02-03 11:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392626', 'tblTempUsageDetail_20' ) start [2025-02-03 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392626', 'tblTempUsageDetail_20' ) end [2025-02-03 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392626', 'tblTempVendorCDR_20' ) start [2025-02-03 11:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392626', 'tblTempVendorCDR_20' ) end [2025-02-03 11:10:27] Production.INFO: ProcessCDR(1,14392626,1,1,2) [2025-02-03 11:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392626', 'tblTempUsageDetail_20' ) start [2025-02-03 11:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392626', 'tblTempUsageDetail_20' ) end [2025-02-03 11:10:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:10:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:10:32] Production.INFO: ==20982== Releasing lock... [2025-02-03 11:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:10:32] Production.INFO: 63.25 MB #Memory Used# [2025-02-03 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:11:05 [end_date_ymd] => 2025-02-03 11:11:05 [RateCDR] => 1 ) [2025-02-03 11: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-02-03 08:11:05' and `end` < '2025-02-03 11: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-02-03 11:11:28] Production.INFO: count ==4812 [2025-02-03 11:11:30] Production.ERROR: pbx CDR StartTime 2025-02-03 08:11:05 - End Time 2025-02-03 11:11:05 [2025-02-03 11:11:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392631', 'tblTempUsageDetail_20' ) start [2025-02-03 11:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392631', 'tblTempUsageDetail_20' ) end [2025-02-03 11:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392631', 'tblTempVendorCDR_20' ) start [2025-02-03 11:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392631', 'tblTempVendorCDR_20' ) end [2025-02-03 11:11:30] Production.INFO: ProcessCDR(1,14392631,1,1,2) [2025-02-03 11:11:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:11:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:11:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:11:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392631', 'tblTempUsageDetail_20' ) start [2025-02-03 11:11:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392631', 'tblTempUsageDetail_20' ) end [2025-02-03 11:11:35] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:11:35] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:11:35] Production.INFO: ==21054== Releasing lock... [2025-02-03 11:11:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:11:35] Production.INFO: 64 MB #Memory Used# [2025-02-03 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:12:06 [end_date_ymd] => 2025-02-03 11:12:06 [RateCDR] => 1 ) [2025-02-03 11: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-02-03 08:12:06' and `end` < '2025-02-03 11: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-02-03 11:12:25] Production.INFO: count ==4831 [2025-02-03 11:12:27] Production.ERROR: pbx CDR StartTime 2025-02-03 08:12:06 - End Time 2025-02-03 11:12:06 [2025-02-03 11:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392636', 'tblTempUsageDetail_20' ) start [2025-02-03 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392636', 'tblTempUsageDetail_20' ) end [2025-02-03 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392636', 'tblTempVendorCDR_20' ) start [2025-02-03 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392636', 'tblTempVendorCDR_20' ) end [2025-02-03 11:12:27] Production.INFO: ProcessCDR(1,14392636,1,1,2) [2025-02-03 11:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:12:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:12:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:12:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392636', 'tblTempUsageDetail_20' ) start [2025-02-03 11:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392636', 'tblTempUsageDetail_20' ) end [2025-02-03 11:12:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:12:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:12:32] Production.INFO: ==21205== Releasing lock... [2025-02-03 11:12:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:12:32] Production.INFO: 64 MB #Memory Used# [2025-02-03 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:13:05 [end_date_ymd] => 2025-02-03 11:13:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:13:05' and `end` < '2025-02-03 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-02-03 11:13:22] Production.INFO: count ==4827 [2025-02-03 11:13:24] Production.ERROR: pbx CDR StartTime 2025-02-03 08:13:05 - End Time 2025-02-03 11:13:05 [2025-02-03 11:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392640', 'tblTempUsageDetail_20' ) start [2025-02-03 11:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392640', 'tblTempUsageDetail_20' ) end [2025-02-03 11:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392640', 'tblTempVendorCDR_20' ) start [2025-02-03 11:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392640', 'tblTempVendorCDR_20' ) end [2025-02-03 11:13:24] Production.INFO: ProcessCDR(1,14392640,1,1,2) [2025-02-03 11:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392640', 'tblTempUsageDetail_20' ) start [2025-02-03 11:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392640', 'tblTempUsageDetail_20' ) end [2025-02-03 11:13:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:13:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:13:28] Production.INFO: ==21275== Releasing lock... [2025-02-03 11:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:13:28] Production.INFO: 64 MB #Memory Used# [2025-02-03 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:14:05 [end_date_ymd] => 2025-02-03 11:14:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:14:05' and `end` < '2025-02-03 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-02-03 11:14:19] Production.INFO: count ==4850 [2025-02-03 11:14:21] Production.ERROR: pbx CDR StartTime 2025-02-03 08:14:05 - End Time 2025-02-03 11:14:05 [2025-02-03 11:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392646', 'tblTempUsageDetail_20' ) start [2025-02-03 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392646', 'tblTempUsageDetail_20' ) end [2025-02-03 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392646', 'tblTempVendorCDR_20' ) start [2025-02-03 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392646', 'tblTempVendorCDR_20' ) end [2025-02-03 11:14:21] Production.INFO: ProcessCDR(1,14392646,1,1,2) [2025-02-03 11:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392646', 'tblTempUsageDetail_20' ) start [2025-02-03 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392646', 'tblTempUsageDetail_20' ) end [2025-02-03 11:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:14:25] Production.INFO: ==21348== Releasing lock... [2025-02-03 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:14:25] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:15:05 [end_date_ymd] => 2025-02-03 11:15:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:15:05' and `end` < '2025-02-03 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-02-03 11:15:18] Production.INFO: count ==4865 [2025-02-03 11:15:20] Production.ERROR: pbx CDR StartTime 2025-02-03 08:15:05 - End Time 2025-02-03 11:15:05 [2025-02-03 11:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392651', 'tblTempUsageDetail_20' ) start [2025-02-03 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392651', 'tblTempUsageDetail_20' ) end [2025-02-03 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392651', 'tblTempVendorCDR_20' ) start [2025-02-03 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392651', 'tblTempVendorCDR_20' ) end [2025-02-03 11:15:20] Production.INFO: ProcessCDR(1,14392651,1,1,2) [2025-02-03 11:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392651', 'tblTempUsageDetail_20' ) start [2025-02-03 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392651', 'tblTempUsageDetail_20' ) end [2025-02-03 11:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:15:25] Production.INFO: ==21461== Releasing lock... [2025-02-03 11:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:15:25] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:16:05 [end_date_ymd] => 2025-02-03 11:16:05 [RateCDR] => 1 ) [2025-02-03 11: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-02-03 08:16:05' and `end` < '2025-02-03 11: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-02-03 11:16:19] Production.INFO: count ==4877 [2025-02-03 11:16:21] Production.ERROR: pbx CDR StartTime 2025-02-03 08:16:05 - End Time 2025-02-03 11:16:05 [2025-02-03 11:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392656', 'tblTempUsageDetail_20' ) start [2025-02-03 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392656', 'tblTempUsageDetail_20' ) end [2025-02-03 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392656', 'tblTempVendorCDR_20' ) start [2025-02-03 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392656', 'tblTempVendorCDR_20' ) end [2025-02-03 11:16:21] Production.INFO: ProcessCDR(1,14392656,1,1,2) [2025-02-03 11:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392656', 'tblTempUsageDetail_20' ) start [2025-02-03 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392656', 'tblTempUsageDetail_20' ) end [2025-02-03 11:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:16:25] Production.INFO: ==21574== Releasing lock... [2025-02-03 11:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:16:25] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:17:05 [end_date_ymd] => 2025-02-03 11:17:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:17:05' and `end` < '2025-02-03 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-02-03 11:17:19] Production.INFO: count ==4876 [2025-02-03 11:17:21] Production.ERROR: pbx CDR StartTime 2025-02-03 08:17:05 - End Time 2025-02-03 11:17:05 [2025-02-03 11:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392661', 'tblTempUsageDetail_20' ) start [2025-02-03 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392661', 'tblTempUsageDetail_20' ) end [2025-02-03 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392661', 'tblTempVendorCDR_20' ) start [2025-02-03 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392661', 'tblTempVendorCDR_20' ) end [2025-02-03 11:17:21] Production.INFO: ProcessCDR(1,14392661,1,1,2) [2025-02-03 11:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392661', 'tblTempUsageDetail_20' ) start [2025-02-03 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392661', 'tblTempUsageDetail_20' ) end [2025-02-03 11:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:17:26] Production.INFO: ==21646== Releasing lock... [2025-02-03 11:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:17:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:18:05 [end_date_ymd] => 2025-02-03 11:18:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:18:05' and `end` < '2025-02-03 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-02-03 11:18:19] Production.INFO: count ==4875 [2025-02-03 11:18:21] Production.ERROR: pbx CDR StartTime 2025-02-03 08:18:05 - End Time 2025-02-03 11:18:05 [2025-02-03 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392666', 'tblTempUsageDetail_20' ) start [2025-02-03 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392666', 'tblTempUsageDetail_20' ) end [2025-02-03 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392666', 'tblTempVendorCDR_20' ) start [2025-02-03 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392666', 'tblTempVendorCDR_20' ) end [2025-02-03 11:18:21] Production.INFO: ProcessCDR(1,14392666,1,1,2) [2025-02-03 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392666', 'tblTempUsageDetail_20' ) start [2025-02-03 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392666', 'tblTempUsageDetail_20' ) end [2025-02-03 11:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:18:25] Production.INFO: ==21722== Releasing lock... [2025-02-03 11:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:18:25] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:19:05 [end_date_ymd] => 2025-02-03 11:19:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:19:05' and `end` < '2025-02-03 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-02-03 11:19:20] Production.INFO: count ==4864 [2025-02-03 11:19:22] Production.ERROR: pbx CDR StartTime 2025-02-03 08:19:05 - End Time 2025-02-03 11:19:05 [2025-02-03 11:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392671', 'tblTempUsageDetail_20' ) start [2025-02-03 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392671', 'tblTempUsageDetail_20' ) end [2025-02-03 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392671', 'tblTempVendorCDR_20' ) start [2025-02-03 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392671', 'tblTempVendorCDR_20' ) end [2025-02-03 11:19:22] Production.INFO: ProcessCDR(1,14392671,1,1,2) [2025-02-03 11:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392671', 'tblTempUsageDetail_20' ) start [2025-02-03 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392671', 'tblTempUsageDetail_20' ) end [2025-02-03 11:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:19:26] Production.INFO: ==21794== Releasing lock... [2025-02-03 11:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:19:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:20:06 [end_date_ymd] => 2025-02-03 11:20:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:20:06' and `end` < '2025-02-03 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-02-03 11:20:23] Production.INFO: count ==4872 [2025-02-03 11:20:25] Production.ERROR: pbx CDR StartTime 2025-02-03 08:20:06 - End Time 2025-02-03 11:20:06 [2025-02-03 11:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392677', 'tblTempUsageDetail_20' ) start [2025-02-03 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392677', 'tblTempUsageDetail_20' ) end [2025-02-03 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392677', 'tblTempVendorCDR_20' ) start [2025-02-03 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392677', 'tblTempVendorCDR_20' ) end [2025-02-03 11:20:25] Production.INFO: ProcessCDR(1,14392677,1,1,2) [2025-02-03 11:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392677', 'tblTempUsageDetail_20' ) start [2025-02-03 11:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392677', 'tblTempUsageDetail_20' ) end [2025-02-03 11:20:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:20:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:20:30] Production.INFO: ==21871== Releasing lock... [2025-02-03 11:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:20:30] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:21:05 [end_date_ymd] => 2025-02-03 11:21:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:21:05' and `end` < '2025-02-03 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-02-03 11:21:22] Production.INFO: count ==4935 [2025-02-03 11:21:24] Production.ERROR: pbx CDR StartTime 2025-02-03 08:21:05 - End Time 2025-02-03 11:21:05 [2025-02-03 11:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392682', 'tblTempUsageDetail_20' ) start [2025-02-03 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392682', 'tblTempUsageDetail_20' ) end [2025-02-03 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392682', 'tblTempVendorCDR_20' ) start [2025-02-03 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392682', 'tblTempVendorCDR_20' ) end [2025-02-03 11:21:24] Production.INFO: ProcessCDR(1,14392682,1,1,2) [2025-02-03 11:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392682', 'tblTempUsageDetail_20' ) start [2025-02-03 11:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392682', 'tblTempUsageDetail_20' ) end [2025-02-03 11:21:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:21:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:21:29] Production.INFO: ==21950== Releasing lock... [2025-02-03 11:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:21:29] Production.INFO: 65 MB #Memory Used# [2025-02-03 11:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:22:04 [end_date_ymd] => 2025-02-03 11:22:04 [RateCDR] => 1 ) [2025-02-03 11:22: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-02-03 08:22:04' and `end` < '2025-02-03 11:22: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-02-03 11:22:19] Production.INFO: count ==4971 [2025-02-03 11:22:21] Production.ERROR: pbx CDR StartTime 2025-02-03 08:22:04 - End Time 2025-02-03 11:22:04 [2025-02-03 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392687', 'tblTempUsageDetail_20' ) start [2025-02-03 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392687', 'tblTempUsageDetail_20' ) end [2025-02-03 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392687', 'tblTempVendorCDR_20' ) start [2025-02-03 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392687', 'tblTempVendorCDR_20' ) end [2025-02-03 11:22:22] Production.INFO: ProcessCDR(1,14392687,1,1,2) [2025-02-03 11:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392687', 'tblTempUsageDetail_20' ) start [2025-02-03 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392687', 'tblTempUsageDetail_20' ) end [2025-02-03 11:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:22:26] Production.INFO: ==22043== Releasing lock... [2025-02-03 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:22:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-03 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:23:05 [end_date_ymd] => 2025-02-03 11:23:05 [RateCDR] => 1 ) [2025-02-03 11: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-02-03 08:23:05' and `end` < '2025-02-03 11: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-02-03 11:23:26] Production.INFO: count ==4999 [2025-02-03 11:23:28] Production.ERROR: pbx CDR StartTime 2025-02-03 08:23:05 - End Time 2025-02-03 11:23:05 [2025-02-03 11:23:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392692', 'tblTempUsageDetail_20' ) start [2025-02-03 11:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392692', 'tblTempUsageDetail_20' ) end [2025-02-03 11:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392692', 'tblTempVendorCDR_20' ) start [2025-02-03 11:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392692', 'tblTempVendorCDR_20' ) end [2025-02-03 11:23:28] Production.INFO: ProcessCDR(1,14392692,1,1,2) [2025-02-03 11:23:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:23:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:23:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:23:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392692', 'tblTempUsageDetail_20' ) start [2025-02-03 11:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392692', 'tblTempUsageDetail_20' ) end [2025-02-03 11:23:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:23:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:23:33] Production.INFO: ==22211== Releasing lock... [2025-02-03 11:23:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:23:33] Production.INFO: 65.5 MB #Memory Used# [2025-02-03 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:24:05 [end_date_ymd] => 2025-02-03 11:24:05 [RateCDR] => 1 ) [2025-02-03 11: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-02-03 08:24:05' and `end` < '2025-02-03 11: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-02-03 11:24:21] Production.INFO: count ==5012 [2025-02-03 11:24:24] Production.ERROR: pbx CDR StartTime 2025-02-03 08:24:05 - End Time 2025-02-03 11:24:05 [2025-02-03 11:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392697', 'tblTempUsageDetail_20' ) start [2025-02-03 11:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392697', 'tblTempUsageDetail_20' ) end [2025-02-03 11:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392697', 'tblTempVendorCDR_20' ) start [2025-02-03 11:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392697', 'tblTempVendorCDR_20' ) end [2025-02-03 11:24:24] Production.INFO: ProcessCDR(1,14392697,1,1,2) [2025-02-03 11:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392697', 'tblTempUsageDetail_20' ) start [2025-02-03 11:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392697', 'tblTempUsageDetail_20' ) end [2025-02-03 11:24:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:24:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:24:28] Production.INFO: ==22336== Releasing lock... [2025-02-03 11:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:24:28] Production.INFO: 65.5 MB #Memory Used# [2025-02-03 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:25:05 [end_date_ymd] => 2025-02-03 11:25:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:25:05' and `end` < '2025-02-03 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-02-03 11:25:23] Production.INFO: count ==5032 [2025-02-03 11:25:25] Production.ERROR: pbx CDR StartTime 2025-02-03 08:25:05 - End Time 2025-02-03 11:25:05 [2025-02-03 11:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392702', 'tblTempUsageDetail_20' ) start [2025-02-03 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392702', 'tblTempUsageDetail_20' ) end [2025-02-03 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392702', 'tblTempVendorCDR_20' ) start [2025-02-03 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392702', 'tblTempVendorCDR_20' ) end [2025-02-03 11:25:26] Production.INFO: ProcessCDR(1,14392702,1,1,2) [2025-02-03 11:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392702', 'tblTempUsageDetail_20' ) start [2025-02-03 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392702', 'tblTempUsageDetail_20' ) end [2025-02-03 11:25:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:25:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:25:30] Production.INFO: ==22465== Releasing lock... [2025-02-03 11:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:25:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-03 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:26:05 [end_date_ymd] => 2025-02-03 11:26:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:26:05' and `end` < '2025-02-03 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-02-03 11:26:20] Production.INFO: count ==5049 [2025-02-03 11:26:22] Production.ERROR: pbx CDR StartTime 2025-02-03 08:26:05 - End Time 2025-02-03 11:26:05 [2025-02-03 11:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392707', 'tblTempUsageDetail_20' ) start [2025-02-03 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392707', 'tblTempUsageDetail_20' ) end [2025-02-03 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392707', 'tblTempVendorCDR_20' ) start [2025-02-03 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392707', 'tblTempVendorCDR_20' ) end [2025-02-03 11:26:22] Production.INFO: ProcessCDR(1,14392707,1,1,2) [2025-02-03 11:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392707', 'tblTempUsageDetail_20' ) start [2025-02-03 11:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392707', 'tblTempUsageDetail_20' ) end [2025-02-03 11:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:26:27] Production.INFO: ==22592== Releasing lock... [2025-02-03 11:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:26:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-03 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:27:05 [end_date_ymd] => 2025-02-03 11:27:05 [RateCDR] => 1 ) [2025-02-03 11: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-02-03 08:27:05' and `end` < '2025-02-03 11: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-02-03 11:27:25] Production.INFO: count ==5079 [2025-02-03 11:27:27] Production.ERROR: pbx CDR StartTime 2025-02-03 08:27:05 - End Time 2025-02-03 11:27:05 [2025-02-03 11:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392712', 'tblTempUsageDetail_20' ) start [2025-02-03 11:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392712', 'tblTempUsageDetail_20' ) end [2025-02-03 11:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392712', 'tblTempVendorCDR_20' ) start [2025-02-03 11:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392712', 'tblTempVendorCDR_20' ) end [2025-02-03 11:27:28] Production.INFO: ProcessCDR(1,14392712,1,1,2) [2025-02-03 11:27:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392712', 'tblTempUsageDetail_20' ) start [2025-02-03 11:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392712', 'tblTempUsageDetail_20' ) end [2025-02-03 11:27:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:27:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:27:32] Production.INFO: ==22720== Releasing lock... [2025-02-03 11:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:27:32] Production.INFO: 66 MB #Memory Used# [2025-02-03 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:28:05 [end_date_ymd] => 2025-02-03 11:28:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:28:05' and `end` < '2025-02-03 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-02-03 11:28:23] Production.INFO: count ==5078 [2025-02-03 11:28:25] Production.ERROR: pbx CDR StartTime 2025-02-03 08:28:05 - End Time 2025-02-03 11:28:05 [2025-02-03 11:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392717', 'tblTempUsageDetail_20' ) start [2025-02-03 11:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392717', 'tblTempUsageDetail_20' ) end [2025-02-03 11:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392717', 'tblTempVendorCDR_20' ) start [2025-02-03 11:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392717', 'tblTempVendorCDR_20' ) end [2025-02-03 11:28:25] Production.INFO: ProcessCDR(1,14392717,1,1,2) [2025-02-03 11:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392717', 'tblTempUsageDetail_20' ) start [2025-02-03 11:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392717', 'tblTempUsageDetail_20' ) end [2025-02-03 11:28:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:28:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:28:30] Production.INFO: ==22847== Releasing lock... [2025-02-03 11:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:28:30] Production.INFO: 66 MB #Memory Used# [2025-02-03 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:29:05 [end_date_ymd] => 2025-02-03 11:29:05 [RateCDR] => 1 ) [2025-02-03 11: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-02-03 08:29:05' and `end` < '2025-02-03 11: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-02-03 11:29:21] Production.INFO: count ==5103 [2025-02-03 11:29:23] Production.ERROR: pbx CDR StartTime 2025-02-03 08:29:05 - End Time 2025-02-03 11:29:05 [2025-02-03 11:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392722', 'tblTempUsageDetail_20' ) start [2025-02-03 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392722', 'tblTempUsageDetail_20' ) end [2025-02-03 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392722', 'tblTempVendorCDR_20' ) start [2025-02-03 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392722', 'tblTempVendorCDR_20' ) end [2025-02-03 11:29:24] Production.INFO: ProcessCDR(1,14392722,1,1,2) [2025-02-03 11:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392722', 'tblTempUsageDetail_20' ) start [2025-02-03 11:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392722', 'tblTempUsageDetail_20' ) end [2025-02-03 11:29:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:29:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:29:28] Production.INFO: ==22976== Releasing lock... [2025-02-03 11:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:29:28] Production.INFO: 66.25 MB #Memory Used# [2025-02-03 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:30:06 [end_date_ymd] => 2025-02-03 11:30:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:30:06' and `end` < '2025-02-03 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-02-03 11:30:31] Production.INFO: count ==5113 [2025-02-03 11:30:33] Production.ERROR: pbx CDR StartTime 2025-02-03 08:30:06 - End Time 2025-02-03 11:30:06 [2025-02-03 11:30:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392728', 'tblTempUsageDetail_20' ) start [2025-02-03 11:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392728', 'tblTempUsageDetail_20' ) end [2025-02-03 11:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392728', 'tblTempVendorCDR_20' ) start [2025-02-03 11:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392728', 'tblTempVendorCDR_20' ) end [2025-02-03 11:30:33] Production.INFO: ProcessCDR(1,14392728,1,1,2) [2025-02-03 11:30:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:30:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:30:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:30:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:30:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392728', 'tblTempUsageDetail_20' ) start [2025-02-03 11:30:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392728', 'tblTempUsageDetail_20' ) end [2025-02-03 11:30:38] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:30:38] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:30:38] Production.INFO: ==23110== Releasing lock... [2025-02-03 11:30:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:30:38] Production.INFO: 66.25 MB #Memory Used# [2025-02-03 11:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:31:06 [end_date_ymd] => 2025-02-03 11:31:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:31:06' and `end` < '2025-02-03 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-02-03 11:31:26] Production.INFO: count ==5187 [2025-02-03 11:31:28] Production.ERROR: pbx CDR StartTime 2025-02-03 08:31:06 - End Time 2025-02-03 11:31:06 [2025-02-03 11:31:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392733', 'tblTempUsageDetail_20' ) start [2025-02-03 11:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392733', 'tblTempUsageDetail_20' ) end [2025-02-03 11:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392733', 'tblTempVendorCDR_20' ) start [2025-02-03 11:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392733', 'tblTempVendorCDR_20' ) end [2025-02-03 11:31:28] Production.INFO: ProcessCDR(1,14392733,1,1,2) [2025-02-03 11:31:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:31:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:31:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:31:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392733', 'tblTempUsageDetail_20' ) start [2025-02-03 11:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392733', 'tblTempUsageDetail_20' ) end [2025-02-03 11:31:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:31:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:31:33] Production.INFO: ==23219== Releasing lock... [2025-02-03 11:31:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:31:33] Production.INFO: 66.75 MB #Memory Used# [2025-02-03 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:32:05 [end_date_ymd] => 2025-02-03 11:32:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:32:05' and `end` < '2025-02-03 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-02-03 11:32:21] Production.INFO: count ==5211 [2025-02-03 11:32:23] Production.ERROR: pbx CDR StartTime 2025-02-03 08:32:05 - End Time 2025-02-03 11:32:05 [2025-02-03 11:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392738', 'tblTempUsageDetail_20' ) start [2025-02-03 11:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392738', 'tblTempUsageDetail_20' ) end [2025-02-03 11:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392738', 'tblTempVendorCDR_20' ) start [2025-02-03 11:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392738', 'tblTempVendorCDR_20' ) end [2025-02-03 11:32:23] Production.INFO: ProcessCDR(1,14392738,1,1,2) [2025-02-03 11:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392738', 'tblTempUsageDetail_20' ) start [2025-02-03 11:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392738', 'tblTempUsageDetail_20' ) end [2025-02-03 11:32:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:32:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:32:28] Production.INFO: ==23291== Releasing lock... [2025-02-03 11:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:32:28] Production.INFO: 67 MB #Memory Used# [2025-02-03 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:33:05 [end_date_ymd] => 2025-02-03 11:33:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:33:05' and `end` < '2025-02-03 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-02-03 11:33:19] Production.INFO: count ==5195 [2025-02-03 11:33:21] Production.ERROR: pbx CDR StartTime 2025-02-03 08:33:05 - End Time 2025-02-03 11:33:05 [2025-02-03 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392743', 'tblTempUsageDetail_20' ) start [2025-02-03 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392743', 'tblTempUsageDetail_20' ) end [2025-02-03 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392743', 'tblTempVendorCDR_20' ) start [2025-02-03 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392743', 'tblTempVendorCDR_20' ) end [2025-02-03 11:33:21] Production.INFO: ProcessCDR(1,14392743,1,1,2) [2025-02-03 11:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392743', 'tblTempUsageDetail_20' ) start [2025-02-03 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392743', 'tblTempUsageDetail_20' ) end [2025-02-03 11:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:33:25] Production.INFO: ==23361== Releasing lock... [2025-02-03 11:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:33:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-03 11:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:34:04 [end_date_ymd] => 2025-02-03 11:34:04 [RateCDR] => 1 ) [2025-02-03 11: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-02-03 08:34:04' and `end` < '2025-02-03 11: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-02-03 11:34:21] Production.INFO: count ==5195 [2025-02-03 11:34:23] Production.ERROR: pbx CDR StartTime 2025-02-03 08:34:04 - End Time 2025-02-03 11:34:04 [2025-02-03 11:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392748', 'tblTempUsageDetail_20' ) start [2025-02-03 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392748', 'tblTempUsageDetail_20' ) end [2025-02-03 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392748', 'tblTempVendorCDR_20' ) start [2025-02-03 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392748', 'tblTempVendorCDR_20' ) end [2025-02-03 11:34:23] Production.INFO: ProcessCDR(1,14392748,1,1,2) [2025-02-03 11:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392748', 'tblTempUsageDetail_20' ) start [2025-02-03 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392748', 'tblTempUsageDetail_20' ) end [2025-02-03 11:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:34:27] Production.INFO: ==23434== Releasing lock... [2025-02-03 11:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:34:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-03 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:35:05 [end_date_ymd] => 2025-02-03 11:35:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:35:05' and `end` < '2025-02-03 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-02-03 11:35:29] Production.INFO: count ==5197 [2025-02-03 11:35:32] Production.ERROR: pbx CDR StartTime 2025-02-03 08:35:05 - End Time 2025-02-03 11:35:05 [2025-02-03 11:35:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392753', 'tblTempUsageDetail_20' ) start [2025-02-03 11:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392753', 'tblTempUsageDetail_20' ) end [2025-02-03 11:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392753', 'tblTempVendorCDR_20' ) start [2025-02-03 11:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392753', 'tblTempVendorCDR_20' ) end [2025-02-03 11:35:32] Production.INFO: ProcessCDR(1,14392753,1,1,2) [2025-02-03 11:35:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:35:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:35:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:35:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392753', 'tblTempUsageDetail_20' ) start [2025-02-03 11:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392753', 'tblTempUsageDetail_20' ) end [2025-02-03 11:35:36] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:35:36] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:35:36] Production.INFO: ==23508== Releasing lock... [2025-02-03 11:35:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:35:36] Production.INFO: 66.75 MB #Memory Used# [2025-02-03 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:36:06 [end_date_ymd] => 2025-02-03 11:36:06 [RateCDR] => 1 ) [2025-02-03 11: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-02-03 08:36:06' and `end` < '2025-02-03 11: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-02-03 11:36:24] Production.INFO: count ==5200 [2025-02-03 11:36:26] Production.ERROR: pbx CDR StartTime 2025-02-03 08:36:06 - End Time 2025-02-03 11:36:06 [2025-02-03 11:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392758', 'tblTempUsageDetail_20' ) start [2025-02-03 11:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392758', 'tblTempUsageDetail_20' ) end [2025-02-03 11:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392758', 'tblTempVendorCDR_20' ) start [2025-02-03 11:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392758', 'tblTempVendorCDR_20' ) end [2025-02-03 11:36:27] Production.INFO: ProcessCDR(1,14392758,1,1,2) [2025-02-03 11:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:36:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:36:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392758', 'tblTempUsageDetail_20' ) start [2025-02-03 11:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392758', 'tblTempUsageDetail_20' ) end [2025-02-03 11:36:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:36:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:36:31] Production.INFO: ==23583== Releasing lock... [2025-02-03 11:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:36:31] Production.INFO: 67 MB #Memory Used# [2025-02-03 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:37:05 [end_date_ymd] => 2025-02-03 11:37:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:37:05' and `end` < '2025-02-03 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-02-03 11:37:26] Production.INFO: count ==5179 [2025-02-03 11:37:28] Production.ERROR: pbx CDR StartTime 2025-02-03 08:37:05 - End Time 2025-02-03 11:37:05 [2025-02-03 11:37:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392763', 'tblTempUsageDetail_20' ) start [2025-02-03 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392763', 'tblTempUsageDetail_20' ) end [2025-02-03 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392763', 'tblTempVendorCDR_20' ) start [2025-02-03 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392763', 'tblTempVendorCDR_20' ) end [2025-02-03 11:37:28] Production.INFO: ProcessCDR(1,14392763,1,1,2) [2025-02-03 11:37:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:37:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:37:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:37:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392763', 'tblTempUsageDetail_20' ) start [2025-02-03 11:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392763', 'tblTempUsageDetail_20' ) end [2025-02-03 11:37:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:37:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:37:33] Production.INFO: ==23671== Releasing lock... [2025-02-03 11:37:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:37:33] Production.INFO: 66.75 MB #Memory Used# [2025-02-03 11:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:38:04 [end_date_ymd] => 2025-02-03 11:38:04 [RateCDR] => 1 ) [2025-02-03 11: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-02-03 08:38:04' and `end` < '2025-02-03 11: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-02-03 11:38:23] Production.INFO: count ==5180 [2025-02-03 11:38:25] Production.ERROR: pbx CDR StartTime 2025-02-03 08:38:04 - End Time 2025-02-03 11:38:04 [2025-02-03 11:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392768', 'tblTempUsageDetail_20' ) start [2025-02-03 11:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392768', 'tblTempUsageDetail_20' ) end [2025-02-03 11:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392768', 'tblTempVendorCDR_20' ) start [2025-02-03 11:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392768', 'tblTempVendorCDR_20' ) end [2025-02-03 11:38:25] Production.INFO: ProcessCDR(1,14392768,1,1,2) [2025-02-03 11:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392768', 'tblTempUsageDetail_20' ) start [2025-02-03 11:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392768', 'tblTempUsageDetail_20' ) end [2025-02-03 11:38:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:38:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:38:30] Production.INFO: ==23763== Releasing lock... [2025-02-03 11:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:38:30] Production.INFO: 66.75 MB #Memory Used# [2025-02-03 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:39:05 [end_date_ymd] => 2025-02-03 11:39:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:39:05' and `end` < '2025-02-03 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-02-03 11:39:25] Production.INFO: count ==5181 [2025-02-03 11:39:27] Production.ERROR: pbx CDR StartTime 2025-02-03 08:39:05 - End Time 2025-02-03 11:39:05 [2025-02-03 11:39:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392773', 'tblTempUsageDetail_20' ) start [2025-02-03 11:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392773', 'tblTempUsageDetail_20' ) end [2025-02-03 11:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392773', 'tblTempVendorCDR_20' ) start [2025-02-03 11:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392773', 'tblTempVendorCDR_20' ) end [2025-02-03 11:39:27] Production.INFO: ProcessCDR(1,14392773,1,1,2) [2025-02-03 11:39:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:39:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:39:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:39:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392773', 'tblTempUsageDetail_20' ) start [2025-02-03 11:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392773', 'tblTempUsageDetail_20' ) end [2025-02-03 11:39:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:39:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:39:32] Production.INFO: ==23899== Releasing lock... [2025-02-03 11:39:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:39:32] Production.INFO: 66.75 MB #Memory Used# [2025-02-03 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:40:06 [end_date_ymd] => 2025-02-03 11:40:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:40:06' and `end` < '2025-02-03 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-02-03 11:40:31] Production.INFO: count ==5203 [2025-02-03 11:40:33] Production.ERROR: pbx CDR StartTime 2025-02-03 08:40:06 - End Time 2025-02-03 11:40:06 [2025-02-03 11:40:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:40:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392779', 'tblTempUsageDetail_20' ) start [2025-02-03 11:40:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392779', 'tblTempUsageDetail_20' ) end [2025-02-03 11:40:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392779', 'tblTempVendorCDR_20' ) start [2025-02-03 11:40:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392779', 'tblTempVendorCDR_20' ) end [2025-02-03 11:40:33] Production.INFO: ProcessCDR(1,14392779,1,1,2) [2025-02-03 11:40:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:40:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:40:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:40:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:40:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392779', 'tblTempUsageDetail_20' ) start [2025-02-03 11:40:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392779', 'tblTempUsageDetail_20' ) end [2025-02-03 11:40:38] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:40:38] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:40:38] Production.INFO: ==24003== Releasing lock... [2025-02-03 11:40:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:40:38] Production.INFO: 67 MB #Memory Used# [2025-02-03 11:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:41:04 [end_date_ymd] => 2025-02-03 11:41:04 [RateCDR] => 1 ) [2025-02-03 11: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-02-03 08:41:04' and `end` < '2025-02-03 11: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-02-03 11:41:27] Production.INFO: count ==5267 [2025-02-03 11:41:29] Production.ERROR: pbx CDR StartTime 2025-02-03 08:41:04 - End Time 2025-02-03 11:41:04 [2025-02-03 11:41:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392784', 'tblTempUsageDetail_20' ) start [2025-02-03 11:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392784', 'tblTempUsageDetail_20' ) end [2025-02-03 11:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392784', 'tblTempVendorCDR_20' ) start [2025-02-03 11:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392784', 'tblTempVendorCDR_20' ) end [2025-02-03 11:41:29] Production.INFO: ProcessCDR(1,14392784,1,1,2) [2025-02-03 11:41:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:41:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:41:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:41:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:41:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392784', 'tblTempUsageDetail_20' ) start [2025-02-03 11:41:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392784', 'tblTempUsageDetail_20' ) end [2025-02-03 11:41:34] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:41:34] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:41:34] Production.INFO: ==24099== Releasing lock... [2025-02-03 11:41:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:41:34] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:42:05 [end_date_ymd] => 2025-02-03 11:42:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:42:05' and `end` < '2025-02-03 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-02-03 11:42:23] Production.INFO: count ==5302 [2025-02-03 11:42:25] Production.ERROR: pbx CDR StartTime 2025-02-03 08:42:05 - End Time 2025-02-03 11:42:05 [2025-02-03 11:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392789', 'tblTempUsageDetail_20' ) start [2025-02-03 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392789', 'tblTempUsageDetail_20' ) end [2025-02-03 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392789', 'tblTempVendorCDR_20' ) start [2025-02-03 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392789', 'tblTempVendorCDR_20' ) end [2025-02-03 11:42:25] Production.INFO: ProcessCDR(1,14392789,1,1,2) [2025-02-03 11:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392789', 'tblTempUsageDetail_20' ) start [2025-02-03 11:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392789', 'tblTempUsageDetail_20' ) end [2025-02-03 11:42:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:42:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:42:28] Production.INFO: ==24194== Releasing lock... [2025-02-03 11:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:42:28] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:43:05 [end_date_ymd] => 2025-02-03 11:43:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:43:05' and `end` < '2025-02-03 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-02-03 11:43:22] Production.INFO: count ==5306 [2025-02-03 11:43:24] Production.ERROR: pbx CDR StartTime 2025-02-03 08:43:05 - End Time 2025-02-03 11:43:05 [2025-02-03 11:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392794', 'tblTempUsageDetail_20' ) start [2025-02-03 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392794', 'tblTempUsageDetail_20' ) end [2025-02-03 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392794', 'tblTempVendorCDR_20' ) start [2025-02-03 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392794', 'tblTempVendorCDR_20' ) end [2025-02-03 11:43:24] Production.INFO: ProcessCDR(1,14392794,1,1,2) [2025-02-03 11:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392794', 'tblTempUsageDetail_20' ) start [2025-02-03 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392794', 'tblTempUsageDetail_20' ) end [2025-02-03 11:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:43:27] Production.INFO: ==24286== Releasing lock... [2025-02-03 11:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:43:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:44:05 [end_date_ymd] => 2025-02-03 11:44:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:44:05' and `end` < '2025-02-03 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-02-03 11:44:23] Production.INFO: count ==5305 [2025-02-03 11:44:25] Production.ERROR: pbx CDR StartTime 2025-02-03 08:44:05 - End Time 2025-02-03 11:44:05 [2025-02-03 11:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392799', 'tblTempUsageDetail_20' ) start [2025-02-03 11:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392799', 'tblTempUsageDetail_20' ) end [2025-02-03 11:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392799', 'tblTempVendorCDR_20' ) start [2025-02-03 11:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392799', 'tblTempVendorCDR_20' ) end [2025-02-03 11:44:25] Production.INFO: ProcessCDR(1,14392799,1,1,2) [2025-02-03 11:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392799', 'tblTempUsageDetail_20' ) start [2025-02-03 11:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392799', 'tblTempUsageDetail_20' ) end [2025-02-03 11:44:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:44:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:44:30] Production.INFO: ==24384== Releasing lock... [2025-02-03 11:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:44:30] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:45:05 [end_date_ymd] => 2025-02-03 11:45:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:45:05' and `end` < '2025-02-03 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-02-03 11:45:23] Production.INFO: count ==5299 [2025-02-03 11:45:25] Production.ERROR: pbx CDR StartTime 2025-02-03 08:45:05 - End Time 2025-02-03 11:45:05 [2025-02-03 11:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392804', 'tblTempUsageDetail_20' ) start [2025-02-03 11:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392804', 'tblTempUsageDetail_20' ) end [2025-02-03 11:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392804', 'tblTempVendorCDR_20' ) start [2025-02-03 11:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392804', 'tblTempVendorCDR_20' ) end [2025-02-03 11:45:25] Production.INFO: ProcessCDR(1,14392804,1,1,2) [2025-02-03 11:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392804', 'tblTempUsageDetail_20' ) start [2025-02-03 11:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392804', 'tblTempUsageDetail_20' ) end [2025-02-03 11:45:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:45:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:45:30] Production.INFO: ==24480== Releasing lock... [2025-02-03 11:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:45:30] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:46:05 [end_date_ymd] => 2025-02-03 11:46:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:46:05' and `end` < '2025-02-03 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-02-03 11:46:21] Production.INFO: count ==5301 [2025-02-03 11:46:23] Production.ERROR: pbx CDR StartTime 2025-02-03 08:46:05 - End Time 2025-02-03 11:46:05 [2025-02-03 11:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392809', 'tblTempUsageDetail_20' ) start [2025-02-03 11:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392809', 'tblTempUsageDetail_20' ) end [2025-02-03 11:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392809', 'tblTempVendorCDR_20' ) start [2025-02-03 11:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392809', 'tblTempVendorCDR_20' ) end [2025-02-03 11:46:23] Production.INFO: ProcessCDR(1,14392809,1,1,2) [2025-02-03 11:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392809', 'tblTempUsageDetail_20' ) start [2025-02-03 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392809', 'tblTempUsageDetail_20' ) end [2025-02-03 11:46:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:46:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:46:27] Production.INFO: ==24574== Releasing lock... [2025-02-03 11:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:46:28] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:47:06 [end_date_ymd] => 2025-02-03 11:47:06 [RateCDR] => 1 ) [2025-02-03 11: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-02-03 08:47:06' and `end` < '2025-02-03 11:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 11:47:29] Production.INFO: count ==5324 [2025-02-03 11:47:32] Production.ERROR: pbx CDR StartTime 2025-02-03 08:47:06 - End Time 2025-02-03 11:47:06 [2025-02-03 11:47:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392814', 'tblTempUsageDetail_20' ) start [2025-02-03 11:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392814', 'tblTempUsageDetail_20' ) end [2025-02-03 11:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392814', 'tblTempVendorCDR_20' ) start [2025-02-03 11:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392814', 'tblTempVendorCDR_20' ) end [2025-02-03 11:47:32] Production.INFO: ProcessCDR(1,14392814,1,1,2) [2025-02-03 11:47:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:47:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:47:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:47:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:47:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392814', 'tblTempUsageDetail_20' ) start [2025-02-03 11:47:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392814', 'tblTempUsageDetail_20' ) end [2025-02-03 11:47:36] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:47:36] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:47:36] Production.INFO: ==24666== Releasing lock... [2025-02-03 11:47:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:47:36] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:48:05 [end_date_ymd] => 2025-02-03 11:48:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:48:05' and `end` < '2025-02-03 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-02-03 11:48:24] Production.INFO: count ==5317 [2025-02-03 11:48:26] Production.ERROR: pbx CDR StartTime 2025-02-03 08:48:05 - End Time 2025-02-03 11:48:05 [2025-02-03 11:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392819', 'tblTempUsageDetail_20' ) start [2025-02-03 11:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392819', 'tblTempUsageDetail_20' ) end [2025-02-03 11:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392819', 'tblTempVendorCDR_20' ) start [2025-02-03 11:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392819', 'tblTempVendorCDR_20' ) end [2025-02-03 11:48:26] Production.INFO: ProcessCDR(1,14392819,1,1,2) [2025-02-03 11:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392819', 'tblTempUsageDetail_20' ) start [2025-02-03 11:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392819', 'tblTempUsageDetail_20' ) end [2025-02-03 11:48:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:48:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:48:31] Production.INFO: ==24754== Releasing lock... [2025-02-03 11:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:48:31] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:49:05 [end_date_ymd] => 2025-02-03 11:49:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:49:05' and `end` < '2025-02-03 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-02-03 11:49:22] Production.INFO: count ==5309 [2025-02-03 11:49:24] Production.ERROR: pbx CDR StartTime 2025-02-03 08:49:05 - End Time 2025-02-03 11:49:05 [2025-02-03 11:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392824', 'tblTempUsageDetail_20' ) start [2025-02-03 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392824', 'tblTempUsageDetail_20' ) end [2025-02-03 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392824', 'tblTempVendorCDR_20' ) start [2025-02-03 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392824', 'tblTempVendorCDR_20' ) end [2025-02-03 11:49:24] Production.INFO: ProcessCDR(1,14392824,1,1,2) [2025-02-03 11:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392824', 'tblTempUsageDetail_20' ) start [2025-02-03 11:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392824', 'tblTempUsageDetail_20' ) end [2025-02-03 11:49:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:49:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:49:29] Production.INFO: ==24852== Releasing lock... [2025-02-03 11:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:49:29] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:50:05 [end_date_ymd] => 2025-02-03 11:50:05 [RateCDR] => 1 ) [2025-02-03 11: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-02-03 08:50:05' and `end` < '2025-02-03 11: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-02-03 11:50:20] Production.INFO: count ==5305 [2025-02-03 11:50:22] Production.ERROR: pbx CDR StartTime 2025-02-03 08:50:05 - End Time 2025-02-03 11:50:05 [2025-02-03 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392829', 'tblTempUsageDetail_20' ) start [2025-02-03 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392829', 'tblTempUsageDetail_20' ) end [2025-02-03 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392829', 'tblTempVendorCDR_20' ) start [2025-02-03 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392829', 'tblTempVendorCDR_20' ) end [2025-02-03 11:50:22] Production.INFO: ProcessCDR(1,14392829,1,1,2) [2025-02-03 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392829', 'tblTempUsageDetail_20' ) start [2025-02-03 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392829', 'tblTempUsageDetail_20' ) end [2025-02-03 11:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:50:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:50:27] Production.INFO: ==24956== Releasing lock... [2025-02-03 11:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:50:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:51:05 [end_date_ymd] => 2025-02-03 11:51:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:51:05' and `end` < '2025-02-03 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-02-03 11:51:29] Production.INFO: count ==5349 [2025-02-03 11:51:31] Production.ERROR: pbx CDR StartTime 2025-02-03 08:51:05 - End Time 2025-02-03 11:51:05 [2025-02-03 11:51:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392835', 'tblTempUsageDetail_20' ) start [2025-02-03 11:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392835', 'tblTempUsageDetail_20' ) end [2025-02-03 11:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392835', 'tblTempVendorCDR_20' ) start [2025-02-03 11:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392835', 'tblTempVendorCDR_20' ) end [2025-02-03 11:51:31] Production.INFO: ProcessCDR(1,14392835,1,1,2) [2025-02-03 11:51:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:51:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:51:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:51:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392835', 'tblTempUsageDetail_20' ) start [2025-02-03 11:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392835', 'tblTempUsageDetail_20' ) end [2025-02-03 11:51:36] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:51:36] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:51:36] Production.INFO: ==25067== Releasing lock... [2025-02-03 11:51:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:51:36] Production.INFO: 68 MB #Memory Used# [2025-02-03 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:52:06 [end_date_ymd] => 2025-02-03 11:52:06 [RateCDR] => 1 ) [2025-02-03 11: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-02-03 08:52:06' and `end` < '2025-02-03 11: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-02-03 11:52:29] Production.INFO: count ==5365 [2025-02-03 11:52:32] Production.ERROR: pbx CDR StartTime 2025-02-03 08:52:06 - End Time 2025-02-03 11:52:06 [2025-02-03 11:52:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392840', 'tblTempUsageDetail_20' ) start [2025-02-03 11:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392840', 'tblTempUsageDetail_20' ) end [2025-02-03 11:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392840', 'tblTempVendorCDR_20' ) start [2025-02-03 11:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392840', 'tblTempVendorCDR_20' ) end [2025-02-03 11:52:32] Production.INFO: ProcessCDR(1,14392840,1,1,2) [2025-02-03 11:52:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:52:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:52:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:52:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:52:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392840', 'tblTempUsageDetail_20' ) start [2025-02-03 11:52:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392840', 'tblTempUsageDetail_20' ) end [2025-02-03 11:52:36] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:52:36] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:52:36] Production.INFO: ==25168== Releasing lock... [2025-02-03 11:52:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:52:36] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:53:05 [end_date_ymd] => 2025-02-03 11:53:05 [RateCDR] => 1 ) [2025-02-03 11: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-02-03 08:53:05' and `end` < '2025-02-03 11: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-02-03 11:53:25] Production.INFO: count ==5373 [2025-02-03 11:53:27] Production.ERROR: pbx CDR StartTime 2025-02-03 08:53:05 - End Time 2025-02-03 11:53:05 [2025-02-03 11:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392845', 'tblTempUsageDetail_20' ) start [2025-02-03 11:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392845', 'tblTempUsageDetail_20' ) end [2025-02-03 11:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392845', 'tblTempVendorCDR_20' ) start [2025-02-03 11:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392845', 'tblTempVendorCDR_20' ) end [2025-02-03 11:53:27] Production.INFO: ProcessCDR(1,14392845,1,1,2) [2025-02-03 11:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:53:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:53:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:53:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392845', 'tblTempUsageDetail_20' ) start [2025-02-03 11:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392845', 'tblTempUsageDetail_20' ) end [2025-02-03 11:53:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:53:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:53:32] Production.INFO: ==25263== Releasing lock... [2025-02-03 11:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:53:32] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:54:05 [end_date_ymd] => 2025-02-03 11:54:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:54:05' and `end` < '2025-02-03 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-02-03 11:54:26] Production.INFO: count ==5396 [2025-02-03 11:54:29] Production.ERROR: pbx CDR StartTime 2025-02-03 08:54:05 - End Time 2025-02-03 11:54:05 [2025-02-03 11:54:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392850', 'tblTempUsageDetail_20' ) start [2025-02-03 11:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392850', 'tblTempUsageDetail_20' ) end [2025-02-03 11:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392850', 'tblTempVendorCDR_20' ) start [2025-02-03 11:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392850', 'tblTempVendorCDR_20' ) end [2025-02-03 11:54:29] Production.INFO: ProcessCDR(1,14392850,1,1,2) [2025-02-03 11:54:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:54:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:54:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392850', 'tblTempUsageDetail_20' ) start [2025-02-03 11:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392850', 'tblTempUsageDetail_20' ) end [2025-02-03 11:54:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:54:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:54:33] Production.INFO: ==25398== Releasing lock... [2025-02-03 11:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:54:33] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:55:05 [end_date_ymd] => 2025-02-03 11:55:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 08:55:05' and `end` < '2025-02-03 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-02-03 11:55:26] Production.INFO: count ==5399 [2025-02-03 11:55:29] Production.ERROR: pbx CDR StartTime 2025-02-03 08:55:05 - End Time 2025-02-03 11:55:05 [2025-02-03 11:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392855', 'tblTempUsageDetail_20' ) start [2025-02-03 11:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392855', 'tblTempUsageDetail_20' ) end [2025-02-03 11:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392855', 'tblTempVendorCDR_20' ) start [2025-02-03 11:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392855', 'tblTempVendorCDR_20' ) end [2025-02-03 11:55:29] Production.INFO: ProcessCDR(1,14392855,1,1,2) [2025-02-03 11:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:55:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:55:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:55:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392855', 'tblTempUsageDetail_20' ) start [2025-02-03 11:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392855', 'tblTempUsageDetail_20' ) end [2025-02-03 11:55:34] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:55:34] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:55:34] Production.INFO: ==25493== Releasing lock... [2025-02-03 11:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:55:34] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:56:06 [end_date_ymd] => 2025-02-03 11:56:06 [RateCDR] => 1 ) [2025-02-03 11: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-02-03 08:56:06' and `end` < '2025-02-03 11: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-02-03 11:56:19] Production.INFO: count ==5407 [2025-02-03 11:56:22] Production.ERROR: pbx CDR StartTime 2025-02-03 08:56:06 - End Time 2025-02-03 11:56:06 [2025-02-03 11:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392860', 'tblTempUsageDetail_20' ) start [2025-02-03 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392860', 'tblTempUsageDetail_20' ) end [2025-02-03 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392860', 'tblTempVendorCDR_20' ) start [2025-02-03 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392860', 'tblTempVendorCDR_20' ) end [2025-02-03 11:56:22] Production.INFO: ProcessCDR(1,14392860,1,1,2) [2025-02-03 11:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392860', 'tblTempUsageDetail_20' ) start [2025-02-03 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392860', 'tblTempUsageDetail_20' ) end [2025-02-03 11:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:56:26] Production.INFO: ==25590== Releasing lock... [2025-02-03 11:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:56:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 11:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:57:04 [end_date_ymd] => 2025-02-03 11:57:04 [RateCDR] => 1 ) [2025-02-03 11:57: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-02-03 08:57:04' and `end` < '2025-02-03 11: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-02-03 11:57:19] Production.INFO: count ==5390 [2025-02-03 11:57:21] Production.ERROR: pbx CDR StartTime 2025-02-03 08:57:04 - End Time 2025-02-03 11:57:04 [2025-02-03 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392865', 'tblTempUsageDetail_20' ) start [2025-02-03 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392865', 'tblTempUsageDetail_20' ) end [2025-02-03 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392865', 'tblTempVendorCDR_20' ) start [2025-02-03 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392865', 'tblTempVendorCDR_20' ) end [2025-02-03 11:57:21] Production.INFO: ProcessCDR(1,14392865,1,1,2) [2025-02-03 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392865', 'tblTempUsageDetail_20' ) start [2025-02-03 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392865', 'tblTempUsageDetail_20' ) end [2025-02-03 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:57:26] Production.INFO: ==25680== Releasing lock... [2025-02-03 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:57:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:58:05 [end_date_ymd] => 2025-02-03 11:58:05 [RateCDR] => 1 ) [2025-02-03 11: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-02-03 08:58:05' and `end` < '2025-02-03 11: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-02-03 11:58:19] Production.INFO: count ==5375 [2025-02-03 11:58:21] Production.ERROR: pbx CDR StartTime 2025-02-03 08:58:05 - End Time 2025-02-03 11:58:05 [2025-02-03 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392870', 'tblTempUsageDetail_20' ) start [2025-02-03 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392870', 'tblTempUsageDetail_20' ) end [2025-02-03 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392870', 'tblTempVendorCDR_20' ) start [2025-02-03 11:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392870', 'tblTempVendorCDR_20' ) end [2025-02-03 11:58:22] Production.INFO: ProcessCDR(1,14392870,1,1,2) [2025-02-03 11:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392870', 'tblTempUsageDetail_20' ) start [2025-02-03 11:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392870', 'tblTempUsageDetail_20' ) end [2025-02-03 11:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:58:27] Production.INFO: ==25775== Releasing lock... [2025-02-03 11:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:58:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 11:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 08:59:06 [end_date_ymd] => 2025-02-03 11:59:06 [RateCDR] => 1 ) [2025-02-03 11: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-02-03 08:59:06' and `end` < '2025-02-03 11: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-02-03 11:59:20] Production.INFO: count ==5374 [2025-02-03 11:59:22] Production.ERROR: pbx CDR StartTime 2025-02-03 08:59:06 - End Time 2025-02-03 11:59:06 [2025-02-03 11:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392875', 'tblTempUsageDetail_20' ) start [2025-02-03 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392875', 'tblTempUsageDetail_20' ) end [2025-02-03 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392875', 'tblTempVendorCDR_20' ) start [2025-02-03 11:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392875', 'tblTempVendorCDR_20' ) end [2025-02-03 11:59:22] Production.INFO: ProcessCDR(1,14392875,1,1,2) [2025-02-03 11:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 11:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 11:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392875', 'tblTempUsageDetail_20' ) start [2025-02-03 11:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392875', 'tblTempUsageDetail_20' ) end [2025-02-03 11:59:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 11:59:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 11:59:27] Production.INFO: ==25874== Releasing lock... [2025-02-03 11:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 11:59:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:00:06 [end_date_ymd] => 2025-02-03 12:00:06 [RateCDR] => 1 ) [2025-02-03 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 09:00:06' and `end` < '2025-02-03 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 12:00:21] Production.INFO: count ==5374 [2025-02-03 12:00:23] Production.ERROR: pbx CDR StartTime 2025-02-03 09:00:06 - End Time 2025-02-03 12:00:06 [2025-02-03 12:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392881', 'tblTempUsageDetail_20' ) start [2025-02-03 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392881', 'tblTempUsageDetail_20' ) end [2025-02-03 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392881', 'tblTempVendorCDR_20' ) start [2025-02-03 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392881', 'tblTempVendorCDR_20' ) end [2025-02-03 12:00:23] Production.INFO: ProcessCDR(1,14392881,1,1,2) [2025-02-03 12:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392881', 'tblTempUsageDetail_20' ) start [2025-02-03 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392881', 'tblTempUsageDetail_20' ) end [2025-02-03 12:00:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:00:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:00:28] Production.INFO: ==25974== Releasing lock... [2025-02-03 12:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:00:28] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:01:06 [end_date_ymd] => 2025-02-03 12:01:06 [RateCDR] => 1 ) [2025-02-03 12: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-02-03 09:01:06' and `end` < '2025-02-03 12: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-02-03 12:01:27] Production.INFO: count ==5412 [2025-02-03 12:01:30] Production.ERROR: pbx CDR StartTime 2025-02-03 09:01:06 - End Time 2025-02-03 12:01:06 [2025-02-03 12:01:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392886', 'tblTempUsageDetail_20' ) start [2025-02-03 12:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392886', 'tblTempUsageDetail_20' ) end [2025-02-03 12:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392886', 'tblTempVendorCDR_20' ) start [2025-02-03 12:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392886', 'tblTempVendorCDR_20' ) end [2025-02-03 12:01:30] Production.INFO: ProcessCDR(1,14392886,1,1,2) [2025-02-03 12:01:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:01:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:01:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:01:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392886', 'tblTempUsageDetail_20' ) start [2025-02-03 12:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392886', 'tblTempUsageDetail_20' ) end [2025-02-03 12:01:34] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:01:34] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:01:34] Production.INFO: ==26084== Releasing lock... [2025-02-03 12:01:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:01:34] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:02:05 [end_date_ymd] => 2025-02-03 12:02:05 [RateCDR] => 1 ) [2025-02-03 12: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-02-03 09:02:05' and `end` < '2025-02-03 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-02-03 12:02:23] Production.INFO: count ==5435 [2025-02-03 12:02:25] Production.ERROR: pbx CDR StartTime 2025-02-03 09:02:05 - End Time 2025-02-03 12:02:05 [2025-02-03 12:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392891', 'tblTempUsageDetail_20' ) start [2025-02-03 12:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392891', 'tblTempUsageDetail_20' ) end [2025-02-03 12:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392891', 'tblTempVendorCDR_20' ) start [2025-02-03 12:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392891', 'tblTempVendorCDR_20' ) end [2025-02-03 12:02:25] Production.INFO: ProcessCDR(1,14392891,1,1,2) [2025-02-03 12:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392891', 'tblTempUsageDetail_20' ) start [2025-02-03 12:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392891', 'tblTempUsageDetail_20' ) end [2025-02-03 12:02:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:02:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:02:30] Production.INFO: ==26180== Releasing lock... [2025-02-03 12:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:02:30] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:03:05 [end_date_ymd] => 2025-02-03 12:03:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:03:05' and `end` < '2025-02-03 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-02-03 12:03:22] Production.INFO: count ==5407 [2025-02-03 12:03:25] Production.ERROR: pbx CDR StartTime 2025-02-03 09:03:05 - End Time 2025-02-03 12:03:05 [2025-02-03 12:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392896', 'tblTempUsageDetail_20' ) start [2025-02-03 12:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392896', 'tblTempUsageDetail_20' ) end [2025-02-03 12:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392896', 'tblTempVendorCDR_20' ) start [2025-02-03 12:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392896', 'tblTempVendorCDR_20' ) end [2025-02-03 12:03:25] Production.INFO: ProcessCDR(1,14392896,1,1,2) [2025-02-03 12:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392896', 'tblTempUsageDetail_20' ) start [2025-02-03 12:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392896', 'tblTempUsageDetail_20' ) end [2025-02-03 12:03:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:03:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:03:29] Production.INFO: ==26275== Releasing lock... [2025-02-03 12:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:03:29] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:04:05 [end_date_ymd] => 2025-02-03 12:04:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:04:05' and `end` < '2025-02-03 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-02-03 12:04:23] Production.INFO: count ==5398 [2025-02-03 12:04:25] Production.ERROR: pbx CDR StartTime 2025-02-03 09:04:05 - End Time 2025-02-03 12:04:05 [2025-02-03 12:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392901', 'tblTempUsageDetail_20' ) start [2025-02-03 12:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392901', 'tblTempUsageDetail_20' ) end [2025-02-03 12:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392901', 'tblTempVendorCDR_20' ) start [2025-02-03 12:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392901', 'tblTempVendorCDR_20' ) end [2025-02-03 12:04:25] Production.INFO: ProcessCDR(1,14392901,1,1,2) [2025-02-03 12:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392901', 'tblTempUsageDetail_20' ) start [2025-02-03 12:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392901', 'tblTempUsageDetail_20' ) end [2025-02-03 12:04:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:04:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:04:30] Production.INFO: ==26372== Releasing lock... [2025-02-03 12:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:04:30] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:05:05 [end_date_ymd] => 2025-02-03 12:05:05 [RateCDR] => 1 ) [2025-02-03 12: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-02-03 09:05:05' and `end` < '2025-02-03 12: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-02-03 12:05:24] Production.INFO: count ==5398 [2025-02-03 12:05:26] Production.ERROR: pbx CDR StartTime 2025-02-03 09:05:05 - End Time 2025-02-03 12:05:05 [2025-02-03 12:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392906', 'tblTempUsageDetail_20' ) start [2025-02-03 12:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392906', 'tblTempUsageDetail_20' ) end [2025-02-03 12:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392906', 'tblTempVendorCDR_20' ) start [2025-02-03 12:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392906', 'tblTempVendorCDR_20' ) end [2025-02-03 12:05:26] Production.INFO: ProcessCDR(1,14392906,1,1,2) [2025-02-03 12:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392906', 'tblTempUsageDetail_20' ) start [2025-02-03 12:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392906', 'tblTempUsageDetail_20' ) end [2025-02-03 12:05:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:05:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:05:31] Production.INFO: ==26461== Releasing lock... [2025-02-03 12:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:05:31] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:06:06 [end_date_ymd] => 2025-02-03 12:06:06 [RateCDR] => 1 ) [2025-02-03 12: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-02-03 09:06:06' and `end` < '2025-02-03 12: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-02-03 12:06:25] Production.INFO: count ==5395 [2025-02-03 12:06:27] Production.ERROR: pbx CDR StartTime 2025-02-03 09:06:06 - End Time 2025-02-03 12:06:06 [2025-02-03 12:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392911', 'tblTempUsageDetail_20' ) start [2025-02-03 12:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392911', 'tblTempUsageDetail_20' ) end [2025-02-03 12:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392911', 'tblTempVendorCDR_20' ) start [2025-02-03 12:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392911', 'tblTempVendorCDR_20' ) end [2025-02-03 12:06:27] Production.INFO: ProcessCDR(1,14392911,1,1,2) [2025-02-03 12:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:06:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:06:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:06:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392911', 'tblTempUsageDetail_20' ) start [2025-02-03 12:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392911', 'tblTempUsageDetail_20' ) end [2025-02-03 12:06:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:06:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:06:32] Production.INFO: ==26559== Releasing lock... [2025-02-03 12:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:06:32] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:07:06 [end_date_ymd] => 2025-02-03 12:07:06 [RateCDR] => 1 ) [2025-02-03 12: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-02-03 09:07:06' and `end` < '2025-02-03 12: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-02-03 12:07:21] Production.INFO: count ==5395 [2025-02-03 12:07:24] Production.ERROR: pbx CDR StartTime 2025-02-03 09:07:06 - End Time 2025-02-03 12:07:06 [2025-02-03 12:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392916', 'tblTempUsageDetail_20' ) start [2025-02-03 12:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392916', 'tblTempUsageDetail_20' ) end [2025-02-03 12:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392916', 'tblTempVendorCDR_20' ) start [2025-02-03 12:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392916', 'tblTempVendorCDR_20' ) end [2025-02-03 12:07:24] Production.INFO: ProcessCDR(1,14392916,1,1,2) [2025-02-03 12:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392916', 'tblTempUsageDetail_20' ) start [2025-02-03 12:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392916', 'tblTempUsageDetail_20' ) end [2025-02-03 12:07:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:07:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:07:29] Production.INFO: ==26661== Releasing lock... [2025-02-03 12:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:07:29] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:08:06 [end_date_ymd] => 2025-02-03 12:08:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:08:06' and `end` < '2025-02-03 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-02-03 12:08:26] Production.INFO: count ==5397 [2025-02-03 12:08:28] Production.ERROR: pbx CDR StartTime 2025-02-03 09:08:06 - End Time 2025-02-03 12:08:06 [2025-02-03 12:08:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392921', 'tblTempUsageDetail_20' ) start [2025-02-03 12:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392921', 'tblTempUsageDetail_20' ) end [2025-02-03 12:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392921', 'tblTempVendorCDR_20' ) start [2025-02-03 12:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392921', 'tblTempVendorCDR_20' ) end [2025-02-03 12:08:28] Production.INFO: ProcessCDR(1,14392921,1,1,2) [2025-02-03 12:08:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:08:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392921', 'tblTempUsageDetail_20' ) start [2025-02-03 12:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392921', 'tblTempUsageDetail_20' ) end [2025-02-03 12:08:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:08:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:08:33] Production.INFO: ==26753== Releasing lock... [2025-02-03 12:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:08:33] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:09:05 [end_date_ymd] => 2025-02-03 12:09:05 [RateCDR] => 1 ) [2025-02-03 12: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-02-03 09:09:05' and `end` < '2025-02-03 12: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-02-03 12:09:21] Production.INFO: count ==5407 [2025-02-03 12:09:23] Production.ERROR: pbx CDR StartTime 2025-02-03 09:09:05 - End Time 2025-02-03 12:09:05 [2025-02-03 12:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392926', 'tblTempUsageDetail_20' ) start [2025-02-03 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392926', 'tblTempUsageDetail_20' ) end [2025-02-03 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392926', 'tblTempVendorCDR_20' ) start [2025-02-03 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392926', 'tblTempVendorCDR_20' ) end [2025-02-03 12:09:23] Production.INFO: ProcessCDR(1,14392926,1,1,2) [2025-02-03 12:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392926', 'tblTempUsageDetail_20' ) start [2025-02-03 12:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392926', 'tblTempUsageDetail_20' ) end [2025-02-03 12:09:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:09:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:09:28] Production.INFO: ==26894== Releasing lock... [2025-02-03 12:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:09:28] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:10:06 [end_date_ymd] => 2025-02-03 12:10:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:10:06' and `end` < '2025-02-03 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-02-03 12:10:25] Production.INFO: count ==5381 [2025-02-03 12:10:27] Production.ERROR: pbx CDR StartTime 2025-02-03 09:10:06 - End Time 2025-02-03 12:10:06 [2025-02-03 12:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392932', 'tblTempUsageDetail_20' ) start [2025-02-03 12:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392932', 'tblTempUsageDetail_20' ) end [2025-02-03 12:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392932', 'tblTempVendorCDR_20' ) start [2025-02-03 12:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392932', 'tblTempVendorCDR_20' ) end [2025-02-03 12:10:27] Production.INFO: ProcessCDR(1,14392932,1,1,2) [2025-02-03 12:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392932', 'tblTempUsageDetail_20' ) start [2025-02-03 12:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392932', 'tblTempUsageDetail_20' ) end [2025-02-03 12:10:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:10:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:10:32] Production.INFO: ==26996== Releasing lock... [2025-02-03 12:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:10:32] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:11:05 [end_date_ymd] => 2025-02-03 12:11:05 [RateCDR] => 1 ) [2025-02-03 12: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-02-03 09:11:05' and `end` < '2025-02-03 12: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-02-03 12:11:22] Production.INFO: count ==5422 [2025-02-03 12:11:24] Production.ERROR: pbx CDR StartTime 2025-02-03 09:11:05 - End Time 2025-02-03 12:11:05 [2025-02-03 12:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392937', 'tblTempUsageDetail_20' ) start [2025-02-03 12:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392937', 'tblTempUsageDetail_20' ) end [2025-02-03 12:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392937', 'tblTempVendorCDR_20' ) start [2025-02-03 12:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392937', 'tblTempVendorCDR_20' ) end [2025-02-03 12:11:24] Production.INFO: ProcessCDR(1,14392937,1,1,2) [2025-02-03 12:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392937', 'tblTempUsageDetail_20' ) start [2025-02-03 12:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392937', 'tblTempUsageDetail_20' ) end [2025-02-03 12:11:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:11:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:11:29] Production.INFO: ==27093== Releasing lock... [2025-02-03 12:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:11:29] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:12:05 [end_date_ymd] => 2025-02-03 12:12:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:12:05' and `end` < '2025-02-03 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-02-03 12:12:34] Production.INFO: count ==5421 [2025-02-03 12:12:37] Production.ERROR: pbx CDR StartTime 2025-02-03 09:12:05 - End Time 2025-02-03 12:12:05 [2025-02-03 12:12:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:12:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392942', 'tblTempUsageDetail_20' ) start [2025-02-03 12:12:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392942', 'tblTempUsageDetail_20' ) end [2025-02-03 12:12:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392942', 'tblTempVendorCDR_20' ) start [2025-02-03 12:12:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392942', 'tblTempVendorCDR_20' ) end [2025-02-03 12:12:37] Production.INFO: ProcessCDR(1,14392942,1,1,2) [2025-02-03 12:12:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:12:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:12:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:12:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:12:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392942', 'tblTempUsageDetail_20' ) start [2025-02-03 12:12:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392942', 'tblTempUsageDetail_20' ) end [2025-02-03 12:12:41] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:12:41] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:12:42] Production.INFO: ==27188== Releasing lock... [2025-02-03 12:12:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:12:42] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:13:05 [end_date_ymd] => 2025-02-03 12:13:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:13:05' and `end` < '2025-02-03 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-02-03 12:13:25] Production.INFO: count ==5414 [2025-02-03 12:13:27] Production.ERROR: pbx CDR StartTime 2025-02-03 09:13:05 - End Time 2025-02-03 12:13:05 [2025-02-03 12:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392947', 'tblTempUsageDetail_20' ) start [2025-02-03 12:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392947', 'tblTempUsageDetail_20' ) end [2025-02-03 12:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392947', 'tblTempVendorCDR_20' ) start [2025-02-03 12:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392947', 'tblTempVendorCDR_20' ) end [2025-02-03 12:13:28] Production.INFO: ProcessCDR(1,14392947,1,1,2) [2025-02-03 12:13:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:13:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:13:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:13:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392947', 'tblTempUsageDetail_20' ) start [2025-02-03 12:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392947', 'tblTempUsageDetail_20' ) end [2025-02-03 12:13:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:13:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:13:33] Production.INFO: ==27285== Releasing lock... [2025-02-03 12:13:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:13:33] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:14:05 [end_date_ymd] => 2025-02-03 12:14:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:14:05' and `end` < '2025-02-03 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-02-03 12:14:24] Production.INFO: count ==5401 [2025-02-03 12:14:26] Production.ERROR: pbx CDR StartTime 2025-02-03 09:14:05 - End Time 2025-02-03 12:14:05 [2025-02-03 12:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392952', 'tblTempUsageDetail_20' ) start [2025-02-03 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392952', 'tblTempUsageDetail_20' ) end [2025-02-03 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392952', 'tblTempVendorCDR_20' ) start [2025-02-03 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392952', 'tblTempVendorCDR_20' ) end [2025-02-03 12:14:26] Production.INFO: ProcessCDR(1,14392952,1,1,2) [2025-02-03 12:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:14:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392952', 'tblTempUsageDetail_20' ) start [2025-02-03 12:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392952', 'tblTempUsageDetail_20' ) end [2025-02-03 12:14:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:14:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:14:31] Production.INFO: ==27380== Releasing lock... [2025-02-03 12:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:14:31] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:15:06 [end_date_ymd] => 2025-02-03 12:15:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:15:06' and `end` < '2025-02-03 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-02-03 12:15:26] Production.INFO: count ==5383 [2025-02-03 12:15:29] Production.ERROR: pbx CDR StartTime 2025-02-03 09:15:06 - End Time 2025-02-03 12:15:06 [2025-02-03 12:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392957', 'tblTempUsageDetail_20' ) start [2025-02-03 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392957', 'tblTempUsageDetail_20' ) end [2025-02-03 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392957', 'tblTempVendorCDR_20' ) start [2025-02-03 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392957', 'tblTempVendorCDR_20' ) end [2025-02-03 12:15:29] Production.INFO: ProcessCDR(1,14392957,1,1,2) [2025-02-03 12:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392957', 'tblTempUsageDetail_20' ) start [2025-02-03 12:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392957', 'tblTempUsageDetail_20' ) end [2025-02-03 12:15:34] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:15:34] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:15:34] Production.INFO: ==27478== Releasing lock... [2025-02-03 12:15:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:15:34] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:16:05 [end_date_ymd] => 2025-02-03 12:16:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:16:05' and `end` < '2025-02-03 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-02-03 12:16:25] Production.INFO: count ==5378 [2025-02-03 12:16:27] Production.ERROR: pbx CDR StartTime 2025-02-03 09:16:05 - End Time 2025-02-03 12:16:05 [2025-02-03 12:16:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392962', 'tblTempUsageDetail_20' ) start [2025-02-03 12:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392962', 'tblTempUsageDetail_20' ) end [2025-02-03 12:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392962', 'tblTempVendorCDR_20' ) start [2025-02-03 12:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392962', 'tblTempVendorCDR_20' ) end [2025-02-03 12:16:27] Production.INFO: ProcessCDR(1,14392962,1,1,2) [2025-02-03 12:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392962', 'tblTempUsageDetail_20' ) start [2025-02-03 12:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392962', 'tblTempUsageDetail_20' ) end [2025-02-03 12:16:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:16:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:16:32] Production.INFO: ==27571== Releasing lock... [2025-02-03 12:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:16:32] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 12:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:17:06 [end_date_ymd] => 2025-02-03 12:17:06 [RateCDR] => 1 ) [2025-02-03 12:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 09:17:06' and `end` < '2025-02-03 12:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 12:17:25] Production.INFO: count ==5370 [2025-02-03 12:17:28] Production.ERROR: pbx CDR StartTime 2025-02-03 09:17:06 - End Time 2025-02-03 12:17:06 [2025-02-03 12:17:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392967', 'tblTempUsageDetail_20' ) start [2025-02-03 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392967', 'tblTempUsageDetail_20' ) end [2025-02-03 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392967', 'tblTempVendorCDR_20' ) start [2025-02-03 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392967', 'tblTempVendorCDR_20' ) end [2025-02-03 12:17:28] Production.INFO: ProcessCDR(1,14392967,1,1,2) [2025-02-03 12:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392967', 'tblTempUsageDetail_20' ) start [2025-02-03 12:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392967', 'tblTempUsageDetail_20' ) end [2025-02-03 12:17:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:17:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:17:33] Production.INFO: ==27667== Releasing lock... [2025-02-03 12:17:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:17:33] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:18:05 [end_date_ymd] => 2025-02-03 12:18:05 [RateCDR] => 1 ) [2025-02-03 12: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-02-03 09:18:05' and `end` < '2025-02-03 12: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-02-03 12:18:23] Production.INFO: count ==5373 [2025-02-03 12:18:25] Production.ERROR: pbx CDR StartTime 2025-02-03 09:18:05 - End Time 2025-02-03 12:18:05 [2025-02-03 12:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392972', 'tblTempUsageDetail_20' ) start [2025-02-03 12:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392972', 'tblTempUsageDetail_20' ) end [2025-02-03 12:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392972', 'tblTempVendorCDR_20' ) start [2025-02-03 12:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392972', 'tblTempVendorCDR_20' ) end [2025-02-03 12:18:26] Production.INFO: ProcessCDR(1,14392972,1,1,2) [2025-02-03 12:18:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392972', 'tblTempUsageDetail_20' ) start [2025-02-03 12:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392972', 'tblTempUsageDetail_20' ) end [2025-02-03 12:18:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:18:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:18:30] Production.INFO: ==27770== Releasing lock... [2025-02-03 12:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:18:30] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:19:05 [end_date_ymd] => 2025-02-03 12:19:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:19:05' and `end` < '2025-02-03 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-02-03 12:19:23] Production.INFO: count ==5351 [2025-02-03 12:19:25] Production.ERROR: pbx CDR StartTime 2025-02-03 09:19:05 - End Time 2025-02-03 12:19:05 [2025-02-03 12:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392977', 'tblTempUsageDetail_20' ) start [2025-02-03 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392977', 'tblTempUsageDetail_20' ) end [2025-02-03 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392977', 'tblTempVendorCDR_20' ) start [2025-02-03 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392977', 'tblTempVendorCDR_20' ) end [2025-02-03 12:19:25] Production.INFO: ProcessCDR(1,14392977,1,1,2) [2025-02-03 12:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392977', 'tblTempUsageDetail_20' ) start [2025-02-03 12:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392977', 'tblTempUsageDetail_20' ) end [2025-02-03 12:19:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:19:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:19:30] Production.INFO: ==27874== Releasing lock... [2025-02-03 12:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:19:30] Production.INFO: 68 MB #Memory Used# [2025-02-03 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:20:05 [end_date_ymd] => 2025-02-03 12:20:05 [RateCDR] => 1 ) [2025-02-03 12: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-02-03 09:20:05' and `end` < '2025-02-03 12: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-02-03 12:20:21] Production.INFO: count ==5323 [2025-02-03 12:20:23] Production.ERROR: pbx CDR StartTime 2025-02-03 09:20:05 - End Time 2025-02-03 12:20:05 [2025-02-03 12:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392983', 'tblTempUsageDetail_20' ) start [2025-02-03 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392983', 'tblTempUsageDetail_20' ) end [2025-02-03 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392983', 'tblTempVendorCDR_20' ) start [2025-02-03 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392983', 'tblTempVendorCDR_20' ) end [2025-02-03 12:20:23] Production.INFO: ProcessCDR(1,14392983,1,1,2) [2025-02-03 12:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392983', 'tblTempUsageDetail_20' ) start [2025-02-03 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392983', 'tblTempUsageDetail_20' ) end [2025-02-03 12:20:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:20:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:20:28] Production.INFO: ==27970== Releasing lock... [2025-02-03 12:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:20:28] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:21:05 [end_date_ymd] => 2025-02-03 12:21:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:21:05' and `end` < '2025-02-03 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-02-03 12:21:22] Production.INFO: count ==5309 [2025-02-03 12:21:24] Production.ERROR: pbx CDR StartTime 2025-02-03 09:21:05 - End Time 2025-02-03 12:21:05 [2025-02-03 12:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392988', 'tblTempUsageDetail_20' ) start [2025-02-03 12:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392988', 'tblTempUsageDetail_20' ) end [2025-02-03 12:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392988', 'tblTempVendorCDR_20' ) start [2025-02-03 12:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392988', 'tblTempVendorCDR_20' ) end [2025-02-03 12:21:24] Production.INFO: ProcessCDR(1,14392988,1,1,2) [2025-02-03 12:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392988', 'tblTempUsageDetail_20' ) start [2025-02-03 12:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392988', 'tblTempUsageDetail_20' ) end [2025-02-03 12:21:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:21:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:21:29] Production.INFO: ==28065== Releasing lock... [2025-02-03 12:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:21:29] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:22:05 [end_date_ymd] => 2025-02-03 12:22:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:22:05' and `end` < '2025-02-03 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-02-03 12:22:22] Production.INFO: count ==5332 [2025-02-03 12:22:24] Production.ERROR: pbx CDR StartTime 2025-02-03 09:22:05 - End Time 2025-02-03 12:22:05 [2025-02-03 12:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392993', 'tblTempUsageDetail_20' ) start [2025-02-03 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392993', 'tblTempUsageDetail_20' ) end [2025-02-03 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392993', 'tblTempVendorCDR_20' ) start [2025-02-03 12:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392993', 'tblTempVendorCDR_20' ) end [2025-02-03 12:22:25] Production.INFO: ProcessCDR(1,14392993,1,1,2) [2025-02-03 12:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392993', 'tblTempUsageDetail_20' ) start [2025-02-03 12:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392993', 'tblTempUsageDetail_20' ) end [2025-02-03 12:22:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:22:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:22:29] Production.INFO: ==28157== Releasing lock... [2025-02-03 12:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:22:29] Production.INFO: 68 MB #Memory Used# [2025-02-03 12:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:23:04 [end_date_ymd] => 2025-02-03 12:23:04 [RateCDR] => 1 ) [2025-02-03 12: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-02-03 09:23:04' and `end` < '2025-02-03 12: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-02-03 12:23:21] Production.INFO: count ==5297 [2025-02-03 12:23:23] Production.ERROR: pbx CDR StartTime 2025-02-03 09:23:04 - End Time 2025-02-03 12:23:04 [2025-02-03 12:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392998', 'tblTempUsageDetail_20' ) start [2025-02-03 12:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14392998', 'tblTempUsageDetail_20' ) end [2025-02-03 12:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392998', 'tblTempVendorCDR_20' ) start [2025-02-03 12:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14392998', 'tblTempVendorCDR_20' ) end [2025-02-03 12:23:24] Production.INFO: ProcessCDR(1,14392998,1,1,2) [2025-02-03 12:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14392998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14392998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14392998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14392998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392998', 'tblTempUsageDetail_20' ) start [2025-02-03 12:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14392998', 'tblTempUsageDetail_20' ) end [2025-02-03 12:23:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:23:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:23:28] Production.INFO: ==28250== Releasing lock... [2025-02-03 12:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:23:28] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:24:05 [end_date_ymd] => 2025-02-03 12:24:05 [RateCDR] => 1 ) [2025-02-03 12: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-02-03 09:24:05' and `end` < '2025-02-03 12: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-02-03 12:24:23] Production.INFO: count ==5297 [2025-02-03 12:24:26] Production.ERROR: pbx CDR StartTime 2025-02-03 09:24:05 - End Time 2025-02-03 12:24:05 [2025-02-03 12:24:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393003', 'tblTempUsageDetail_20' ) start [2025-02-03 12:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393003', 'tblTempUsageDetail_20' ) end [2025-02-03 12:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393003', 'tblTempVendorCDR_20' ) start [2025-02-03 12:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393003', 'tblTempVendorCDR_20' ) end [2025-02-03 12:24:26] Production.INFO: ProcessCDR(1,14393003,1,1,2) [2025-02-03 12:24:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:24:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:24:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393003', 'tblTempUsageDetail_20' ) start [2025-02-03 12:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393003', 'tblTempUsageDetail_20' ) end [2025-02-03 12:24:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:24:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:24:31] Production.INFO: ==28346== Releasing lock... [2025-02-03 12:24:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:24:31] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:25:05 [end_date_ymd] => 2025-02-03 12:25:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:25:05' and `end` < '2025-02-03 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-02-03 12:25:24] Production.INFO: count ==5293 [2025-02-03 12:25:26] Production.ERROR: pbx CDR StartTime 2025-02-03 09:25:05 - End Time 2025-02-03 12:25:05 [2025-02-03 12:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393008', 'tblTempUsageDetail_20' ) start [2025-02-03 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393008', 'tblTempUsageDetail_20' ) end [2025-02-03 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393008', 'tblTempVendorCDR_20' ) start [2025-02-03 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393008', 'tblTempVendorCDR_20' ) end [2025-02-03 12:25:26] Production.INFO: ProcessCDR(1,14393008,1,1,2) [2025-02-03 12:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393008', 'tblTempUsageDetail_20' ) start [2025-02-03 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393008', 'tblTempUsageDetail_20' ) end [2025-02-03 12:25:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:25:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:25:30] Production.INFO: ==28476== Releasing lock... [2025-02-03 12:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:25:30] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:26:05 [end_date_ymd] => 2025-02-03 12:26:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:26:05' and `end` < '2025-02-03 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-02-03 12:26:25] Production.INFO: count ==5294 [2025-02-03 12:26:27] Production.ERROR: pbx CDR StartTime 2025-02-03 09:26:05 - End Time 2025-02-03 12:26:05 [2025-02-03 12:26:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393013', 'tblTempUsageDetail_20' ) start [2025-02-03 12:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393013', 'tblTempUsageDetail_20' ) end [2025-02-03 12:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393013', 'tblTempVendorCDR_20' ) start [2025-02-03 12:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393013', 'tblTempVendorCDR_20' ) end [2025-02-03 12:26:27] Production.INFO: ProcessCDR(1,14393013,1,1,2) [2025-02-03 12:26:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:26:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:26:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:26:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393013', 'tblTempUsageDetail_20' ) start [2025-02-03 12:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393013', 'tblTempUsageDetail_20' ) end [2025-02-03 12:26:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:26:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:26:32] Production.INFO: ==28575== Releasing lock... [2025-02-03 12:26:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:26:32] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 12:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:27:04 [end_date_ymd] => 2025-02-03 12:27:04 [RateCDR] => 1 ) [2025-02-03 12: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-02-03 09:27:04' and `end` < '2025-02-03 12: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-02-03 12:27:25] Production.INFO: count ==5302 [2025-02-03 12:27:27] Production.ERROR: pbx CDR StartTime 2025-02-03 09:27:04 - End Time 2025-02-03 12:27:04 [2025-02-03 12:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393018', 'tblTempUsageDetail_20' ) start [2025-02-03 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393018', 'tblTempUsageDetail_20' ) end [2025-02-03 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393018', 'tblTempVendorCDR_20' ) start [2025-02-03 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393018', 'tblTempVendorCDR_20' ) end [2025-02-03 12:27:27] Production.INFO: ProcessCDR(1,14393018,1,1,2) [2025-02-03 12:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393018', 'tblTempUsageDetail_20' ) start [2025-02-03 12:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393018', 'tblTempUsageDetail_20' ) end [2025-02-03 12:27:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:27:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:27:32] Production.INFO: ==28668== Releasing lock... [2025-02-03 12:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:27:32] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:28:05 [end_date_ymd] => 2025-02-03 12:28:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:28:05' and `end` < '2025-02-03 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-02-03 12:28:24] Production.INFO: count ==5304 [2025-02-03 12:28:27] Production.ERROR: pbx CDR StartTime 2025-02-03 09:28:05 - End Time 2025-02-03 12:28:05 [2025-02-03 12:28:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393023', 'tblTempUsageDetail_20' ) start [2025-02-03 12:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393023', 'tblTempUsageDetail_20' ) end [2025-02-03 12:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393023', 'tblTempVendorCDR_20' ) start [2025-02-03 12:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393023', 'tblTempVendorCDR_20' ) end [2025-02-03 12:28:27] Production.INFO: ProcessCDR(1,14393023,1,1,2) [2025-02-03 12:28:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:28:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393023', 'tblTempUsageDetail_20' ) start [2025-02-03 12:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393023', 'tblTempUsageDetail_20' ) end [2025-02-03 12:28:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:28:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:28:32] Production.INFO: ==28762== Releasing lock... [2025-02-03 12:28:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:28:32] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:29:06 [end_date_ymd] => 2025-02-03 12:29:06 [RateCDR] => 1 ) [2025-02-03 12: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-02-03 09:29:06' and `end` < '2025-02-03 12: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-02-03 12:29:26] Production.INFO: count ==5286 [2025-02-03 12:29:28] Production.ERROR: pbx CDR StartTime 2025-02-03 09:29:06 - End Time 2025-02-03 12:29:06 [2025-02-03 12:29:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393028', 'tblTempUsageDetail_20' ) start [2025-02-03 12:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393028', 'tblTempUsageDetail_20' ) end [2025-02-03 12:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393028', 'tblTempVendorCDR_20' ) start [2025-02-03 12:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393028', 'tblTempVendorCDR_20' ) end [2025-02-03 12:29:29] Production.INFO: ProcessCDR(1,14393028,1,1,2) [2025-02-03 12:29:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:29:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:29:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:29:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393028', 'tblTempUsageDetail_20' ) start [2025-02-03 12:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393028', 'tblTempUsageDetail_20' ) end [2025-02-03 12:29:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:29:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:29:33] Production.INFO: ==28853== Releasing lock... [2025-02-03 12:29:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:29:33] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:30:06 [end_date_ymd] => 2025-02-03 12:30:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:30:06' and `end` < '2025-02-03 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-02-03 12:30:27] Production.INFO: count ==5284 [2025-02-03 12:30:29] Production.ERROR: pbx CDR StartTime 2025-02-03 09:30:06 - End Time 2025-02-03 12:30:06 [2025-02-03 12:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393034', 'tblTempUsageDetail_20' ) start [2025-02-03 12:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393034', 'tblTempUsageDetail_20' ) end [2025-02-03 12:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393034', 'tblTempVendorCDR_20' ) start [2025-02-03 12:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393034', 'tblTempVendorCDR_20' ) end [2025-02-03 12:30:29] Production.INFO: ProcessCDR(1,14393034,1,1,2) [2025-02-03 12:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393034', 'tblTempUsageDetail_20' ) start [2025-02-03 12:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393034', 'tblTempUsageDetail_20' ) end [2025-02-03 12:30:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:30:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:30:33] Production.INFO: ==28950== Releasing lock... [2025-02-03 12:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:30:33] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:31:05 [end_date_ymd] => 2025-02-03 12:31:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:31:05' and `end` < '2025-02-03 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-02-03 12:31:22] Production.INFO: count ==5279 [2025-02-03 12:31:24] Production.ERROR: pbx CDR StartTime 2025-02-03 09:31:05 - End Time 2025-02-03 12:31:05 [2025-02-03 12:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393039', 'tblTempUsageDetail_20' ) start [2025-02-03 12:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393039', 'tblTempUsageDetail_20' ) end [2025-02-03 12:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393039', 'tblTempVendorCDR_20' ) start [2025-02-03 12:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393039', 'tblTempVendorCDR_20' ) end [2025-02-03 12:31:25] Production.INFO: ProcessCDR(1,14393039,1,1,2) [2025-02-03 12:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393039', 'tblTempUsageDetail_20' ) start [2025-02-03 12:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393039', 'tblTempUsageDetail_20' ) end [2025-02-03 12:31:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:31:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:31:29] Production.INFO: ==29046== Releasing lock... [2025-02-03 12:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:31:29] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:32:05 [end_date_ymd] => 2025-02-03 12:32:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:32:05' and `end` < '2025-02-03 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-02-03 12:32:18] Production.INFO: count ==5288 [2025-02-03 12:32:21] Production.ERROR: pbx CDR StartTime 2025-02-03 09:32:05 - End Time 2025-02-03 12:32:05 [2025-02-03 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393044', 'tblTempUsageDetail_20' ) start [2025-02-03 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393044', 'tblTempUsageDetail_20' ) end [2025-02-03 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393044', 'tblTempVendorCDR_20' ) start [2025-02-03 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393044', 'tblTempVendorCDR_20' ) end [2025-02-03 12:32:21] Production.INFO: ProcessCDR(1,14393044,1,1,2) [2025-02-03 12:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393044', 'tblTempUsageDetail_20' ) start [2025-02-03 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393044', 'tblTempUsageDetail_20' ) end [2025-02-03 12:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:32:26] Production.INFO: ==29137== Releasing lock... [2025-02-03 12:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:32:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:33:05 [end_date_ymd] => 2025-02-03 12:33:05 [RateCDR] => 1 ) [2025-02-03 12: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-02-03 09:33:05' and `end` < '2025-02-03 12: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-02-03 12:33:19] Production.INFO: count ==5290 [2025-02-03 12:33:21] Production.ERROR: pbx CDR StartTime 2025-02-03 09:33:05 - End Time 2025-02-03 12:33:05 [2025-02-03 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393049', 'tblTempUsageDetail_20' ) start [2025-02-03 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393049', 'tblTempUsageDetail_20' ) end [2025-02-03 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393049', 'tblTempVendorCDR_20' ) start [2025-02-03 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393049', 'tblTempVendorCDR_20' ) end [2025-02-03 12:33:21] Production.INFO: ProcessCDR(1,14393049,1,1,2) [2025-02-03 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393049', 'tblTempUsageDetail_20' ) start [2025-02-03 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393049', 'tblTempUsageDetail_20' ) end [2025-02-03 12:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:33:26] Production.INFO: ==29233== Releasing lock... [2025-02-03 12:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:33:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:34:05 [end_date_ymd] => 2025-02-03 12:34:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:34:05' and `end` < '2025-02-03 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-02-03 12:34:19] Production.INFO: count ==5277 [2025-02-03 12:34:21] Production.ERROR: pbx CDR StartTime 2025-02-03 09:34:05 - End Time 2025-02-03 12:34:05 [2025-02-03 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393054', 'tblTempUsageDetail_20' ) start [2025-02-03 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393054', 'tblTempUsageDetail_20' ) end [2025-02-03 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393054', 'tblTempVendorCDR_20' ) start [2025-02-03 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393054', 'tblTempVendorCDR_20' ) end [2025-02-03 12:34:21] Production.INFO: ProcessCDR(1,14393054,1,1,2) [2025-02-03 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393054', 'tblTempUsageDetail_20' ) start [2025-02-03 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393054', 'tblTempUsageDetail_20' ) end [2025-02-03 12:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:34:26] Production.INFO: ==29328== Releasing lock... [2025-02-03 12:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:34:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 12:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:35:04 [end_date_ymd] => 2025-02-03 12:35:04 [RateCDR] => 1 ) [2025-02-03 12: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-02-03 09:35:04' and `end` < '2025-02-03 12: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-02-03 12:35:18] Production.INFO: count ==5267 [2025-02-03 12:35:20] Production.ERROR: pbx CDR StartTime 2025-02-03 09:35:04 - End Time 2025-02-03 12:35:04 [2025-02-03 12:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393059', 'tblTempUsageDetail_20' ) start [2025-02-03 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393059', 'tblTempUsageDetail_20' ) end [2025-02-03 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393059', 'tblTempVendorCDR_20' ) start [2025-02-03 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393059', 'tblTempVendorCDR_20' ) end [2025-02-03 12:35:21] Production.INFO: ProcessCDR(1,14393059,1,1,2) [2025-02-03 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393059', 'tblTempUsageDetail_20' ) start [2025-02-03 12:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393059', 'tblTempUsageDetail_20' ) end [2025-02-03 12:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:35:25] Production.INFO: ==29423== Releasing lock... [2025-02-03 12:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:35:25] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:36:05 [end_date_ymd] => 2025-02-03 12:36:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:36:05' and `end` < '2025-02-03 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-02-03 12:36:19] Production.INFO: count ==5245 [2025-02-03 12:36:22] Production.ERROR: pbx CDR StartTime 2025-02-03 09:36:05 - End Time 2025-02-03 12:36:05 [2025-02-03 12:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393064', 'tblTempUsageDetail_20' ) start [2025-02-03 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393064', 'tblTempUsageDetail_20' ) end [2025-02-03 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393064', 'tblTempVendorCDR_20' ) start [2025-02-03 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393064', 'tblTempVendorCDR_20' ) end [2025-02-03 12:36:22] Production.INFO: ProcessCDR(1,14393064,1,1,2) [2025-02-03 12:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393064', 'tblTempUsageDetail_20' ) start [2025-02-03 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393064', 'tblTempUsageDetail_20' ) end [2025-02-03 12:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:36:26] Production.INFO: ==29518== Releasing lock... [2025-02-03 12:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:36:26] Production.INFO: 67.25 MB #Memory Used# [2025-02-03 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:37:05 [end_date_ymd] => 2025-02-03 12:37:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:37:05' and `end` < '2025-02-03 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-02-03 12:37:19] Production.INFO: count ==5245 [2025-02-03 12:37:21] Production.ERROR: pbx CDR StartTime 2025-02-03 09:37:05 - End Time 2025-02-03 12:37:05 [2025-02-03 12:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393069', 'tblTempUsageDetail_20' ) start [2025-02-03 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393069', 'tblTempUsageDetail_20' ) end [2025-02-03 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393069', 'tblTempVendorCDR_20' ) start [2025-02-03 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393069', 'tblTempVendorCDR_20' ) end [2025-02-03 12:37:21] Production.INFO: ProcessCDR(1,14393069,1,1,2) [2025-02-03 12:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393069', 'tblTempUsageDetail_20' ) start [2025-02-03 12:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393069', 'tblTempUsageDetail_20' ) end [2025-02-03 12:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:37:25] Production.INFO: ==29611== Releasing lock... [2025-02-03 12:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:37:25] Production.INFO: 67.25 MB #Memory Used# [2025-02-03 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:38:06 [end_date_ymd] => 2025-02-03 12:38:06 [RateCDR] => 1 ) [2025-02-03 12: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-02-03 09:38:06' and `end` < '2025-02-03 12: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-02-03 12:38:23] Production.INFO: count ==5254 [2025-02-03 12:38:25] Production.ERROR: pbx CDR StartTime 2025-02-03 09:38:06 - End Time 2025-02-03 12:38:06 [2025-02-03 12:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393074', 'tblTempUsageDetail_20' ) start [2025-02-03 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393074', 'tblTempUsageDetail_20' ) end [2025-02-03 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393074', 'tblTempVendorCDR_20' ) start [2025-02-03 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393074', 'tblTempVendorCDR_20' ) end [2025-02-03 12:38:26] Production.INFO: ProcessCDR(1,14393074,1,1,2) [2025-02-03 12:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393074', 'tblTempUsageDetail_20' ) start [2025-02-03 12:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393074', 'tblTempUsageDetail_20' ) end [2025-02-03 12:38:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:38:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:38:30] Production.INFO: ==29703== Releasing lock... [2025-02-03 12:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:38:30] Production.INFO: 67.25 MB #Memory Used# [2025-02-03 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:39:05 [end_date_ymd] => 2025-02-03 12:39:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:39:05' and `end` < '2025-02-03 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-02-03 12:39:19] Production.INFO: count ==5264 [2025-02-03 12:39:21] Production.ERROR: pbx CDR StartTime 2025-02-03 09:39:05 - End Time 2025-02-03 12:39:05 [2025-02-03 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393079', 'tblTempUsageDetail_20' ) start [2025-02-03 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393079', 'tblTempUsageDetail_20' ) end [2025-02-03 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393079', 'tblTempVendorCDR_20' ) start [2025-02-03 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393079', 'tblTempVendorCDR_20' ) end [2025-02-03 12:39:21] Production.INFO: ProcessCDR(1,14393079,1,1,2) [2025-02-03 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393079', 'tblTempUsageDetail_20' ) start [2025-02-03 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393079', 'tblTempUsageDetail_20' ) end [2025-02-03 12:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:39:26] Production.INFO: ==29803== Releasing lock... [2025-02-03 12:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:39:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:40:06 [end_date_ymd] => 2025-02-03 12:40:06 [RateCDR] => 1 ) [2025-02-03 12: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-02-03 09:40:06' and `end` < '2025-02-03 12: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-02-03 12:40:28] Production.INFO: count ==5282 [2025-02-03 12:40:30] Production.ERROR: pbx CDR StartTime 2025-02-03 09:40:06 - End Time 2025-02-03 12:40:06 [2025-02-03 12:40:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393084', 'tblTempUsageDetail_20' ) start [2025-02-03 12:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393084', 'tblTempUsageDetail_20' ) end [2025-02-03 12:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393084', 'tblTempVendorCDR_20' ) start [2025-02-03 12:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393084', 'tblTempVendorCDR_20' ) end [2025-02-03 12:40:31] Production.INFO: ProcessCDR(1,14393084,1,1,2) [2025-02-03 12:40:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:40:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:40:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:40:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393084', 'tblTempUsageDetail_20' ) start [2025-02-03 12:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393084', 'tblTempUsageDetail_20' ) end [2025-02-03 12:40:35] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:40:35] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:40:35] Production.INFO: ==29941== Releasing lock... [2025-02-03 12:40:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:40:35] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:41:05 [end_date_ymd] => 2025-02-03 12:41:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:41:05' and `end` < '2025-02-03 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-02-03 12:41:24] Production.INFO: count ==5310 [2025-02-03 12:41:26] Production.ERROR: pbx CDR StartTime 2025-02-03 09:41:05 - End Time 2025-02-03 12:41:05 [2025-02-03 12:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393090', 'tblTempUsageDetail_20' ) start [2025-02-03 12:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393090', 'tblTempUsageDetail_20' ) end [2025-02-03 12:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393090', 'tblTempVendorCDR_20' ) start [2025-02-03 12:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393090', 'tblTempVendorCDR_20' ) end [2025-02-03 12:41:26] Production.INFO: ProcessCDR(1,14393090,1,1,2) [2025-02-03 12:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393090', 'tblTempUsageDetail_20' ) start [2025-02-03 12:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393090', 'tblTempUsageDetail_20' ) end [2025-02-03 12:41:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:41:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:41:31] Production.INFO: ==30038== Releasing lock... [2025-02-03 12:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:41:31] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:42:05 [end_date_ymd] => 2025-02-03 12:42:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:42:05' and `end` < '2025-02-03 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-02-03 12:42:19] Production.INFO: count ==5322 [2025-02-03 12:42:21] Production.ERROR: pbx CDR StartTime 2025-02-03 09:42:05 - End Time 2025-02-03 12:42:05 [2025-02-03 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393095', 'tblTempUsageDetail_20' ) start [2025-02-03 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393095', 'tblTempUsageDetail_20' ) end [2025-02-03 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393095', 'tblTempVendorCDR_20' ) start [2025-02-03 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393095', 'tblTempVendorCDR_20' ) end [2025-02-03 12:42:22] Production.INFO: ProcessCDR(1,14393095,1,1,2) [2025-02-03 12:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393095', 'tblTempUsageDetail_20' ) start [2025-02-03 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393095', 'tblTempUsageDetail_20' ) end [2025-02-03 12:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:42:26] Production.INFO: ==30132== Releasing lock... [2025-02-03 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:42:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:43:05 [end_date_ymd] => 2025-02-03 12:43:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:43:05' and `end` < '2025-02-03 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-02-03 12:43:20] Production.INFO: count ==5325 [2025-02-03 12:43:23] Production.ERROR: pbx CDR StartTime 2025-02-03 09:43:05 - End Time 2025-02-03 12:43:05 [2025-02-03 12:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393100', 'tblTempUsageDetail_20' ) start [2025-02-03 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393100', 'tblTempUsageDetail_20' ) end [2025-02-03 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393100', 'tblTempVendorCDR_20' ) start [2025-02-03 12:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393100', 'tblTempVendorCDR_20' ) end [2025-02-03 12:43:23] Production.INFO: ProcessCDR(1,14393100,1,1,2) [2025-02-03 12:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393100', 'tblTempUsageDetail_20' ) start [2025-02-03 12:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393100', 'tblTempUsageDetail_20' ) end [2025-02-03 12:43:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:43:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:43:28] Production.INFO: ==30223== Releasing lock... [2025-02-03 12:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:43:28] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:44:05 [end_date_ymd] => 2025-02-03 12:44:05 [RateCDR] => 1 ) [2025-02-03 12: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-02-03 09:44:05' and `end` < '2025-02-03 12: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-02-03 12:44:24] Production.INFO: count ==5337 [2025-02-03 12:44:26] Production.ERROR: pbx CDR StartTime 2025-02-03 09:44:05 - End Time 2025-02-03 12:44:05 [2025-02-03 12:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393105', 'tblTempUsageDetail_20' ) start [2025-02-03 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393105', 'tblTempUsageDetail_20' ) end [2025-02-03 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393105', 'tblTempVendorCDR_20' ) start [2025-02-03 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393105', 'tblTempVendorCDR_20' ) end [2025-02-03 12:44:26] Production.INFO: ProcessCDR(1,14393105,1,1,2) [2025-02-03 12:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:44:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:44:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:44:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393105', 'tblTempUsageDetail_20' ) start [2025-02-03 12:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393105', 'tblTempUsageDetail_20' ) end [2025-02-03 12:44:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:44:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:44:32] Production.INFO: ==30302== Releasing lock... [2025-02-03 12:44:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:44:32] Production.INFO: 68 MB #Memory Used# [2025-02-03 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:45:05 [end_date_ymd] => 2025-02-03 12:45:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:45:05' and `end` < '2025-02-03 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-02-03 12:45:22] Production.INFO: count ==5348 [2025-02-03 12:45:25] Production.ERROR: pbx CDR StartTime 2025-02-03 09:45:05 - End Time 2025-02-03 12:45:05 [2025-02-03 12:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393110', 'tblTempUsageDetail_20' ) start [2025-02-03 12:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393110', 'tblTempUsageDetail_20' ) end [2025-02-03 12:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393110', 'tblTempVendorCDR_20' ) start [2025-02-03 12:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393110', 'tblTempVendorCDR_20' ) end [2025-02-03 12:45:25] Production.INFO: ProcessCDR(1,14393110,1,1,2) [2025-02-03 12:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:45:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:45:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393110', 'tblTempUsageDetail_20' ) start [2025-02-03 12:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393110', 'tblTempUsageDetail_20' ) end [2025-02-03 12:45:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:45:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:45:30] Production.INFO: ==30380== Releasing lock... [2025-02-03 12:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:45:30] Production.INFO: 68 MB #Memory Used# [2025-02-03 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:46:05 [end_date_ymd] => 2025-02-03 12:46:05 [RateCDR] => 1 ) [2025-02-03 12: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-02-03 09:46:05' and `end` < '2025-02-03 12: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-02-03 12:46:19] Production.INFO: count ==5360 [2025-02-03 12:46:21] Production.ERROR: pbx CDR StartTime 2025-02-03 09:46:05 - End Time 2025-02-03 12:46:05 [2025-02-03 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393115', 'tblTempUsageDetail_20' ) start [2025-02-03 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393115', 'tblTempUsageDetail_20' ) end [2025-02-03 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393115', 'tblTempVendorCDR_20' ) start [2025-02-03 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393115', 'tblTempVendorCDR_20' ) end [2025-02-03 12:46:21] Production.INFO: ProcessCDR(1,14393115,1,1,2) [2025-02-03 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393115', 'tblTempUsageDetail_20' ) start [2025-02-03 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393115', 'tblTempUsageDetail_20' ) end [2025-02-03 12:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:46:26] Production.INFO: ==30471== Releasing lock... [2025-02-03 12:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:46:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:47:05 [end_date_ymd] => 2025-02-03 12:47:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:47:05' and `end` < '2025-02-03 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-02-03 12:47:21] Production.INFO: count ==5355 [2025-02-03 12:47:23] Production.ERROR: pbx CDR StartTime 2025-02-03 09:47:05 - End Time 2025-02-03 12:47:05 [2025-02-03 12:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393120', 'tblTempUsageDetail_20' ) start [2025-02-03 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393120', 'tblTempUsageDetail_20' ) end [2025-02-03 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393120', 'tblTempVendorCDR_20' ) start [2025-02-03 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393120', 'tblTempVendorCDR_20' ) end [2025-02-03 12:47:23] Production.INFO: ProcessCDR(1,14393120,1,1,2) [2025-02-03 12:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393120', 'tblTempUsageDetail_20' ) start [2025-02-03 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393120', 'tblTempUsageDetail_20' ) end [2025-02-03 12:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:47:27] Production.INFO: ==30562== Releasing lock... [2025-02-03 12:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:47:27] Production.INFO: 68 MB #Memory Used# [2025-02-03 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:48:06 [end_date_ymd] => 2025-02-03 12:48:06 [RateCDR] => 1 ) [2025-02-03 12: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-02-03 09:48:06' and `end` < '2025-02-03 12: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-02-03 12:48:21] Production.INFO: count ==5367 [2025-02-03 12:48:24] Production.ERROR: pbx CDR StartTime 2025-02-03 09:48:06 - End Time 2025-02-03 12:48:06 [2025-02-03 12:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393125', 'tblTempUsageDetail_20' ) start [2025-02-03 12:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393125', 'tblTempUsageDetail_20' ) end [2025-02-03 12:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393125', 'tblTempVendorCDR_20' ) start [2025-02-03 12:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393125', 'tblTempVendorCDR_20' ) end [2025-02-03 12:48:24] Production.INFO: ProcessCDR(1,14393125,1,1,2) [2025-02-03 12:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393125', 'tblTempUsageDetail_20' ) start [2025-02-03 12:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393125', 'tblTempUsageDetail_20' ) end [2025-02-03 12:48:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:48:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:48:29] Production.INFO: ==30662== Releasing lock... [2025-02-03 12:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:48:29] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:49:05 [end_date_ymd] => 2025-02-03 12:49:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:49:05' and `end` < '2025-02-03 12: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-02-03 12:49:20] Production.INFO: count ==5390 [2025-02-03 12:49:22] Production.ERROR: pbx CDR StartTime 2025-02-03 09:49:05 - End Time 2025-02-03 12:49:05 [2025-02-03 12:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393130', 'tblTempUsageDetail_20' ) start [2025-02-03 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393130', 'tblTempUsageDetail_20' ) end [2025-02-03 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393130', 'tblTempVendorCDR_20' ) start [2025-02-03 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393130', 'tblTempVendorCDR_20' ) end [2025-02-03 12:49:22] Production.INFO: ProcessCDR(1,14393130,1,1,2) [2025-02-03 12:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393130', 'tblTempUsageDetail_20' ) start [2025-02-03 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393130', 'tblTempUsageDetail_20' ) end [2025-02-03 12:49:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:49:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:49:27] Production.INFO: ==30756== Releasing lock... [2025-02-03 12:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:49:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 12:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:50:07 [end_date_ymd] => 2025-02-03 12:50:07 [RateCDR] => 1 ) [2025-02-03 12:50: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-02-03 09:50:07' and `end` < '2025-02-03 12:50: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-02-03 12:50:21] Production.INFO: count ==5388 [2025-02-03 12:50:24] Production.ERROR: pbx CDR StartTime 2025-02-03 09:50:07 - End Time 2025-02-03 12:50:07 [2025-02-03 12:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393135', 'tblTempUsageDetail_20' ) start [2025-02-03 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393135', 'tblTempUsageDetail_20' ) end [2025-02-03 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393135', 'tblTempVendorCDR_20' ) start [2025-02-03 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393135', 'tblTempVendorCDR_20' ) end [2025-02-03 12:50:24] Production.INFO: ProcessCDR(1,14393135,1,1,2) [2025-02-03 12:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393135', 'tblTempUsageDetail_20' ) start [2025-02-03 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393135', 'tblTempUsageDetail_20' ) end [2025-02-03 12:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:50:29] Production.INFO: ==30855== Releasing lock... [2025-02-03 12:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:50:29] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:51:05 [end_date_ymd] => 2025-02-03 12:51:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:51:05' and `end` < '2025-02-03 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-02-03 12:51:22] Production.INFO: count ==5412 [2025-02-03 12:51:25] Production.ERROR: pbx CDR StartTime 2025-02-03 09:51:05 - End Time 2025-02-03 12:51:05 [2025-02-03 12:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393141', 'tblTempUsageDetail_20' ) start [2025-02-03 12:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393141', 'tblTempUsageDetail_20' ) end [2025-02-03 12:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393141', 'tblTempVendorCDR_20' ) start [2025-02-03 12:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393141', 'tblTempVendorCDR_20' ) end [2025-02-03 12:51:25] Production.INFO: ProcessCDR(1,14393141,1,1,2) [2025-02-03 12:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393141', 'tblTempUsageDetail_20' ) start [2025-02-03 12:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393141', 'tblTempUsageDetail_20' ) end [2025-02-03 12:51:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:51:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:51:29] Production.INFO: ==30951== Releasing lock... [2025-02-03 12:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:51:29] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:52:06 [end_date_ymd] => 2025-02-03 12:52:06 [RateCDR] => 1 ) [2025-02-03 12: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-02-03 09:52:06' and `end` < '2025-02-03 12: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-02-03 12:52:21] Production.INFO: count ==5416 [2025-02-03 12:52:24] Production.ERROR: pbx CDR StartTime 2025-02-03 09:52:06 - End Time 2025-02-03 12:52:06 [2025-02-03 12:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393146', 'tblTempUsageDetail_20' ) start [2025-02-03 12:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393146', 'tblTempUsageDetail_20' ) end [2025-02-03 12:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393146', 'tblTempVendorCDR_20' ) start [2025-02-03 12:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393146', 'tblTempVendorCDR_20' ) end [2025-02-03 12:52:24] Production.INFO: ProcessCDR(1,14393146,1,1,2) [2025-02-03 12:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393146', 'tblTempUsageDetail_20' ) start [2025-02-03 12:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393146', 'tblTempUsageDetail_20' ) end [2025-02-03 12:52:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:52:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:52:29] Production.INFO: ==31047== Releasing lock... [2025-02-03 12:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:52:29] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:53:05 [end_date_ymd] => 2025-02-03 12:53:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:53:05' and `end` < '2025-02-03 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-02-03 12:53:23] Production.INFO: count ==5425 [2025-02-03 12:53:25] Production.ERROR: pbx CDR StartTime 2025-02-03 09:53:05 - End Time 2025-02-03 12:53:05 [2025-02-03 12:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393151', 'tblTempUsageDetail_20' ) start [2025-02-03 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393151', 'tblTempUsageDetail_20' ) end [2025-02-03 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393151', 'tblTempVendorCDR_20' ) start [2025-02-03 12:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393151', 'tblTempVendorCDR_20' ) end [2025-02-03 12:53:25] Production.INFO: ProcessCDR(1,14393151,1,1,2) [2025-02-03 12:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393151', 'tblTempUsageDetail_20' ) start [2025-02-03 12:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393151', 'tblTempUsageDetail_20' ) end [2025-02-03 12:53:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:53:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:53:30] Production.INFO: ==31140== Releasing lock... [2025-02-03 12:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:53:30] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:54:05 [end_date_ymd] => 2025-02-03 12:54:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:54:05' and `end` < '2025-02-03 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-02-03 12:54:33] Production.INFO: count ==5414 [2025-02-03 12:54:35] Production.ERROR: pbx CDR StartTime 2025-02-03 09:54:05 - End Time 2025-02-03 12:54:05 [2025-02-03 12:54:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:54:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393156', 'tblTempUsageDetail_20' ) start [2025-02-03 12:54:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393156', 'tblTempUsageDetail_20' ) end [2025-02-03 12:54:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393156', 'tblTempVendorCDR_20' ) start [2025-02-03 12:54:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393156', 'tblTempVendorCDR_20' ) end [2025-02-03 12:54:36] Production.INFO: ProcessCDR(1,14393156,1,1,2) [2025-02-03 12:54:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:54:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:54:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:54:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:54:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393156', 'tblTempUsageDetail_20' ) start [2025-02-03 12:54:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393156', 'tblTempUsageDetail_20' ) end [2025-02-03 12:54:41] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:54:41] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:54:41] Production.INFO: ==31251== Releasing lock... [2025-02-03 12:54:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:54:41] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:55:05 [end_date_ymd] => 2025-02-03 12:55:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:55:05' and `end` < '2025-02-03 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-02-03 12:55:27] Production.INFO: count ==5411 [2025-02-03 12:55:29] Production.ERROR: pbx CDR StartTime 2025-02-03 09:55:05 - End Time 2025-02-03 12:55:05 [2025-02-03 12:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393161', 'tblTempUsageDetail_20' ) start [2025-02-03 12:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393161', 'tblTempUsageDetail_20' ) end [2025-02-03 12:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393161', 'tblTempVendorCDR_20' ) start [2025-02-03 12:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393161', 'tblTempVendorCDR_20' ) end [2025-02-03 12:55:29] Production.INFO: ProcessCDR(1,14393161,1,1,2) [2025-02-03 12:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:55:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:55:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:55:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393161', 'tblTempUsageDetail_20' ) start [2025-02-03 12:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393161', 'tblTempUsageDetail_20' ) end [2025-02-03 12:55:34] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:55:34] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:55:34] Production.INFO: ==31335== Releasing lock... [2025-02-03 12:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:55:34] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:56:05 [end_date_ymd] => 2025-02-03 12:56:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:56:05' and `end` < '2025-02-03 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-02-03 12:56:19] Production.INFO: count ==5392 [2025-02-03 12:56:22] Production.ERROR: pbx CDR StartTime 2025-02-03 09:56:05 - End Time 2025-02-03 12:56:05 [2025-02-03 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393166', 'tblTempUsageDetail_20' ) start [2025-02-03 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393166', 'tblTempUsageDetail_20' ) end [2025-02-03 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393166', 'tblTempVendorCDR_20' ) start [2025-02-03 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393166', 'tblTempVendorCDR_20' ) end [2025-02-03 12:56:22] Production.INFO: ProcessCDR(1,14393166,1,1,2) [2025-02-03 12:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393166', 'tblTempUsageDetail_20' ) start [2025-02-03 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393166', 'tblTempUsageDetail_20' ) end [2025-02-03 12:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:56:26] Production.INFO: ==31448== Releasing lock... [2025-02-03 12:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:56:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 12:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:57:04 [end_date_ymd] => 2025-02-03 12:57:04 [RateCDR] => 1 ) [2025-02-03 12:57: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-02-03 09:57:04' and `end` < '2025-02-03 12: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-02-03 12:57:18] Production.INFO: count ==5351 [2025-02-03 12:57:20] Production.ERROR: pbx CDR StartTime 2025-02-03 09:57:04 - End Time 2025-02-03 12:57:04 [2025-02-03 12:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393171', 'tblTempUsageDetail_20' ) start [2025-02-03 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393171', 'tblTempUsageDetail_20' ) end [2025-02-03 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393171', 'tblTempVendorCDR_20' ) start [2025-02-03 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393171', 'tblTempVendorCDR_20' ) end [2025-02-03 12:57:21] Production.INFO: ProcessCDR(1,14393171,1,1,2) [2025-02-03 12:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393171', 'tblTempUsageDetail_20' ) start [2025-02-03 12:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393171', 'tblTempUsageDetail_20' ) end [2025-02-03 12:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:57:25] Production.INFO: ==31519== Releasing lock... [2025-02-03 12:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:57:25] Production.INFO: 68 MB #Memory Used# [2025-02-03 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:58:06 [end_date_ymd] => 2025-02-03 12:58:06 [RateCDR] => 1 ) [2025-02-03 12: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-02-03 09:58:06' and `end` < '2025-02-03 12: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-02-03 12:58:24] Production.INFO: count ==5351 [2025-02-03 12:58:26] Production.ERROR: pbx CDR StartTime 2025-02-03 09:58:06 - End Time 2025-02-03 12:58:06 [2025-02-03 12:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393176', 'tblTempUsageDetail_20' ) start [2025-02-03 12:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393176', 'tblTempUsageDetail_20' ) end [2025-02-03 12:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393176', 'tblTempVendorCDR_20' ) start [2025-02-03 12:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393176', 'tblTempVendorCDR_20' ) end [2025-02-03 12:58:26] Production.INFO: ProcessCDR(1,14393176,1,1,2) [2025-02-03 12:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393176', 'tblTempUsageDetail_20' ) start [2025-02-03 12:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393176', 'tblTempUsageDetail_20' ) end [2025-02-03 12:58:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:58:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:58:31] Production.INFO: ==31597== Releasing lock... [2025-02-03 12:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:58:31] Production.INFO: 68 MB #Memory Used# [2025-02-03 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 09:59:05 [end_date_ymd] => 2025-02-03 12:59:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 09:59:05' and `end` < '2025-02-03 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-02-03 12:59:19] Production.INFO: count ==5357 [2025-02-03 12:59:21] Production.ERROR: pbx CDR StartTime 2025-02-03 09:59:05 - End Time 2025-02-03 12:59:05 [2025-02-03 12:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393181', 'tblTempUsageDetail_20' ) start [2025-02-03 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393181', 'tblTempUsageDetail_20' ) end [2025-02-03 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393181', 'tblTempVendorCDR_20' ) start [2025-02-03 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393181', 'tblTempVendorCDR_20' ) end [2025-02-03 12:59:21] Production.INFO: ProcessCDR(1,14393181,1,1,2) [2025-02-03 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 12:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393181', 'tblTempUsageDetail_20' ) start [2025-02-03 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393181', 'tblTempUsageDetail_20' ) end [2025-02-03 12:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 12:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 12:59:26] Production.INFO: ==31666== Releasing lock... [2025-02-03 12:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 12:59:26] Production.INFO: 68 MB #Memory Used# [2025-02-03 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:00:06 [end_date_ymd] => 2025-02-03 13:00:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:00:06' and `end` < '2025-02-03 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-02-03 13:00:25] Production.INFO: count ==5347 [2025-02-03 13:00:27] Production.ERROR: pbx CDR StartTime 2025-02-03 10:00:06 - End Time 2025-02-03 13:00:06 [2025-02-03 13:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393186', 'tblTempUsageDetail_20' ) start [2025-02-03 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393186', 'tblTempUsageDetail_20' ) end [2025-02-03 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393186', 'tblTempVendorCDR_20' ) start [2025-02-03 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393186', 'tblTempVendorCDR_20' ) end [2025-02-03 13:00:27] Production.INFO: ProcessCDR(1,14393186,1,1,2) [2025-02-03 13:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393186', 'tblTempUsageDetail_20' ) start [2025-02-03 13:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393186', 'tblTempUsageDetail_20' ) end [2025-02-03 13:00:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:00:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:00:32] Production.INFO: ==31740== Releasing lock... [2025-02-03 13:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:00:32] Production.INFO: 68 MB #Memory Used# [2025-02-03 13:01:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:01:07 [end_date_ymd] => 2025-02-03 13:01:07 [RateCDR] => 1 ) [2025-02-03 13:01: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-02-03 10:01:07' and `end` < '2025-02-03 13:01: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-02-03 13:01:24] Production.INFO: count ==5355 [2025-02-03 13:01:26] Production.ERROR: pbx CDR StartTime 2025-02-03 10:01:07 - End Time 2025-02-03 13:01:07 [2025-02-03 13:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393192', 'tblTempUsageDetail_20' ) start [2025-02-03 13:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393192', 'tblTempUsageDetail_20' ) end [2025-02-03 13:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393192', 'tblTempVendorCDR_20' ) start [2025-02-03 13:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393192', 'tblTempVendorCDR_20' ) end [2025-02-03 13:01:26] Production.INFO: ProcessCDR(1,14393192,1,1,2) [2025-02-03 13:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:01:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:01:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393192', 'tblTempUsageDetail_20' ) start [2025-02-03 13:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393192', 'tblTempUsageDetail_20' ) end [2025-02-03 13:01:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:01:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:01:31] Production.INFO: ==31827== Releasing lock... [2025-02-03 13:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:01:31] Production.INFO: 68 MB #Memory Used# [2025-02-03 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:02:05 [end_date_ymd] => 2025-02-03 13:02:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:02:05' and `end` < '2025-02-03 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-02-03 13:02:26] Production.INFO: count ==5369 [2025-02-03 13:02:28] Production.ERROR: pbx CDR StartTime 2025-02-03 10:02:05 - End Time 2025-02-03 13:02:05 [2025-02-03 13:02:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393197', 'tblTempUsageDetail_20' ) start [2025-02-03 13:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393197', 'tblTempUsageDetail_20' ) end [2025-02-03 13:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393197', 'tblTempVendorCDR_20' ) start [2025-02-03 13:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393197', 'tblTempVendorCDR_20' ) end [2025-02-03 13:02:29] Production.INFO: ProcessCDR(1,14393197,1,1,2) [2025-02-03 13:02:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393197', 'tblTempUsageDetail_20' ) start [2025-02-03 13:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393197', 'tblTempUsageDetail_20' ) end [2025-02-03 13:02:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:02:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:02:33] Production.INFO: ==31897== Releasing lock... [2025-02-03 13:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:02:33] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:03:06 [end_date_ymd] => 2025-02-03 13:03:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:03:06' and `end` < '2025-02-03 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-02-03 13:03:29] Production.INFO: count ==5340 [2025-02-03 13:03:31] Production.ERROR: pbx CDR StartTime 2025-02-03 10:03:06 - End Time 2025-02-03 13:03:06 [2025-02-03 13:03:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393202', 'tblTempUsageDetail_20' ) start [2025-02-03 13:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393202', 'tblTempUsageDetail_20' ) end [2025-02-03 13:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393202', 'tblTempVendorCDR_20' ) start [2025-02-03 13:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393202', 'tblTempVendorCDR_20' ) end [2025-02-03 13:03:31] Production.INFO: ProcessCDR(1,14393202,1,1,2) [2025-02-03 13:03:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:03:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:03:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:03:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:03:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393202', 'tblTempUsageDetail_20' ) start [2025-02-03 13:03:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393202', 'tblTempUsageDetail_20' ) end [2025-02-03 13:03:37] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:03:37] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:03:37] Production.INFO: ==31971== Releasing lock... [2025-02-03 13:03:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:03:37] Production.INFO: 68 MB #Memory Used# [2025-02-03 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:04:06 [end_date_ymd] => 2025-02-03 13:04:06 [RateCDR] => 1 ) [2025-02-03 13: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-02-03 10:04:06' and `end` < '2025-02-03 13: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-02-03 13:04:24] Production.INFO: count ==5345 [2025-02-03 13:04:27] Production.ERROR: pbx CDR StartTime 2025-02-03 10:04:06 - End Time 2025-02-03 13:04:06 [2025-02-03 13:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393207', 'tblTempUsageDetail_20' ) start [2025-02-03 13:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393207', 'tblTempUsageDetail_20' ) end [2025-02-03 13:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393207', 'tblTempVendorCDR_20' ) start [2025-02-03 13:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393207', 'tblTempVendorCDR_20' ) end [2025-02-03 13:04:27] Production.INFO: ProcessCDR(1,14393207,1,1,2) [2025-02-03 13:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393207', 'tblTempUsageDetail_20' ) start [2025-02-03 13:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393207', 'tblTempUsageDetail_20' ) end [2025-02-03 13:04:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:04:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:04:32] Production.INFO: ==32042== Releasing lock... [2025-02-03 13:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:04:32] Production.INFO: 68 MB #Memory Used# [2025-02-03 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:05:05 [end_date_ymd] => 2025-02-03 13:05:05 [RateCDR] => 1 ) [2025-02-03 13: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-02-03 10:05:05' and `end` < '2025-02-03 13: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-02-03 13:05:24] Production.INFO: count ==5318 [2025-02-03 13:05:26] Production.ERROR: pbx CDR StartTime 2025-02-03 10:05:05 - End Time 2025-02-03 13:05:05 [2025-02-03 13:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393212', 'tblTempUsageDetail_20' ) start [2025-02-03 13:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393212', 'tblTempUsageDetail_20' ) end [2025-02-03 13:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393212', 'tblTempVendorCDR_20' ) start [2025-02-03 13:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393212', 'tblTempVendorCDR_20' ) end [2025-02-03 13:05:26] Production.INFO: ProcessCDR(1,14393212,1,1,2) [2025-02-03 13:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393212', 'tblTempUsageDetail_20' ) start [2025-02-03 13:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393212', 'tblTempUsageDetail_20' ) end [2025-02-03 13:05:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:05:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:05:31] Production.INFO: ==32112== Releasing lock... [2025-02-03 13:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:05:31] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:06:05 [end_date_ymd] => 2025-02-03 13:06:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:06:05' and `end` < '2025-02-03 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-02-03 13:06:19] Production.INFO: count ==5306 [2025-02-03 13:06:21] Production.ERROR: pbx CDR StartTime 2025-02-03 10:06:05 - End Time 2025-02-03 13:06:05 [2025-02-03 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393217', 'tblTempUsageDetail_20' ) start [2025-02-03 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393217', 'tblTempUsageDetail_20' ) end [2025-02-03 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393217', 'tblTempVendorCDR_20' ) start [2025-02-03 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393217', 'tblTempVendorCDR_20' ) end [2025-02-03 13:06:21] Production.INFO: ProcessCDR(1,14393217,1,1,2) [2025-02-03 13:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393217', 'tblTempUsageDetail_20' ) start [2025-02-03 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393217', 'tblTempUsageDetail_20' ) end [2025-02-03 13:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:06:26] Production.INFO: ==32185== Releasing lock... [2025-02-03 13:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:06:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:07:05 [end_date_ymd] => 2025-02-03 13:07:05 [RateCDR] => 1 ) [2025-02-03 13: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-02-03 10:07:05' and `end` < '2025-02-03 13: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-02-03 13:07:26] Production.INFO: count ==5284 [2025-02-03 13:07:28] Production.ERROR: pbx CDR StartTime 2025-02-03 10:07:05 - End Time 2025-02-03 13:07:05 [2025-02-03 13:07:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393222', 'tblTempUsageDetail_20' ) start [2025-02-03 13:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393222', 'tblTempUsageDetail_20' ) end [2025-02-03 13:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393222', 'tblTempVendorCDR_20' ) start [2025-02-03 13:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393222', 'tblTempVendorCDR_20' ) end [2025-02-03 13:07:28] Production.INFO: ProcessCDR(1,14393222,1,1,2) [2025-02-03 13:07:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:07:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:07:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393222', 'tblTempUsageDetail_20' ) start [2025-02-03 13:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393222', 'tblTempUsageDetail_20' ) end [2025-02-03 13:07:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:07:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:07:33] Production.INFO: ==32256== Releasing lock... [2025-02-03 13:07:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:07:33] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:08:05 [end_date_ymd] => 2025-02-03 13:08:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:08:05' and `end` < '2025-02-03 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-02-03 13:08:27] Production.INFO: count ==5290 [2025-02-03 13:08:29] Production.ERROR: pbx CDR StartTime 2025-02-03 10:08:05 - End Time 2025-02-03 13:08:05 [2025-02-03 13:08:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393227', 'tblTempUsageDetail_20' ) start [2025-02-03 13:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393227', 'tblTempUsageDetail_20' ) end [2025-02-03 13:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393227', 'tblTempVendorCDR_20' ) start [2025-02-03 13:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393227', 'tblTempVendorCDR_20' ) end [2025-02-03 13:08:29] Production.INFO: ProcessCDR(1,14393227,1,1,2) [2025-02-03 13:08:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:08:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:08:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:08:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:08:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393227', 'tblTempUsageDetail_20' ) start [2025-02-03 13:08:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393227', 'tblTempUsageDetail_20' ) end [2025-02-03 13:08:34] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:08:34] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:08:34] Production.INFO: ==32332== Releasing lock... [2025-02-03 13:08:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:08:34] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:09:05 [end_date_ymd] => 2025-02-03 13:09:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:09:05' and `end` < '2025-02-03 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-02-03 13:09:23] Production.INFO: count ==5248 [2025-02-03 13:09:25] Production.ERROR: pbx CDR StartTime 2025-02-03 10:09:05 - End Time 2025-02-03 13:09:05 [2025-02-03 13:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393232', 'tblTempUsageDetail_20' ) start [2025-02-03 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393232', 'tblTempUsageDetail_20' ) end [2025-02-03 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393232', 'tblTempVendorCDR_20' ) start [2025-02-03 13:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393232', 'tblTempVendorCDR_20' ) end [2025-02-03 13:09:25] Production.INFO: ProcessCDR(1,14393232,1,1,2) [2025-02-03 13:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393232', 'tblTempUsageDetail_20' ) start [2025-02-03 13:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393232', 'tblTempUsageDetail_20' ) end [2025-02-03 13:09:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:09:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:09:30] Production.INFO: ==32401== Releasing lock... [2025-02-03 13:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:09:30] Production.INFO: 67.25 MB #Memory Used# [2025-02-03 13:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:10:07 [end_date_ymd] => 2025-02-03 13:10:07 [RateCDR] => 1 ) [2025-02-03 13: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-02-03 10:10:07' and `end` < '2025-02-03 13: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-02-03 13:10:23] Production.INFO: count ==5224 [2025-02-03 13:10:25] Production.ERROR: pbx CDR StartTime 2025-02-03 10:10:07 - End Time 2025-02-03 13:10:07 [2025-02-03 13:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393238', 'tblTempUsageDetail_20' ) start [2025-02-03 13:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393238', 'tblTempUsageDetail_20' ) end [2025-02-03 13:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393238', 'tblTempVendorCDR_20' ) start [2025-02-03 13:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393238', 'tblTempVendorCDR_20' ) end [2025-02-03 13:10:25] Production.INFO: ProcessCDR(1,14393238,1,1,2) [2025-02-03 13:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393238', 'tblTempUsageDetail_20' ) start [2025-02-03 13:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393238', 'tblTempUsageDetail_20' ) end [2025-02-03 13:10:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:10:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:10:30] Production.INFO: ==32480== Releasing lock... [2025-02-03 13:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:10:30] Production.INFO: 67 MB #Memory Used# [2025-02-03 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:11:05 [end_date_ymd] => 2025-02-03 13:11:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:11:05' and `end` < '2025-02-03 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-02-03 13:11:26] Production.INFO: count ==5214 [2025-02-03 13:11:28] Production.ERROR: pbx CDR StartTime 2025-02-03 10:11:05 - End Time 2025-02-03 13:11:05 [2025-02-03 13:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393243', 'tblTempUsageDetail_20' ) start [2025-02-03 13:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393243', 'tblTempUsageDetail_20' ) end [2025-02-03 13:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393243', 'tblTempVendorCDR_20' ) start [2025-02-03 13:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393243', 'tblTempVendorCDR_20' ) end [2025-02-03 13:11:28] Production.INFO: ProcessCDR(1,14393243,1,1,2) [2025-02-03 13:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393243', 'tblTempUsageDetail_20' ) start [2025-02-03 13:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393243', 'tblTempUsageDetail_20' ) end [2025-02-03 13:11:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:11:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:11:31] Production.INFO: ==32595== Releasing lock... [2025-02-03 13:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:11:31] Production.INFO: 67 MB #Memory Used# [2025-02-03 13:12:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:12:07 [end_date_ymd] => 2025-02-03 13:12:07 [RateCDR] => 1 ) [2025-02-03 13:12: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-02-03 10:12:07' and `end` < '2025-02-03 13:12: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-02-03 13:12:31] Production.INFO: count ==5201 [2025-02-03 13:12:33] Production.ERROR: pbx CDR StartTime 2025-02-03 10:12:07 - End Time 2025-02-03 13:12:07 [2025-02-03 13:12:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393248', 'tblTempUsageDetail_20' ) start [2025-02-03 13:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393248', 'tblTempUsageDetail_20' ) end [2025-02-03 13:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393248', 'tblTempVendorCDR_20' ) start [2025-02-03 13:12:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393248', 'tblTempVendorCDR_20' ) end [2025-02-03 13:12:33] Production.INFO: ProcessCDR(1,14393248,1,1,2) [2025-02-03 13:12:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:12:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:12:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:12:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:12:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393248', 'tblTempUsageDetail_20' ) start [2025-02-03 13:12:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393248', 'tblTempUsageDetail_20' ) end [2025-02-03 13:12:39] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:12:39] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:12:39] Production.INFO: ==32666== Releasing lock... [2025-02-03 13:12:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:12:39] Production.INFO: 67 MB #Memory Used# [2025-02-03 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:13:05 [end_date_ymd] => 2025-02-03 13:13:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:13:05' and `end` < '2025-02-03 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-02-03 13:13:24] Production.INFO: count ==5159 [2025-02-03 13:13:26] Production.ERROR: pbx CDR StartTime 2025-02-03 10:13:05 - End Time 2025-02-03 13:13:05 [2025-02-03 13:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393253', 'tblTempUsageDetail_20' ) start [2025-02-03 13:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393253', 'tblTempUsageDetail_20' ) end [2025-02-03 13:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393253', 'tblTempVendorCDR_20' ) start [2025-02-03 13:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393253', 'tblTempVendorCDR_20' ) end [2025-02-03 13:13:26] Production.INFO: ProcessCDR(1,14393253,1,1,2) [2025-02-03 13:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:13:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393253', 'tblTempUsageDetail_20' ) start [2025-02-03 13:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393253', 'tblTempUsageDetail_20' ) end [2025-02-03 13:13:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:13:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:13:31] Production.INFO: ==32738== Releasing lock... [2025-02-03 13:13:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:13:31] Production.INFO: 66.75 MB #Memory Used# [2025-02-03 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:14:06 [end_date_ymd] => 2025-02-03 13:14:06 [RateCDR] => 1 ) [2025-02-03 13: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-02-03 10:14:06' and `end` < '2025-02-03 13: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-02-03 13:14:24] Production.INFO: count ==5126 [2025-02-03 13:14:26] Production.ERROR: pbx CDR StartTime 2025-02-03 10:14:06 - End Time 2025-02-03 13:14:06 [2025-02-03 13:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393258', 'tblTempUsageDetail_20' ) start [2025-02-03 13:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393258', 'tblTempUsageDetail_20' ) end [2025-02-03 13:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393258', 'tblTempVendorCDR_20' ) start [2025-02-03 13:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393258', 'tblTempVendorCDR_20' ) end [2025-02-03 13:14:26] Production.INFO: ProcessCDR(1,14393258,1,1,2) [2025-02-03 13:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:14:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393258', 'tblTempUsageDetail_20' ) start [2025-02-03 13:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393258', 'tblTempUsageDetail_20' ) end [2025-02-03 13:14:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:14:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:14:31] Production.INFO: ==360== Releasing lock... [2025-02-03 13:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:14:31] Production.INFO: 66.5 MB #Memory Used# [2025-02-03 13:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:15:04 [end_date_ymd] => 2025-02-03 13:15:04 [RateCDR] => 1 ) [2025-02-03 13: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-02-03 10:15:04' and `end` < '2025-02-03 13: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-02-03 13:15:19] Production.INFO: count ==5091 [2025-02-03 13:15:21] Production.ERROR: pbx CDR StartTime 2025-02-03 10:15:04 - End Time 2025-02-03 13:15:04 [2025-02-03 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393263', 'tblTempUsageDetail_20' ) start [2025-02-03 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393263', 'tblTempUsageDetail_20' ) end [2025-02-03 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393263', 'tblTempVendorCDR_20' ) start [2025-02-03 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393263', 'tblTempVendorCDR_20' ) end [2025-02-03 13:15:22] Production.INFO: ProcessCDR(1,14393263,1,1,2) [2025-02-03 13:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393263', 'tblTempUsageDetail_20' ) start [2025-02-03 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393263', 'tblTempUsageDetail_20' ) end [2025-02-03 13:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:15:26] Production.INFO: ==435== Releasing lock... [2025-02-03 13:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:15:26] Production.INFO: 66 MB #Memory Used# [2025-02-03 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:16:05 [end_date_ymd] => 2025-02-03 13:16:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:16:05' and `end` < '2025-02-03 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-02-03 13:16:24] Production.INFO: count ==5085 [2025-02-03 13:16:26] Production.ERROR: pbx CDR StartTime 2025-02-03 10:16:05 - End Time 2025-02-03 13:16:05 [2025-02-03 13:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393268', 'tblTempUsageDetail_20' ) start [2025-02-03 13:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393268', 'tblTempUsageDetail_20' ) end [2025-02-03 13:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393268', 'tblTempVendorCDR_20' ) start [2025-02-03 13:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393268', 'tblTempVendorCDR_20' ) end [2025-02-03 13:16:26] Production.INFO: ProcessCDR(1,14393268,1,1,2) [2025-02-03 13:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393268', 'tblTempUsageDetail_20' ) start [2025-02-03 13:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393268', 'tblTempUsageDetail_20' ) end [2025-02-03 13:16:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:16:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:16:31] Production.INFO: ==512== Releasing lock... [2025-02-03 13:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:16:31] Production.INFO: 66 MB #Memory Used# [2025-02-03 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:17:05 [end_date_ymd] => 2025-02-03 13:17:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:17:05' and `end` < '2025-02-03 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-02-03 13:17:19] Production.INFO: count ==5055 [2025-02-03 13:17:21] Production.ERROR: pbx CDR StartTime 2025-02-03 10:17:05 - End Time 2025-02-03 13:17:05 [2025-02-03 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393273', 'tblTempUsageDetail_20' ) start [2025-02-03 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393273', 'tblTempUsageDetail_20' ) end [2025-02-03 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393273', 'tblTempVendorCDR_20' ) start [2025-02-03 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393273', 'tblTempVendorCDR_20' ) end [2025-02-03 13:17:21] Production.INFO: ProcessCDR(1,14393273,1,1,2) [2025-02-03 13:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393273', 'tblTempUsageDetail_20' ) start [2025-02-03 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393273', 'tblTempUsageDetail_20' ) end [2025-02-03 13:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:17:26] Production.INFO: ==589== Releasing lock... [2025-02-03 13:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:17:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-03 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:18:06 [end_date_ymd] => 2025-02-03 13:18:06 [RateCDR] => 1 ) [2025-02-03 13: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-02-03 10:18:06' and `end` < '2025-02-03 13: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-02-03 13:18:21] Production.INFO: count ==5057 [2025-02-03 13:18:23] Production.ERROR: pbx CDR StartTime 2025-02-03 10:18:06 - End Time 2025-02-03 13:18:06 [2025-02-03 13:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393278', 'tblTempUsageDetail_20' ) start [2025-02-03 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393278', 'tblTempUsageDetail_20' ) end [2025-02-03 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393278', 'tblTempVendorCDR_20' ) start [2025-02-03 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393278', 'tblTempVendorCDR_20' ) end [2025-02-03 13:18:23] Production.INFO: ProcessCDR(1,14393278,1,1,2) [2025-02-03 13:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393278', 'tblTempUsageDetail_20' ) start [2025-02-03 13:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393278', 'tblTempUsageDetail_20' ) end [2025-02-03 13:18:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:18:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:18:28] Production.INFO: ==706== Releasing lock... [2025-02-03 13:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:18:28] Production.INFO: 66 MB #Memory Used# [2025-02-03 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:19:05 [end_date_ymd] => 2025-02-03 13:19:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:19:05' and `end` < '2025-02-03 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-02-03 13:19:18] Production.INFO: count ==5063 [2025-02-03 13:19:20] Production.ERROR: pbx CDR StartTime 2025-02-03 10:19:05 - End Time 2025-02-03 13:19:05 [2025-02-03 13:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393283', 'tblTempUsageDetail_20' ) start [2025-02-03 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393283', 'tblTempUsageDetail_20' ) end [2025-02-03 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393283', 'tblTempVendorCDR_20' ) start [2025-02-03 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393283', 'tblTempVendorCDR_20' ) end [2025-02-03 13:19:21] Production.INFO: ProcessCDR(1,14393283,1,1,2) [2025-02-03 13:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393283', 'tblTempUsageDetail_20' ) start [2025-02-03 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393283', 'tblTempUsageDetail_20' ) end [2025-02-03 13:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:19:26] Production.INFO: ==827== Releasing lock... [2025-02-03 13:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:19:26] Production.INFO: 66 MB #Memory Used# [2025-02-03 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:20:06 [end_date_ymd] => 2025-02-03 13:20:06 [RateCDR] => 1 ) [2025-02-03 13: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-02-03 10:20:06' and `end` < '2025-02-03 13: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-02-03 13:20:22] Production.INFO: count ==5056 [2025-02-03 13:20:24] Production.ERROR: pbx CDR StartTime 2025-02-03 10:20:06 - End Time 2025-02-03 13:20:06 [2025-02-03 13:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393289', 'tblTempUsageDetail_20' ) start [2025-02-03 13:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393289', 'tblTempUsageDetail_20' ) end [2025-02-03 13:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393289', 'tblTempVendorCDR_20' ) start [2025-02-03 13:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393289', 'tblTempVendorCDR_20' ) end [2025-02-03 13:20:25] Production.INFO: ProcessCDR(1,14393289,1,1,2) [2025-02-03 13:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393289', 'tblTempUsageDetail_20' ) start [2025-02-03 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393289', 'tblTempUsageDetail_20' ) end [2025-02-03 13:20:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:20:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:20:28] Production.INFO: ==944== Releasing lock... [2025-02-03 13:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:20:28] Production.INFO: 65.75 MB #Memory Used# [2025-02-03 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:21:06 [end_date_ymd] => 2025-02-03 13:21:06 [RateCDR] => 1 ) [2025-02-03 13: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-02-03 10:21:06' and `end` < '2025-02-03 13: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-02-03 13:21:32] Production.INFO: count ==5041 [2025-02-03 13:21:34] Production.ERROR: pbx CDR StartTime 2025-02-03 10:21:06 - End Time 2025-02-03 13:21:06 [2025-02-03 13:21:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:21:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393294', 'tblTempUsageDetail_20' ) start [2025-02-03 13:21:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393294', 'tblTempUsageDetail_20' ) end [2025-02-03 13:21:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393294', 'tblTempVendorCDR_20' ) start [2025-02-03 13:21:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393294', 'tblTempVendorCDR_20' ) end [2025-02-03 13:21:35] Production.INFO: ProcessCDR(1,14393294,1,1,2) [2025-02-03 13:21:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:21:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:21:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:21:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:21:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393294', 'tblTempUsageDetail_20' ) start [2025-02-03 13:21:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393294', 'tblTempUsageDetail_20' ) end [2025-02-03 13:21:40] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:21:40] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:21:40] Production.INFO: ==1063== Releasing lock... [2025-02-03 13:21:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:21:40] Production.INFO: 65.75 MB #Memory Used# [2025-02-03 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:22:05 [end_date_ymd] => 2025-02-03 13:22:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:22:05' and `end` < '2025-02-03 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-02-03 13:22:26] Production.INFO: count ==5027 [2025-02-03 13:22:28] Production.ERROR: pbx CDR StartTime 2025-02-03 10:22:05 - End Time 2025-02-03 13:22:05 [2025-02-03 13:22:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393299', 'tblTempUsageDetail_20' ) start [2025-02-03 13:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393299', 'tblTempUsageDetail_20' ) end [2025-02-03 13:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393299', 'tblTempVendorCDR_20' ) start [2025-02-03 13:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393299', 'tblTempVendorCDR_20' ) end [2025-02-03 13:22:28] Production.INFO: ProcessCDR(1,14393299,1,1,2) [2025-02-03 13:22:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:22:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:22:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:22:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393299', 'tblTempUsageDetail_20' ) start [2025-02-03 13:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393299', 'tblTempUsageDetail_20' ) end [2025-02-03 13:22:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:22:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:22:33] Production.INFO: ==1189== Releasing lock... [2025-02-03 13:22:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:22:33] Production.INFO: 65.75 MB #Memory Used# [2025-02-03 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:23:05 [end_date_ymd] => 2025-02-03 13:23:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:23:05' and `end` < '2025-02-03 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-02-03 13:23:22] Production.INFO: count ==5052 [2025-02-03 13:23:24] Production.ERROR: pbx CDR StartTime 2025-02-03 10:23:05 - End Time 2025-02-03 13:23:05 [2025-02-03 13:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393304', 'tblTempUsageDetail_20' ) start [2025-02-03 13:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393304', 'tblTempUsageDetail_20' ) end [2025-02-03 13:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393304', 'tblTempVendorCDR_20' ) start [2025-02-03 13:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393304', 'tblTempVendorCDR_20' ) end [2025-02-03 13:23:25] Production.INFO: ProcessCDR(1,14393304,1,1,2) [2025-02-03 13:23:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393304', 'tblTempUsageDetail_20' ) start [2025-02-03 13:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393304', 'tblTempUsageDetail_20' ) end [2025-02-03 13:23:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:23:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:23:30] Production.INFO: ==1324== Releasing lock... [2025-02-03 13:23:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:23:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-03 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:24:05 [end_date_ymd] => 2025-02-03 13:24:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:24:05' and `end` < '2025-02-03 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-02-03 13:24:22] Production.INFO: count ==5037 [2025-02-03 13:24:24] Production.ERROR: pbx CDR StartTime 2025-02-03 10:24:05 - End Time 2025-02-03 13:24:05 [2025-02-03 13:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393309', 'tblTempUsageDetail_20' ) start [2025-02-03 13:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393309', 'tblTempUsageDetail_20' ) end [2025-02-03 13:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393309', 'tblTempVendorCDR_20' ) start [2025-02-03 13:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393309', 'tblTempVendorCDR_20' ) end [2025-02-03 13:24:25] Production.INFO: ProcessCDR(1,14393309,1,1,2) [2025-02-03 13:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393309', 'tblTempUsageDetail_20' ) start [2025-02-03 13:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393309', 'tblTempUsageDetail_20' ) end [2025-02-03 13:24:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:24:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:24:29] Production.INFO: ==1446== Releasing lock... [2025-02-03 13:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:24:29] Production.INFO: 65.75 MB #Memory Used# [2025-02-03 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:25:05 [end_date_ymd] => 2025-02-03 13:25:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:25:05' and `end` < '2025-02-03 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-02-03 13:25:22] Production.INFO: count ==5027 [2025-02-03 13:25:24] Production.ERROR: pbx CDR StartTime 2025-02-03 10:25:05 - End Time 2025-02-03 13:25:05 [2025-02-03 13:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393314', 'tblTempUsageDetail_20' ) start [2025-02-03 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393314', 'tblTempUsageDetail_20' ) end [2025-02-03 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393314', 'tblTempVendorCDR_20' ) start [2025-02-03 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393314', 'tblTempVendorCDR_20' ) end [2025-02-03 13:25:24] Production.INFO: ProcessCDR(1,14393314,1,1,2) [2025-02-03 13:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393314', 'tblTempUsageDetail_20' ) start [2025-02-03 13:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393314', 'tblTempUsageDetail_20' ) end [2025-02-03 13:25:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:25:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:25:29] Production.INFO: ==1607== Releasing lock... [2025-02-03 13:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:25:29] Production.INFO: 65.75 MB #Memory Used# [2025-02-03 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:26:05 [end_date_ymd] => 2025-02-03 13:26:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:26:05' and `end` < '2025-02-03 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-02-03 13:26:20] Production.INFO: count ==5006 [2025-02-03 13:26:22] Production.ERROR: pbx CDR StartTime 2025-02-03 10:26:05 - End Time 2025-02-03 13:26:05 [2025-02-03 13:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393319', 'tblTempUsageDetail_20' ) start [2025-02-03 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393319', 'tblTempUsageDetail_20' ) end [2025-02-03 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393319', 'tblTempVendorCDR_20' ) start [2025-02-03 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393319', 'tblTempVendorCDR_20' ) end [2025-02-03 13:26:22] Production.INFO: ProcessCDR(1,14393319,1,1,2) [2025-02-03 13:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393319', 'tblTempUsageDetail_20' ) start [2025-02-03 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393319', 'tblTempUsageDetail_20' ) end [2025-02-03 13:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:26:27] Production.INFO: ==1723== Releasing lock... [2025-02-03 13:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:26:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-03 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:27:05 [end_date_ymd] => 2025-02-03 13:27:05 [RateCDR] => 1 ) [2025-02-03 13: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-02-03 10:27:05' and `end` < '2025-02-03 13: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-02-03 13:27:21] Production.INFO: count ==4972 [2025-02-03 13:27:23] Production.ERROR: pbx CDR StartTime 2025-02-03 10:27:05 - End Time 2025-02-03 13:27:05 [2025-02-03 13:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393324', 'tblTempUsageDetail_20' ) start [2025-02-03 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393324', 'tblTempUsageDetail_20' ) end [2025-02-03 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393324', 'tblTempVendorCDR_20' ) start [2025-02-03 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393324', 'tblTempVendorCDR_20' ) end [2025-02-03 13:27:23] Production.INFO: ProcessCDR(1,14393324,1,1,2) [2025-02-03 13:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393324', 'tblTempUsageDetail_20' ) start [2025-02-03 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393324', 'tblTempUsageDetail_20' ) end [2025-02-03 13:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:27:26] Production.INFO: ==1889== Releasing lock... [2025-02-03 13:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:27:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-03 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:28:05 [end_date_ymd] => 2025-02-03 13:28:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:28:05' and `end` < '2025-02-03 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-02-03 13:28:21] Production.INFO: count ==4955 [2025-02-03 13:28:23] Production.ERROR: pbx CDR StartTime 2025-02-03 10:28:05 - End Time 2025-02-03 13:28:05 [2025-02-03 13:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393329', 'tblTempUsageDetail_20' ) start [2025-02-03 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393329', 'tblTempUsageDetail_20' ) end [2025-02-03 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393329', 'tblTempVendorCDR_20' ) start [2025-02-03 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393329', 'tblTempVendorCDR_20' ) end [2025-02-03 13:28:23] Production.INFO: ProcessCDR(1,14393329,1,1,2) [2025-02-03 13:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393329', 'tblTempUsageDetail_20' ) start [2025-02-03 13:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393329', 'tblTempUsageDetail_20' ) end [2025-02-03 13:28:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:28:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:28:28] Production.INFO: ==2008== Releasing lock... [2025-02-03 13:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:28:28] Production.INFO: 65 MB #Memory Used# [2025-02-03 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:29:05 [end_date_ymd] => 2025-02-03 13:29:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:29:05' and `end` < '2025-02-03 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-02-03 13:29:24] Production.INFO: count ==4915 [2025-02-03 13:29:26] Production.ERROR: pbx CDR StartTime 2025-02-03 10:29:05 - End Time 2025-02-03 13:29:05 [2025-02-03 13:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393334', 'tblTempUsageDetail_20' ) start [2025-02-03 13:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393334', 'tblTempUsageDetail_20' ) end [2025-02-03 13:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393334', 'tblTempVendorCDR_20' ) start [2025-02-03 13:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393334', 'tblTempVendorCDR_20' ) end [2025-02-03 13:29:26] Production.INFO: ProcessCDR(1,14393334,1,1,2) [2025-02-03 13:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393334', 'tblTempUsageDetail_20' ) start [2025-02-03 13:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393334', 'tblTempUsageDetail_20' ) end [2025-02-03 13:29:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:29:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:29:31] Production.INFO: ==2129== Releasing lock... [2025-02-03 13:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:29:31] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:30:06 [end_date_ymd] => 2025-02-03 13:30:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:30:06' and `end` < '2025-02-03 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-02-03 13:30:24] Production.INFO: count ==4919 [2025-02-03 13:30:26] Production.ERROR: pbx CDR StartTime 2025-02-03 10:30:06 - End Time 2025-02-03 13:30:06 [2025-02-03 13:30:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393339', 'tblTempUsageDetail_20' ) start [2025-02-03 13:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393339', 'tblTempUsageDetail_20' ) end [2025-02-03 13:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393339', 'tblTempVendorCDR_20' ) start [2025-02-03 13:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393339', 'tblTempVendorCDR_20' ) end [2025-02-03 13:30:27] Production.INFO: ProcessCDR(1,14393339,1,1,2) [2025-02-03 13:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:30:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393339', 'tblTempUsageDetail_20' ) start [2025-02-03 13:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393339', 'tblTempUsageDetail_20' ) end [2025-02-03 13:30:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:30:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:30:32] Production.INFO: ==2255== Releasing lock... [2025-02-03 13:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:30:32] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:31:05 [end_date_ymd] => 2025-02-03 13:31:05 [RateCDR] => 1 ) [2025-02-03 13: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-02-03 10:31:05' and `end` < '2025-02-03 13: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-02-03 13:31:20] Production.INFO: count ==4909 [2025-02-03 13:31:22] Production.ERROR: pbx CDR StartTime 2025-02-03 10:31:05 - End Time 2025-02-03 13:31:05 [2025-02-03 13:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393345', 'tblTempUsageDetail_20' ) start [2025-02-03 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393345', 'tblTempUsageDetail_20' ) end [2025-02-03 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393345', 'tblTempVendorCDR_20' ) start [2025-02-03 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393345', 'tblTempVendorCDR_20' ) end [2025-02-03 13:31:22] Production.INFO: ProcessCDR(1,14393345,1,1,2) [2025-02-03 13:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393345', 'tblTempUsageDetail_20' ) start [2025-02-03 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393345', 'tblTempUsageDetail_20' ) end [2025-02-03 13:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:31:27] Production.INFO: ==2374== Releasing lock... [2025-02-03 13:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:31:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:32:05 [end_date_ymd] => 2025-02-03 13:32:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:32:05' and `end` < '2025-02-03 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-02-03 13:32:24] Production.INFO: count ==4903 [2025-02-03 13:32:26] Production.ERROR: pbx CDR StartTime 2025-02-03 10:32:05 - End Time 2025-02-03 13:32:05 [2025-02-03 13:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393350', 'tblTempUsageDetail_20' ) start [2025-02-03 13:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393350', 'tblTempUsageDetail_20' ) end [2025-02-03 13:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393350', 'tblTempVendorCDR_20' ) start [2025-02-03 13:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393350', 'tblTempVendorCDR_20' ) end [2025-02-03 13:32:26] Production.INFO: ProcessCDR(1,14393350,1,1,2) [2025-02-03 13:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393350', 'tblTempUsageDetail_20' ) start [2025-02-03 13:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393350', 'tblTempUsageDetail_20' ) end [2025-02-03 13:32:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:32:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:32:30] Production.INFO: ==2494== Releasing lock... [2025-02-03 13:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:32:30] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:33:05 [end_date_ymd] => 2025-02-03 13:33:05 [RateCDR] => 1 ) [2025-02-03 13: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-02-03 10:33:05' and `end` < '2025-02-03 13: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-02-03 13:33:19] Production.INFO: count ==4905 [2025-02-03 13:33:21] Production.ERROR: pbx CDR StartTime 2025-02-03 10:33:05 - End Time 2025-02-03 13:33:05 [2025-02-03 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393355', 'tblTempUsageDetail_20' ) start [2025-02-03 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393355', 'tblTempUsageDetail_20' ) end [2025-02-03 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393355', 'tblTempVendorCDR_20' ) start [2025-02-03 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393355', 'tblTempVendorCDR_20' ) end [2025-02-03 13:33:21] Production.INFO: ProcessCDR(1,14393355,1,1,2) [2025-02-03 13:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393355', 'tblTempUsageDetail_20' ) start [2025-02-03 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393355', 'tblTempUsageDetail_20' ) end [2025-02-03 13:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:33:26] Production.INFO: ==2617== Releasing lock... [2025-02-03 13:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:33:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:34:05 [end_date_ymd] => 2025-02-03 13:34:05 [RateCDR] => 1 ) [2025-02-03 13: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-02-03 10:34:05' and `end` < '2025-02-03 13: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-02-03 13:34:22] Production.INFO: count ==4896 [2025-02-03 13:34:24] Production.ERROR: pbx CDR StartTime 2025-02-03 10:34:05 - End Time 2025-02-03 13:34:05 [2025-02-03 13:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393360', 'tblTempUsageDetail_20' ) start [2025-02-03 13:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393360', 'tblTempUsageDetail_20' ) end [2025-02-03 13:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393360', 'tblTempVendorCDR_20' ) start [2025-02-03 13:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393360', 'tblTempVendorCDR_20' ) end [2025-02-03 13:34:24] Production.INFO: ProcessCDR(1,14393360,1,1,2) [2025-02-03 13:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393360', 'tblTempUsageDetail_20' ) start [2025-02-03 13:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393360', 'tblTempUsageDetail_20' ) end [2025-02-03 13:34:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:34:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:34:28] Production.INFO: ==2736== Releasing lock... [2025-02-03 13:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:34:28] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:35:05 [end_date_ymd] => 2025-02-03 13:35:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:35:05' and `end` < '2025-02-03 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-02-03 13:35:21] Production.INFO: count ==4883 [2025-02-03 13:35:23] Production.ERROR: pbx CDR StartTime 2025-02-03 10:35:05 - End Time 2025-02-03 13:35:05 [2025-02-03 13:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393365', 'tblTempUsageDetail_20' ) start [2025-02-03 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393365', 'tblTempUsageDetail_20' ) end [2025-02-03 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393365', 'tblTempVendorCDR_20' ) start [2025-02-03 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393365', 'tblTempVendorCDR_20' ) end [2025-02-03 13:35:23] Production.INFO: ProcessCDR(1,14393365,1,1,2) [2025-02-03 13:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393365', 'tblTempUsageDetail_20' ) start [2025-02-03 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393365', 'tblTempUsageDetail_20' ) end [2025-02-03 13:35:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:35:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:35:28] Production.INFO: ==2865== Releasing lock... [2025-02-03 13:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:35:28] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:36:05 [end_date_ymd] => 2025-02-03 13:36:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:36:05' and `end` < '2025-02-03 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-02-03 13:36:21] Production.INFO: count ==4877 [2025-02-03 13:36:23] Production.ERROR: pbx CDR StartTime 2025-02-03 10:36:05 - End Time 2025-02-03 13:36:05 [2025-02-03 13:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393370', 'tblTempUsageDetail_20' ) start [2025-02-03 13:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393370', 'tblTempUsageDetail_20' ) end [2025-02-03 13:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393370', 'tblTempVendorCDR_20' ) start [2025-02-03 13:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393370', 'tblTempVendorCDR_20' ) end [2025-02-03 13:36:23] Production.INFO: ProcessCDR(1,14393370,1,1,2) [2025-02-03 13:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393370', 'tblTempUsageDetail_20' ) start [2025-02-03 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393370', 'tblTempUsageDetail_20' ) end [2025-02-03 13:36:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:36:27] Production.INFO: ==2988== Releasing lock... [2025-02-03 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:36:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:37:05 [end_date_ymd] => 2025-02-03 13:37:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:37:05' and `end` < '2025-02-03 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-02-03 13:37:23] Production.INFO: count ==4853 [2025-02-03 13:37:25] Production.ERROR: pbx CDR StartTime 2025-02-03 10:37:05 - End Time 2025-02-03 13:37:05 [2025-02-03 13:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393375', 'tblTempUsageDetail_20' ) start [2025-02-03 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393375', 'tblTempUsageDetail_20' ) end [2025-02-03 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393375', 'tblTempVendorCDR_20' ) start [2025-02-03 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393375', 'tblTempVendorCDR_20' ) end [2025-02-03 13:37:25] Production.INFO: ProcessCDR(1,14393375,1,1,2) [2025-02-03 13:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393375', 'tblTempUsageDetail_20' ) start [2025-02-03 13:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393375', 'tblTempUsageDetail_20' ) end [2025-02-03 13:37:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:37:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:37:29] Production.INFO: ==3073== Releasing lock... [2025-02-03 13:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:37:29] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 13:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:38:04 [end_date_ymd] => 2025-02-03 13:38:04 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:38:04' and `end` < '2025-02-03 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-02-03 13:38:19] Production.INFO: count ==4856 [2025-02-03 13:38:21] Production.ERROR: pbx CDR StartTime 2025-02-03 10:38:04 - End Time 2025-02-03 13:38:04 [2025-02-03 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393380', 'tblTempUsageDetail_20' ) start [2025-02-03 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393380', 'tblTempUsageDetail_20' ) end [2025-02-03 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393380', 'tblTempVendorCDR_20' ) start [2025-02-03 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393380', 'tblTempVendorCDR_20' ) end [2025-02-03 13:38:21] Production.INFO: ProcessCDR(1,14393380,1,1,2) [2025-02-03 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393380', 'tblTempUsageDetail_20' ) start [2025-02-03 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393380', 'tblTempUsageDetail_20' ) end [2025-02-03 13:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:38:26] Production.INFO: ==3150== Releasing lock... [2025-02-03 13:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:38:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:39:05 [end_date_ymd] => 2025-02-03 13:39:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:39:05' and `end` < '2025-02-03 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-02-03 13:39:19] Production.INFO: count ==4853 [2025-02-03 13:39:21] Production.ERROR: pbx CDR StartTime 2025-02-03 10:39:05 - End Time 2025-02-03 13:39:05 [2025-02-03 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393385', 'tblTempUsageDetail_20' ) start [2025-02-03 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393385', 'tblTempUsageDetail_20' ) end [2025-02-03 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393385', 'tblTempVendorCDR_20' ) start [2025-02-03 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393385', 'tblTempVendorCDR_20' ) end [2025-02-03 13:39:21] Production.INFO: ProcessCDR(1,14393385,1,1,2) [2025-02-03 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393385', 'tblTempUsageDetail_20' ) start [2025-02-03 13:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393385', 'tblTempUsageDetail_20' ) end [2025-02-03 13:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:39:25] Production.INFO: ==3240== Releasing lock... [2025-02-03 13:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:39:25] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 13:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:40:07 [end_date_ymd] => 2025-02-03 13:40:07 [RateCDR] => 1 ) [2025-02-03 13:40: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-02-03 10:40:07' and `end` < '2025-02-03 13:40: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-02-03 13:40:25] Production.INFO: count ==4841 [2025-02-03 13:40:27] Production.ERROR: pbx CDR StartTime 2025-02-03 10:40:07 - End Time 2025-02-03 13:40:07 [2025-02-03 13:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393391', 'tblTempUsageDetail_20' ) start [2025-02-03 13:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393391', 'tblTempUsageDetail_20' ) end [2025-02-03 13:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393391', 'tblTempVendorCDR_20' ) start [2025-02-03 13:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393391', 'tblTempVendorCDR_20' ) end [2025-02-03 13:40:27] Production.INFO: ProcessCDR(1,14393391,1,1,2) [2025-02-03 13:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393391', 'tblTempUsageDetail_20' ) start [2025-02-03 13:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393391', 'tblTempUsageDetail_20' ) end [2025-02-03 13:40:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:40:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:40:32] Production.INFO: ==3342== Releasing lock... [2025-02-03 13:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:40:32] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:41:05 [end_date_ymd] => 2025-02-03 13:41:05 [RateCDR] => 1 ) [2025-02-03 13: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-02-03 10:41:05' and `end` < '2025-02-03 13: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-02-03 13:41:19] Production.INFO: count ==4824 [2025-02-03 13:41:21] Production.ERROR: pbx CDR StartTime 2025-02-03 10:41:05 - End Time 2025-02-03 13:41:05 [2025-02-03 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393396', 'tblTempUsageDetail_20' ) start [2025-02-03 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393396', 'tblTempUsageDetail_20' ) end [2025-02-03 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393396', 'tblTempVendorCDR_20' ) start [2025-02-03 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393396', 'tblTempVendorCDR_20' ) end [2025-02-03 13:41:21] Production.INFO: ProcessCDR(1,14393396,1,1,2) [2025-02-03 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393396', 'tblTempUsageDetail_20' ) start [2025-02-03 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393396', 'tblTempUsageDetail_20' ) end [2025-02-03 13:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:41:25] Production.INFO: ==3435== Releasing lock... [2025-02-03 13:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:41:25] Production.INFO: 64 MB #Memory Used# [2025-02-03 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:42:05 [end_date_ymd] => 2025-02-03 13:42:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:42:05' and `end` < '2025-02-03 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-02-03 13:42:23] Production.INFO: count ==4821 [2025-02-03 13:42:25] Production.ERROR: pbx CDR StartTime 2025-02-03 10:42:05 - End Time 2025-02-03 13:42:05 [2025-02-03 13:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393401', 'tblTempUsageDetail_20' ) start [2025-02-03 13:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393401', 'tblTempUsageDetail_20' ) end [2025-02-03 13:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393401', 'tblTempVendorCDR_20' ) start [2025-02-03 13:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393401', 'tblTempVendorCDR_20' ) end [2025-02-03 13:42:25] Production.INFO: ProcessCDR(1,14393401,1,1,2) [2025-02-03 13:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393401', 'tblTempUsageDetail_20' ) start [2025-02-03 13:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393401', 'tblTempUsageDetail_20' ) end [2025-02-03 13:42:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:42:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:42:30] Production.INFO: ==3578== Releasing lock... [2025-02-03 13:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:42:30] Production.INFO: 64 MB #Memory Used# [2025-02-03 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:43:05 [end_date_ymd] => 2025-02-03 13:43:05 [RateCDR] => 1 ) [2025-02-03 13: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-02-03 10:43:05' and `end` < '2025-02-03 13: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-02-03 13:43:19] Production.INFO: count ==4804 [2025-02-03 13:43:21] Production.ERROR: pbx CDR StartTime 2025-02-03 10:43:05 - End Time 2025-02-03 13:43:05 [2025-02-03 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393406', 'tblTempUsageDetail_20' ) start [2025-02-03 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393406', 'tblTempUsageDetail_20' ) end [2025-02-03 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393406', 'tblTempVendorCDR_20' ) start [2025-02-03 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393406', 'tblTempVendorCDR_20' ) end [2025-02-03 13:43:21] Production.INFO: ProcessCDR(1,14393406,1,1,2) [2025-02-03 13:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393406', 'tblTempUsageDetail_20' ) start [2025-02-03 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393406', 'tblTempUsageDetail_20' ) end [2025-02-03 13:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:43:25] Production.INFO: ==3671== Releasing lock... [2025-02-03 13:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:43:25] Production.INFO: 64 MB #Memory Used# [2025-02-03 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:44:06 [end_date_ymd] => 2025-02-03 13:44:06 [RateCDR] => 1 ) [2025-02-03 13: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-02-03 10:44:06' and `end` < '2025-02-03 13: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-02-03 13:44:23] Production.INFO: count ==4802 [2025-02-03 13:44:25] Production.ERROR: pbx CDR StartTime 2025-02-03 10:44:06 - End Time 2025-02-03 13:44:06 [2025-02-03 13:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393411', 'tblTempUsageDetail_20' ) start [2025-02-03 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393411', 'tblTempUsageDetail_20' ) end [2025-02-03 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393411', 'tblTempVendorCDR_20' ) start [2025-02-03 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393411', 'tblTempVendorCDR_20' ) end [2025-02-03 13:44:25] Production.INFO: ProcessCDR(1,14393411,1,1,2) [2025-02-03 13:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393411', 'tblTempUsageDetail_20' ) start [2025-02-03 13:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393411', 'tblTempUsageDetail_20' ) end [2025-02-03 13:44:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:44:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:44:30] Production.INFO: ==3777== Releasing lock... [2025-02-03 13:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:44:30] Production.INFO: 64 MB #Memory Used# [2025-02-03 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:45:05 [end_date_ymd] => 2025-02-03 13:45:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:45:05' and `end` < '2025-02-03 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-02-03 13:45:24] Production.INFO: count ==4790 [2025-02-03 13:45:26] Production.ERROR: pbx CDR StartTime 2025-02-03 10:45:05 - End Time 2025-02-03 13:45:05 [2025-02-03 13:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393416', 'tblTempUsageDetail_20' ) start [2025-02-03 13:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393416', 'tblTempUsageDetail_20' ) end [2025-02-03 13:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393416', 'tblTempVendorCDR_20' ) start [2025-02-03 13:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393416', 'tblTempVendorCDR_20' ) end [2025-02-03 13:45:26] Production.INFO: ProcessCDR(1,14393416,1,1,2) [2025-02-03 13:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:45:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:45:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:45:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393416', 'tblTempUsageDetail_20' ) start [2025-02-03 13:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393416', 'tblTempUsageDetail_20' ) end [2025-02-03 13:45:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:45:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:45:31] Production.INFO: ==3870== Releasing lock... [2025-02-03 13:45:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:45:31] Production.INFO: 63.75 MB #Memory Used# [2025-02-03 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:46:05 [end_date_ymd] => 2025-02-03 13:46:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:46:05' and `end` < '2025-02-03 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-02-03 13:46:26] Production.INFO: count ==4804 [2025-02-03 13:46:28] Production.ERROR: pbx CDR StartTime 2025-02-03 10:46:05 - End Time 2025-02-03 13:46:05 [2025-02-03 13:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393421', 'tblTempUsageDetail_20' ) start [2025-02-03 13:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393421', 'tblTempUsageDetail_20' ) end [2025-02-03 13:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393421', 'tblTempVendorCDR_20' ) start [2025-02-03 13:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393421', 'tblTempVendorCDR_20' ) end [2025-02-03 13:46:28] Production.INFO: ProcessCDR(1,14393421,1,1,2) [2025-02-03 13:46:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:46:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:46:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:46:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393421', 'tblTempUsageDetail_20' ) start [2025-02-03 13:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393421', 'tblTempUsageDetail_20' ) end [2025-02-03 13:46:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:46:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:46:33] Production.INFO: ==3981== Releasing lock... [2025-02-03 13:46:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:46:33] Production.INFO: 64 MB #Memory Used# [2025-02-03 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:47:05 [end_date_ymd] => 2025-02-03 13:47:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:47:05' and `end` < '2025-02-03 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-02-03 13:47:25] Production.INFO: count ==4812 [2025-02-03 13:47:27] Production.ERROR: pbx CDR StartTime 2025-02-03 10:47:05 - End Time 2025-02-03 13:47:05 [2025-02-03 13:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393426', 'tblTempUsageDetail_20' ) start [2025-02-03 13:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393426', 'tblTempUsageDetail_20' ) end [2025-02-03 13:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393426', 'tblTempVendorCDR_20' ) start [2025-02-03 13:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393426', 'tblTempVendorCDR_20' ) end [2025-02-03 13:47:27] Production.INFO: ProcessCDR(1,14393426,1,1,2) [2025-02-03 13:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:47:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393426', 'tblTempUsageDetail_20' ) start [2025-02-03 13:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393426', 'tblTempUsageDetail_20' ) end [2025-02-03 13:47:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:47:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:47:32] Production.INFO: ==4065== Releasing lock... [2025-02-03 13:47:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:47:32] Production.INFO: 64 MB #Memory Used# [2025-02-03 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:48:05 [end_date_ymd] => 2025-02-03 13:48:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:48:05' and `end` < '2025-02-03 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-02-03 13:48:24] Production.INFO: count ==4808 [2025-02-03 13:48:26] Production.ERROR: pbx CDR StartTime 2025-02-03 10:48:05 - End Time 2025-02-03 13:48:05 [2025-02-03 13:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393431', 'tblTempUsageDetail_20' ) start [2025-02-03 13:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393431', 'tblTempUsageDetail_20' ) end [2025-02-03 13:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393431', 'tblTempVendorCDR_20' ) start [2025-02-03 13:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393431', 'tblTempVendorCDR_20' ) end [2025-02-03 13:48:26] Production.INFO: ProcessCDR(1,14393431,1,1,2) [2025-02-03 13:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393431', 'tblTempUsageDetail_20' ) start [2025-02-03 13:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393431', 'tblTempUsageDetail_20' ) end [2025-02-03 13:48:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:48:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:48:31] Production.INFO: ==4188== Releasing lock... [2025-02-03 13:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:48:31] Production.INFO: 64 MB #Memory Used# [2025-02-03 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:49:05 [end_date_ymd] => 2025-02-03 13:49:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:49:05' and `end` < '2025-02-03 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-02-03 13:49:18] Production.INFO: count ==4773 [2025-02-03 13:49:20] Production.ERROR: pbx CDR StartTime 2025-02-03 10:49:05 - End Time 2025-02-03 13:49:05 [2025-02-03 13:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393436', 'tblTempUsageDetail_20' ) start [2025-02-03 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393436', 'tblTempUsageDetail_20' ) end [2025-02-03 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393436', 'tblTempVendorCDR_20' ) start [2025-02-03 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393436', 'tblTempVendorCDR_20' ) end [2025-02-03 13:49:20] Production.INFO: ProcessCDR(1,14393436,1,1,2) [2025-02-03 13:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393436', 'tblTempUsageDetail_20' ) start [2025-02-03 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393436', 'tblTempUsageDetail_20' ) end [2025-02-03 13:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:49:25] Production.INFO: ==4272== Releasing lock... [2025-02-03 13:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:49:25] Production.INFO: 63.75 MB #Memory Used# [2025-02-03 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:50:06 [end_date_ymd] => 2025-02-03 13:50:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:50:06' and `end` < '2025-02-03 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-02-03 13:50:25] Production.INFO: count ==4802 [2025-02-03 13:50:27] Production.ERROR: pbx CDR StartTime 2025-02-03 10:50:06 - End Time 2025-02-03 13:50:06 [2025-02-03 13:50:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393441', 'tblTempUsageDetail_20' ) start [2025-02-03 13:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393441', 'tblTempUsageDetail_20' ) end [2025-02-03 13:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393441', 'tblTempVendorCDR_20' ) start [2025-02-03 13:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393441', 'tblTempVendorCDR_20' ) end [2025-02-03 13:50:27] Production.INFO: ProcessCDR(1,14393441,1,1,2) [2025-02-03 13:50:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393441', 'tblTempUsageDetail_20' ) start [2025-02-03 13:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393441', 'tblTempUsageDetail_20' ) end [2025-02-03 13:50:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:50:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:50:31] Production.INFO: ==4394== Releasing lock... [2025-02-03 13:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:50:31] Production.INFO: 64 MB #Memory Used# [2025-02-03 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:51:05 [end_date_ymd] => 2025-02-03 13:51:05 [RateCDR] => 1 ) [2025-02-03 13: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-02-03 10:51:05' and `end` < '2025-02-03 13: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-02-03 13:51:23] Production.INFO: count ==4794 [2025-02-03 13:51:25] Production.ERROR: pbx CDR StartTime 2025-02-03 10:51:05 - End Time 2025-02-03 13:51:05 [2025-02-03 13:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393447', 'tblTempUsageDetail_20' ) start [2025-02-03 13:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393447', 'tblTempUsageDetail_20' ) end [2025-02-03 13:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393447', 'tblTempVendorCDR_20' ) start [2025-02-03 13:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393447', 'tblTempVendorCDR_20' ) end [2025-02-03 13:51:25] Production.INFO: ProcessCDR(1,14393447,1,1,2) [2025-02-03 13:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393447', 'tblTempUsageDetail_20' ) start [2025-02-03 13:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393447', 'tblTempUsageDetail_20' ) end [2025-02-03 13:51:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:51:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:51:30] Production.INFO: ==4486== Releasing lock... [2025-02-03 13:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:51:30] Production.INFO: 64 MB #Memory Used# [2025-02-03 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:52:05 [end_date_ymd] => 2025-02-03 13:52:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:52:05' and `end` < '2025-02-03 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-02-03 13:52:21] Production.INFO: count ==4795 [2025-02-03 13:52:23] Production.ERROR: pbx CDR StartTime 2025-02-03 10:52:05 - End Time 2025-02-03 13:52:05 [2025-02-03 13:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393452', 'tblTempUsageDetail_20' ) start [2025-02-03 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393452', 'tblTempUsageDetail_20' ) end [2025-02-03 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393452', 'tblTempVendorCDR_20' ) start [2025-02-03 13:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393452', 'tblTempVendorCDR_20' ) end [2025-02-03 13:52:23] Production.INFO: ProcessCDR(1,14393452,1,1,2) [2025-02-03 13:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393452', 'tblTempUsageDetail_20' ) start [2025-02-03 13:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393452', 'tblTempUsageDetail_20' ) end [2025-02-03 13:52:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:52:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:52:28] Production.INFO: ==4598== Releasing lock... [2025-02-03 13:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:52:28] Production.INFO: 64 MB #Memory Used# [2025-02-03 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:53:05 [end_date_ymd] => 2025-02-03 13:53:05 [RateCDR] => 1 ) [2025-02-03 13: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-02-03 10:53:05' and `end` < '2025-02-03 13: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-02-03 13:53:22] Production.INFO: count ==4783 [2025-02-03 13:53:24] Production.ERROR: pbx CDR StartTime 2025-02-03 10:53:05 - End Time 2025-02-03 13:53:05 [2025-02-03 13:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393457', 'tblTempUsageDetail_20' ) start [2025-02-03 13:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393457', 'tblTempUsageDetail_20' ) end [2025-02-03 13:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393457', 'tblTempVendorCDR_20' ) start [2025-02-03 13:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393457', 'tblTempVendorCDR_20' ) end [2025-02-03 13:53:24] Production.INFO: ProcessCDR(1,14393457,1,1,2) [2025-02-03 13:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393457', 'tblTempUsageDetail_20' ) start [2025-02-03 13:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393457', 'tblTempUsageDetail_20' ) end [2025-02-03 13:53:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:53:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:53:28] Production.INFO: ==4696== Releasing lock... [2025-02-03 13:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:53:28] Production.INFO: 63.75 MB #Memory Used# [2025-02-03 13:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:54:04 [end_date_ymd] => 2025-02-03 13:54:04 [RateCDR] => 1 ) [2025-02-03 13:54: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-02-03 10:54:04' and `end` < '2025-02-03 13:54: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-02-03 13:54:18] Production.INFO: count ==4770 [2025-02-03 13:54:20] Production.ERROR: pbx CDR StartTime 2025-02-03 10:54:04 - End Time 2025-02-03 13:54:04 [2025-02-03 13:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393462', 'tblTempUsageDetail_20' ) start [2025-02-03 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393462', 'tblTempUsageDetail_20' ) end [2025-02-03 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393462', 'tblTempVendorCDR_20' ) start [2025-02-03 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393462', 'tblTempVendorCDR_20' ) end [2025-02-03 13:54:21] Production.INFO: ProcessCDR(1,14393462,1,1,2) [2025-02-03 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393462', 'tblTempUsageDetail_20' ) start [2025-02-03 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393462', 'tblTempUsageDetail_20' ) end [2025-02-03 13:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:54:25] Production.INFO: ==4812== Releasing lock... [2025-02-03 13:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:54:25] Production.INFO: 63.75 MB #Memory Used# [2025-02-03 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:55:05 [end_date_ymd] => 2025-02-03 13:55:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:55:05' and `end` < '2025-02-03 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-02-03 13:55:23] Production.INFO: count ==4775 [2025-02-03 13:55:25] Production.ERROR: pbx CDR StartTime 2025-02-03 10:55:05 - End Time 2025-02-03 13:55:05 [2025-02-03 13:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393467', 'tblTempUsageDetail_20' ) start [2025-02-03 13:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393467', 'tblTempUsageDetail_20' ) end [2025-02-03 13:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393467', 'tblTempVendorCDR_20' ) start [2025-02-03 13:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393467', 'tblTempVendorCDR_20' ) end [2025-02-03 13:55:25] Production.INFO: ProcessCDR(1,14393467,1,1,2) [2025-02-03 13:55:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393467', 'tblTempUsageDetail_20' ) start [2025-02-03 13:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393467', 'tblTempUsageDetail_20' ) end [2025-02-03 13:55:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:55:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:55:30] Production.INFO: ==4908== Releasing lock... [2025-02-03 13:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:55:30] Production.INFO: 63.75 MB #Memory Used# [2025-02-03 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:56:06 [end_date_ymd] => 2025-02-03 13:56:06 [RateCDR] => 1 ) [2025-02-03 13: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-02-03 10:56:06' and `end` < '2025-02-03 13: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-02-03 13:56:23] Production.INFO: count ==4793 [2025-02-03 13:56:24] Production.ERROR: pbx CDR StartTime 2025-02-03 10:56:06 - End Time 2025-02-03 13:56:06 [2025-02-03 13:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393472', 'tblTempUsageDetail_20' ) start [2025-02-03 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393472', 'tblTempUsageDetail_20' ) end [2025-02-03 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393472', 'tblTempVendorCDR_20' ) start [2025-02-03 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393472', 'tblTempVendorCDR_20' ) end [2025-02-03 13:56:25] Production.INFO: ProcessCDR(1,14393472,1,1,2) [2025-02-03 13:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393472', 'tblTempUsageDetail_20' ) start [2025-02-03 13:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393472', 'tblTempUsageDetail_20' ) end [2025-02-03 13:56:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:56:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:56:29] Production.INFO: ==5014== Releasing lock... [2025-02-03 13:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:56:29] Production.INFO: 64 MB #Memory Used# [2025-02-03 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:57:05 [end_date_ymd] => 2025-02-03 13:57:05 [RateCDR] => 1 ) [2025-02-03 13: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-02-03 10:57:05' and `end` < '2025-02-03 13: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-02-03 13:57:28] Production.INFO: count ==4797 [2025-02-03 13:57:30] Production.ERROR: pbx CDR StartTime 2025-02-03 10:57:05 - End Time 2025-02-03 13:57:05 [2025-02-03 13:57:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393477', 'tblTempUsageDetail_20' ) start [2025-02-03 13:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393477', 'tblTempUsageDetail_20' ) end [2025-02-03 13:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393477', 'tblTempVendorCDR_20' ) start [2025-02-03 13:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393477', 'tblTempVendorCDR_20' ) end [2025-02-03 13:57:30] Production.INFO: ProcessCDR(1,14393477,1,1,2) [2025-02-03 13:57:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:57:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:57:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:57:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393477', 'tblTempUsageDetail_20' ) start [2025-02-03 13:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393477', 'tblTempUsageDetail_20' ) end [2025-02-03 13:57:34] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:57:34] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:57:34] Production.INFO: ==5143== Releasing lock... [2025-02-03 13:57:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:57:34] Production.INFO: 64 MB #Memory Used# [2025-02-03 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:58:05 [end_date_ymd] => 2025-02-03 13:58:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:58:05' and `end` < '2025-02-03 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-02-03 13:58:23] Production.INFO: count ==4825 [2025-02-03 13:58:25] Production.ERROR: pbx CDR StartTime 2025-02-03 10:58:05 - End Time 2025-02-03 13:58:05 [2025-02-03 13:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393482', 'tblTempUsageDetail_20' ) start [2025-02-03 13:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393482', 'tblTempUsageDetail_20' ) end [2025-02-03 13:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393482', 'tblTempVendorCDR_20' ) start [2025-02-03 13:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393482', 'tblTempVendorCDR_20' ) end [2025-02-03 13:58:26] Production.INFO: ProcessCDR(1,14393482,1,1,2) [2025-02-03 13:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393482', 'tblTempUsageDetail_20' ) start [2025-02-03 13:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393482', 'tblTempUsageDetail_20' ) end [2025-02-03 13:58:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:58:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:58:30] Production.INFO: ==5228== Releasing lock... [2025-02-03 13:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:58:30] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 10:59:05 [end_date_ymd] => 2025-02-03 13:59:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 10:59:05' and `end` < '2025-02-03 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-02-03 13:59:22] Production.INFO: count ==4842 [2025-02-03 13:59:24] Production.ERROR: pbx CDR StartTime 2025-02-03 10:59:05 - End Time 2025-02-03 13:59:05 [2025-02-03 13:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 13:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393487', 'tblTempUsageDetail_20' ) start [2025-02-03 13:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393487', 'tblTempUsageDetail_20' ) end [2025-02-03 13:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393487', 'tblTempVendorCDR_20' ) start [2025-02-03 13:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393487', 'tblTempVendorCDR_20' ) end [2025-02-03 13:59:24] Production.INFO: ProcessCDR(1,14393487,1,1,2) [2025-02-03 13:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 13:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 13:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393487', 'tblTempUsageDetail_20' ) start [2025-02-03 13:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393487', 'tblTempUsageDetail_20' ) end [2025-02-03 13:59:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 13:59:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 13:59:30] Production.INFO: ==5317== Releasing lock... [2025-02-03 13:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 13:59:30] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:00:06 [end_date_ymd] => 2025-02-03 14:00:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:00:06' and `end` < '2025-02-03 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-02-03 14:00:25] Production.INFO: count ==4849 [2025-02-03 14:00:27] Production.ERROR: pbx CDR StartTime 2025-02-03 11:00:06 - End Time 2025-02-03 14:00:06 [2025-02-03 14:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393493', 'tblTempUsageDetail_20' ) start [2025-02-03 14:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393493', 'tblTempUsageDetail_20' ) end [2025-02-03 14:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393493', 'tblTempVendorCDR_20' ) start [2025-02-03 14:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393493', 'tblTempVendorCDR_20' ) end [2025-02-03 14:00:28] Production.INFO: ProcessCDR(1,14393493,1,1,2) [2025-02-03 14:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393493', 'tblTempUsageDetail_20' ) start [2025-02-03 14:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393493', 'tblTempUsageDetail_20' ) end [2025-02-03 14:00:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:00:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:00:33] Production.INFO: ==5401== Releasing lock... [2025-02-03 14:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:00:33] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:01:05 [end_date_ymd] => 2025-02-03 14:01:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:01:05' and `end` < '2025-02-03 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-02-03 14:01:22] Production.INFO: count ==4903 [2025-02-03 14:01:24] Production.ERROR: pbx CDR StartTime 2025-02-03 11:01:05 - End Time 2025-02-03 14:01:05 [2025-02-03 14:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393498', 'tblTempUsageDetail_20' ) start [2025-02-03 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393498', 'tblTempUsageDetail_20' ) end [2025-02-03 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393498', 'tblTempVendorCDR_20' ) start [2025-02-03 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393498', 'tblTempVendorCDR_20' ) end [2025-02-03 14:01:25] Production.INFO: ProcessCDR(1,14393498,1,1,2) [2025-02-03 14:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393498', 'tblTempUsageDetail_20' ) start [2025-02-03 14:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393498', 'tblTempUsageDetail_20' ) end [2025-02-03 14:01:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:01:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:01:29] Production.INFO: ==5501== Releasing lock... [2025-02-03 14:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:01:29] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:02:05 [end_date_ymd] => 2025-02-03 14:02:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:02:05' and `end` < '2025-02-03 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-02-03 14:02:22] Production.INFO: count ==4906 [2025-02-03 14:02:24] Production.ERROR: pbx CDR StartTime 2025-02-03 11:02:05 - End Time 2025-02-03 14:02:05 [2025-02-03 14:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393503', 'tblTempUsageDetail_20' ) start [2025-02-03 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393503', 'tblTempUsageDetail_20' ) end [2025-02-03 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393503', 'tblTempVendorCDR_20' ) start [2025-02-03 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393503', 'tblTempVendorCDR_20' ) end [2025-02-03 14:02:24] Production.INFO: ProcessCDR(1,14393503,1,1,2) [2025-02-03 14:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393503', 'tblTempUsageDetail_20' ) start [2025-02-03 14:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393503', 'tblTempUsageDetail_20' ) end [2025-02-03 14:02:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:02:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:02:29] Production.INFO: ==5589== Releasing lock... [2025-02-03 14:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:02:29] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:03:05 [end_date_ymd] => 2025-02-03 14:03:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:03:05' and `end` < '2025-02-03 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-02-03 14:03:24] Production.INFO: count ==4896 [2025-02-03 14:03:26] Production.ERROR: pbx CDR StartTime 2025-02-03 11:03:05 - End Time 2025-02-03 14:03:05 [2025-02-03 14:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393508', 'tblTempUsageDetail_20' ) start [2025-02-03 14:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393508', 'tblTempUsageDetail_20' ) end [2025-02-03 14:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393508', 'tblTempVendorCDR_20' ) start [2025-02-03 14:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393508', 'tblTempVendorCDR_20' ) end [2025-02-03 14:03:26] Production.INFO: ProcessCDR(1,14393508,1,1,2) [2025-02-03 14:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393508', 'tblTempUsageDetail_20' ) start [2025-02-03 14:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393508', 'tblTempUsageDetail_20' ) end [2025-02-03 14:03:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:03:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:03:31] Production.INFO: ==5670== Releasing lock... [2025-02-03 14:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:03:31] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:04:06 [end_date_ymd] => 2025-02-03 14:04:06 [RateCDR] => 1 ) [2025-02-03 14: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-02-03 11:04:06' and `end` < '2025-02-03 14: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-02-03 14:04:26] Production.INFO: count ==4893 [2025-02-03 14:04:28] Production.ERROR: pbx CDR StartTime 2025-02-03 11:04:06 - End Time 2025-02-03 14:04:06 [2025-02-03 14:04:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393513', 'tblTempUsageDetail_20' ) start [2025-02-03 14:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393513', 'tblTempUsageDetail_20' ) end [2025-02-03 14:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393513', 'tblTempVendorCDR_20' ) start [2025-02-03 14:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393513', 'tblTempVendorCDR_20' ) end [2025-02-03 14:04:28] Production.INFO: ProcessCDR(1,14393513,1,1,2) [2025-02-03 14:04:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393513', 'tblTempUsageDetail_20' ) start [2025-02-03 14:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393513', 'tblTempUsageDetail_20' ) end [2025-02-03 14:04:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:04:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:04:32] Production.INFO: ==5755== Releasing lock... [2025-02-03 14:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:04:32] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:05:05 [end_date_ymd] => 2025-02-03 14:05:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:05:05' and `end` < '2025-02-03 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-02-03 14:05:23] Production.INFO: count ==4892 [2025-02-03 14:05:25] Production.ERROR: pbx CDR StartTime 2025-02-03 11:05:05 - End Time 2025-02-03 14:05:05 [2025-02-03 14:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393518', 'tblTempUsageDetail_20' ) start [2025-02-03 14:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393518', 'tblTempUsageDetail_20' ) end [2025-02-03 14:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393518', 'tblTempVendorCDR_20' ) start [2025-02-03 14:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393518', 'tblTempVendorCDR_20' ) end [2025-02-03 14:05:25] Production.INFO: ProcessCDR(1,14393518,1,1,2) [2025-02-03 14:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393518', 'tblTempUsageDetail_20' ) start [2025-02-03 14:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393518', 'tblTempUsageDetail_20' ) end [2025-02-03 14:05:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:05:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:05:30] Production.INFO: ==5837== Releasing lock... [2025-02-03 14:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:05:30] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:06:05 [end_date_ymd] => 2025-02-03 14:06:05 [RateCDR] => 1 ) [2025-02-03 14: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-02-03 11:06:05' and `end` < '2025-02-03 14: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-02-03 14:06:29] Production.INFO: count ==4896 [2025-02-03 14:06:31] Production.ERROR: pbx CDR StartTime 2025-02-03 11:06:05 - End Time 2025-02-03 14:06:05 [2025-02-03 14:06:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393523', 'tblTempUsageDetail_20' ) start [2025-02-03 14:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393523', 'tblTempUsageDetail_20' ) end [2025-02-03 14:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393523', 'tblTempVendorCDR_20' ) start [2025-02-03 14:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393523', 'tblTempVendorCDR_20' ) end [2025-02-03 14:06:31] Production.INFO: ProcessCDR(1,14393523,1,1,2) [2025-02-03 14:06:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:06:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:06:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:06:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:06:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393523', 'tblTempUsageDetail_20' ) start [2025-02-03 14:06:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393523', 'tblTempUsageDetail_20' ) end [2025-02-03 14:06:36] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:06:36] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:06:36] Production.INFO: ==5924== Releasing lock... [2025-02-03 14:06:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:06:36] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:07:05 [end_date_ymd] => 2025-02-03 14:07:05 [RateCDR] => 1 ) [2025-02-03 14: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-02-03 11:07:05' and `end` < '2025-02-03 14: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-02-03 14:07:22] Production.INFO: count ==4888 [2025-02-03 14:07:24] Production.ERROR: pbx CDR StartTime 2025-02-03 11:07:05 - End Time 2025-02-03 14:07:05 [2025-02-03 14:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393528', 'tblTempUsageDetail_20' ) start [2025-02-03 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393528', 'tblTempUsageDetail_20' ) end [2025-02-03 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393528', 'tblTempVendorCDR_20' ) start [2025-02-03 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393528', 'tblTempVendorCDR_20' ) end [2025-02-03 14:07:24] Production.INFO: ProcessCDR(1,14393528,1,1,2) [2025-02-03 14:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393528', 'tblTempUsageDetail_20' ) start [2025-02-03 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393528', 'tblTempUsageDetail_20' ) end [2025-02-03 14:07:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:07:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:07:28] Production.INFO: ==6004== Releasing lock... [2025-02-03 14:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:07:28] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 14:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:08:04 [end_date_ymd] => 2025-02-03 14:08:04 [RateCDR] => 1 ) [2025-02-03 14: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-02-03 11:08:04' and `end` < '2025-02-03 14: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-02-03 14:08:22] Production.INFO: count ==4888 [2025-02-03 14:08:24] Production.ERROR: pbx CDR StartTime 2025-02-03 11:08:04 - End Time 2025-02-03 14:08:04 [2025-02-03 14:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393533', 'tblTempUsageDetail_20' ) start [2025-02-03 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393533', 'tblTempUsageDetail_20' ) end [2025-02-03 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393533', 'tblTempVendorCDR_20' ) start [2025-02-03 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393533', 'tblTempVendorCDR_20' ) end [2025-02-03 14:08:24] Production.INFO: ProcessCDR(1,14393533,1,1,2) [2025-02-03 14:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393533', 'tblTempUsageDetail_20' ) start [2025-02-03 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393533', 'tblTempUsageDetail_20' ) end [2025-02-03 14:08:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:08:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:08:28] Production.INFO: ==6086== Releasing lock... [2025-02-03 14:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:08:28] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:09:05 [end_date_ymd] => 2025-02-03 14:09:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:09:05' and `end` < '2025-02-03 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-02-03 14:09:23] Production.INFO: count ==4866 [2025-02-03 14:09:25] Production.ERROR: pbx CDR StartTime 2025-02-03 11:09:05 - End Time 2025-02-03 14:09:05 [2025-02-03 14:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393538', 'tblTempUsageDetail_20' ) start [2025-02-03 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393538', 'tblTempUsageDetail_20' ) end [2025-02-03 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393538', 'tblTempVendorCDR_20' ) start [2025-02-03 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393538', 'tblTempVendorCDR_20' ) end [2025-02-03 14:09:25] Production.INFO: ProcessCDR(1,14393538,1,1,2) [2025-02-03 14:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393538', 'tblTempUsageDetail_20' ) start [2025-02-03 14:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393538', 'tblTempUsageDetail_20' ) end [2025-02-03 14:09:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:09:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:09:29] Production.INFO: ==6166== Releasing lock... [2025-02-03 14:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:09:29] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 14:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:10:05 [end_date_ymd] => 2025-02-03 14:10:05 [RateCDR] => 1 ) [2025-02-03 14: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-02-03 11:10:05' and `end` < '2025-02-03 14: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-02-03 14:10:24] Production.INFO: count ==4871 [2025-02-03 14:10:26] Production.ERROR: pbx CDR StartTime 2025-02-03 11:10:05 - End Time 2025-02-03 14:10:05 [2025-02-03 14:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393543', 'tblTempUsageDetail_20' ) start [2025-02-03 14:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393543', 'tblTempUsageDetail_20' ) end [2025-02-03 14:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393543', 'tblTempVendorCDR_20' ) start [2025-02-03 14:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393543', 'tblTempVendorCDR_20' ) end [2025-02-03 14:10:26] Production.INFO: ProcessCDR(1,14393543,1,1,2) [2025-02-03 14:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393543', 'tblTempUsageDetail_20' ) start [2025-02-03 14:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393543', 'tblTempUsageDetail_20' ) end [2025-02-03 14:10:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:10:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:10:31] Production.INFO: ==6256== Releasing lock... [2025-02-03 14:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:10:31] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:11:05 [end_date_ymd] => 2025-02-03 14:11:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:11:05' and `end` < '2025-02-03 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-02-03 14:11:24] Production.INFO: count ==4831 [2025-02-03 14:11:26] Production.ERROR: pbx CDR StartTime 2025-02-03 11:11:05 - End Time 2025-02-03 14:11:05 [2025-02-03 14:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393549', 'tblTempUsageDetail_20' ) start [2025-02-03 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393549', 'tblTempUsageDetail_20' ) end [2025-02-03 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393549', 'tblTempVendorCDR_20' ) start [2025-02-03 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393549', 'tblTempVendorCDR_20' ) end [2025-02-03 14:11:26] Production.INFO: ProcessCDR(1,14393549,1,1,2) [2025-02-03 14:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393549', 'tblTempUsageDetail_20' ) start [2025-02-03 14:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393549', 'tblTempUsageDetail_20' ) end [2025-02-03 14:11:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:11:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:11:31] Production.INFO: ==6343== Releasing lock... [2025-02-03 14:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:11:31] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:12:05 [end_date_ymd] => 2025-02-03 14:12:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:12:05' and `end` < '2025-02-03 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-02-03 14:12:20] Production.INFO: count ==4847 [2025-02-03 14:12:22] Production.ERROR: pbx CDR StartTime 2025-02-03 11:12:05 - End Time 2025-02-03 14:12:05 [2025-02-03 14:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393554', 'tblTempUsageDetail_20' ) start [2025-02-03 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393554', 'tblTempUsageDetail_20' ) end [2025-02-03 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393554', 'tblTempVendorCDR_20' ) start [2025-02-03 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393554', 'tblTempVendorCDR_20' ) end [2025-02-03 14:12:22] Production.INFO: ProcessCDR(1,14393554,1,1,2) [2025-02-03 14:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393554', 'tblTempUsageDetail_20' ) start [2025-02-03 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393554', 'tblTempUsageDetail_20' ) end [2025-02-03 14:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:12:27] Production.INFO: ==6421== Releasing lock... [2025-02-03 14:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:12:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:13:05 [end_date_ymd] => 2025-02-03 14:13:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:13:05' and `end` < '2025-02-03 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-02-03 14:13:20] Production.INFO: count ==4833 [2025-02-03 14:13:22] Production.ERROR: pbx CDR StartTime 2025-02-03 11:13:05 - End Time 2025-02-03 14:13:05 [2025-02-03 14:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393559', 'tblTempUsageDetail_20' ) start [2025-02-03 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393559', 'tblTempUsageDetail_20' ) end [2025-02-03 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393559', 'tblTempVendorCDR_20' ) start [2025-02-03 14:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393559', 'tblTempVendorCDR_20' ) end [2025-02-03 14:13:22] Production.INFO: ProcessCDR(1,14393559,1,1,2) [2025-02-03 14:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393559', 'tblTempUsageDetail_20' ) start [2025-02-03 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393559', 'tblTempUsageDetail_20' ) end [2025-02-03 14:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:13:26] Production.INFO: ==6542== Releasing lock... [2025-02-03 14:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:13:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:14:05 [end_date_ymd] => 2025-02-03 14:14:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:14:05' and `end` < '2025-02-03 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-02-03 14:14:34] Production.INFO: count ==4852 [2025-02-03 14:14:36] Production.ERROR: pbx CDR StartTime 2025-02-03 11:14:05 - End Time 2025-02-03 14:14:05 [2025-02-03 14:14:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:14:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393564', 'tblTempUsageDetail_20' ) start [2025-02-03 14:14:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393564', 'tblTempUsageDetail_20' ) end [2025-02-03 14:14:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393564', 'tblTempVendorCDR_20' ) start [2025-02-03 14:14:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393564', 'tblTempVendorCDR_20' ) end [2025-02-03 14:14:36] Production.INFO: ProcessCDR(1,14393564,1,1,2) [2025-02-03 14:14:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:14:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:14:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:14:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:14:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393564', 'tblTempUsageDetail_20' ) start [2025-02-03 14:14:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393564', 'tblTempUsageDetail_20' ) end [2025-02-03 14:14:41] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:14:41] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:14:41] Production.INFO: ==6625== Releasing lock... [2025-02-03 14:14:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:14:41] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:15:05 [end_date_ymd] => 2025-02-03 14:15:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:15:05' and `end` < '2025-02-03 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-02-03 14:15:28] Production.INFO: count ==4870 [2025-02-03 14:15:30] Production.ERROR: pbx CDR StartTime 2025-02-03 11:15:05 - End Time 2025-02-03 14:15:05 [2025-02-03 14:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393569', 'tblTempUsageDetail_20' ) start [2025-02-03 14:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393569', 'tblTempUsageDetail_20' ) end [2025-02-03 14:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393569', 'tblTempVendorCDR_20' ) start [2025-02-03 14:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393569', 'tblTempVendorCDR_20' ) end [2025-02-03 14:15:30] Production.INFO: ProcessCDR(1,14393569,1,1,2) [2025-02-03 14:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:15:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:15:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:15:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393569', 'tblTempUsageDetail_20' ) start [2025-02-03 14:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393569', 'tblTempUsageDetail_20' ) end [2025-02-03 14:15:35] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:15:35] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:15:35] Production.INFO: ==6708== Releasing lock... [2025-02-03 14:15:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:15:35] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:16:05 [end_date_ymd] => 2025-02-03 14:16:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:16:05' and `end` < '2025-02-03 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-02-03 14:16:29] Production.INFO: count ==4884 [2025-02-03 14:16:31] Production.ERROR: pbx CDR StartTime 2025-02-03 11:16:05 - End Time 2025-02-03 14:16:05 [2025-02-03 14:16:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393574', 'tblTempUsageDetail_20' ) start [2025-02-03 14:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393574', 'tblTempUsageDetail_20' ) end [2025-02-03 14:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393574', 'tblTempVendorCDR_20' ) start [2025-02-03 14:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393574', 'tblTempVendorCDR_20' ) end [2025-02-03 14:16:31] Production.INFO: ProcessCDR(1,14393574,1,1,2) [2025-02-03 14:16:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:16:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:16:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:16:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:16:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393574', 'tblTempUsageDetail_20' ) start [2025-02-03 14:16:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393574', 'tblTempUsageDetail_20' ) end [2025-02-03 14:16:37] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:16:37] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:16:37] Production.INFO: ==6789== Releasing lock... [2025-02-03 14:16:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:16:37] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:17:05 [end_date_ymd] => 2025-02-03 14:17:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:17:05' and `end` < '2025-02-03 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-02-03 14:17:21] Production.INFO: count ==4916 [2025-02-03 14:17:23] Production.ERROR: pbx CDR StartTime 2025-02-03 11:17:05 - End Time 2025-02-03 14:17:05 [2025-02-03 14:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393579', 'tblTempUsageDetail_20' ) start [2025-02-03 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393579', 'tblTempUsageDetail_20' ) end [2025-02-03 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393579', 'tblTempVendorCDR_20' ) start [2025-02-03 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393579', 'tblTempVendorCDR_20' ) end [2025-02-03 14:17:23] Production.INFO: ProcessCDR(1,14393579,1,1,2) [2025-02-03 14:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393579', 'tblTempUsageDetail_20' ) start [2025-02-03 14:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393579', 'tblTempUsageDetail_20' ) end [2025-02-03 14:17:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:17:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:17:28] Production.INFO: ==6874== Releasing lock... [2025-02-03 14:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:17:28] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:18:05 [end_date_ymd] => 2025-02-03 14:18:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:18:05' and `end` < '2025-02-03 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-02-03 14:18:28] Production.INFO: count ==4939 [2025-02-03 14:18:30] Production.ERROR: pbx CDR StartTime 2025-02-03 11:18:05 - End Time 2025-02-03 14:18:05 [2025-02-03 14:18:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393584', 'tblTempUsageDetail_20' ) start [2025-02-03 14:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393584', 'tblTempUsageDetail_20' ) end [2025-02-03 14:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393584', 'tblTempVendorCDR_20' ) start [2025-02-03 14:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393584', 'tblTempVendorCDR_20' ) end [2025-02-03 14:18:30] Production.INFO: ProcessCDR(1,14393584,1,1,2) [2025-02-03 14:18:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:18:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:18:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:18:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:18:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393584', 'tblTempUsageDetail_20' ) start [2025-02-03 14:18:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393584', 'tblTempUsageDetail_20' ) end [2025-02-03 14:18:35] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:18:35] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:18:35] Production.INFO: ==6954== Releasing lock... [2025-02-03 14:18:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:18:35] Production.INFO: 65 MB #Memory Used# [2025-02-03 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:19:05 [end_date_ymd] => 2025-02-03 14:19:05 [RateCDR] => 1 ) [2025-02-03 14: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-02-03 11:19:05' and `end` < '2025-02-03 14: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-02-03 14:19:22] Production.INFO: count ==4938 [2025-02-03 14:19:25] Production.ERROR: pbx CDR StartTime 2025-02-03 11:19:05 - End Time 2025-02-03 14:19:05 [2025-02-03 14:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393589', 'tblTempUsageDetail_20' ) start [2025-02-03 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393589', 'tblTempUsageDetail_20' ) end [2025-02-03 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393589', 'tblTempVendorCDR_20' ) start [2025-02-03 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393589', 'tblTempVendorCDR_20' ) end [2025-02-03 14:19:25] Production.INFO: ProcessCDR(1,14393589,1,1,2) [2025-02-03 14:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393589', 'tblTempUsageDetail_20' ) start [2025-02-03 14:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393589', 'tblTempUsageDetail_20' ) end [2025-02-03 14:19:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:19:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:19:30] Production.INFO: ==7035== Releasing lock... [2025-02-03 14:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:19:30] Production.INFO: 65 MB #Memory Used# [2025-02-03 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:20:06 [end_date_ymd] => 2025-02-03 14:20:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:20:06' and `end` < '2025-02-03 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-02-03 14:20:26] Production.INFO: count ==5008 [2025-02-03 14:20:28] Production.ERROR: pbx CDR StartTime 2025-02-03 11:20:06 - End Time 2025-02-03 14:20:06 [2025-02-03 14:20:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393595', 'tblTempUsageDetail_20' ) start [2025-02-03 14:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393595', 'tblTempUsageDetail_20' ) end [2025-02-03 14:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393595', 'tblTempVendorCDR_20' ) start [2025-02-03 14:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393595', 'tblTempVendorCDR_20' ) end [2025-02-03 14:20:28] Production.INFO: ProcessCDR(1,14393595,1,1,2) [2025-02-03 14:20:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393595', 'tblTempUsageDetail_20' ) start [2025-02-03 14:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393595', 'tblTempUsageDetail_20' ) end [2025-02-03 14:20:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:20:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:20:32] Production.INFO: ==7115== Releasing lock... [2025-02-03 14:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:20:32] Production.INFO: 65.5 MB #Memory Used# [2025-02-03 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:21:05 [end_date_ymd] => 2025-02-03 14:21:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:21:05' and `end` < '2025-02-03 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-02-03 14:21:25] Production.INFO: count ==4963 [2025-02-03 14:21:27] Production.ERROR: pbx CDR StartTime 2025-02-03 11:21:05 - End Time 2025-02-03 14:21:05 [2025-02-03 14:21:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393600', 'tblTempUsageDetail_20' ) start [2025-02-03 14:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393600', 'tblTempUsageDetail_20' ) end [2025-02-03 14:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393600', 'tblTempVendorCDR_20' ) start [2025-02-03 14:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393600', 'tblTempVendorCDR_20' ) end [2025-02-03 14:21:27] Production.INFO: ProcessCDR(1,14393600,1,1,2) [2025-02-03 14:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393600', 'tblTempUsageDetail_20' ) start [2025-02-03 14:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393600', 'tblTempUsageDetail_20' ) end [2025-02-03 14:21:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:21:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:21:32] Production.INFO: ==7196== Releasing lock... [2025-02-03 14:21:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:21:32] Production.INFO: 65.25 MB #Memory Used# [2025-02-03 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:22:05 [end_date_ymd] => 2025-02-03 14:22:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:22:05' and `end` < '2025-02-03 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-02-03 14:22:24] Production.INFO: count ==4949 [2025-02-03 14:22:26] Production.ERROR: pbx CDR StartTime 2025-02-03 11:22:05 - End Time 2025-02-03 14:22:05 [2025-02-03 14:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393605', 'tblTempUsageDetail_20' ) start [2025-02-03 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393605', 'tblTempUsageDetail_20' ) end [2025-02-03 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393605', 'tblTempVendorCDR_20' ) start [2025-02-03 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393605', 'tblTempVendorCDR_20' ) end [2025-02-03 14:22:26] Production.INFO: ProcessCDR(1,14393605,1,1,2) [2025-02-03 14:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393605', 'tblTempUsageDetail_20' ) start [2025-02-03 14:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393605', 'tblTempUsageDetail_20' ) end [2025-02-03 14:22:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:22:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:22:31] Production.INFO: ==7281== Releasing lock... [2025-02-03 14:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:22:31] Production.INFO: 65 MB #Memory Used# [2025-02-03 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:23:05 [end_date_ymd] => 2025-02-03 14:23:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:23:05' and `end` < '2025-02-03 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-02-03 14:23:20] Production.INFO: count ==4935 [2025-02-03 14:23:21] Production.ERROR: pbx CDR StartTime 2025-02-03 11:23:05 - End Time 2025-02-03 14:23:05 [2025-02-03 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393610', 'tblTempUsageDetail_20' ) start [2025-02-03 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393610', 'tblTempUsageDetail_20' ) end [2025-02-03 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393610', 'tblTempVendorCDR_20' ) start [2025-02-03 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393610', 'tblTempVendorCDR_20' ) end [2025-02-03 14:23:22] Production.INFO: ProcessCDR(1,14393610,1,1,2) [2025-02-03 14:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393610', 'tblTempUsageDetail_20' ) start [2025-02-03 14:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393610', 'tblTempUsageDetail_20' ) end [2025-02-03 14:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:23:24] Production.INFO: ==7359== Releasing lock... [2025-02-03 14:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:23:24] Production.INFO: 65 MB #Memory Used# [2025-02-03 14:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:24:04 [end_date_ymd] => 2025-02-03 14:24:04 [RateCDR] => 1 ) [2025-02-03 14: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-02-03 11:24:04' and `end` < '2025-02-03 14: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-02-03 14:24:18] Production.INFO: count ==4919 [2025-02-03 14:24:20] Production.ERROR: pbx CDR StartTime 2025-02-03 11:24:04 - End Time 2025-02-03 14:24:04 [2025-02-03 14:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393615', 'tblTempUsageDetail_20' ) start [2025-02-03 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393615', 'tblTempUsageDetail_20' ) end [2025-02-03 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393615', 'tblTempVendorCDR_20' ) start [2025-02-03 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393615', 'tblTempVendorCDR_20' ) end [2025-02-03 14:24:20] Production.INFO: ProcessCDR(1,14393615,1,1,2) [2025-02-03 14:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393615', 'tblTempUsageDetail_20' ) start [2025-02-03 14:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393615', 'tblTempUsageDetail_20' ) end [2025-02-03 14:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:24:24] Production.INFO: ==7444== Releasing lock... [2025-02-03 14:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:24:24] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:25:05 [end_date_ymd] => 2025-02-03 14:25:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:25:05' and `end` < '2025-02-03 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-02-03 14:25:24] Production.INFO: count ==4924 [2025-02-03 14:25:26] Production.ERROR: pbx CDR StartTime 2025-02-03 11:25:05 - End Time 2025-02-03 14:25:05 [2025-02-03 14:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393620', 'tblTempUsageDetail_20' ) start [2025-02-03 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393620', 'tblTempUsageDetail_20' ) end [2025-02-03 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393620', 'tblTempVendorCDR_20' ) start [2025-02-03 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393620', 'tblTempVendorCDR_20' ) end [2025-02-03 14:25:26] Production.INFO: ProcessCDR(1,14393620,1,1,2) [2025-02-03 14:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393620', 'tblTempUsageDetail_20' ) start [2025-02-03 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393620', 'tblTempUsageDetail_20' ) end [2025-02-03 14:25:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:25:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:25:30] Production.INFO: ==7529== Releasing lock... [2025-02-03 14:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:25:30] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:26:05 [end_date_ymd] => 2025-02-03 14:26:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:26:05' and `end` < '2025-02-03 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-02-03 14:26:19] Production.INFO: count ==4892 [2025-02-03 14:26:21] Production.ERROR: pbx CDR StartTime 2025-02-03 11:26:05 - End Time 2025-02-03 14:26:05 [2025-02-03 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393625', 'tblTempUsageDetail_20' ) start [2025-02-03 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393625', 'tblTempUsageDetail_20' ) end [2025-02-03 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393625', 'tblTempVendorCDR_20' ) start [2025-02-03 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393625', 'tblTempVendorCDR_20' ) end [2025-02-03 14:26:22] Production.INFO: ProcessCDR(1,14393625,1,1,2) [2025-02-03 14:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393625', 'tblTempUsageDetail_20' ) start [2025-02-03 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393625', 'tblTempUsageDetail_20' ) end [2025-02-03 14:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:26:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:26:26] Production.INFO: ==7618== Releasing lock... [2025-02-03 14:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:26:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:27:05 [end_date_ymd] => 2025-02-03 14:27:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:27:05' and `end` < '2025-02-03 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-02-03 14:27:20] Production.INFO: count ==4877 [2025-02-03 14:27:22] Production.ERROR: pbx CDR StartTime 2025-02-03 11:27:05 - End Time 2025-02-03 14:27:05 [2025-02-03 14:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393630', 'tblTempUsageDetail_20' ) start [2025-02-03 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393630', 'tblTempUsageDetail_20' ) end [2025-02-03 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393630', 'tblTempVendorCDR_20' ) start [2025-02-03 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393630', 'tblTempVendorCDR_20' ) end [2025-02-03 14:27:22] Production.INFO: ProcessCDR(1,14393630,1,1,2) [2025-02-03 14:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393630', 'tblTempUsageDetail_20' ) start [2025-02-03 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393630', 'tblTempUsageDetail_20' ) end [2025-02-03 14:27:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:27:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:27:27] Production.INFO: ==7733== Releasing lock... [2025-02-03 14:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:27:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:28:05 [end_date_ymd] => 2025-02-03 14:28:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:28:05' and `end` < '2025-02-03 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-02-03 14:28:19] Production.INFO: count ==4864 [2025-02-03 14:28:21] Production.ERROR: pbx CDR StartTime 2025-02-03 11:28:05 - End Time 2025-02-03 14:28:05 [2025-02-03 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393635', 'tblTempUsageDetail_20' ) start [2025-02-03 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393635', 'tblTempUsageDetail_20' ) end [2025-02-03 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393635', 'tblTempVendorCDR_20' ) start [2025-02-03 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393635', 'tblTempVendorCDR_20' ) end [2025-02-03 14:28:21] Production.INFO: ProcessCDR(1,14393635,1,1,2) [2025-02-03 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393635', 'tblTempUsageDetail_20' ) start [2025-02-03 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393635', 'tblTempUsageDetail_20' ) end [2025-02-03 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:28:26] Production.INFO: ==7904== Releasing lock... [2025-02-03 14:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:28:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:29:05 [end_date_ymd] => 2025-02-03 14:29:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:29:05' and `end` < '2025-02-03 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-02-03 14:29:20] Production.INFO: count ==4879 [2025-02-03 14:29:22] Production.ERROR: pbx CDR StartTime 2025-02-03 11:29:05 - End Time 2025-02-03 14:29:05 [2025-02-03 14:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393640', 'tblTempUsageDetail_20' ) start [2025-02-03 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393640', 'tblTempUsageDetail_20' ) end [2025-02-03 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393640', 'tblTempVendorCDR_20' ) start [2025-02-03 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393640', 'tblTempVendorCDR_20' ) end [2025-02-03 14:29:22] Production.INFO: ProcessCDR(1,14393640,1,1,2) [2025-02-03 14:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393640', 'tblTempUsageDetail_20' ) start [2025-02-03 14:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393640', 'tblTempUsageDetail_20' ) end [2025-02-03 14:29:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:29:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:29:27] Production.INFO: ==8067== Releasing lock... [2025-02-03 14:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:29:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:30:06 [end_date_ymd] => 2025-02-03 14:30:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:30:06' and `end` < '2025-02-03 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-02-03 14:30:26] Production.INFO: count ==4879 [2025-02-03 14:30:28] Production.ERROR: pbx CDR StartTime 2025-02-03 11:30:06 - End Time 2025-02-03 14:30:06 [2025-02-03 14:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393646', 'tblTempUsageDetail_20' ) start [2025-02-03 14:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393646', 'tblTempUsageDetail_20' ) end [2025-02-03 14:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393646', 'tblTempVendorCDR_20' ) start [2025-02-03 14:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393646', 'tblTempVendorCDR_20' ) end [2025-02-03 14:30:28] Production.INFO: ProcessCDR(1,14393646,1,1,2) [2025-02-03 14:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393646', 'tblTempUsageDetail_20' ) start [2025-02-03 14:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393646', 'tblTempUsageDetail_20' ) end [2025-02-03 14:30:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:30:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:30:33] Production.INFO: ==8231== Releasing lock... [2025-02-03 14:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:30:33] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:31:05 [end_date_ymd] => 2025-02-03 14:31:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:31:05' and `end` < '2025-02-03 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-02-03 14:31:27] Production.INFO: count ==4866 [2025-02-03 14:31:29] Production.ERROR: pbx CDR StartTime 2025-02-03 11:31:05 - End Time 2025-02-03 14:31:05 [2025-02-03 14:31:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393651', 'tblTempUsageDetail_20' ) start [2025-02-03 14:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393651', 'tblTempUsageDetail_20' ) end [2025-02-03 14:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393651', 'tblTempVendorCDR_20' ) start [2025-02-03 14:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393651', 'tblTempVendorCDR_20' ) end [2025-02-03 14:31:29] Production.INFO: ProcessCDR(1,14393651,1,1,2) [2025-02-03 14:31:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:31:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:31:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:31:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393651', 'tblTempUsageDetail_20' ) start [2025-02-03 14:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393651', 'tblTempUsageDetail_20' ) end [2025-02-03 14:31:34] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:31:34] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:31:34] Production.INFO: ==8396== Releasing lock... [2025-02-03 14:31:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:31:34] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:32:05 [end_date_ymd] => 2025-02-03 14:32:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:32:05' and `end` < '2025-02-03 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-02-03 14:32:25] Production.INFO: count ==4872 [2025-02-03 14:32:27] Production.ERROR: pbx CDR StartTime 2025-02-03 11:32:05 - End Time 2025-02-03 14:32:05 [2025-02-03 14:32:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393656', 'tblTempUsageDetail_20' ) start [2025-02-03 14:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393656', 'tblTempUsageDetail_20' ) end [2025-02-03 14:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393656', 'tblTempVendorCDR_20' ) start [2025-02-03 14:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393656', 'tblTempVendorCDR_20' ) end [2025-02-03 14:32:27] Production.INFO: ProcessCDR(1,14393656,1,1,2) [2025-02-03 14:32:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:32:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393656', 'tblTempUsageDetail_20' ) start [2025-02-03 14:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393656', 'tblTempUsageDetail_20' ) end [2025-02-03 14:32:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:32:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:32:32] Production.INFO: ==8555== Releasing lock... [2025-02-03 14:32:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:32:32] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 14:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:33:06 [end_date_ymd] => 2025-02-03 14:33:06 [RateCDR] => 1 ) [2025-02-03 14: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-02-03 11:33:06' and `end` < '2025-02-03 14: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-02-03 14:33:25] Production.INFO: count ==4889 [2025-02-03 14:33:27] Production.ERROR: pbx CDR StartTime 2025-02-03 11:33:06 - End Time 2025-02-03 14:33:06 [2025-02-03 14:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393661', 'tblTempUsageDetail_20' ) start [2025-02-03 14:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393661', 'tblTempUsageDetail_20' ) end [2025-02-03 14:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393661', 'tblTempVendorCDR_20' ) start [2025-02-03 14:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393661', 'tblTempVendorCDR_20' ) end [2025-02-03 14:33:27] Production.INFO: ProcessCDR(1,14393661,1,1,2) [2025-02-03 14:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:33:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:33:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:33:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393661', 'tblTempUsageDetail_20' ) start [2025-02-03 14:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393661', 'tblTempUsageDetail_20' ) end [2025-02-03 14:33:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:33:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:33:32] Production.INFO: ==8717== Releasing lock... [2025-02-03 14:33:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:33:32] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:34:05 [end_date_ymd] => 2025-02-03 14:34:05 [RateCDR] => 1 ) [2025-02-03 14: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-02-03 11:34:05' and `end` < '2025-02-03 14: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-02-03 14:34:25] Production.INFO: count ==4905 [2025-02-03 14:34:27] Production.ERROR: pbx CDR StartTime 2025-02-03 11:34:05 - End Time 2025-02-03 14:34:05 [2025-02-03 14:34:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393666', 'tblTempUsageDetail_20' ) start [2025-02-03 14:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393666', 'tblTempUsageDetail_20' ) end [2025-02-03 14:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393666', 'tblTempVendorCDR_20' ) start [2025-02-03 14:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393666', 'tblTempVendorCDR_20' ) end [2025-02-03 14:34:27] Production.INFO: ProcessCDR(1,14393666,1,1,2) [2025-02-03 14:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:34:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:34:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:34:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393666', 'tblTempUsageDetail_20' ) start [2025-02-03 14:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393666', 'tblTempUsageDetail_20' ) end [2025-02-03 14:34:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:34:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:34:32] Production.INFO: ==8882== Releasing lock... [2025-02-03 14:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:34:32] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:35:05 [end_date_ymd] => 2025-02-03 14:35:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:35:05' and `end` < '2025-02-03 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-02-03 14:35:32] Production.INFO: count ==4907 [2025-02-03 14:35:34] Production.ERROR: pbx CDR StartTime 2025-02-03 11:35:05 - End Time 2025-02-03 14:35:05 [2025-02-03 14:35:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:35:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393671', 'tblTempUsageDetail_20' ) start [2025-02-03 14:35:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393671', 'tblTempUsageDetail_20' ) end [2025-02-03 14:35:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393671', 'tblTempVendorCDR_20' ) start [2025-02-03 14:35:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393671', 'tblTempVendorCDR_20' ) end [2025-02-03 14:35:34] Production.INFO: ProcessCDR(1,14393671,1,1,2) [2025-02-03 14:35:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:35:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:35:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:35:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393671', 'tblTempUsageDetail_20' ) start [2025-02-03 14:35:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393671', 'tblTempUsageDetail_20' ) end [2025-02-03 14:35:39] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:35:39] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:35:39] Production.INFO: ==9054== Releasing lock... [2025-02-03 14:35:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:35:39] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 14:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:36:04 [end_date_ymd] => 2025-02-03 14:36:04 [RateCDR] => 1 ) [2025-02-03 14: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-02-03 11:36:04' and `end` < '2025-02-03 14: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-02-03 14:36:22] Production.INFO: count ==4907 [2025-02-03 14:36:24] Production.ERROR: pbx CDR StartTime 2025-02-03 11:36:04 - End Time 2025-02-03 14:36:04 [2025-02-03 14:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393676', 'tblTempUsageDetail_20' ) start [2025-02-03 14:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393676', 'tblTempUsageDetail_20' ) end [2025-02-03 14:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393676', 'tblTempVendorCDR_20' ) start [2025-02-03 14:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393676', 'tblTempVendorCDR_20' ) end [2025-02-03 14:36:24] Production.INFO: ProcessCDR(1,14393676,1,1,2) [2025-02-03 14:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393676', 'tblTempUsageDetail_20' ) start [2025-02-03 14:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393676', 'tblTempUsageDetail_20' ) end [2025-02-03 14:36:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:36:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:36:28] Production.INFO: ==9209== Releasing lock... [2025-02-03 14:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:36:28] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:37:05 [end_date_ymd] => 2025-02-03 14:37:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:37:05' and `end` < '2025-02-03 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-02-03 14:37:24] Production.INFO: count ==4905 [2025-02-03 14:37:26] Production.ERROR: pbx CDR StartTime 2025-02-03 11:37:05 - End Time 2025-02-03 14:37:05 [2025-02-03 14:37:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393681', 'tblTempUsageDetail_20' ) start [2025-02-03 14:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393681', 'tblTempUsageDetail_20' ) end [2025-02-03 14:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393681', 'tblTempVendorCDR_20' ) start [2025-02-03 14:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393681', 'tblTempVendorCDR_20' ) end [2025-02-03 14:37:26] Production.INFO: ProcessCDR(1,14393681,1,1,2) [2025-02-03 14:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393681', 'tblTempUsageDetail_20' ) start [2025-02-03 14:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393681', 'tblTempUsageDetail_20' ) end [2025-02-03 14:37:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:37:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:37:31] Production.INFO: ==9366== Releasing lock... [2025-02-03 14:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:37:31] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 14:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:38:04 [end_date_ymd] => 2025-02-03 14:38:04 [RateCDR] => 1 ) [2025-02-03 14: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-02-03 11:38:04' and `end` < '2025-02-03 14: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-02-03 14:38:22] Production.INFO: count ==4872 [2025-02-03 14:38:24] Production.ERROR: pbx CDR StartTime 2025-02-03 11:38:04 - End Time 2025-02-03 14:38:04 [2025-02-03 14:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393686', 'tblTempUsageDetail_20' ) start [2025-02-03 14:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393686', 'tblTempUsageDetail_20' ) end [2025-02-03 14:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393686', 'tblTempVendorCDR_20' ) start [2025-02-03 14:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393686', 'tblTempVendorCDR_20' ) end [2025-02-03 14:38:24] Production.INFO: ProcessCDR(1,14393686,1,1,2) [2025-02-03 14:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393686', 'tblTempUsageDetail_20' ) start [2025-02-03 14:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393686', 'tblTempUsageDetail_20' ) end [2025-02-03 14:38:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:38:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:38:29] Production.INFO: ==9524== Releasing lock... [2025-02-03 14:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:38:29] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 14:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:39:06 [end_date_ymd] => 2025-02-03 14:39:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:39:06' and `end` < '2025-02-03 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-02-03 14:39:27] Production.INFO: count ==4854 [2025-02-03 14:39:29] Production.ERROR: pbx CDR StartTime 2025-02-03 11:39:06 - End Time 2025-02-03 14:39:06 [2025-02-03 14:39:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393691', 'tblTempUsageDetail_20' ) start [2025-02-03 14:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393691', 'tblTempUsageDetail_20' ) end [2025-02-03 14:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393691', 'tblTempVendorCDR_20' ) start [2025-02-03 14:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393691', 'tblTempVendorCDR_20' ) end [2025-02-03 14:39:29] Production.INFO: ProcessCDR(1,14393691,1,1,2) [2025-02-03 14:39:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:39:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:39:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:39:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393691', 'tblTempUsageDetail_20' ) start [2025-02-03 14:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393691', 'tblTempUsageDetail_20' ) end [2025-02-03 14:39:34] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:39:34] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:39:34] Production.INFO: ==9684== Releasing lock... [2025-02-03 14:39:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:39:34] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:40:05 [end_date_ymd] => 2025-02-03 14:40:05 [RateCDR] => 1 ) [2025-02-03 14: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-02-03 11:40:05' and `end` < '2025-02-03 14: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-02-03 14:40:25] Production.INFO: count ==4831 [2025-02-03 14:40:27] Production.ERROR: pbx CDR StartTime 2025-02-03 11:40:05 - End Time 2025-02-03 14:40:05 [2025-02-03 14:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393697', 'tblTempUsageDetail_20' ) start [2025-02-03 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393697', 'tblTempUsageDetail_20' ) end [2025-02-03 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393697', 'tblTempVendorCDR_20' ) start [2025-02-03 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393697', 'tblTempVendorCDR_20' ) end [2025-02-03 14:40:27] Production.INFO: ProcessCDR(1,14393697,1,1,2) [2025-02-03 14:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393697', 'tblTempUsageDetail_20' ) start [2025-02-03 14:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393697', 'tblTempUsageDetail_20' ) end [2025-02-03 14:40:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:40:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:40:32] Production.INFO: ==9831== Releasing lock... [2025-02-03 14:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:40:32] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:41:05 [end_date_ymd] => 2025-02-03 14:41:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:41:05' and `end` < '2025-02-03 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-02-03 14:41:22] Production.INFO: count ==4813 [2025-02-03 14:41:24] Production.ERROR: pbx CDR StartTime 2025-02-03 11:41:05 - End Time 2025-02-03 14:41:05 [2025-02-03 14:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393702', 'tblTempUsageDetail_20' ) start [2025-02-03 14:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393702', 'tblTempUsageDetail_20' ) end [2025-02-03 14:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393702', 'tblTempVendorCDR_20' ) start [2025-02-03 14:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393702', 'tblTempVendorCDR_20' ) end [2025-02-03 14:41:24] Production.INFO: ProcessCDR(1,14393702,1,1,2) [2025-02-03 14:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393702', 'tblTempUsageDetail_20' ) start [2025-02-03 14:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393702', 'tblTempUsageDetail_20' ) end [2025-02-03 14:41:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:41:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:41:29] Production.INFO: ==9953== Releasing lock... [2025-02-03 14:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:41:29] Production.INFO: 64 MB #Memory Used# [2025-02-03 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:42:06 [end_date_ymd] => 2025-02-03 14:42:06 [RateCDR] => 1 ) [2025-02-03 14: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-02-03 11:42:06' and `end` < '2025-02-03 14: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-02-03 14:42:23] Production.INFO: count ==4807 [2025-02-03 14:42:25] Production.ERROR: pbx CDR StartTime 2025-02-03 11:42:06 - End Time 2025-02-03 14:42:06 [2025-02-03 14:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393707', 'tblTempUsageDetail_20' ) start [2025-02-03 14:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393707', 'tblTempUsageDetail_20' ) end [2025-02-03 14:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393707', 'tblTempVendorCDR_20' ) start [2025-02-03 14:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393707', 'tblTempVendorCDR_20' ) end [2025-02-03 14:42:25] Production.INFO: ProcessCDR(1,14393707,1,1,2) [2025-02-03 14:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393707', 'tblTempUsageDetail_20' ) start [2025-02-03 14:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393707', 'tblTempUsageDetail_20' ) end [2025-02-03 14:42:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:42:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:42:30] Production.INFO: ==10068== Releasing lock... [2025-02-03 14:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:42:30] Production.INFO: 64 MB #Memory Used# [2025-02-03 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:43:05 [end_date_ymd] => 2025-02-03 14:43:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:43:05' and `end` < '2025-02-03 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-02-03 14:43:21] Production.INFO: count ==4806 [2025-02-03 14:43:23] Production.ERROR: pbx CDR StartTime 2025-02-03 11:43:05 - End Time 2025-02-03 14:43:05 [2025-02-03 14:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393712', 'tblTempUsageDetail_20' ) start [2025-02-03 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393712', 'tblTempUsageDetail_20' ) end [2025-02-03 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393712', 'tblTempVendorCDR_20' ) start [2025-02-03 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393712', 'tblTempVendorCDR_20' ) end [2025-02-03 14:43:23] Production.INFO: ProcessCDR(1,14393712,1,1,2) [2025-02-03 14:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393712', 'tblTempUsageDetail_20' ) start [2025-02-03 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393712', 'tblTempUsageDetail_20' ) end [2025-02-03 14:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:43:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:43:28] Production.INFO: ==10184== Releasing lock... [2025-02-03 14:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:43:28] Production.INFO: 64 MB #Memory Used# [2025-02-03 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:44:05 [end_date_ymd] => 2025-02-03 14:44:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:44:05' and `end` < '2025-02-03 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-02-03 14:44:24] Production.INFO: count ==4810 [2025-02-03 14:44:26] Production.ERROR: pbx CDR StartTime 2025-02-03 11:44:05 - End Time 2025-02-03 14:44:05 [2025-02-03 14:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393717', 'tblTempUsageDetail_20' ) start [2025-02-03 14:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393717', 'tblTempUsageDetail_20' ) end [2025-02-03 14:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393717', 'tblTempVendorCDR_20' ) start [2025-02-03 14:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393717', 'tblTempVendorCDR_20' ) end [2025-02-03 14:44:27] Production.INFO: ProcessCDR(1,14393717,1,1,2) [2025-02-03 14:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:44:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:44:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393717', 'tblTempUsageDetail_20' ) start [2025-02-03 14:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393717', 'tblTempUsageDetail_20' ) end [2025-02-03 14:44:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:44:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:44:32] Production.INFO: ==10342== Releasing lock... [2025-02-03 14:44:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:44:32] Production.INFO: 64 MB #Memory Used# [2025-02-03 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:45:05 [end_date_ymd] => 2025-02-03 14:45:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:45:05' and `end` < '2025-02-03 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-02-03 14:45:23] Production.INFO: count ==4797 [2025-02-03 14:45:25] Production.ERROR: pbx CDR StartTime 2025-02-03 11:45:05 - End Time 2025-02-03 14:45:05 [2025-02-03 14:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393722', 'tblTempUsageDetail_20' ) start [2025-02-03 14:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393722', 'tblTempUsageDetail_20' ) end [2025-02-03 14:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393722', 'tblTempVendorCDR_20' ) start [2025-02-03 14:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393722', 'tblTempVendorCDR_20' ) end [2025-02-03 14:45:25] Production.INFO: ProcessCDR(1,14393722,1,1,2) [2025-02-03 14:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:45:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:45:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393722', 'tblTempUsageDetail_20' ) start [2025-02-03 14:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393722', 'tblTempUsageDetail_20' ) end [2025-02-03 14:45:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:45:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:45:29] Production.INFO: ==10464== Releasing lock... [2025-02-03 14:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:45:29] Production.INFO: 64 MB #Memory Used# [2025-02-03 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:46:05 [end_date_ymd] => 2025-02-03 14:46:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:46:05' and `end` < '2025-02-03 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-02-03 14:46:22] Production.INFO: count ==4805 [2025-02-03 14:46:24] Production.ERROR: pbx CDR StartTime 2025-02-03 11:46:05 - End Time 2025-02-03 14:46:05 [2025-02-03 14:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393727', 'tblTempUsageDetail_20' ) start [2025-02-03 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393727', 'tblTempUsageDetail_20' ) end [2025-02-03 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393727', 'tblTempVendorCDR_20' ) start [2025-02-03 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393727', 'tblTempVendorCDR_20' ) end [2025-02-03 14:46:24] Production.INFO: ProcessCDR(1,14393727,1,1,2) [2025-02-03 14:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393727', 'tblTempUsageDetail_20' ) start [2025-02-03 14:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393727', 'tblTempUsageDetail_20' ) end [2025-02-03 14:46:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:46:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:46:29] Production.INFO: ==10586== Releasing lock... [2025-02-03 14:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:46:29] Production.INFO: 64 MB #Memory Used# [2025-02-03 14:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:47:04 [end_date_ymd] => 2025-02-03 14:47:04 [RateCDR] => 1 ) [2025-02-03 14: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-02-03 11:47:04' and `end` < '2025-02-03 14: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-02-03 14:47:19] Production.INFO: count ==4811 [2025-02-03 14:47:21] Production.ERROR: pbx CDR StartTime 2025-02-03 11:47:04 - End Time 2025-02-03 14:47:04 [2025-02-03 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393732', 'tblTempUsageDetail_20' ) start [2025-02-03 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393732', 'tblTempUsageDetail_20' ) end [2025-02-03 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393732', 'tblTempVendorCDR_20' ) start [2025-02-03 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393732', 'tblTempVendorCDR_20' ) end [2025-02-03 14:47:21] Production.INFO: ProcessCDR(1,14393732,1,1,2) [2025-02-03 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393732', 'tblTempUsageDetail_20' ) start [2025-02-03 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393732', 'tblTempUsageDetail_20' ) end [2025-02-03 14:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:47:26] Production.INFO: ==10670== Releasing lock... [2025-02-03 14:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:47:26] Production.INFO: 64 MB #Memory Used# [2025-02-03 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:48:05 [end_date_ymd] => 2025-02-03 14:48:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:48:05' and `end` < '2025-02-03 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-02-03 14:48:20] Production.INFO: count ==4801 [2025-02-03 14:48:22] Production.ERROR: pbx CDR StartTime 2025-02-03 11:48:05 - End Time 2025-02-03 14:48:05 [2025-02-03 14:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393737', 'tblTempUsageDetail_20' ) start [2025-02-03 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393737', 'tblTempUsageDetail_20' ) end [2025-02-03 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393737', 'tblTempVendorCDR_20' ) start [2025-02-03 14:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393737', 'tblTempVendorCDR_20' ) end [2025-02-03 14:48:22] Production.INFO: ProcessCDR(1,14393737,1,1,2) [2025-02-03 14:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393737', 'tblTempUsageDetail_20' ) start [2025-02-03 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393737', 'tblTempUsageDetail_20' ) end [2025-02-03 14:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:48:26] Production.INFO: ==10741== Releasing lock... [2025-02-03 14:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:48:26] Production.INFO: 64 MB #Memory Used# [2025-02-03 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:49:06 [end_date_ymd] => 2025-02-03 14:49:06 [RateCDR] => 1 ) [2025-02-03 14:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 11:49:06' and `end` < '2025-02-03 14:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 14:49:22] Production.INFO: count ==4787 [2025-02-03 14:49:24] Production.ERROR: pbx CDR StartTime 2025-02-03 11:49:06 - End Time 2025-02-03 14:49:06 [2025-02-03 14:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393742', 'tblTempUsageDetail_20' ) start [2025-02-03 14:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393742', 'tblTempUsageDetail_20' ) end [2025-02-03 14:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393742', 'tblTempVendorCDR_20' ) start [2025-02-03 14:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393742', 'tblTempVendorCDR_20' ) end [2025-02-03 14:49:24] Production.INFO: ProcessCDR(1,14393742,1,1,2) [2025-02-03 14:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393742', 'tblTempUsageDetail_20' ) start [2025-02-03 14:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393742', 'tblTempUsageDetail_20' ) end [2025-02-03 14:49:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:49:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:49:28] Production.INFO: ==10814== Releasing lock... [2025-02-03 14:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:49:28] Production.INFO: 63.75 MB #Memory Used# [2025-02-03 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:50:06 [end_date_ymd] => 2025-02-03 14:50:06 [RateCDR] => 1 ) [2025-02-03 14: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-02-03 11:50:06' and `end` < '2025-02-03 14: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-02-03 14:50:20] Production.INFO: count ==4793 [2025-02-03 14:50:22] Production.ERROR: pbx CDR StartTime 2025-02-03 11:50:06 - End Time 2025-02-03 14:50:06 [2025-02-03 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393748', 'tblTempUsageDetail_20' ) start [2025-02-03 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393748', 'tblTempUsageDetail_20' ) end [2025-02-03 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393748', 'tblTempVendorCDR_20' ) start [2025-02-03 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393748', 'tblTempVendorCDR_20' ) end [2025-02-03 14:50:22] Production.INFO: ProcessCDR(1,14393748,1,1,2) [2025-02-03 14:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393748', 'tblTempUsageDetail_20' ) start [2025-02-03 14:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393748', 'tblTempUsageDetail_20' ) end [2025-02-03 14:50:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:50:26] Production.INFO: ==10891== Releasing lock... [2025-02-03 14:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:50:26] Production.INFO: 64 MB #Memory Used# [2025-02-03 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:51:05 [end_date_ymd] => 2025-02-03 14:51:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:51:05' and `end` < '2025-02-03 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-02-03 14:51:28] Production.INFO: count ==4822 [2025-02-03 14:51:30] Production.ERROR: pbx CDR StartTime 2025-02-03 11:51:05 - End Time 2025-02-03 14:51:05 [2025-02-03 14:51:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393753', 'tblTempUsageDetail_20' ) start [2025-02-03 14:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393753', 'tblTempUsageDetail_20' ) end [2025-02-03 14:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393753', 'tblTempVendorCDR_20' ) start [2025-02-03 14:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393753', 'tblTempVendorCDR_20' ) end [2025-02-03 14:51:30] Production.INFO: ProcessCDR(1,14393753,1,1,2) [2025-02-03 14:51:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:51:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:51:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:51:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:51:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393753', 'tblTempUsageDetail_20' ) start [2025-02-03 14:51:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393753', 'tblTempUsageDetail_20' ) end [2025-02-03 14:51:35] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:51:35] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:51:35] Production.INFO: ==10964== Releasing lock... [2025-02-03 14:51:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:51:35] Production.INFO: 64 MB #Memory Used# [2025-02-03 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:52:05 [end_date_ymd] => 2025-02-03 14:52:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:52:05' and `end` < '2025-02-03 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-02-03 14:52:22] Production.INFO: count ==4841 [2025-02-03 14:52:24] Production.ERROR: pbx CDR StartTime 2025-02-03 11:52:05 - End Time 2025-02-03 14:52:05 [2025-02-03 14:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393758', 'tblTempUsageDetail_20' ) start [2025-02-03 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393758', 'tblTempUsageDetail_20' ) end [2025-02-03 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393758', 'tblTempVendorCDR_20' ) start [2025-02-03 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393758', 'tblTempVendorCDR_20' ) end [2025-02-03 14:52:24] Production.INFO: ProcessCDR(1,14393758,1,1,2) [2025-02-03 14:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393758', 'tblTempUsageDetail_20' ) start [2025-02-03 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393758', 'tblTempUsageDetail_20' ) end [2025-02-03 14:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:52:27] Production.INFO: ==11038== Releasing lock... [2025-02-03 14:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:52:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:53:05 [end_date_ymd] => 2025-02-03 14:53:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:53:05' and `end` < '2025-02-03 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-02-03 14:53:20] Production.INFO: count ==4837 [2025-02-03 14:53:22] Production.ERROR: pbx CDR StartTime 2025-02-03 11:53:05 - End Time 2025-02-03 14:53:05 [2025-02-03 14:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393763', 'tblTempUsageDetail_20' ) start [2025-02-03 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393763', 'tblTempUsageDetail_20' ) end [2025-02-03 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393763', 'tblTempVendorCDR_20' ) start [2025-02-03 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393763', 'tblTempVendorCDR_20' ) end [2025-02-03 14:53:22] Production.INFO: ProcessCDR(1,14393763,1,1,2) [2025-02-03 14:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393763', 'tblTempUsageDetail_20' ) start [2025-02-03 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393763', 'tblTempUsageDetail_20' ) end [2025-02-03 14:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:53:26] Production.INFO: ==11110== Releasing lock... [2025-02-03 14:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:53:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:54:05 [end_date_ymd] => 2025-02-03 14:54:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:54:05' and `end` < '2025-02-03 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-02-03 14:54:19] Production.INFO: count ==4831 [2025-02-03 14:54:21] Production.ERROR: pbx CDR StartTime 2025-02-03 11:54:05 - End Time 2025-02-03 14:54:05 [2025-02-03 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393768', 'tblTempUsageDetail_20' ) start [2025-02-03 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393768', 'tblTempUsageDetail_20' ) end [2025-02-03 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393768', 'tblTempVendorCDR_20' ) start [2025-02-03 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393768', 'tblTempVendorCDR_20' ) end [2025-02-03 14:54:21] Production.INFO: ProcessCDR(1,14393768,1,1,2) [2025-02-03 14:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393768', 'tblTempUsageDetail_20' ) start [2025-02-03 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393768', 'tblTempUsageDetail_20' ) end [2025-02-03 14:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:54:26] Production.INFO: ==11187== Releasing lock... [2025-02-03 14:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:54:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:55:06 [end_date_ymd] => 2025-02-03 14:55:06 [RateCDR] => 1 ) [2025-02-03 14: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-02-03 11:55:06' and `end` < '2025-02-03 14: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-02-03 14:55:23] Production.INFO: count ==4832 [2025-02-03 14:55:25] Production.ERROR: pbx CDR StartTime 2025-02-03 11:55:06 - End Time 2025-02-03 14:55:06 [2025-02-03 14:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393773', 'tblTempUsageDetail_20' ) start [2025-02-03 14:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393773', 'tblTempUsageDetail_20' ) end [2025-02-03 14:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393773', 'tblTempVendorCDR_20' ) start [2025-02-03 14:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393773', 'tblTempVendorCDR_20' ) end [2025-02-03 14:55:25] Production.INFO: ProcessCDR(1,14393773,1,1,2) [2025-02-03 14:55:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393773', 'tblTempUsageDetail_20' ) start [2025-02-03 14:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393773', 'tblTempUsageDetail_20' ) end [2025-02-03 14:55:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:55:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:55:30] Production.INFO: ==11265== Releasing lock... [2025-02-03 14:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:55:30] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:56:05 [end_date_ymd] => 2025-02-03 14:56:05 [RateCDR] => 1 ) [2025-02-03 14: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-02-03 11:56:05' and `end` < '2025-02-03 14: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-02-03 14:56:21] Production.INFO: count ==4829 [2025-02-03 14:56:23] Production.ERROR: pbx CDR StartTime 2025-02-03 11:56:05 - End Time 2025-02-03 14:56:05 [2025-02-03 14:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393778', 'tblTempUsageDetail_20' ) start [2025-02-03 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393778', 'tblTempUsageDetail_20' ) end [2025-02-03 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393778', 'tblTempVendorCDR_20' ) start [2025-02-03 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393778', 'tblTempVendorCDR_20' ) end [2025-02-03 14:56:23] Production.INFO: ProcessCDR(1,14393778,1,1,2) [2025-02-03 14:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393778', 'tblTempUsageDetail_20' ) start [2025-02-03 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393778', 'tblTempUsageDetail_20' ) end [2025-02-03 14:56:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:56:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:56:28] Production.INFO: ==11338== Releasing lock... [2025-02-03 14:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:56:28] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:57:05 [end_date_ymd] => 2025-02-03 14:57:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:57:05' and `end` < '2025-02-03 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-02-03 14:57:19] Production.INFO: count ==4818 [2025-02-03 14:57:21] Production.ERROR: pbx CDR StartTime 2025-02-03 11:57:05 - End Time 2025-02-03 14:57:05 [2025-02-03 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393783', 'tblTempUsageDetail_20' ) start [2025-02-03 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393783', 'tblTempUsageDetail_20' ) end [2025-02-03 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393783', 'tblTempVendorCDR_20' ) start [2025-02-03 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393783', 'tblTempVendorCDR_20' ) end [2025-02-03 14:57:21] Production.INFO: ProcessCDR(1,14393783,1,1,2) [2025-02-03 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393783', 'tblTempUsageDetail_20' ) start [2025-02-03 14:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393783', 'tblTempUsageDetail_20' ) end [2025-02-03 14:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:57:25] Production.INFO: ==11413== Releasing lock... [2025-02-03 14:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:57:25] Production.INFO: 64 MB #Memory Used# [2025-02-03 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:58:06 [end_date_ymd] => 2025-02-03 14:58:06 [RateCDR] => 1 ) [2025-02-03 14: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-02-03 11:58:06' and `end` < '2025-02-03 14: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-02-03 14:58:24] Production.INFO: count ==4829 [2025-02-03 14:58:26] Production.ERROR: pbx CDR StartTime 2025-02-03 11:58:06 - End Time 2025-02-03 14:58:06 [2025-02-03 14:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393788', 'tblTempUsageDetail_20' ) start [2025-02-03 14:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393788', 'tblTempUsageDetail_20' ) end [2025-02-03 14:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393788', 'tblTempVendorCDR_20' ) start [2025-02-03 14:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393788', 'tblTempVendorCDR_20' ) end [2025-02-03 14:58:26] Production.INFO: ProcessCDR(1,14393788,1,1,2) [2025-02-03 14:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393788', 'tblTempUsageDetail_20' ) start [2025-02-03 14:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393788', 'tblTempUsageDetail_20' ) end [2025-02-03 14:58:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:58:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:58:31] Production.INFO: ==11483== Releasing lock... [2025-02-03 14:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:58:31] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 11:59:05 [end_date_ymd] => 2025-02-03 14:59:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 11:59:05' and `end` < '2025-02-03 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-02-03 14:59:22] Production.INFO: count ==4818 [2025-02-03 14:59:24] Production.ERROR: pbx CDR StartTime 2025-02-03 11:59:05 - End Time 2025-02-03 14:59:05 [2025-02-03 14:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 14:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393793', 'tblTempUsageDetail_20' ) start [2025-02-03 14:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393793', 'tblTempUsageDetail_20' ) end [2025-02-03 14:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393793', 'tblTempVendorCDR_20' ) start [2025-02-03 14:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393793', 'tblTempVendorCDR_20' ) end [2025-02-03 14:59:24] Production.INFO: ProcessCDR(1,14393793,1,1,2) [2025-02-03 14:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 14:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 14:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393793', 'tblTempUsageDetail_20' ) start [2025-02-03 14:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393793', 'tblTempUsageDetail_20' ) end [2025-02-03 14:59:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 14:59:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 14:59:29] Production.INFO: ==11596== Releasing lock... [2025-02-03 14:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 14:59:29] Production.INFO: 64 MB #Memory Used# [2025-02-03 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:00:06 [end_date_ymd] => 2025-02-03 15:00:06 [RateCDR] => 1 ) [2025-02-03 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 12:00:06' and `end` < '2025-02-03 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 15:00:25] Production.INFO: count ==4805 [2025-02-03 15:00:27] Production.ERROR: pbx CDR StartTime 2025-02-03 12:00:06 - End Time 2025-02-03 15:00:06 [2025-02-03 15:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393799', 'tblTempUsageDetail_20' ) start [2025-02-03 15:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393799', 'tblTempUsageDetail_20' ) end [2025-02-03 15:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393799', 'tblTempVendorCDR_20' ) start [2025-02-03 15:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393799', 'tblTempVendorCDR_20' ) end [2025-02-03 15:00:27] Production.INFO: ProcessCDR(1,14393799,1,1,2) [2025-02-03 15:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393799', 'tblTempUsageDetail_20' ) start [2025-02-03 15:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393799', 'tblTempUsageDetail_20' ) end [2025-02-03 15:00:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:00:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:00:31] Production.INFO: ==11670== Releasing lock... [2025-02-03 15:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:00:31] Production.INFO: 64 MB #Memory Used# [2025-02-03 15:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:01:04 [end_date_ymd] => 2025-02-03 15:01:04 [RateCDR] => 1 ) [2025-02-03 15: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-02-03 12:01:04' and `end` < '2025-02-03 15: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-02-03 15:01:22] Production.INFO: count ==4813 [2025-02-03 15:01:24] Production.ERROR: pbx CDR StartTime 2025-02-03 12:01:04 - End Time 2025-02-03 15:01:04 [2025-02-03 15:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393804', 'tblTempUsageDetail_20' ) start [2025-02-03 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393804', 'tblTempUsageDetail_20' ) end [2025-02-03 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393804', 'tblTempVendorCDR_20' ) start [2025-02-03 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393804', 'tblTempVendorCDR_20' ) end [2025-02-03 15:01:24] Production.INFO: ProcessCDR(1,14393804,1,1,2) [2025-02-03 15:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393804', 'tblTempUsageDetail_20' ) start [2025-02-03 15:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393804', 'tblTempUsageDetail_20' ) end [2025-02-03 15:01:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:01:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:01:29] Production.INFO: ==11755== Releasing lock... [2025-02-03 15:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:01:29] Production.INFO: 64 MB #Memory Used# [2025-02-03 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:02:05 [end_date_ymd] => 2025-02-03 15:02:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:02:05' and `end` < '2025-02-03 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-02-03 15:02:27] Production.INFO: count ==4815 [2025-02-03 15:02:29] Production.ERROR: pbx CDR StartTime 2025-02-03 12:02:05 - End Time 2025-02-03 15:02:05 [2025-02-03 15:02:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393809', 'tblTempUsageDetail_20' ) start [2025-02-03 15:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393809', 'tblTempUsageDetail_20' ) end [2025-02-03 15:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393809', 'tblTempVendorCDR_20' ) start [2025-02-03 15:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393809', 'tblTempVendorCDR_20' ) end [2025-02-03 15:02:29] Production.INFO: ProcessCDR(1,14393809,1,1,2) [2025-02-03 15:02:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393809', 'tblTempUsageDetail_20' ) start [2025-02-03 15:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393809', 'tblTempUsageDetail_20' ) end [2025-02-03 15:02:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:02:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:02:33] Production.INFO: ==11904== Releasing lock... [2025-02-03 15:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:02:33] Production.INFO: 64 MB #Memory Used# [2025-02-03 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:03:05 [end_date_ymd] => 2025-02-03 15:03:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:03:05' and `end` < '2025-02-03 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-02-03 15:03:23] Production.INFO: count ==4842 [2025-02-03 15:03:25] Production.ERROR: pbx CDR StartTime 2025-02-03 12:03:05 - End Time 2025-02-03 15:03:05 [2025-02-03 15:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393814', 'tblTempUsageDetail_20' ) start [2025-02-03 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393814', 'tblTempUsageDetail_20' ) end [2025-02-03 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393814', 'tblTempVendorCDR_20' ) start [2025-02-03 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393814', 'tblTempVendorCDR_20' ) end [2025-02-03 15:03:26] Production.INFO: ProcessCDR(1,14393814,1,1,2) [2025-02-03 15:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393814', 'tblTempUsageDetail_20' ) start [2025-02-03 15:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393814', 'tblTempUsageDetail_20' ) end [2025-02-03 15:03:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:03:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:03:31] Production.INFO: ==11976== Releasing lock... [2025-02-03 15:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:03:31] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:04:05 [end_date_ymd] => 2025-02-03 15:04:05 [RateCDR] => 1 ) [2025-02-03 15: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-02-03 12:04:05' and `end` < '2025-02-03 15: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-02-03 15:04:19] Production.INFO: count ==4846 [2025-02-03 15:04:21] Production.ERROR: pbx CDR StartTime 2025-02-03 12:04:05 - End Time 2025-02-03 15:04:05 [2025-02-03 15:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393819', 'tblTempUsageDetail_20' ) start [2025-02-03 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393819', 'tblTempUsageDetail_20' ) end [2025-02-03 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393819', 'tblTempVendorCDR_20' ) start [2025-02-03 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393819', 'tblTempVendorCDR_20' ) end [2025-02-03 15:04:21] Production.INFO: ProcessCDR(1,14393819,1,1,2) [2025-02-03 15:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393819', 'tblTempUsageDetail_20' ) start [2025-02-03 15:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393819', 'tblTempUsageDetail_20' ) end [2025-02-03 15:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:04:26] Production.INFO: ==12049== Releasing lock... [2025-02-03 15:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:04:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:05:06 [end_date_ymd] => 2025-02-03 15:05:06 [RateCDR] => 1 ) [2025-02-03 15: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-02-03 12:05:06' and `end` < '2025-02-03 15: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-02-03 15:05:34] Production.INFO: count ==4870 [2025-02-03 15:05:36] Production.ERROR: pbx CDR StartTime 2025-02-03 12:05:06 - End Time 2025-02-03 15:05:06 [2025-02-03 15:05:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393824', 'tblTempUsageDetail_20' ) start [2025-02-03 15:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393824', 'tblTempUsageDetail_20' ) end [2025-02-03 15:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393824', 'tblTempVendorCDR_20' ) start [2025-02-03 15:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393824', 'tblTempVendorCDR_20' ) end [2025-02-03 15:05:36] Production.INFO: ProcessCDR(1,14393824,1,1,2) [2025-02-03 15:05:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:05:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:05:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:05:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:05:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393824', 'tblTempUsageDetail_20' ) start [2025-02-03 15:05:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393824', 'tblTempUsageDetail_20' ) end [2025-02-03 15:05:41] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:05:41] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:05:41] Production.INFO: ==12200== Releasing lock... [2025-02-03 15:05:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:05:41] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:06:05 [end_date_ymd] => 2025-02-03 15:06:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:06:05' and `end` < '2025-02-03 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-02-03 15:06:22] Production.INFO: count ==4863 [2025-02-03 15:06:24] Production.ERROR: pbx CDR StartTime 2025-02-03 12:06:05 - End Time 2025-02-03 15:06:05 [2025-02-03 15:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393829', 'tblTempUsageDetail_20' ) start [2025-02-03 15:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393829', 'tblTempUsageDetail_20' ) end [2025-02-03 15:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393829', 'tblTempVendorCDR_20' ) start [2025-02-03 15:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393829', 'tblTempVendorCDR_20' ) end [2025-02-03 15:06:24] Production.INFO: ProcessCDR(1,14393829,1,1,2) [2025-02-03 15:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393829', 'tblTempUsageDetail_20' ) start [2025-02-03 15:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393829', 'tblTempUsageDetail_20' ) end [2025-02-03 15:06:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:06:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:06:28] Production.INFO: ==12271== Releasing lock... [2025-02-03 15:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:06:28] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:07:05 [end_date_ymd] => 2025-02-03 15:07:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:07:05' and `end` < '2025-02-03 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-02-03 15:07:20] Production.INFO: count ==4872 [2025-02-03 15:07:22] Production.ERROR: pbx CDR StartTime 2025-02-03 12:07:05 - End Time 2025-02-03 15:07:05 [2025-02-03 15:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393834', 'tblTempUsageDetail_20' ) start [2025-02-03 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393834', 'tblTempUsageDetail_20' ) end [2025-02-03 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393834', 'tblTempVendorCDR_20' ) start [2025-02-03 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393834', 'tblTempVendorCDR_20' ) end [2025-02-03 15:07:22] Production.INFO: ProcessCDR(1,14393834,1,1,2) [2025-02-03 15:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393834', 'tblTempUsageDetail_20' ) start [2025-02-03 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393834', 'tblTempUsageDetail_20' ) end [2025-02-03 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:07:27] Production.INFO: ==12345== Releasing lock... [2025-02-03 15:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:07:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 15:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:08:04 [end_date_ymd] => 2025-02-03 15:08:04 [RateCDR] => 1 ) [2025-02-03 15: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-02-03 12:08:04' and `end` < '2025-02-03 15: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-02-03 15:08:26] Production.INFO: count ==4873 [2025-02-03 15:08:28] Production.ERROR: pbx CDR StartTime 2025-02-03 12:08:04 - End Time 2025-02-03 15:08:04 [2025-02-03 15:08:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393839', 'tblTempUsageDetail_20' ) start [2025-02-03 15:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393839', 'tblTempUsageDetail_20' ) end [2025-02-03 15:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393839', 'tblTempVendorCDR_20' ) start [2025-02-03 15:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393839', 'tblTempVendorCDR_20' ) end [2025-02-03 15:08:28] Production.INFO: ProcessCDR(1,14393839,1,1,2) [2025-02-03 15:08:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:08:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:08:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:08:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393839', 'tblTempUsageDetail_20' ) start [2025-02-03 15:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393839', 'tblTempUsageDetail_20' ) end [2025-02-03 15:08:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:08:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:08:33] Production.INFO: ==12456== Releasing lock... [2025-02-03 15:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:08:33] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:09:05 [end_date_ymd] => 2025-02-03 15:09:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:09:05' and `end` < '2025-02-03 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-02-03 15:09:29] Production.INFO: count ==4868 [2025-02-03 15:09:31] Production.ERROR: pbx CDR StartTime 2025-02-03 12:09:05 - End Time 2025-02-03 15:09:05 [2025-02-03 15:09:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393844', 'tblTempUsageDetail_20' ) start [2025-02-03 15:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393844', 'tblTempUsageDetail_20' ) end [2025-02-03 15:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393844', 'tblTempVendorCDR_20' ) start [2025-02-03 15:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393844', 'tblTempVendorCDR_20' ) end [2025-02-03 15:09:31] Production.INFO: ProcessCDR(1,14393844,1,1,2) [2025-02-03 15:09:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:09:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:09:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:09:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393844', 'tblTempUsageDetail_20' ) start [2025-02-03 15:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393844', 'tblTempUsageDetail_20' ) end [2025-02-03 15:09:36] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:09:36] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:09:36] Production.INFO: ==12567== Releasing lock... [2025-02-03 15:09:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:09:36] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:10:06 [end_date_ymd] => 2025-02-03 15:10:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:10:06' and `end` < '2025-02-03 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-02-03 15:10:26] Production.INFO: count ==4883 [2025-02-03 15:10:28] Production.ERROR: pbx CDR StartTime 2025-02-03 12:10:06 - End Time 2025-02-03 15:10:06 [2025-02-03 15:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393850', 'tblTempUsageDetail_20' ) start [2025-02-03 15:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393850', 'tblTempUsageDetail_20' ) end [2025-02-03 15:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393850', 'tblTempVendorCDR_20' ) start [2025-02-03 15:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393850', 'tblTempVendorCDR_20' ) end [2025-02-03 15:10:28] Production.INFO: ProcessCDR(1,14393850,1,1,2) [2025-02-03 15:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393850', 'tblTempUsageDetail_20' ) start [2025-02-03 15:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393850', 'tblTempUsageDetail_20' ) end [2025-02-03 15:10:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:10:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:10:33] Production.INFO: ==12650== Releasing lock... [2025-02-03 15:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:10:33] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:11:05 [end_date_ymd] => 2025-02-03 15:11:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:11:05' and `end` < '2025-02-03 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-02-03 15:11:23] Production.INFO: count ==4866 [2025-02-03 15:11:25] Production.ERROR: pbx CDR StartTime 2025-02-03 12:11:05 - End Time 2025-02-03 15:11:05 [2025-02-03 15:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393855', 'tblTempUsageDetail_20' ) start [2025-02-03 15:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393855', 'tblTempUsageDetail_20' ) end [2025-02-03 15:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393855', 'tblTempVendorCDR_20' ) start [2025-02-03 15:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393855', 'tblTempVendorCDR_20' ) end [2025-02-03 15:11:26] Production.INFO: ProcessCDR(1,14393855,1,1,2) [2025-02-03 15:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393855', 'tblTempUsageDetail_20' ) start [2025-02-03 15:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393855', 'tblTempUsageDetail_20' ) end [2025-02-03 15:11:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:11:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:11:30] Production.INFO: ==12728== Releasing lock... [2025-02-03 15:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:11:30] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:12:05 [end_date_ymd] => 2025-02-03 15:12:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:12:05' and `end` < '2025-02-03 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-02-03 15:12:23] Production.INFO: count ==4888 [2025-02-03 15:12:25] Production.ERROR: pbx CDR StartTime 2025-02-03 12:12:05 - End Time 2025-02-03 15:12:05 [2025-02-03 15:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393860', 'tblTempUsageDetail_20' ) start [2025-02-03 15:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393860', 'tblTempUsageDetail_20' ) end [2025-02-03 15:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393860', 'tblTempVendorCDR_20' ) start [2025-02-03 15:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393860', 'tblTempVendorCDR_20' ) end [2025-02-03 15:12:25] Production.INFO: ProcessCDR(1,14393860,1,1,2) [2025-02-03 15:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393860', 'tblTempUsageDetail_20' ) start [2025-02-03 15:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393860', 'tblTempUsageDetail_20' ) end [2025-02-03 15:12:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:12:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:12:30] Production.INFO: ==12881== Releasing lock... [2025-02-03 15:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:12:30] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:13:05 [end_date_ymd] => 2025-02-03 15:13:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:13:05' and `end` < '2025-02-03 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-02-03 15:13:23] Production.INFO: count ==4894 [2025-02-03 15:13:25] Production.ERROR: pbx CDR StartTime 2025-02-03 12:13:05 - End Time 2025-02-03 15:13:05 [2025-02-03 15:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393865', 'tblTempUsageDetail_20' ) start [2025-02-03 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393865', 'tblTempUsageDetail_20' ) end [2025-02-03 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393865', 'tblTempVendorCDR_20' ) start [2025-02-03 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393865', 'tblTempVendorCDR_20' ) end [2025-02-03 15:13:25] Production.INFO: ProcessCDR(1,14393865,1,1,2) [2025-02-03 15:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393865', 'tblTempUsageDetail_20' ) start [2025-02-03 15:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393865', 'tblTempUsageDetail_20' ) end [2025-02-03 15:13:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:13:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:13:29] Production.INFO: ==12957== Releasing lock... [2025-02-03 15:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:13:29] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:14:06 [end_date_ymd] => 2025-02-03 15:14:06 [RateCDR] => 1 ) [2025-02-03 15: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-02-03 12:14:06' and `end` < '2025-02-03 15: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-02-03 15:14:31] Production.INFO: count ==4990 [2025-02-03 15:14:33] Production.ERROR: pbx CDR StartTime 2025-02-03 12:14:06 - End Time 2025-02-03 15:14:06 [2025-02-03 15:14:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:14:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393870', 'tblTempUsageDetail_20' ) start [2025-02-03 15:14:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393870', 'tblTempUsageDetail_20' ) end [2025-02-03 15:14:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393870', 'tblTempVendorCDR_20' ) start [2025-02-03 15:14:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393870', 'tblTempVendorCDR_20' ) end [2025-02-03 15:14:33] Production.INFO: ProcessCDR(1,14393870,1,1,2) [2025-02-03 15:14:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:14:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:14:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:14:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:14:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393870', 'tblTempUsageDetail_20' ) start [2025-02-03 15:14:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393870', 'tblTempUsageDetail_20' ) end [2025-02-03 15:14:38] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:14:38] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:14:38] Production.INFO: ==13028== Releasing lock... [2025-02-03 15:14:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:14:38] Production.INFO: 65.25 MB #Memory Used# [2025-02-03 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:15:05 [end_date_ymd] => 2025-02-03 15:15:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:15:05' and `end` < '2025-02-03 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-02-03 15:15:24] Production.INFO: count ==5023 [2025-02-03 15:15:26] Production.ERROR: pbx CDR StartTime 2025-02-03 12:15:05 - End Time 2025-02-03 15:15:05 [2025-02-03 15:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393875', 'tblTempUsageDetail_20' ) start [2025-02-03 15:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393875', 'tblTempUsageDetail_20' ) end [2025-02-03 15:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393875', 'tblTempVendorCDR_20' ) start [2025-02-03 15:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393875', 'tblTempVendorCDR_20' ) end [2025-02-03 15:15:26] Production.INFO: ProcessCDR(1,14393875,1,1,2) [2025-02-03 15:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393875', 'tblTempUsageDetail_20' ) start [2025-02-03 15:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393875', 'tblTempUsageDetail_20' ) end [2025-02-03 15:15:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:15:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:15:31] Production.INFO: ==13222== Releasing lock... [2025-02-03 15:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:15:31] Production.INFO: 65.5 MB #Memory Used# [2025-02-03 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:16:05 [end_date_ymd] => 2025-02-03 15:16:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:16:05' and `end` < '2025-02-03 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-02-03 15:16:20] Production.INFO: count ==5013 [2025-02-03 15:16:22] Production.ERROR: pbx CDR StartTime 2025-02-03 12:16:05 - End Time 2025-02-03 15:16:05 [2025-02-03 15:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393880', 'tblTempUsageDetail_20' ) start [2025-02-03 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393880', 'tblTempUsageDetail_20' ) end [2025-02-03 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393880', 'tblTempVendorCDR_20' ) start [2025-02-03 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393880', 'tblTempVendorCDR_20' ) end [2025-02-03 15:16:22] Production.INFO: ProcessCDR(1,14393880,1,1,2) [2025-02-03 15:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393880', 'tblTempUsageDetail_20' ) start [2025-02-03 15:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393880', 'tblTempUsageDetail_20' ) end [2025-02-03 15:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:16:25] Production.INFO: ==13294== Releasing lock... [2025-02-03 15:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:16:25] Production.INFO: 65.5 MB #Memory Used# [2025-02-03 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:17:05 [end_date_ymd] => 2025-02-03 15:17:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:17:05' and `end` < '2025-02-03 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-02-03 15:17:21] Production.INFO: count ==5026 [2025-02-03 15:17:23] Production.ERROR: pbx CDR StartTime 2025-02-03 12:17:05 - End Time 2025-02-03 15:17:05 [2025-02-03 15:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393885', 'tblTempUsageDetail_20' ) start [2025-02-03 15:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393885', 'tblTempUsageDetail_20' ) end [2025-02-03 15:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393885', 'tblTempVendorCDR_20' ) start [2025-02-03 15:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393885', 'tblTempVendorCDR_20' ) end [2025-02-03 15:17:23] Production.INFO: ProcessCDR(1,14393885,1,1,2) [2025-02-03 15:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393885', 'tblTempUsageDetail_20' ) start [2025-02-03 15:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393885', 'tblTempUsageDetail_20' ) end [2025-02-03 15:17:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:17:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:17:28] Production.INFO: ==13366== Releasing lock... [2025-02-03 15:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:17:28] Production.INFO: 65.5 MB #Memory Used# [2025-02-03 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:18:05 [end_date_ymd] => 2025-02-03 15:18:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:18:05' and `end` < '2025-02-03 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-02-03 15:18:21] Production.INFO: count ==5024 [2025-02-03 15:18:23] Production.ERROR: pbx CDR StartTime 2025-02-03 12:18:05 - End Time 2025-02-03 15:18:05 [2025-02-03 15:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393890', 'tblTempUsageDetail_20' ) start [2025-02-03 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393890', 'tblTempUsageDetail_20' ) end [2025-02-03 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393890', 'tblTempVendorCDR_20' ) start [2025-02-03 15:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393890', 'tblTempVendorCDR_20' ) end [2025-02-03 15:18:23] Production.INFO: ProcessCDR(1,14393890,1,1,2) [2025-02-03 15:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393890', 'tblTempUsageDetail_20' ) start [2025-02-03 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393890', 'tblTempUsageDetail_20' ) end [2025-02-03 15:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:18:27] Production.INFO: ==13438== Releasing lock... [2025-02-03 15:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:18:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-03 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:19:05 [end_date_ymd] => 2025-02-03 15:19:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:19:05' and `end` < '2025-02-03 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-02-03 15:19:23] Production.INFO: count ==5036 [2025-02-03 15:19:25] Production.ERROR: pbx CDR StartTime 2025-02-03 12:19:05 - End Time 2025-02-03 15:19:05 [2025-02-03 15:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393895', 'tblTempUsageDetail_20' ) start [2025-02-03 15:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393895', 'tblTempUsageDetail_20' ) end [2025-02-03 15:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393895', 'tblTempVendorCDR_20' ) start [2025-02-03 15:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393895', 'tblTempVendorCDR_20' ) end [2025-02-03 15:19:25] Production.INFO: ProcessCDR(1,14393895,1,1,2) [2025-02-03 15:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393895', 'tblTempUsageDetail_20' ) start [2025-02-03 15:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393895', 'tblTempUsageDetail_20' ) end [2025-02-03 15:19:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:19:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:19:29] Production.INFO: ==13510== Releasing lock... [2025-02-03 15:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:19:29] Production.INFO: 65.75 MB #Memory Used# [2025-02-03 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:20:05 [end_date_ymd] => 2025-02-03 15:20:05 [RateCDR] => 1 ) [2025-02-03 15: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-02-03 12:20:05' and `end` < '2025-02-03 15: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-02-03 15:20:28] Production.INFO: count ==5054 [2025-02-03 15:20:30] Production.ERROR: pbx CDR StartTime 2025-02-03 12:20:05 - End Time 2025-02-03 15:20:05 [2025-02-03 15:20:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393900', 'tblTempUsageDetail_20' ) start [2025-02-03 15:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393900', 'tblTempUsageDetail_20' ) end [2025-02-03 15:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393900', 'tblTempVendorCDR_20' ) start [2025-02-03 15:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393900', 'tblTempVendorCDR_20' ) end [2025-02-03 15:20:30] Production.INFO: ProcessCDR(1,14393900,1,1,2) [2025-02-03 15:20:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:20:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:20:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:20:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393900', 'tblTempUsageDetail_20' ) start [2025-02-03 15:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393900', 'tblTempUsageDetail_20' ) end [2025-02-03 15:20:35] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:20:35] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:20:35] Production.INFO: ==13585== Releasing lock... [2025-02-03 15:20:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:20:35] Production.INFO: 65.75 MB #Memory Used# [2025-02-03 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:21:05 [end_date_ymd] => 2025-02-03 15:21:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:21:05' and `end` < '2025-02-03 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-02-03 15:21:25] Production.INFO: count ==5092 [2025-02-03 15:21:27] Production.ERROR: pbx CDR StartTime 2025-02-03 12:21:05 - End Time 2025-02-03 15:21:05 [2025-02-03 15:21:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393906', 'tblTempUsageDetail_20' ) start [2025-02-03 15:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393906', 'tblTempUsageDetail_20' ) end [2025-02-03 15:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393906', 'tblTempVendorCDR_20' ) start [2025-02-03 15:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393906', 'tblTempVendorCDR_20' ) end [2025-02-03 15:21:27] Production.INFO: ProcessCDR(1,14393906,1,1,2) [2025-02-03 15:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:21:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:21:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:21:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393906', 'tblTempUsageDetail_20' ) start [2025-02-03 15:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393906', 'tblTempUsageDetail_20' ) end [2025-02-03 15:21:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:21:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:21:32] Production.INFO: ==13662== Releasing lock... [2025-02-03 15:21:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:21:32] Production.INFO: 66.25 MB #Memory Used# [2025-02-03 15:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:22:04 [end_date_ymd] => 2025-02-03 15:22:04 [RateCDR] => 1 ) [2025-02-03 15:22: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-02-03 12:22:04' and `end` < '2025-02-03 15:22: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-02-03 15:22:21] Production.INFO: count ==5115 [2025-02-03 15:22:23] Production.ERROR: pbx CDR StartTime 2025-02-03 12:22:04 - End Time 2025-02-03 15:22:04 [2025-02-03 15:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393907', 'tblTempUsageDetail_20' ) start [2025-02-03 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393907', 'tblTempUsageDetail_20' ) end [2025-02-03 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393907', 'tblTempVendorCDR_20' ) start [2025-02-03 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393907', 'tblTempVendorCDR_20' ) end [2025-02-03 15:22:23] Production.INFO: ProcessCDR(1,14393907,1,1,2) [2025-02-03 15:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393907', 'tblTempUsageDetail_20' ) start [2025-02-03 15:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393907', 'tblTempUsageDetail_20' ) end [2025-02-03 15:22:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:22:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:22:28] Production.INFO: ==13736== Releasing lock... [2025-02-03 15:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:22:28] Production.INFO: 66.25 MB #Memory Used# [2025-02-03 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:23:05 [end_date_ymd] => 2025-02-03 15:23:05 [RateCDR] => 1 ) [2025-02-03 15: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-02-03 12:23:05' and `end` < '2025-02-03 15: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-02-03 15:23:25] Production.INFO: count ==5153 [2025-02-03 15:23:28] Production.ERROR: pbx CDR StartTime 2025-02-03 12:23:05 - End Time 2025-02-03 15:23:05 [2025-02-03 15:23:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393916', 'tblTempUsageDetail_20' ) start [2025-02-03 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393916', 'tblTempUsageDetail_20' ) end [2025-02-03 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393916', 'tblTempVendorCDR_20' ) start [2025-02-03 15:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393916', 'tblTempVendorCDR_20' ) end [2025-02-03 15:23:28] Production.INFO: ProcessCDR(1,14393916,1,1,2) [2025-02-03 15:23:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:23:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:23:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:23:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393916', 'tblTempUsageDetail_20' ) start [2025-02-03 15:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393916', 'tblTempUsageDetail_20' ) end [2025-02-03 15:23:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:23:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:23:33] Production.INFO: ==13808== Releasing lock... [2025-02-03 15:23:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:23:33] Production.INFO: 66.5 MB #Memory Used# [2025-02-03 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:24:06 [end_date_ymd] => 2025-02-03 15:24:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:24:06' and `end` < '2025-02-03 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-02-03 15:24:21] Production.INFO: count ==5147 [2025-02-03 15:24:24] Production.ERROR: pbx CDR StartTime 2025-02-03 12:24:06 - End Time 2025-02-03 15:24:06 [2025-02-03 15:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393921', 'tblTempUsageDetail_20' ) start [2025-02-03 15:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393921', 'tblTempUsageDetail_20' ) end [2025-02-03 15:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393921', 'tblTempVendorCDR_20' ) start [2025-02-03 15:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393921', 'tblTempVendorCDR_20' ) end [2025-02-03 15:24:24] Production.INFO: ProcessCDR(1,14393921,1,1,2) [2025-02-03 15:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393921', 'tblTempUsageDetail_20' ) start [2025-02-03 15:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393921', 'tblTempUsageDetail_20' ) end [2025-02-03 15:24:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:24:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:24:30] Production.INFO: ==13889== Releasing lock... [2025-02-03 15:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:24:30] Production.INFO: 66.5 MB #Memory Used# [2025-02-03 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:25:06 [end_date_ymd] => 2025-02-03 15:25:06 [RateCDR] => 1 ) [2025-02-03 15: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-02-03 12:25:06' and `end` < '2025-02-03 15: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-02-03 15:25:21] Production.INFO: count ==5209 [2025-02-03 15:25:23] Production.ERROR: pbx CDR StartTime 2025-02-03 12:25:06 - End Time 2025-02-03 15:25:06 [2025-02-03 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393926', 'tblTempUsageDetail_20' ) start [2025-02-03 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393926', 'tblTempUsageDetail_20' ) end [2025-02-03 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393926', 'tblTempVendorCDR_20' ) start [2025-02-03 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393926', 'tblTempVendorCDR_20' ) end [2025-02-03 15:25:23] Production.INFO: ProcessCDR(1,14393926,1,1,2) [2025-02-03 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393926', 'tblTempUsageDetail_20' ) start [2025-02-03 15:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393926', 'tblTempUsageDetail_20' ) end [2025-02-03 15:25:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:25:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:25:29] Production.INFO: ==13966== Releasing lock... [2025-02-03 15:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:25:29] Production.INFO: 67 MB #Memory Used# [2025-02-03 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:26:05 [end_date_ymd] => 2025-02-03 15:26:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:26:05' and `end` < '2025-02-03 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-02-03 15:26:20] Production.INFO: count ==5231 [2025-02-03 15:26:22] Production.ERROR: pbx CDR StartTime 2025-02-03 12:26:05 - End Time 2025-02-03 15:26:05 [2025-02-03 15:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393931', 'tblTempUsageDetail_20' ) start [2025-02-03 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393931', 'tblTempUsageDetail_20' ) end [2025-02-03 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393931', 'tblTempVendorCDR_20' ) start [2025-02-03 15:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393931', 'tblTempVendorCDR_20' ) end [2025-02-03 15:26:22] Production.INFO: ProcessCDR(1,14393931,1,1,2) [2025-02-03 15:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393931', 'tblTempUsageDetail_20' ) start [2025-02-03 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393931', 'tblTempUsageDetail_20' ) end [2025-02-03 15:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:26:27] Production.INFO: ==14041== Releasing lock... [2025-02-03 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:26:27] Production.INFO: 67.25 MB #Memory Used# [2025-02-03 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:27:05 [end_date_ymd] => 2025-02-03 15:27:05 [RateCDR] => 1 ) [2025-02-03 15: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-02-03 12:27:05' and `end` < '2025-02-03 15: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-02-03 15:27:21] Production.INFO: count ==5308 [2025-02-03 15:27:24] Production.ERROR: pbx CDR StartTime 2025-02-03 12:27:05 - End Time 2025-02-03 15:27:05 [2025-02-03 15:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393936', 'tblTempUsageDetail_20' ) start [2025-02-03 15:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393936', 'tblTempUsageDetail_20' ) end [2025-02-03 15:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393936', 'tblTempVendorCDR_20' ) start [2025-02-03 15:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393936', 'tblTempVendorCDR_20' ) end [2025-02-03 15:27:24] Production.INFO: ProcessCDR(1,14393936,1,1,2) [2025-02-03 15:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393936', 'tblTempUsageDetail_20' ) start [2025-02-03 15:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393936', 'tblTempUsageDetail_20' ) end [2025-02-03 15:27:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:27:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:27:29] Production.INFO: ==14177== Releasing lock... [2025-02-03 15:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:27:29] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:28:04 [end_date_ymd] => 2025-02-03 15:28:04 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:28:04' and `end` < '2025-02-03 15: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-02-03 15:28:20] Production.INFO: count ==5379 [2025-02-03 15:28:22] Production.ERROR: pbx CDR StartTime 2025-02-03 12:28:04 - End Time 2025-02-03 15:28:04 [2025-02-03 15:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393941', 'tblTempUsageDetail_20' ) start [2025-02-03 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393941', 'tblTempUsageDetail_20' ) end [2025-02-03 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393941', 'tblTempVendorCDR_20' ) start [2025-02-03 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393941', 'tblTempVendorCDR_20' ) end [2025-02-03 15:28:22] Production.INFO: ProcessCDR(1,14393941,1,1,2) [2025-02-03 15:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393941', 'tblTempUsageDetail_20' ) start [2025-02-03 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393941', 'tblTempUsageDetail_20' ) end [2025-02-03 15:28:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:28:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:28:27] Production.INFO: ==14250== Releasing lock... [2025-02-03 15:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:28:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 15:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:29:04 [end_date_ymd] => 2025-02-03 15:29:04 [RateCDR] => 1 ) [2025-02-03 15: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-02-03 12:29:04' and `end` < '2025-02-03 15: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-02-03 15:29:28] Production.INFO: count ==5393 [2025-02-03 15:29:30] Production.ERROR: pbx CDR StartTime 2025-02-03 12:29:04 - End Time 2025-02-03 15:29:04 [2025-02-03 15:29:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393946', 'tblTempUsageDetail_20' ) start [2025-02-03 15:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393946', 'tblTempUsageDetail_20' ) end [2025-02-03 15:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393946', 'tblTempVendorCDR_20' ) start [2025-02-03 15:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393946', 'tblTempVendorCDR_20' ) end [2025-02-03 15:29:30] Production.INFO: ProcessCDR(1,14393946,1,1,2) [2025-02-03 15:29:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:29:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:29:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:29:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393946', 'tblTempUsageDetail_20' ) start [2025-02-03 15:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393946', 'tblTempUsageDetail_20' ) end [2025-02-03 15:29:35] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:29:35] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:29:35] Production.INFO: ==14323== Releasing lock... [2025-02-03 15:29:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:29:35] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:30:05 [end_date_ymd] => 2025-02-03 15:30:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:30:05' and `end` < '2025-02-03 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-02-03 15:30:32] Production.INFO: count ==5392 [2025-02-03 15:30:35] Production.ERROR: pbx CDR StartTime 2025-02-03 12:30:05 - End Time 2025-02-03 15:30:05 [2025-02-03 15:30:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393952', 'tblTempUsageDetail_20' ) start [2025-02-03 15:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393952', 'tblTempUsageDetail_20' ) end [2025-02-03 15:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393952', 'tblTempVendorCDR_20' ) start [2025-02-03 15:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393952', 'tblTempVendorCDR_20' ) end [2025-02-03 15:30:35] Production.INFO: ProcessCDR(1,14393952,1,1,2) [2025-02-03 15:30:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:30:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:30:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:30:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:30:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393952', 'tblTempUsageDetail_20' ) start [2025-02-03 15:30:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393952', 'tblTempUsageDetail_20' ) end [2025-02-03 15:30:39] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:30:39] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:30:39] Production.INFO: ==14437== Releasing lock... [2025-02-03 15:30:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:30:39] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:31:05 [end_date_ymd] => 2025-02-03 15:31:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:31:05' and `end` < '2025-02-03 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-02-03 15:31:25] Production.INFO: count ==5437 [2025-02-03 15:31:27] Production.ERROR: pbx CDR StartTime 2025-02-03 12:31:05 - End Time 2025-02-03 15:31:05 [2025-02-03 15:31:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393957', 'tblTempUsageDetail_20' ) start [2025-02-03 15:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393957', 'tblTempUsageDetail_20' ) end [2025-02-03 15:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393957', 'tblTempVendorCDR_20' ) start [2025-02-03 15:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393957', 'tblTempVendorCDR_20' ) end [2025-02-03 15:31:27] Production.INFO: ProcessCDR(1,14393957,1,1,2) [2025-02-03 15:31:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393957', 'tblTempUsageDetail_20' ) start [2025-02-03 15:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393957', 'tblTempUsageDetail_20' ) end [2025-02-03 15:31:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:31:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:31:31] Production.INFO: ==14512== Releasing lock... [2025-02-03 15:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:31:31] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:32:06 [end_date_ymd] => 2025-02-03 15:32:06 [RateCDR] => 1 ) [2025-02-03 15: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-02-03 12:32:06' and `end` < '2025-02-03 15: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-02-03 15:32:24] Production.INFO: count ==5441 [2025-02-03 15:32:26] Production.ERROR: pbx CDR StartTime 2025-02-03 12:32:06 - End Time 2025-02-03 15:32:06 [2025-02-03 15:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393962', 'tblTempUsageDetail_20' ) start [2025-02-03 15:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393962', 'tblTempUsageDetail_20' ) end [2025-02-03 15:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393962', 'tblTempVendorCDR_20' ) start [2025-02-03 15:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393962', 'tblTempVendorCDR_20' ) end [2025-02-03 15:32:27] Production.INFO: ProcessCDR(1,14393962,1,1,2) [2025-02-03 15:32:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:32:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393962', 'tblTempUsageDetail_20' ) start [2025-02-03 15:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393962', 'tblTempUsageDetail_20' ) end [2025-02-03 15:32:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:32:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:32:31] Production.INFO: ==14585== Releasing lock... [2025-02-03 15:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:32:31] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:33:05 [end_date_ymd] => 2025-02-03 15:33:05 [RateCDR] => 1 ) [2025-02-03 15: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-02-03 12:33:05' and `end` < '2025-02-03 15: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-02-03 15:33:19] Production.INFO: count ==5445 [2025-02-03 15:33:21] Production.ERROR: pbx CDR StartTime 2025-02-03 12:33:05 - End Time 2025-02-03 15:33:05 [2025-02-03 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393967', 'tblTempUsageDetail_20' ) start [2025-02-03 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393967', 'tblTempUsageDetail_20' ) end [2025-02-03 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393967', 'tblTempVendorCDR_20' ) start [2025-02-03 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393967', 'tblTempVendorCDR_20' ) end [2025-02-03 15:33:21] Production.INFO: ProcessCDR(1,14393967,1,1,2) [2025-02-03 15:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393967', 'tblTempUsageDetail_20' ) start [2025-02-03 15:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393967', 'tblTempUsageDetail_20' ) end [2025-02-03 15:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:33:25] Production.INFO: ==14660== Releasing lock... [2025-02-03 15:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:33:25] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:34:05 [end_date_ymd] => 2025-02-03 15:34:05 [RateCDR] => 1 ) [2025-02-03 15: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-02-03 12:34:05' and `end` < '2025-02-03 15: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-02-03 15:34:19] Production.INFO: count ==5452 [2025-02-03 15:34:21] Production.ERROR: pbx CDR StartTime 2025-02-03 12:34:05 - End Time 2025-02-03 15:34:05 [2025-02-03 15:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393972', 'tblTempUsageDetail_20' ) start [2025-02-03 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393972', 'tblTempUsageDetail_20' ) end [2025-02-03 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393972', 'tblTempVendorCDR_20' ) start [2025-02-03 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393972', 'tblTempVendorCDR_20' ) end [2025-02-03 15:34:21] Production.INFO: ProcessCDR(1,14393972,1,1,2) [2025-02-03 15:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393972', 'tblTempUsageDetail_20' ) start [2025-02-03 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393972', 'tblTempUsageDetail_20' ) end [2025-02-03 15:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:34:26] Production.INFO: ==14738== Releasing lock... [2025-02-03 15:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:34:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:35:05 [end_date_ymd] => 2025-02-03 15:35:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:35:05' and `end` < '2025-02-03 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-02-03 15:35:23] Production.INFO: count ==5432 [2025-02-03 15:35:25] Production.ERROR: pbx CDR StartTime 2025-02-03 12:35:05 - End Time 2025-02-03 15:35:05 [2025-02-03 15:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393977', 'tblTempUsageDetail_20' ) start [2025-02-03 15:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393977', 'tblTempUsageDetail_20' ) end [2025-02-03 15:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393977', 'tblTempVendorCDR_20' ) start [2025-02-03 15:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393977', 'tblTempVendorCDR_20' ) end [2025-02-03 15:35:25] Production.INFO: ProcessCDR(1,14393977,1,1,2) [2025-02-03 15:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393977', 'tblTempUsageDetail_20' ) start [2025-02-03 15:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393977', 'tblTempUsageDetail_20' ) end [2025-02-03 15:35:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:35:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:35:28] Production.INFO: ==14813== Releasing lock... [2025-02-03 15:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:35:28] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:36:05 [end_date_ymd] => 2025-02-03 15:36:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:36:05' and `end` < '2025-02-03 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-02-03 15:36:22] Production.INFO: count ==5446 [2025-02-03 15:36:25] Production.ERROR: pbx CDR StartTime 2025-02-03 12:36:05 - End Time 2025-02-03 15:36:05 [2025-02-03 15:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393982', 'tblTempUsageDetail_20' ) start [2025-02-03 15:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393982', 'tblTempUsageDetail_20' ) end [2025-02-03 15:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393982', 'tblTempVendorCDR_20' ) start [2025-02-03 15:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393982', 'tblTempVendorCDR_20' ) end [2025-02-03 15:36:25] Production.INFO: ProcessCDR(1,14393982,1,1,2) [2025-02-03 15:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393982', 'tblTempUsageDetail_20' ) start [2025-02-03 15:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393982', 'tblTempUsageDetail_20' ) end [2025-02-03 15:36:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:36:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:36:30] Production.INFO: ==14885== Releasing lock... [2025-02-03 15:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:36:30] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:37:05 [end_date_ymd] => 2025-02-03 15:37:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:37:05' and `end` < '2025-02-03 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-02-03 15:37:23] Production.INFO: count ==5464 [2025-02-03 15:37:26] Production.ERROR: pbx CDR StartTime 2025-02-03 12:37:05 - End Time 2025-02-03 15:37:05 [2025-02-03 15:37:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393987', 'tblTempUsageDetail_20' ) start [2025-02-03 15:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393987', 'tblTempUsageDetail_20' ) end [2025-02-03 15:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393987', 'tblTempVendorCDR_20' ) start [2025-02-03 15:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393987', 'tblTempVendorCDR_20' ) end [2025-02-03 15:37:26] Production.INFO: ProcessCDR(1,14393987,1,1,2) [2025-02-03 15:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393987', 'tblTempUsageDetail_20' ) start [2025-02-03 15:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393987', 'tblTempUsageDetail_20' ) end [2025-02-03 15:37:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:37:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:37:31] Production.INFO: ==14954== Releasing lock... [2025-02-03 15:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:37:31] Production.INFO: 69 MB #Memory Used# [2025-02-03 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:38:05 [end_date_ymd] => 2025-02-03 15:38:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:38:05' and `end` < '2025-02-03 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-02-03 15:38:23] Production.INFO: count ==5434 [2025-02-03 15:38:25] Production.ERROR: pbx CDR StartTime 2025-02-03 12:38:05 - End Time 2025-02-03 15:38:05 [2025-02-03 15:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393992', 'tblTempUsageDetail_20' ) start [2025-02-03 15:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393992', 'tblTempUsageDetail_20' ) end [2025-02-03 15:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393992', 'tblTempVendorCDR_20' ) start [2025-02-03 15:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393992', 'tblTempVendorCDR_20' ) end [2025-02-03 15:38:25] Production.INFO: ProcessCDR(1,14393992,1,1,2) [2025-02-03 15:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393992', 'tblTempUsageDetail_20' ) start [2025-02-03 15:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393992', 'tblTempUsageDetail_20' ) end [2025-02-03 15:38:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:38:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:38:30] Production.INFO: ==15026== Releasing lock... [2025-02-03 15:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:38:30] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:39:05 [end_date_ymd] => 2025-02-03 15:39:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:39:05' and `end` < '2025-02-03 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-02-03 15:39:28] Production.INFO: count ==5432 [2025-02-03 15:39:30] Production.ERROR: pbx CDR StartTime 2025-02-03 12:39:05 - End Time 2025-02-03 15:39:05 [2025-02-03 15:39:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393997', 'tblTempUsageDetail_20' ) start [2025-02-03 15:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14393997', 'tblTempUsageDetail_20' ) end [2025-02-03 15:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393997', 'tblTempVendorCDR_20' ) start [2025-02-03 15:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14393997', 'tblTempVendorCDR_20' ) end [2025-02-03 15:39:30] Production.INFO: ProcessCDR(1,14393997,1,1,2) [2025-02-03 15:39:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14393997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:39:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14393997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:39:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14393997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:39:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14393997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393997', 'tblTempUsageDetail_20' ) start [2025-02-03 15:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14393997', 'tblTempUsageDetail_20' ) end [2025-02-03 15:39:35] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:39:35] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:39:35] Production.INFO: ==15097== Releasing lock... [2025-02-03 15:39:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:39:35] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:40:05 [end_date_ymd] => 2025-02-03 15:40:05 [RateCDR] => 1 ) [2025-02-03 15: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-02-03 12:40:05' and `end` < '2025-02-03 15: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-02-03 15:40:27] Production.INFO: count ==5451 [2025-02-03 15:40:29] Production.ERROR: pbx CDR StartTime 2025-02-03 12:40:05 - End Time 2025-02-03 15:40:05 [2025-02-03 15:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394003', 'tblTempUsageDetail_20' ) start [2025-02-03 15:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394003', 'tblTempUsageDetail_20' ) end [2025-02-03 15:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394003', 'tblTempVendorCDR_20' ) start [2025-02-03 15:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394003', 'tblTempVendorCDR_20' ) end [2025-02-03 15:40:29] Production.INFO: ProcessCDR(1,14394003,1,1,2) [2025-02-03 15:40:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:40:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:40:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394003', 'tblTempUsageDetail_20' ) start [2025-02-03 15:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394003', 'tblTempUsageDetail_20' ) end [2025-02-03 15:40:34] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:40:34] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:40:34] Production.INFO: ==15172== Releasing lock... [2025-02-03 15:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:40:34] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:41:05 [end_date_ymd] => 2025-02-03 15:41:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:41:05' and `end` < '2025-02-03 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-02-03 15:41:21] Production.INFO: count ==5473 [2025-02-03 15:41:23] Production.ERROR: pbx CDR StartTime 2025-02-03 12:41:05 - End Time 2025-02-03 15:41:05 [2025-02-03 15:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394008', 'tblTempUsageDetail_20' ) start [2025-02-03 15:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394008', 'tblTempUsageDetail_20' ) end [2025-02-03 15:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394008', 'tblTempVendorCDR_20' ) start [2025-02-03 15:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394008', 'tblTempVendorCDR_20' ) end [2025-02-03 15:41:24] Production.INFO: ProcessCDR(1,14394008,1,1,2) [2025-02-03 15:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394008', 'tblTempUsageDetail_20' ) start [2025-02-03 15:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394008', 'tblTempUsageDetail_20' ) end [2025-02-03 15:41:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:41:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:41:28] Production.INFO: ==15249== Releasing lock... [2025-02-03 15:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:41:28] Production.INFO: 69 MB #Memory Used# [2025-02-03 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:42:05 [end_date_ymd] => 2025-02-03 15:42:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:42:05' and `end` < '2025-02-03 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-02-03 15:42:24] Production.INFO: count ==5479 [2025-02-03 15:42:26] Production.ERROR: pbx CDR StartTime 2025-02-03 12:42:05 - End Time 2025-02-03 15:42:05 [2025-02-03 15:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394013', 'tblTempUsageDetail_20' ) start [2025-02-03 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394013', 'tblTempUsageDetail_20' ) end [2025-02-03 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394013', 'tblTempVendorCDR_20' ) start [2025-02-03 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394013', 'tblTempVendorCDR_20' ) end [2025-02-03 15:42:26] Production.INFO: ProcessCDR(1,14394013,1,1,2) [2025-02-03 15:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394013', 'tblTempUsageDetail_20' ) start [2025-02-03 15:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394013', 'tblTempUsageDetail_20' ) end [2025-02-03 15:42:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:42:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:42:31] Production.INFO: ==15319== Releasing lock... [2025-02-03 15:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:42:31] Production.INFO: 69 MB #Memory Used# [2025-02-03 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:43:05 [end_date_ymd] => 2025-02-03 15:43:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:43:05' and `end` < '2025-02-03 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-02-03 15:43:24] Production.INFO: count ==5500 [2025-02-03 15:43:27] Production.ERROR: pbx CDR StartTime 2025-02-03 12:43:05 - End Time 2025-02-03 15:43:05 [2025-02-03 15:43:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394018', 'tblTempUsageDetail_20' ) start [2025-02-03 15:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394018', 'tblTempUsageDetail_20' ) end [2025-02-03 15:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394018', 'tblTempVendorCDR_20' ) start [2025-02-03 15:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394018', 'tblTempVendorCDR_20' ) end [2025-02-03 15:43:27] Production.INFO: ProcessCDR(1,14394018,1,1,2) [2025-02-03 15:43:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394018', 'tblTempUsageDetail_20' ) start [2025-02-03 15:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394018', 'tblTempUsageDetail_20' ) end [2025-02-03 15:43:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:43:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:43:31] Production.INFO: ==15391== Releasing lock... [2025-02-03 15:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:43:31] Production.INFO: 69.25 MB #Memory Used# [2025-02-03 15:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:44:04 [end_date_ymd] => 2025-02-03 15:44:04 [RateCDR] => 1 ) [2025-02-03 15: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-02-03 12:44:04' and `end` < '2025-02-03 15: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-02-03 15:44:21] Production.INFO: count ==5495 [2025-02-03 15:44:24] Production.ERROR: pbx CDR StartTime 2025-02-03 12:44:04 - End Time 2025-02-03 15:44:04 [2025-02-03 15:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394023', 'tblTempUsageDetail_20' ) start [2025-02-03 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394023', 'tblTempUsageDetail_20' ) end [2025-02-03 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394023', 'tblTempVendorCDR_20' ) start [2025-02-03 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394023', 'tblTempVendorCDR_20' ) end [2025-02-03 15:44:24] Production.INFO: ProcessCDR(1,14394023,1,1,2) [2025-02-03 15:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394023', 'tblTempUsageDetail_20' ) start [2025-02-03 15:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394023', 'tblTempUsageDetail_20' ) end [2025-02-03 15:44:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:44:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:44:29] Production.INFO: ==15462== Releasing lock... [2025-02-03 15:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:44:29] Production.INFO: 69.25 MB #Memory Used# [2025-02-03 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:45:05 [end_date_ymd] => 2025-02-03 15:45:05 [RateCDR] => 1 ) [2025-02-03 15: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-02-03 12:45:05' and `end` < '2025-02-03 15: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-02-03 15:45:19] Production.INFO: count ==5484 [2025-02-03 15:45:21] Production.ERROR: pbx CDR StartTime 2025-02-03 12:45:05 - End Time 2025-02-03 15:45:05 [2025-02-03 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394028', 'tblTempUsageDetail_20' ) start [2025-02-03 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394028', 'tblTempUsageDetail_20' ) end [2025-02-03 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394028', 'tblTempVendorCDR_20' ) start [2025-02-03 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394028', 'tblTempVendorCDR_20' ) end [2025-02-03 15:45:21] Production.INFO: ProcessCDR(1,14394028,1,1,2) [2025-02-03 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394028', 'tblTempUsageDetail_20' ) start [2025-02-03 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394028', 'tblTempUsageDetail_20' ) end [2025-02-03 15:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:45:26] Production.INFO: ==15534== Releasing lock... [2025-02-03 15:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:45:26] Production.INFO: 69 MB #Memory Used# [2025-02-03 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:46:06 [end_date_ymd] => 2025-02-03 15:46:06 [RateCDR] => 1 ) [2025-02-03 15: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-02-03 12:46:06' and `end` < '2025-02-03 15: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-02-03 15:46:21] Production.INFO: count ==5469 [2025-02-03 15:46:24] Production.ERROR: pbx CDR StartTime 2025-02-03 12:46:06 - End Time 2025-02-03 15:46:06 [2025-02-03 15:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394033', 'tblTempUsageDetail_20' ) start [2025-02-03 15:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394033', 'tblTempUsageDetail_20' ) end [2025-02-03 15:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394033', 'tblTempVendorCDR_20' ) start [2025-02-03 15:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394033', 'tblTempVendorCDR_20' ) end [2025-02-03 15:46:24] Production.INFO: ProcessCDR(1,14394033,1,1,2) [2025-02-03 15:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394033', 'tblTempUsageDetail_20' ) start [2025-02-03 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394033', 'tblTempUsageDetail_20' ) end [2025-02-03 15:46:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:46:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:46:28] Production.INFO: ==15646== Releasing lock... [2025-02-03 15:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:46:28] Production.INFO: 69 MB #Memory Used# [2025-02-03 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:47:05 [end_date_ymd] => 2025-02-03 15:47:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:47:05' and `end` < '2025-02-03 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-02-03 15:47:20] Production.INFO: count ==5469 [2025-02-03 15:47:23] Production.ERROR: pbx CDR StartTime 2025-02-03 12:47:05 - End Time 2025-02-03 15:47:05 [2025-02-03 15:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394038', 'tblTempUsageDetail_20' ) start [2025-02-03 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394038', 'tblTempUsageDetail_20' ) end [2025-02-03 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394038', 'tblTempVendorCDR_20' ) start [2025-02-03 15:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394038', 'tblTempVendorCDR_20' ) end [2025-02-03 15:47:23] Production.INFO: ProcessCDR(1,14394038,1,1,2) [2025-02-03 15:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394038', 'tblTempUsageDetail_20' ) start [2025-02-03 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394038', 'tblTempUsageDetail_20' ) end [2025-02-03 15:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:47:27] Production.INFO: ==15715== Releasing lock... [2025-02-03 15:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:47:27] Production.INFO: 69 MB #Memory Used# [2025-02-03 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:48:06 [end_date_ymd] => 2025-02-03 15:48:06 [RateCDR] => 1 ) [2025-02-03 15: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-02-03 12:48:06' and `end` < '2025-02-03 15: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-02-03 15:48:23] Production.INFO: count ==5429 [2025-02-03 15:48:25] Production.ERROR: pbx CDR StartTime 2025-02-03 12:48:06 - End Time 2025-02-03 15:48:06 [2025-02-03 15:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394043', 'tblTempUsageDetail_20' ) start [2025-02-03 15:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394043', 'tblTempUsageDetail_20' ) end [2025-02-03 15:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394043', 'tblTempVendorCDR_20' ) start [2025-02-03 15:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394043', 'tblTempVendorCDR_20' ) end [2025-02-03 15:48:26] Production.INFO: ProcessCDR(1,14394043,1,1,2) [2025-02-03 15:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394043', 'tblTempUsageDetail_20' ) start [2025-02-03 15:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394043', 'tblTempUsageDetail_20' ) end [2025-02-03 15:48:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:48:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:48:30] Production.INFO: ==15788== Releasing lock... [2025-02-03 15:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:48:30] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:49:05 [end_date_ymd] => 2025-02-03 15:49:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:49:05' and `end` < '2025-02-03 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-02-03 15:49:23] Production.INFO: count ==5431 [2025-02-03 15:49:26] Production.ERROR: pbx CDR StartTime 2025-02-03 12:49:05 - End Time 2025-02-03 15:49:05 [2025-02-03 15:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394048', 'tblTempUsageDetail_20' ) start [2025-02-03 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394048', 'tblTempUsageDetail_20' ) end [2025-02-03 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394048', 'tblTempVendorCDR_20' ) start [2025-02-03 15:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394048', 'tblTempVendorCDR_20' ) end [2025-02-03 15:49:26] Production.INFO: ProcessCDR(1,14394048,1,1,2) [2025-02-03 15:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394048', 'tblTempUsageDetail_20' ) start [2025-02-03 15:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394048', 'tblTempUsageDetail_20' ) end [2025-02-03 15:49:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:49:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:49:30] Production.INFO: ==15861== Releasing lock... [2025-02-03 15:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:49:30] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 15:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:50:07 [end_date_ymd] => 2025-02-03 15:50:07 [RateCDR] => 1 ) [2025-02-03 15:50: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-02-03 12:50:07' and `end` < '2025-02-03 15:50: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-02-03 15:50:29] Production.INFO: count ==5444 [2025-02-03 15:50:31] Production.ERROR: pbx CDR StartTime 2025-02-03 12:50:07 - End Time 2025-02-03 15:50:07 [2025-02-03 15:50:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394053', 'tblTempUsageDetail_20' ) start [2025-02-03 15:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394053', 'tblTempUsageDetail_20' ) end [2025-02-03 15:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394053', 'tblTempVendorCDR_20' ) start [2025-02-03 15:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394053', 'tblTempVendorCDR_20' ) end [2025-02-03 15:50:31] Production.INFO: ProcessCDR(1,14394053,1,1,2) [2025-02-03 15:50:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:50:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:50:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:50:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394053', 'tblTempUsageDetail_20' ) start [2025-02-03 15:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394053', 'tblTempUsageDetail_20' ) end [2025-02-03 15:50:36] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:50:36] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:50:36] Production.INFO: ==15934== Releasing lock... [2025-02-03 15:50:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:50:36] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:51:05 [end_date_ymd] => 2025-02-03 15:51:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:51:05' and `end` < '2025-02-03 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-02-03 15:51:28] Production.INFO: count ==5425 [2025-02-03 15:51:30] Production.ERROR: pbx CDR StartTime 2025-02-03 12:51:05 - End Time 2025-02-03 15:51:05 [2025-02-03 15:51:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394059', 'tblTempUsageDetail_20' ) start [2025-02-03 15:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394059', 'tblTempUsageDetail_20' ) end [2025-02-03 15:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394059', 'tblTempVendorCDR_20' ) start [2025-02-03 15:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394059', 'tblTempVendorCDR_20' ) end [2025-02-03 15:51:31] Production.INFO: ProcessCDR(1,14394059,1,1,2) [2025-02-03 15:51:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:51:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:51:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:51:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:51:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394059', 'tblTempUsageDetail_20' ) start [2025-02-03 15:51:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394059', 'tblTempUsageDetail_20' ) end [2025-02-03 15:51:35] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:51:35] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:51:35] Production.INFO: ==16006== Releasing lock... [2025-02-03 15:51:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:51:35] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:52:05 [end_date_ymd] => 2025-02-03 15:52:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:52:05' and `end` < '2025-02-03 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-02-03 15:52:24] Production.INFO: count ==5415 [2025-02-03 15:52:26] Production.ERROR: pbx CDR StartTime 2025-02-03 12:52:05 - End Time 2025-02-03 15:52:05 [2025-02-03 15:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394064', 'tblTempUsageDetail_20' ) start [2025-02-03 15:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394064', 'tblTempUsageDetail_20' ) end [2025-02-03 15:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394064', 'tblTempVendorCDR_20' ) start [2025-02-03 15:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394064', 'tblTempVendorCDR_20' ) end [2025-02-03 15:52:26] Production.INFO: ProcessCDR(1,14394064,1,1,2) [2025-02-03 15:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394064', 'tblTempUsageDetail_20' ) start [2025-02-03 15:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394064', 'tblTempUsageDetail_20' ) end [2025-02-03 15:52:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:52:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:52:31] Production.INFO: ==16085== Releasing lock... [2025-02-03 15:52:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:52:31] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:53:05 [end_date_ymd] => 2025-02-03 15:53:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:53:05' and `end` < '2025-02-03 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-02-03 15:53:19] Production.INFO: count ==5409 [2025-02-03 15:53:21] Production.ERROR: pbx CDR StartTime 2025-02-03 12:53:05 - End Time 2025-02-03 15:53:05 [2025-02-03 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394069', 'tblTempUsageDetail_20' ) start [2025-02-03 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394069', 'tblTempUsageDetail_20' ) end [2025-02-03 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394069', 'tblTempVendorCDR_20' ) start [2025-02-03 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394069', 'tblTempVendorCDR_20' ) end [2025-02-03 15:53:21] Production.INFO: ProcessCDR(1,14394069,1,1,2) [2025-02-03 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394069', 'tblTempUsageDetail_20' ) start [2025-02-03 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394069', 'tblTempUsageDetail_20' ) end [2025-02-03 15:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:53:26] Production.INFO: ==16160== Releasing lock... [2025-02-03 15:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:53:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:54:06 [end_date_ymd] => 2025-02-03 15:54:06 [RateCDR] => 1 ) [2025-02-03 15: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-02-03 12:54:06' and `end` < '2025-02-03 15: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-02-03 15:54:24] Production.INFO: count ==5417 [2025-02-03 15:54:27] Production.ERROR: pbx CDR StartTime 2025-02-03 12:54:06 - End Time 2025-02-03 15:54:06 [2025-02-03 15:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394074', 'tblTempUsageDetail_20' ) start [2025-02-03 15:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394074', 'tblTempUsageDetail_20' ) end [2025-02-03 15:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394074', 'tblTempVendorCDR_20' ) start [2025-02-03 15:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394074', 'tblTempVendorCDR_20' ) end [2025-02-03 15:54:27] Production.INFO: ProcessCDR(1,14394074,1,1,2) [2025-02-03 15:54:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394074', 'tblTempUsageDetail_20' ) start [2025-02-03 15:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394074', 'tblTempUsageDetail_20' ) end [2025-02-03 15:54:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:54:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:54:32] Production.INFO: ==16231== Releasing lock... [2025-02-03 15:54:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:54:32] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:55:05 [end_date_ymd] => 2025-02-03 15:55:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:55:05' and `end` < '2025-02-03 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-02-03 15:55:25] Production.INFO: count ==5417 [2025-02-03 15:55:27] Production.ERROR: pbx CDR StartTime 2025-02-03 12:55:05 - End Time 2025-02-03 15:55:05 [2025-02-03 15:55:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394079', 'tblTempUsageDetail_20' ) start [2025-02-03 15:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394079', 'tblTempUsageDetail_20' ) end [2025-02-03 15:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394079', 'tblTempVendorCDR_20' ) start [2025-02-03 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394079', 'tblTempVendorCDR_20' ) end [2025-02-03 15:55:28] Production.INFO: ProcessCDR(1,14394079,1,1,2) [2025-02-03 15:55:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:55:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394079', 'tblTempUsageDetail_20' ) start [2025-02-03 15:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394079', 'tblTempUsageDetail_20' ) end [2025-02-03 15:55:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:55:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:55:32] Production.INFO: ==16312== Releasing lock... [2025-02-03 15:55:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:55:33] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:56:05 [end_date_ymd] => 2025-02-03 15:56:05 [RateCDR] => 1 ) [2025-02-03 15: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-02-03 12:56:05' and `end` < '2025-02-03 15: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-02-03 15:56:20] Production.INFO: count ==5411 [2025-02-03 15:56:23] Production.ERROR: pbx CDR StartTime 2025-02-03 12:56:05 - End Time 2025-02-03 15:56:05 [2025-02-03 15:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394084', 'tblTempUsageDetail_20' ) start [2025-02-03 15:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394084', 'tblTempUsageDetail_20' ) end [2025-02-03 15:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394084', 'tblTempVendorCDR_20' ) start [2025-02-03 15:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394084', 'tblTempVendorCDR_20' ) end [2025-02-03 15:56:23] Production.INFO: ProcessCDR(1,14394084,1,1,2) [2025-02-03 15:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394084', 'tblTempUsageDetail_20' ) start [2025-02-03 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394084', 'tblTempUsageDetail_20' ) end [2025-02-03 15:56:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:56:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:56:27] Production.INFO: ==16387== Releasing lock... [2025-02-03 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:56:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:57:05 [end_date_ymd] => 2025-02-03 15:57:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:57:05' and `end` < '2025-02-03 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-02-03 15:57:21] Production.INFO: count ==5407 [2025-02-03 15:57:23] Production.ERROR: pbx CDR StartTime 2025-02-03 12:57:05 - End Time 2025-02-03 15:57:05 [2025-02-03 15:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394089', 'tblTempUsageDetail_20' ) start [2025-02-03 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394089', 'tblTempUsageDetail_20' ) end [2025-02-03 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394089', 'tblTempVendorCDR_20' ) start [2025-02-03 15:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394089', 'tblTempVendorCDR_20' ) end [2025-02-03 15:57:23] Production.INFO: ProcessCDR(1,14394089,1,1,2) [2025-02-03 15:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394089', 'tblTempUsageDetail_20' ) start [2025-02-03 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394089', 'tblTempUsageDetail_20' ) end [2025-02-03 15:57:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:57:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:57:28] Production.INFO: ==16459== Releasing lock... [2025-02-03 15:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:57:28] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:58:05 [end_date_ymd] => 2025-02-03 15:58:05 [RateCDR] => 1 ) [2025-02-03 15: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-02-03 12:58:05' and `end` < '2025-02-03 15: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-02-03 15:58:25] Production.INFO: count ==5394 [2025-02-03 15:58:27] Production.ERROR: pbx CDR StartTime 2025-02-03 12:58:05 - End Time 2025-02-03 15:58:05 [2025-02-03 15:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394094', 'tblTempUsageDetail_20' ) start [2025-02-03 15:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394094', 'tblTempUsageDetail_20' ) end [2025-02-03 15:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394094', 'tblTempVendorCDR_20' ) start [2025-02-03 15:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394094', 'tblTempVendorCDR_20' ) end [2025-02-03 15:58:27] Production.INFO: ProcessCDR(1,14394094,1,1,2) [2025-02-03 15:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394094', 'tblTempUsageDetail_20' ) start [2025-02-03 15:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394094', 'tblTempUsageDetail_20' ) end [2025-02-03 15:58:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:58:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:58:31] Production.INFO: ==16534== Releasing lock... [2025-02-03 15:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:58:31] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 12:59:05 [end_date_ymd] => 2025-02-03 15:59:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 12:59:05' and `end` < '2025-02-03 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-02-03 15:59:24] Production.INFO: count ==5368 [2025-02-03 15:59:26] Production.ERROR: pbx CDR StartTime 2025-02-03 12:59:05 - End Time 2025-02-03 15:59:05 [2025-02-03 15:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394099', 'tblTempUsageDetail_20' ) start [2025-02-03 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394099', 'tblTempUsageDetail_20' ) end [2025-02-03 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394099', 'tblTempVendorCDR_20' ) start [2025-02-03 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394099', 'tblTempVendorCDR_20' ) end [2025-02-03 15:59:26] Production.INFO: ProcessCDR(1,14394099,1,1,2) [2025-02-03 15:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 15:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 15:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394099', 'tblTempUsageDetail_20' ) start [2025-02-03 15:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394099', 'tblTempUsageDetail_20' ) end [2025-02-03 15:59:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 15:59:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 15:59:31] Production.INFO: ==16610== Releasing lock... [2025-02-03 15:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 15:59:31] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:00:06 [end_date_ymd] => 2025-02-03 16:00:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:00:06' and `end` < '2025-02-03 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-02-03 16:00:23] Production.INFO: count ==5357 [2025-02-03 16:00:26] Production.ERROR: pbx CDR StartTime 2025-02-03 13:00:06 - End Time 2025-02-03 16:00:06 [2025-02-03 16:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394105', 'tblTempUsageDetail_20' ) start [2025-02-03 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394105', 'tblTempUsageDetail_20' ) end [2025-02-03 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394105', 'tblTempVendorCDR_20' ) start [2025-02-03 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394105', 'tblTempVendorCDR_20' ) end [2025-02-03 16:00:26] Production.INFO: ProcessCDR(1,14394105,1,1,2) [2025-02-03 16:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394105', 'tblTempUsageDetail_20' ) start [2025-02-03 16:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394105', 'tblTempUsageDetail_20' ) end [2025-02-03 16:00:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:00:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:00:30] Production.INFO: ==16691== Releasing lock... [2025-02-03 16:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:00:30] Production.INFO: 68 MB #Memory Used# [2025-02-03 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:01:05 [end_date_ymd] => 2025-02-03 16:01:05 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:01:05' and `end` < '2025-02-03 16: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-02-03 16:01:22] Production.INFO: count ==5372 [2025-02-03 16:01:24] Production.ERROR: pbx CDR StartTime 2025-02-03 13:01:05 - End Time 2025-02-03 16:01:05 [2025-02-03 16:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394110', 'tblTempUsageDetail_20' ) start [2025-02-03 16:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394110', 'tblTempUsageDetail_20' ) end [2025-02-03 16:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394110', 'tblTempVendorCDR_20' ) start [2025-02-03 16:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394110', 'tblTempVendorCDR_20' ) end [2025-02-03 16:01:24] Production.INFO: ProcessCDR(1,14394110,1,1,2) [2025-02-03 16:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394110', 'tblTempUsageDetail_20' ) start [2025-02-03 16:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394110', 'tblTempUsageDetail_20' ) end [2025-02-03 16:01:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:01:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:01:30] Production.INFO: ==16822== Releasing lock... [2025-02-03 16:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:01:30] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:02:05 [end_date_ymd] => 2025-02-03 16:02:05 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:02:05' and `end` < '2025-02-03 16: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-02-03 16:02:24] Production.INFO: count ==5375 [2025-02-03 16:02:27] Production.ERROR: pbx CDR StartTime 2025-02-03 13:02:05 - End Time 2025-02-03 16:02:05 [2025-02-03 16:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394115', 'tblTempUsageDetail_20' ) start [2025-02-03 16:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394115', 'tblTempUsageDetail_20' ) end [2025-02-03 16:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394115', 'tblTempVendorCDR_20' ) start [2025-02-03 16:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394115', 'tblTempVendorCDR_20' ) end [2025-02-03 16:02:27] Production.INFO: ProcessCDR(1,14394115,1,1,2) [2025-02-03 16:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:02:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:02:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:02:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394115', 'tblTempUsageDetail_20' ) start [2025-02-03 16:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394115', 'tblTempUsageDetail_20' ) end [2025-02-03 16:02:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:02:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:02:32] Production.INFO: ==16895== Releasing lock... [2025-02-03 16:02:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:02:32] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:03:05 [end_date_ymd] => 2025-02-03 16:03:05 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:03:05' and `end` < '2025-02-03 16: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-02-03 16:03:32] Production.INFO: count ==5385 [2025-02-03 16:03:34] Production.ERROR: pbx CDR StartTime 2025-02-03 13:03:05 - End Time 2025-02-03 16:03:05 [2025-02-03 16:03:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:03:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394120', 'tblTempUsageDetail_20' ) start [2025-02-03 16:03:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394120', 'tblTempUsageDetail_20' ) end [2025-02-03 16:03:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394120', 'tblTempVendorCDR_20' ) start [2025-02-03 16:03:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394120', 'tblTempVendorCDR_20' ) end [2025-02-03 16:03:34] Production.INFO: ProcessCDR(1,14394120,1,1,2) [2025-02-03 16:03:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:03:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:03:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:03:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:03:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394120', 'tblTempUsageDetail_20' ) start [2025-02-03 16:03:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394120', 'tblTempUsageDetail_20' ) end [2025-02-03 16:03:39] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:03:39] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:03:39] Production.INFO: ==16980== Releasing lock... [2025-02-03 16:03:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:03:39] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:04:06 [end_date_ymd] => 2025-02-03 16:04:06 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:04:06' and `end` < '2025-02-03 16: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-02-03 16:04:25] Production.INFO: count ==5384 [2025-02-03 16:04:27] Production.ERROR: pbx CDR StartTime 2025-02-03 13:04:06 - End Time 2025-02-03 16:04:06 [2025-02-03 16:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394125', 'tblTempUsageDetail_20' ) start [2025-02-03 16:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394125', 'tblTempUsageDetail_20' ) end [2025-02-03 16:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394125', 'tblTempVendorCDR_20' ) start [2025-02-03 16:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394125', 'tblTempVendorCDR_20' ) end [2025-02-03 16:04:27] Production.INFO: ProcessCDR(1,14394125,1,1,2) [2025-02-03 16:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:04:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394125', 'tblTempUsageDetail_20' ) start [2025-02-03 16:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394125', 'tblTempUsageDetail_20' ) end [2025-02-03 16:04:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:04:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:04:32] Production.INFO: ==17056== Releasing lock... [2025-02-03 16:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:04:32] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:05:05 [end_date_ymd] => 2025-02-03 16:05:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:05:05' and `end` < '2025-02-03 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-02-03 16:05:24] Production.INFO: count ==5382 [2025-02-03 16:05:26] Production.ERROR: pbx CDR StartTime 2025-02-03 13:05:05 - End Time 2025-02-03 16:05:05 [2025-02-03 16:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394130', 'tblTempUsageDetail_20' ) start [2025-02-03 16:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394130', 'tblTempUsageDetail_20' ) end [2025-02-03 16:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394130', 'tblTempVendorCDR_20' ) start [2025-02-03 16:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394130', 'tblTempVendorCDR_20' ) end [2025-02-03 16:05:27] Production.INFO: ProcessCDR(1,14394130,1,1,2) [2025-02-03 16:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394130', 'tblTempUsageDetail_20' ) start [2025-02-03 16:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394130', 'tblTempUsageDetail_20' ) end [2025-02-03 16:05:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:05:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:05:31] Production.INFO: ==17132== Releasing lock... [2025-02-03 16:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:05:31] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:06:05 [end_date_ymd] => 2025-02-03 16:06:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:06:05' and `end` < '2025-02-03 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-02-03 16:06:24] Production.INFO: count ==5409 [2025-02-03 16:06:26] Production.ERROR: pbx CDR StartTime 2025-02-03 13:06:05 - End Time 2025-02-03 16:06:05 [2025-02-03 16:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394135', 'tblTempUsageDetail_20' ) start [2025-02-03 16:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394135', 'tblTempUsageDetail_20' ) end [2025-02-03 16:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394135', 'tblTempVendorCDR_20' ) start [2025-02-03 16:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394135', 'tblTempVendorCDR_20' ) end [2025-02-03 16:06:26] Production.INFO: ProcessCDR(1,14394135,1,1,2) [2025-02-03 16:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394135', 'tblTempUsageDetail_20' ) start [2025-02-03 16:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394135', 'tblTempUsageDetail_20' ) end [2025-02-03 16:06:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:06:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:06:31] Production.INFO: ==17206== Releasing lock... [2025-02-03 16:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:06:31] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:07:05 [end_date_ymd] => 2025-02-03 16:07:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:07:05' and `end` < '2025-02-03 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-02-03 16:07:22] Production.INFO: count ==5386 [2025-02-03 16:07:24] Production.ERROR: pbx CDR StartTime 2025-02-03 13:07:05 - End Time 2025-02-03 16:07:05 [2025-02-03 16:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394140', 'tblTempUsageDetail_20' ) start [2025-02-03 16:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394140', 'tblTempUsageDetail_20' ) end [2025-02-03 16:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394140', 'tblTempVendorCDR_20' ) start [2025-02-03 16:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394140', 'tblTempVendorCDR_20' ) end [2025-02-03 16:07:25] Production.INFO: ProcessCDR(1,14394140,1,1,2) [2025-02-03 16:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394140', 'tblTempUsageDetail_20' ) start [2025-02-03 16:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394140', 'tblTempUsageDetail_20' ) end [2025-02-03 16:07:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:07:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:07:29] Production.INFO: ==17281== Releasing lock... [2025-02-03 16:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:07:29] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:08:06 [end_date_ymd] => 2025-02-03 16:08:06 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:08:06' and `end` < '2025-02-03 16: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-02-03 16:08:21] Production.INFO: count ==5356 [2025-02-03 16:08:23] Production.ERROR: pbx CDR StartTime 2025-02-03 13:08:06 - End Time 2025-02-03 16:08:06 [2025-02-03 16:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394145', 'tblTempUsageDetail_20' ) start [2025-02-03 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394145', 'tblTempUsageDetail_20' ) end [2025-02-03 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394145', 'tblTempVendorCDR_20' ) start [2025-02-03 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394145', 'tblTempVendorCDR_20' ) end [2025-02-03 16:08:23] Production.INFO: ProcessCDR(1,14394145,1,1,2) [2025-02-03 16:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394145', 'tblTempUsageDetail_20' ) start [2025-02-03 16:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394145', 'tblTempUsageDetail_20' ) end [2025-02-03 16:08:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:08:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:08:28] Production.INFO: ==17354== Releasing lock... [2025-02-03 16:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:08:28] Production.INFO: 68 MB #Memory Used# [2025-02-03 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:09:05 [end_date_ymd] => 2025-02-03 16:09:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:09:05' and `end` < '2025-02-03 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-02-03 16:09:19] Production.INFO: count ==5334 [2025-02-03 16:09:21] Production.ERROR: pbx CDR StartTime 2025-02-03 13:09:05 - End Time 2025-02-03 16:09:05 [2025-02-03 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394150', 'tblTempUsageDetail_20' ) start [2025-02-03 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394150', 'tblTempUsageDetail_20' ) end [2025-02-03 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394150', 'tblTempVendorCDR_20' ) start [2025-02-03 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394150', 'tblTempVendorCDR_20' ) end [2025-02-03 16:09:21] Production.INFO: ProcessCDR(1,14394150,1,1,2) [2025-02-03 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394150', 'tblTempUsageDetail_20' ) start [2025-02-03 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394150', 'tblTempUsageDetail_20' ) end [2025-02-03 16:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:09:26] Production.INFO: ==17430== Releasing lock... [2025-02-03 16:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:09:26] Production.INFO: 68 MB #Memory Used# [2025-02-03 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:10:06 [end_date_ymd] => 2025-02-03 16:10:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:10:06' and `end` < '2025-02-03 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-02-03 16:10:27] Production.INFO: count ==5322 [2025-02-03 16:10:29] Production.ERROR: pbx CDR StartTime 2025-02-03 13:10:06 - End Time 2025-02-03 16:10:06 [2025-02-03 16:10:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394156', 'tblTempUsageDetail_20' ) start [2025-02-03 16:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394156', 'tblTempUsageDetail_20' ) end [2025-02-03 16:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394156', 'tblTempVendorCDR_20' ) start [2025-02-03 16:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394156', 'tblTempVendorCDR_20' ) end [2025-02-03 16:10:29] Production.INFO: ProcessCDR(1,14394156,1,1,2) [2025-02-03 16:10:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:10:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394156', 'tblTempUsageDetail_20' ) start [2025-02-03 16:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394156', 'tblTempUsageDetail_20' ) end [2025-02-03 16:10:34] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:10:34] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:10:34] Production.INFO: ==17511== Releasing lock... [2025-02-03 16:10:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:10:34] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:11:04 [end_date_ymd] => 2025-02-03 16:11:04 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:11:04' and `end` < '2025-02-03 16: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-02-03 16:11:23] Production.INFO: count ==5338 [2025-02-03 16:11:25] Production.ERROR: pbx CDR StartTime 2025-02-03 13:11:04 - End Time 2025-02-03 16:11:04 [2025-02-03 16:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394161', 'tblTempUsageDetail_20' ) start [2025-02-03 16:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394161', 'tblTempUsageDetail_20' ) end [2025-02-03 16:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394161', 'tblTempVendorCDR_20' ) start [2025-02-03 16:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394161', 'tblTempVendorCDR_20' ) end [2025-02-03 16:11:25] Production.INFO: ProcessCDR(1,14394161,1,1,2) [2025-02-03 16:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394161', 'tblTempUsageDetail_20' ) start [2025-02-03 16:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394161', 'tblTempUsageDetail_20' ) end [2025-02-03 16:11:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:11:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:11:30] Production.INFO: ==17589== Releasing lock... [2025-02-03 16:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:11:30] Production.INFO: 68 MB #Memory Used# [2025-02-03 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:12:05 [end_date_ymd] => 2025-02-03 16:12:05 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:12:05' and `end` < '2025-02-03 16: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-02-03 16:12:26] Production.INFO: count ==5349 [2025-02-03 16:12:29] Production.ERROR: pbx CDR StartTime 2025-02-03 13:12:05 - End Time 2025-02-03 16:12:05 [2025-02-03 16:12:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394166', 'tblTempUsageDetail_20' ) start [2025-02-03 16:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394166', 'tblTempUsageDetail_20' ) end [2025-02-03 16:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394166', 'tblTempVendorCDR_20' ) start [2025-02-03 16:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394166', 'tblTempVendorCDR_20' ) end [2025-02-03 16:12:29] Production.INFO: ProcessCDR(1,14394166,1,1,2) [2025-02-03 16:12:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:12:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:12:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:12:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394166', 'tblTempUsageDetail_20' ) start [2025-02-03 16:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394166', 'tblTempUsageDetail_20' ) end [2025-02-03 16:12:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:12:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:12:33] Production.INFO: ==17673== Releasing lock... [2025-02-03 16:12:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:12:33] Production.INFO: 68 MB #Memory Used# [2025-02-03 16:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:13:06 [end_date_ymd] => 2025-02-03 16:13:06 [RateCDR] => 1 ) [2025-02-03 16:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 13:13:06' and `end` < '2025-02-03 16:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 16:13:27] Production.INFO: count ==5354 [2025-02-03 16:13:30] Production.ERROR: pbx CDR StartTime 2025-02-03 13:13:06 - End Time 2025-02-03 16:13:06 [2025-02-03 16:13:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394171', 'tblTempUsageDetail_20' ) start [2025-02-03 16:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394171', 'tblTempUsageDetail_20' ) end [2025-02-03 16:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394171', 'tblTempVendorCDR_20' ) start [2025-02-03 16:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394171', 'tblTempVendorCDR_20' ) end [2025-02-03 16:13:30] Production.INFO: ProcessCDR(1,14394171,1,1,2) [2025-02-03 16:13:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:13:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:13:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:13:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394171', 'tblTempUsageDetail_20' ) start [2025-02-03 16:13:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394171', 'tblTempUsageDetail_20' ) end [2025-02-03 16:13:35] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:13:35] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:13:35] Production.INFO: ==17751== Releasing lock... [2025-02-03 16:13:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:13:35] Production.INFO: 68 MB #Memory Used# [2025-02-03 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:14:05 [end_date_ymd] => 2025-02-03 16:14:05 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:14:05' and `end` < '2025-02-03 16: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-02-03 16:14:23] Production.INFO: count ==5357 [2025-02-03 16:14:25] Production.ERROR: pbx CDR StartTime 2025-02-03 13:14:05 - End Time 2025-02-03 16:14:05 [2025-02-03 16:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394176', 'tblTempUsageDetail_20' ) start [2025-02-03 16:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394176', 'tblTempUsageDetail_20' ) end [2025-02-03 16:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394176', 'tblTempVendorCDR_20' ) start [2025-02-03 16:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394176', 'tblTempVendorCDR_20' ) end [2025-02-03 16:14:25] Production.INFO: ProcessCDR(1,14394176,1,1,2) [2025-02-03 16:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394176', 'tblTempUsageDetail_20' ) start [2025-02-03 16:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394176', 'tblTempUsageDetail_20' ) end [2025-02-03 16:14:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:14:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:14:30] Production.INFO: ==17822== Releasing lock... [2025-02-03 16:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:14:30] Production.INFO: 68 MB #Memory Used# [2025-02-03 16:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:15:06 [end_date_ymd] => 2025-02-03 16:15:06 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:15:06' and `end` < '2025-02-03 16: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-02-03 16:15:31] Production.INFO: count ==5371 [2025-02-03 16:15:33] Production.ERROR: pbx CDR StartTime 2025-02-03 13:15:06 - End Time 2025-02-03 16:15:06 [2025-02-03 16:15:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394181', 'tblTempUsageDetail_20' ) start [2025-02-03 16:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394181', 'tblTempUsageDetail_20' ) end [2025-02-03 16:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394181', 'tblTempVendorCDR_20' ) start [2025-02-03 16:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394181', 'tblTempVendorCDR_20' ) end [2025-02-03 16:15:33] Production.INFO: ProcessCDR(1,14394181,1,1,2) [2025-02-03 16:15:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:15:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:15:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:15:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:15:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394181', 'tblTempUsageDetail_20' ) start [2025-02-03 16:15:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394181', 'tblTempUsageDetail_20' ) end [2025-02-03 16:15:38] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:15:38] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:15:38] Production.INFO: ==17898== Releasing lock... [2025-02-03 16:15:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:15:38] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:16:06 [end_date_ymd] => 2025-02-03 16:16:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:16:06' and `end` < '2025-02-03 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-02-03 16:16:23] Production.INFO: count ==5363 [2025-02-03 16:16:26] Production.ERROR: pbx CDR StartTime 2025-02-03 13:16:06 - End Time 2025-02-03 16:16:06 [2025-02-03 16:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394186', 'tblTempUsageDetail_20' ) start [2025-02-03 16:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394186', 'tblTempUsageDetail_20' ) end [2025-02-03 16:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394186', 'tblTempVendorCDR_20' ) start [2025-02-03 16:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394186', 'tblTempVendorCDR_20' ) end [2025-02-03 16:16:26] Production.INFO: ProcessCDR(1,14394186,1,1,2) [2025-02-03 16:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394186', 'tblTempUsageDetail_20' ) start [2025-02-03 16:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394186', 'tblTempUsageDetail_20' ) end [2025-02-03 16:16:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:16:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:16:30] Production.INFO: ==18014== Releasing lock... [2025-02-03 16:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:16:30] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:17:06 [end_date_ymd] => 2025-02-03 16:17:06 [RateCDR] => 1 ) [2025-02-03 16:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 13:17:06' and `end` < '2025-02-03 16:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 16:17:24] Production.INFO: count ==5377 [2025-02-03 16:17:27] Production.ERROR: pbx CDR StartTime 2025-02-03 13:17:06 - End Time 2025-02-03 16:17:06 [2025-02-03 16:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394191', 'tblTempUsageDetail_20' ) start [2025-02-03 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394191', 'tblTempUsageDetail_20' ) end [2025-02-03 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394191', 'tblTempVendorCDR_20' ) start [2025-02-03 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394191', 'tblTempVendorCDR_20' ) end [2025-02-03 16:17:27] Production.INFO: ProcessCDR(1,14394191,1,1,2) [2025-02-03 16:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:17:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394191', 'tblTempUsageDetail_20' ) start [2025-02-03 16:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394191', 'tblTempUsageDetail_20' ) end [2025-02-03 16:17:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:17:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:17:31] Production.INFO: ==18089== Releasing lock... [2025-02-03 16:17:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:17:31] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:18:05 [end_date_ymd] => 2025-02-03 16:18:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:18:05' and `end` < '2025-02-03 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-02-03 16:18:20] Production.INFO: count ==5387 [2025-02-03 16:18:22] Production.ERROR: pbx CDR StartTime 2025-02-03 13:18:05 - End Time 2025-02-03 16:18:05 [2025-02-03 16:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394196', 'tblTempUsageDetail_20' ) start [2025-02-03 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394196', 'tblTempUsageDetail_20' ) end [2025-02-03 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394196', 'tblTempVendorCDR_20' ) start [2025-02-03 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394196', 'tblTempVendorCDR_20' ) end [2025-02-03 16:18:22] Production.INFO: ProcessCDR(1,14394196,1,1,2) [2025-02-03 16:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394196', 'tblTempUsageDetail_20' ) start [2025-02-03 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394196', 'tblTempUsageDetail_20' ) end [2025-02-03 16:18:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:18:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:18:28] Production.INFO: ==18173== Releasing lock... [2025-02-03 16:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:18:28] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 16:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:19:06 [end_date_ymd] => 2025-02-03 16:19:06 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:19:06' and `end` < '2025-02-03 16: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-02-03 16:19:19] Production.INFO: count ==5382 [2025-02-03 16:19:22] Production.ERROR: pbx CDR StartTime 2025-02-03 13:19:06 - End Time 2025-02-03 16:19:06 [2025-02-03 16:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394201', 'tblTempUsageDetail_20' ) start [2025-02-03 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394201', 'tblTempUsageDetail_20' ) end [2025-02-03 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394201', 'tblTempVendorCDR_20' ) start [2025-02-03 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394201', 'tblTempVendorCDR_20' ) end [2025-02-03 16:19:22] Production.INFO: ProcessCDR(1,14394201,1,1,2) [2025-02-03 16:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394201', 'tblTempUsageDetail_20' ) start [2025-02-03 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394201', 'tblTempUsageDetail_20' ) end [2025-02-03 16:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:19:26] Production.INFO: ==18251== Releasing lock... [2025-02-03 16:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:19:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:20:05 [end_date_ymd] => 2025-02-03 16:20:05 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:20:05' and `end` < '2025-02-03 16: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-02-03 16:20:33] Production.INFO: count ==5405 [2025-02-03 16:20:35] Production.ERROR: pbx CDR StartTime 2025-02-03 13:20:05 - End Time 2025-02-03 16:20:05 [2025-02-03 16:20:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394207', 'tblTempUsageDetail_20' ) start [2025-02-03 16:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394207', 'tblTempUsageDetail_20' ) end [2025-02-03 16:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394207', 'tblTempVendorCDR_20' ) start [2025-02-03 16:20:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394207', 'tblTempVendorCDR_20' ) end [2025-02-03 16:20:35] Production.INFO: ProcessCDR(1,14394207,1,1,2) [2025-02-03 16:20:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:20:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:20:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:20:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:20:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394207', 'tblTempUsageDetail_20' ) start [2025-02-03 16:20:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394207', 'tblTempUsageDetail_20' ) end [2025-02-03 16:20:40] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:20:40] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:20:40] Production.INFO: ==18324== Releasing lock... [2025-02-03 16:20:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:20:40] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:21:05 [end_date_ymd] => 2025-02-03 16:21:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:21:05' and `end` < '2025-02-03 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-02-03 16:21:23] Production.INFO: count ==5428 [2025-02-03 16:21:25] Production.ERROR: pbx CDR StartTime 2025-02-03 13:21:05 - End Time 2025-02-03 16:21:05 [2025-02-03 16:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394212', 'tblTempUsageDetail_20' ) start [2025-02-03 16:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394212', 'tblTempUsageDetail_20' ) end [2025-02-03 16:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394212', 'tblTempVendorCDR_20' ) start [2025-02-03 16:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394212', 'tblTempVendorCDR_20' ) end [2025-02-03 16:21:26] Production.INFO: ProcessCDR(1,14394212,1,1,2) [2025-02-03 16:21:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394212', 'tblTempUsageDetail_20' ) start [2025-02-03 16:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394212', 'tblTempUsageDetail_20' ) end [2025-02-03 16:21:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:21:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:21:30] Production.INFO: ==18401== Releasing lock... [2025-02-03 16:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:21:30] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:22:05 [end_date_ymd] => 2025-02-03 16:22:05 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:22:05' and `end` < '2025-02-03 16: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-02-03 16:22:22] Production.INFO: count ==5413 [2025-02-03 16:22:25] Production.ERROR: pbx CDR StartTime 2025-02-03 13:22:05 - End Time 2025-02-03 16:22:05 [2025-02-03 16:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394217', 'tblTempUsageDetail_20' ) start [2025-02-03 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394217', 'tblTempUsageDetail_20' ) end [2025-02-03 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394217', 'tblTempVendorCDR_20' ) start [2025-02-03 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394217', 'tblTempVendorCDR_20' ) end [2025-02-03 16:22:25] Production.INFO: ProcessCDR(1,14394217,1,1,2) [2025-02-03 16:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394217', 'tblTempUsageDetail_20' ) start [2025-02-03 16:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394217', 'tblTempUsageDetail_20' ) end [2025-02-03 16:22:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:22:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:22:30] Production.INFO: ==18477== Releasing lock... [2025-02-03 16:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:22:30] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:23:05 [end_date_ymd] => 2025-02-03 16:23:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:23:05' and `end` < '2025-02-03 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-02-03 16:23:22] Production.INFO: count ==5402 [2025-02-03 16:23:24] Production.ERROR: pbx CDR StartTime 2025-02-03 13:23:05 - End Time 2025-02-03 16:23:05 [2025-02-03 16:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394222', 'tblTempUsageDetail_20' ) start [2025-02-03 16:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394222', 'tblTempUsageDetail_20' ) end [2025-02-03 16:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394222', 'tblTempVendorCDR_20' ) start [2025-02-03 16:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394222', 'tblTempVendorCDR_20' ) end [2025-02-03 16:23:24] Production.INFO: ProcessCDR(1,14394222,1,1,2) [2025-02-03 16:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394222', 'tblTempUsageDetail_20' ) start [2025-02-03 16:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394222', 'tblTempUsageDetail_20' ) end [2025-02-03 16:23:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:23:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:23:29] Production.INFO: ==18553== Releasing lock... [2025-02-03 16:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:23:29] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:24:06 [end_date_ymd] => 2025-02-03 16:24:06 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:24:06' and `end` < '2025-02-03 16: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-02-03 16:24:32] Production.INFO: count ==5425 [2025-02-03 16:24:35] Production.ERROR: pbx CDR StartTime 2025-02-03 13:24:06 - End Time 2025-02-03 16:24:06 [2025-02-03 16:24:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:24:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394227', 'tblTempUsageDetail_20' ) start [2025-02-03 16:24:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394227', 'tblTempUsageDetail_20' ) end [2025-02-03 16:24:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394227', 'tblTempVendorCDR_20' ) start [2025-02-03 16:24:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394227', 'tblTempVendorCDR_20' ) end [2025-02-03 16:24:35] Production.INFO: ProcessCDR(1,14394227,1,1,2) [2025-02-03 16:24:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:24:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:24:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:24:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:24:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394227', 'tblTempUsageDetail_20' ) start [2025-02-03 16:24:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394227', 'tblTempUsageDetail_20' ) end [2025-02-03 16:24:40] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:24:40] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:24:40] Production.INFO: ==18628== Releasing lock... [2025-02-03 16:24:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:24:40] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:25:05 [end_date_ymd] => 2025-02-03 16:25:05 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:25:05' and `end` < '2025-02-03 16: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-02-03 16:25:30] Production.INFO: count ==5422 [2025-02-03 16:25:32] Production.ERROR: pbx CDR StartTime 2025-02-03 13:25:05 - End Time 2025-02-03 16:25:05 [2025-02-03 16:25:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394232', 'tblTempUsageDetail_20' ) start [2025-02-03 16:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394232', 'tblTempUsageDetail_20' ) end [2025-02-03 16:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394232', 'tblTempVendorCDR_20' ) start [2025-02-03 16:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394232', 'tblTempVendorCDR_20' ) end [2025-02-03 16:25:32] Production.INFO: ProcessCDR(1,14394232,1,1,2) [2025-02-03 16:25:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:25:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:25:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:25:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394232', 'tblTempUsageDetail_20' ) start [2025-02-03 16:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394232', 'tblTempUsageDetail_20' ) end [2025-02-03 16:25:37] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:25:37] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:25:37] Production.INFO: ==18710== Releasing lock... [2025-02-03 16:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:25:37] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:26:06 [end_date_ymd] => 2025-02-03 16:26:06 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:26:06' and `end` < '2025-02-03 16: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-02-03 16:26:24] Production.INFO: count ==5407 [2025-02-03 16:26:27] Production.ERROR: pbx CDR StartTime 2025-02-03 13:26:06 - End Time 2025-02-03 16:26:06 [2025-02-03 16:26:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394237', 'tblTempUsageDetail_20' ) start [2025-02-03 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394237', 'tblTempUsageDetail_20' ) end [2025-02-03 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394237', 'tblTempVendorCDR_20' ) start [2025-02-03 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394237', 'tblTempVendorCDR_20' ) end [2025-02-03 16:26:27] Production.INFO: ProcessCDR(1,14394237,1,1,2) [2025-02-03 16:26:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:26:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:26:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:26:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394237', 'tblTempUsageDetail_20' ) start [2025-02-03 16:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394237', 'tblTempUsageDetail_20' ) end [2025-02-03 16:26:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:26:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:26:32] Production.INFO: ==18790== Releasing lock... [2025-02-03 16:26:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:26:32] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 16:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:27:04 [end_date_ymd] => 2025-02-03 16:27:04 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:27:04' and `end` < '2025-02-03 16: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-02-03 16:27:21] Production.INFO: count ==5391 [2025-02-03 16:27:23] Production.ERROR: pbx CDR StartTime 2025-02-03 13:27:04 - End Time 2025-02-03 16:27:04 [2025-02-03 16:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394242', 'tblTempUsageDetail_20' ) start [2025-02-03 16:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394242', 'tblTempUsageDetail_20' ) end [2025-02-03 16:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394242', 'tblTempVendorCDR_20' ) start [2025-02-03 16:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394242', 'tblTempVendorCDR_20' ) end [2025-02-03 16:27:23] Production.INFO: ProcessCDR(1,14394242,1,1,2) [2025-02-03 16:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394242', 'tblTempUsageDetail_20' ) start [2025-02-03 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394242', 'tblTempUsageDetail_20' ) end [2025-02-03 16:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:27:26] Production.INFO: ==18875== Releasing lock... [2025-02-03 16:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:27:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:28:05 [end_date_ymd] => 2025-02-03 16:28:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:28:05' and `end` < '2025-02-03 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-02-03 16:28:19] Production.INFO: count ==5387 [2025-02-03 16:28:21] Production.ERROR: pbx CDR StartTime 2025-02-03 13:28:05 - End Time 2025-02-03 16:28:05 [2025-02-03 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394247', 'tblTempUsageDetail_20' ) start [2025-02-03 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394247', 'tblTempUsageDetail_20' ) end [2025-02-03 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394247', 'tblTempVendorCDR_20' ) start [2025-02-03 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394247', 'tblTempVendorCDR_20' ) end [2025-02-03 16:28:22] Production.INFO: ProcessCDR(1,14394247,1,1,2) [2025-02-03 16:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394247', 'tblTempUsageDetail_20' ) start [2025-02-03 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394247', 'tblTempUsageDetail_20' ) end [2025-02-03 16:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:28:26] Production.INFO: ==18951== Releasing lock... [2025-02-03 16:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:28:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 16:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:29:04 [end_date_ymd] => 2025-02-03 16:29:04 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:29:04' and `end` < '2025-02-03 16: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-02-03 16:29:22] Production.INFO: count ==5391 [2025-02-03 16:29:24] Production.ERROR: pbx CDR StartTime 2025-02-03 13:29:04 - End Time 2025-02-03 16:29:04 [2025-02-03 16:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394252', 'tblTempUsageDetail_20' ) start [2025-02-03 16:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394252', 'tblTempUsageDetail_20' ) end [2025-02-03 16:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394252', 'tblTempVendorCDR_20' ) start [2025-02-03 16:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394252', 'tblTempVendorCDR_20' ) end [2025-02-03 16:29:24] Production.INFO: ProcessCDR(1,14394252,1,1,2) [2025-02-03 16:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394252', 'tblTempUsageDetail_20' ) start [2025-02-03 16:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394252', 'tblTempUsageDetail_20' ) end [2025-02-03 16:29:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:29:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:29:29] Production.INFO: ==19028== Releasing lock... [2025-02-03 16:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:29:29] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:30:06 [end_date_ymd] => 2025-02-03 16:30:06 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:30:06' and `end` < '2025-02-03 16: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-02-03 16:30:19] Production.INFO: count ==5383 [2025-02-03 16:30:22] Production.ERROR: pbx CDR StartTime 2025-02-03 13:30:06 - End Time 2025-02-03 16:30:06 [2025-02-03 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394258', 'tblTempUsageDetail_20' ) start [2025-02-03 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394258', 'tblTempUsageDetail_20' ) end [2025-02-03 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394258', 'tblTempVendorCDR_20' ) start [2025-02-03 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394258', 'tblTempVendorCDR_20' ) end [2025-02-03 16:30:22] Production.INFO: ProcessCDR(1,14394258,1,1,2) [2025-02-03 16:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394258', 'tblTempUsageDetail_20' ) start [2025-02-03 16:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394258', 'tblTempUsageDetail_20' ) end [2025-02-03 16:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:30:27] Production.INFO: ==19109== Releasing lock... [2025-02-03 16:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:30:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:31:05 [end_date_ymd] => 2025-02-03 16:31:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:31:05' and `end` < '2025-02-03 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-02-03 16:31:19] Production.INFO: count ==5375 [2025-02-03 16:31:21] Production.ERROR: pbx CDR StartTime 2025-02-03 13:31:05 - End Time 2025-02-03 16:31:05 [2025-02-03 16:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394263', 'tblTempUsageDetail_20' ) start [2025-02-03 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394263', 'tblTempUsageDetail_20' ) end [2025-02-03 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394263', 'tblTempVendorCDR_20' ) start [2025-02-03 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394263', 'tblTempVendorCDR_20' ) end [2025-02-03 16:31:21] Production.INFO: ProcessCDR(1,14394263,1,1,2) [2025-02-03 16:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394263', 'tblTempUsageDetail_20' ) start [2025-02-03 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394263', 'tblTempUsageDetail_20' ) end [2025-02-03 16:31:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:31:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:31:26] Production.INFO: ==19190== Releasing lock... [2025-02-03 16:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:31:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:32:05 [end_date_ymd] => 2025-02-03 16:32:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:32:05' and `end` < '2025-02-03 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-02-03 16:32:23] Production.INFO: count ==5370 [2025-02-03 16:32:25] Production.ERROR: pbx CDR StartTime 2025-02-03 13:32:05 - End Time 2025-02-03 16:32:05 [2025-02-03 16:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394268', 'tblTempUsageDetail_20' ) start [2025-02-03 16:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394268', 'tblTempUsageDetail_20' ) end [2025-02-03 16:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394268', 'tblTempVendorCDR_20' ) start [2025-02-03 16:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394268', 'tblTempVendorCDR_20' ) end [2025-02-03 16:32:25] Production.INFO: ProcessCDR(1,14394268,1,1,2) [2025-02-03 16:32:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394268', 'tblTempUsageDetail_20' ) start [2025-02-03 16:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394268', 'tblTempUsageDetail_20' ) end [2025-02-03 16:32:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:32:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:32:29] Production.INFO: ==19307== Releasing lock... [2025-02-03 16:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:32:29] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:33:05 [end_date_ymd] => 2025-02-03 16:33:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:33:05' and `end` < '2025-02-03 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-02-03 16:33:24] Production.INFO: count ==5380 [2025-02-03 16:33:26] Production.ERROR: pbx CDR StartTime 2025-02-03 13:33:05 - End Time 2025-02-03 16:33:05 [2025-02-03 16:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394273', 'tblTempUsageDetail_20' ) start [2025-02-03 16:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394273', 'tblTempUsageDetail_20' ) end [2025-02-03 16:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394273', 'tblTempVendorCDR_20' ) start [2025-02-03 16:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394273', 'tblTempVendorCDR_20' ) end [2025-02-03 16:33:26] Production.INFO: ProcessCDR(1,14394273,1,1,2) [2025-02-03 16:33:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:33:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:33:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:33:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394273', 'tblTempUsageDetail_20' ) start [2025-02-03 16:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394273', 'tblTempUsageDetail_20' ) end [2025-02-03 16:33:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:33:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:33:31] Production.INFO: ==19381== Releasing lock... [2025-02-03 16:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:33:31] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:34:05 [end_date_ymd] => 2025-02-03 16:34:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:34:05' and `end` < '2025-02-03 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-02-03 16:34:22] Production.INFO: count ==5392 [2025-02-03 16:34:24] Production.ERROR: pbx CDR StartTime 2025-02-03 13:34:05 - End Time 2025-02-03 16:34:05 [2025-02-03 16:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394278', 'tblTempUsageDetail_20' ) start [2025-02-03 16:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394278', 'tblTempUsageDetail_20' ) end [2025-02-03 16:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394278', 'tblTempVendorCDR_20' ) start [2025-02-03 16:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394278', 'tblTempVendorCDR_20' ) end [2025-02-03 16:34:24] Production.INFO: ProcessCDR(1,14394278,1,1,2) [2025-02-03 16:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394278', 'tblTempUsageDetail_20' ) start [2025-02-03 16:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394278', 'tblTempUsageDetail_20' ) end [2025-02-03 16:34:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:34:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:34:30] Production.INFO: ==19459== Releasing lock... [2025-02-03 16:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:34:30] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:35:05 [end_date_ymd] => 2025-02-03 16:35:05 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:35:05' and `end` < '2025-02-03 16: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-02-03 16:35:25] Production.INFO: count ==5397 [2025-02-03 16:35:27] Production.ERROR: pbx CDR StartTime 2025-02-03 13:35:05 - End Time 2025-02-03 16:35:05 [2025-02-03 16:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394283', 'tblTempUsageDetail_20' ) start [2025-02-03 16:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394283', 'tblTempUsageDetail_20' ) end [2025-02-03 16:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394283', 'tblTempVendorCDR_20' ) start [2025-02-03 16:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394283', 'tblTempVendorCDR_20' ) end [2025-02-03 16:35:27] Production.INFO: ProcessCDR(1,14394283,1,1,2) [2025-02-03 16:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394283', 'tblTempUsageDetail_20' ) start [2025-02-03 16:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394283', 'tblTempUsageDetail_20' ) end [2025-02-03 16:35:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:35:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:35:32] Production.INFO: ==19532== Releasing lock... [2025-02-03 16:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:35:32] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:36:05 [end_date_ymd] => 2025-02-03 16:36:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:36:05' and `end` < '2025-02-03 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-02-03 16:36:20] Production.INFO: count ==5401 [2025-02-03 16:36:23] Production.ERROR: pbx CDR StartTime 2025-02-03 13:36:05 - End Time 2025-02-03 16:36:05 [2025-02-03 16:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394288', 'tblTempUsageDetail_20' ) start [2025-02-03 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394288', 'tblTempUsageDetail_20' ) end [2025-02-03 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394288', 'tblTempVendorCDR_20' ) start [2025-02-03 16:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394288', 'tblTempVendorCDR_20' ) end [2025-02-03 16:36:23] Production.INFO: ProcessCDR(1,14394288,1,1,2) [2025-02-03 16:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394288', 'tblTempUsageDetail_20' ) start [2025-02-03 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394288', 'tblTempUsageDetail_20' ) end [2025-02-03 16:36:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:36:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:36:28] Production.INFO: ==19607== Releasing lock... [2025-02-03 16:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:36:28] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:37:05 [end_date_ymd] => 2025-02-03 16:37:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:37:05' and `end` < '2025-02-03 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-02-03 16:37:29] Production.INFO: count ==5415 [2025-02-03 16:37:31] Production.ERROR: pbx CDR StartTime 2025-02-03 13:37:05 - End Time 2025-02-03 16:37:05 [2025-02-03 16:37:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394293', 'tblTempUsageDetail_20' ) start [2025-02-03 16:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394293', 'tblTempUsageDetail_20' ) end [2025-02-03 16:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394293', 'tblTempVendorCDR_20' ) start [2025-02-03 16:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394293', 'tblTempVendorCDR_20' ) end [2025-02-03 16:37:31] Production.INFO: ProcessCDR(1,14394293,1,1,2) [2025-02-03 16:37:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:37:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:37:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:37:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:37:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394293', 'tblTempUsageDetail_20' ) start [2025-02-03 16:37:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394293', 'tblTempUsageDetail_20' ) end [2025-02-03 16:37:36] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:37:36] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:37:36] Production.INFO: ==19680== Releasing lock... [2025-02-03 16:37:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:37:36] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 16:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:38:04 [end_date_ymd] => 2025-02-03 16:38:04 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:38:04' and `end` < '2025-02-03 16: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-02-03 16:38:23] Production.INFO: count ==5419 [2025-02-03 16:38:26] Production.ERROR: pbx CDR StartTime 2025-02-03 13:38:04 - End Time 2025-02-03 16:38:04 [2025-02-03 16:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394298', 'tblTempUsageDetail_20' ) start [2025-02-03 16:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394298', 'tblTempUsageDetail_20' ) end [2025-02-03 16:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394298', 'tblTempVendorCDR_20' ) start [2025-02-03 16:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394298', 'tblTempVendorCDR_20' ) end [2025-02-03 16:38:26] Production.INFO: ProcessCDR(1,14394298,1,1,2) [2025-02-03 16:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394298', 'tblTempUsageDetail_20' ) start [2025-02-03 16:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394298', 'tblTempUsageDetail_20' ) end [2025-02-03 16:38:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:38:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:38:30] Production.INFO: ==19757== Releasing lock... [2025-02-03 16:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:38:30] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:39:05 [end_date_ymd] => 2025-02-03 16:39:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:39:05' and `end` < '2025-02-03 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-02-03 16:39:23] Production.INFO: count ==5417 [2025-02-03 16:39:26] Production.ERROR: pbx CDR StartTime 2025-02-03 13:39:05 - End Time 2025-02-03 16:39:05 [2025-02-03 16:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394303', 'tblTempUsageDetail_20' ) start [2025-02-03 16:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394303', 'tblTempUsageDetail_20' ) end [2025-02-03 16:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394303', 'tblTempVendorCDR_20' ) start [2025-02-03 16:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394303', 'tblTempVendorCDR_20' ) end [2025-02-03 16:39:26] Production.INFO: ProcessCDR(1,14394303,1,1,2) [2025-02-03 16:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394303', 'tblTempUsageDetail_20' ) start [2025-02-03 16:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394303', 'tblTempUsageDetail_20' ) end [2025-02-03 16:39:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:39:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:39:30] Production.INFO: ==19828== Releasing lock... [2025-02-03 16:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:39:30] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 16:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:40:07 [end_date_ymd] => 2025-02-03 16:40:07 [RateCDR] => 1 ) [2025-02-03 16:40: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-02-03 13:40:07' and `end` < '2025-02-03 16:40: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-02-03 16:40:26] Production.INFO: count ==5433 [2025-02-03 16:40:29] Production.ERROR: pbx CDR StartTime 2025-02-03 13:40:07 - End Time 2025-02-03 16:40:07 [2025-02-03 16:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394309', 'tblTempUsageDetail_20' ) start [2025-02-03 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394309', 'tblTempUsageDetail_20' ) end [2025-02-03 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394309', 'tblTempVendorCDR_20' ) start [2025-02-03 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394309', 'tblTempVendorCDR_20' ) end [2025-02-03 16:40:29] Production.INFO: ProcessCDR(1,14394309,1,1,2) [2025-02-03 16:40:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394309', 'tblTempUsageDetail_20' ) start [2025-02-03 16:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394309', 'tblTempUsageDetail_20' ) end [2025-02-03 16:40:34] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:40:34] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:40:34] Production.INFO: ==19911== Releasing lock... [2025-02-03 16:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:40:34] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:41:05 [end_date_ymd] => 2025-02-03 16:41:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:41:05' and `end` < '2025-02-03 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-02-03 16:41:19] Production.INFO: count ==5435 [2025-02-03 16:41:21] Production.ERROR: pbx CDR StartTime 2025-02-03 13:41:05 - End Time 2025-02-03 16:41:05 [2025-02-03 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394314', 'tblTempUsageDetail_20' ) start [2025-02-03 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394314', 'tblTempUsageDetail_20' ) end [2025-02-03 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394314', 'tblTempVendorCDR_20' ) start [2025-02-03 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394314', 'tblTempVendorCDR_20' ) end [2025-02-03 16:41:21] Production.INFO: ProcessCDR(1,14394314,1,1,2) [2025-02-03 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394314', 'tblTempUsageDetail_20' ) start [2025-02-03 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394314', 'tblTempUsageDetail_20' ) end [2025-02-03 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:41:26] Production.INFO: ==19986== Releasing lock... [2025-02-03 16:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:41:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:42:06 [end_date_ymd] => 2025-02-03 16:42:06 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:42:06' and `end` < '2025-02-03 16: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-02-03 16:42:24] Production.INFO: count ==5437 [2025-02-03 16:42:26] Production.ERROR: pbx CDR StartTime 2025-02-03 13:42:06 - End Time 2025-02-03 16:42:06 [2025-02-03 16:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394319', 'tblTempUsageDetail_20' ) start [2025-02-03 16:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394319', 'tblTempUsageDetail_20' ) end [2025-02-03 16:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394319', 'tblTempVendorCDR_20' ) start [2025-02-03 16:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394319', 'tblTempVendorCDR_20' ) end [2025-02-03 16:42:26] Production.INFO: ProcessCDR(1,14394319,1,1,2) [2025-02-03 16:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394319', 'tblTempUsageDetail_20' ) start [2025-02-03 16:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394319', 'tblTempUsageDetail_20' ) end [2025-02-03 16:42:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:42:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:42:31] Production.INFO: ==20057== Releasing lock... [2025-02-03 16:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:42:31] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:43:05 [end_date_ymd] => 2025-02-03 16:43:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:43:05' and `end` < '2025-02-03 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-02-03 16:43:24] Production.INFO: count ==5455 [2025-02-03 16:43:26] Production.ERROR: pbx CDR StartTime 2025-02-03 13:43:05 - End Time 2025-02-03 16:43:05 [2025-02-03 16:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394324', 'tblTempUsageDetail_20' ) start [2025-02-03 16:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394324', 'tblTempUsageDetail_20' ) end [2025-02-03 16:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394324', 'tblTempVendorCDR_20' ) start [2025-02-03 16:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394324', 'tblTempVendorCDR_20' ) end [2025-02-03 16:43:26] Production.INFO: ProcessCDR(1,14394324,1,1,2) [2025-02-03 16:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394324', 'tblTempUsageDetail_20' ) start [2025-02-03 16:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394324', 'tblTempUsageDetail_20' ) end [2025-02-03 16:43:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:43:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:43:31] Production.INFO: ==20129== Releasing lock... [2025-02-03 16:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:43:31] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:44:05 [end_date_ymd] => 2025-02-03 16:44:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:44:05' and `end` < '2025-02-03 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-02-03 16:44:23] Production.INFO: count ==5466 [2025-02-03 16:44:25] Production.ERROR: pbx CDR StartTime 2025-02-03 13:44:05 - End Time 2025-02-03 16:44:05 [2025-02-03 16:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394329', 'tblTempUsageDetail_20' ) start [2025-02-03 16:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394329', 'tblTempUsageDetail_20' ) end [2025-02-03 16:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394329', 'tblTempVendorCDR_20' ) start [2025-02-03 16:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394329', 'tblTempVendorCDR_20' ) end [2025-02-03 16:44:25] Production.INFO: ProcessCDR(1,14394329,1,1,2) [2025-02-03 16:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394329', 'tblTempUsageDetail_20' ) start [2025-02-03 16:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394329', 'tblTempUsageDetail_20' ) end [2025-02-03 16:44:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:44:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:44:30] Production.INFO: ==20200== Releasing lock... [2025-02-03 16:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:44:30] Production.INFO: 69 MB #Memory Used# [2025-02-03 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:45:05 [end_date_ymd] => 2025-02-03 16:45:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:45:05' and `end` < '2025-02-03 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-02-03 16:45:23] Production.INFO: count ==5455 [2025-02-03 16:45:25] Production.ERROR: pbx CDR StartTime 2025-02-03 13:45:05 - End Time 2025-02-03 16:45:05 [2025-02-03 16:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394334', 'tblTempUsageDetail_20' ) start [2025-02-03 16:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394334', 'tblTempUsageDetail_20' ) end [2025-02-03 16:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394334', 'tblTempVendorCDR_20' ) start [2025-02-03 16:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394334', 'tblTempVendorCDR_20' ) end [2025-02-03 16:45:25] Production.INFO: ProcessCDR(1,14394334,1,1,2) [2025-02-03 16:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:45:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:45:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394334', 'tblTempUsageDetail_20' ) start [2025-02-03 16:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394334', 'tblTempUsageDetail_20' ) end [2025-02-03 16:45:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:45:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:45:29] Production.INFO: ==20272== Releasing lock... [2025-02-03 16:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:45:29] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:46:05 [end_date_ymd] => 2025-02-03 16:46:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:46:05' and `end` < '2025-02-03 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-02-03 16:46:25] Production.INFO: count ==5453 [2025-02-03 16:46:28] Production.ERROR: pbx CDR StartTime 2025-02-03 13:46:05 - End Time 2025-02-03 16:46:05 [2025-02-03 16:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394339', 'tblTempUsageDetail_20' ) start [2025-02-03 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394339', 'tblTempUsageDetail_20' ) end [2025-02-03 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394339', 'tblTempVendorCDR_20' ) start [2025-02-03 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394339', 'tblTempVendorCDR_20' ) end [2025-02-03 16:46:28] Production.INFO: ProcessCDR(1,14394339,1,1,2) [2025-02-03 16:46:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:46:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:46:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:46:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394339', 'tblTempUsageDetail_20' ) start [2025-02-03 16:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394339', 'tblTempUsageDetail_20' ) end [2025-02-03 16:46:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:46:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:46:32] Production.INFO: ==20344== Releasing lock... [2025-02-03 16:46:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:46:32] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:47:05 [end_date_ymd] => 2025-02-03 16:47:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:47:05' and `end` < '2025-02-03 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-02-03 16:47:22] Production.INFO: count ==5447 [2025-02-03 16:47:24] Production.ERROR: pbx CDR StartTime 2025-02-03 13:47:05 - End Time 2025-02-03 16:47:05 [2025-02-03 16:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394344', 'tblTempUsageDetail_20' ) start [2025-02-03 16:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394344', 'tblTempUsageDetail_20' ) end [2025-02-03 16:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394344', 'tblTempVendorCDR_20' ) start [2025-02-03 16:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394344', 'tblTempVendorCDR_20' ) end [2025-02-03 16:47:25] Production.INFO: ProcessCDR(1,14394344,1,1,2) [2025-02-03 16:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394344', 'tblTempUsageDetail_20' ) start [2025-02-03 16:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394344', 'tblTempUsageDetail_20' ) end [2025-02-03 16:47:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:47:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:47:29] Production.INFO: ==20456== Releasing lock... [2025-02-03 16:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:47:29] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:48:05 [end_date_ymd] => 2025-02-03 16:48:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:48:05' and `end` < '2025-02-03 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-02-03 16:48:18] Production.INFO: count ==5456 [2025-02-03 16:48:21] Production.ERROR: pbx CDR StartTime 2025-02-03 13:48:05 - End Time 2025-02-03 16:48:05 [2025-02-03 16:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394349', 'tblTempUsageDetail_20' ) start [2025-02-03 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394349', 'tblTempUsageDetail_20' ) end [2025-02-03 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394349', 'tblTempVendorCDR_20' ) start [2025-02-03 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394349', 'tblTempVendorCDR_20' ) end [2025-02-03 16:48:21] Production.INFO: ProcessCDR(1,14394349,1,1,2) [2025-02-03 16:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394349', 'tblTempUsageDetail_20' ) start [2025-02-03 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394349', 'tblTempUsageDetail_20' ) end [2025-02-03 16:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:48:25] Production.INFO: ==20529== Releasing lock... [2025-02-03 16:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:48:25] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 16:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:49:04 [end_date_ymd] => 2025-02-03 16:49:04 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:49:04' and `end` < '2025-02-03 16: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-02-03 16:49:20] Production.INFO: count ==5456 [2025-02-03 16:49:22] Production.ERROR: pbx CDR StartTime 2025-02-03 13:49:04 - End Time 2025-02-03 16:49:04 [2025-02-03 16:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394354', 'tblTempUsageDetail_20' ) start [2025-02-03 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394354', 'tblTempUsageDetail_20' ) end [2025-02-03 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394354', 'tblTempVendorCDR_20' ) start [2025-02-03 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394354', 'tblTempVendorCDR_20' ) end [2025-02-03 16:49:22] Production.INFO: ProcessCDR(1,14394354,1,1,2) [2025-02-03 16:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394354', 'tblTempUsageDetail_20' ) start [2025-02-03 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394354', 'tblTempUsageDetail_20' ) end [2025-02-03 16:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:49:26] Production.INFO: ==20600== Releasing lock... [2025-02-03 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:49:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:50:06 [end_date_ymd] => 2025-02-03 16:50:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:50:06' and `end` < '2025-02-03 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-02-03 16:50:23] Production.INFO: count ==5436 [2025-02-03 16:50:26] Production.ERROR: pbx CDR StartTime 2025-02-03 13:50:06 - End Time 2025-02-03 16:50:06 [2025-02-03 16:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394360', 'tblTempUsageDetail_20' ) start [2025-02-03 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394360', 'tblTempUsageDetail_20' ) end [2025-02-03 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394360', 'tblTempVendorCDR_20' ) start [2025-02-03 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394360', 'tblTempVendorCDR_20' ) end [2025-02-03 16:50:26] Production.INFO: ProcessCDR(1,14394360,1,1,2) [2025-02-03 16:50:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:50:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:50:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:50:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394360', 'tblTempUsageDetail_20' ) start [2025-02-03 16:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394360', 'tblTempUsageDetail_20' ) end [2025-02-03 16:50:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:50:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:50:30] Production.INFO: ==20681== Releasing lock... [2025-02-03 16:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:50:30] Production.INFO: 68.75 MB #Memory Used# [2025-02-03 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:51:05 [end_date_ymd] => 2025-02-03 16:51:05 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:51:05' and `end` < '2025-02-03 16: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-02-03 16:51:19] Production.INFO: count ==5412 [2025-02-03 16:51:21] Production.ERROR: pbx CDR StartTime 2025-02-03 13:51:05 - End Time 2025-02-03 16:51:05 [2025-02-03 16:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394365', 'tblTempUsageDetail_20' ) start [2025-02-03 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394365', 'tblTempUsageDetail_20' ) end [2025-02-03 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394365', 'tblTempVendorCDR_20' ) start [2025-02-03 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394365', 'tblTempVendorCDR_20' ) end [2025-02-03 16:51:22] Production.INFO: ProcessCDR(1,14394365,1,1,2) [2025-02-03 16:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394365', 'tblTempUsageDetail_20' ) start [2025-02-03 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394365', 'tblTempUsageDetail_20' ) end [2025-02-03 16:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:51:26] Production.INFO: ==20756== Releasing lock... [2025-02-03 16:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:51:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:52:05 [end_date_ymd] => 2025-02-03 16:52:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:52:05' and `end` < '2025-02-03 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-02-03 16:52:19] Production.INFO: count ==5404 [2025-02-03 16:52:21] Production.ERROR: pbx CDR StartTime 2025-02-03 13:52:05 - End Time 2025-02-03 16:52:05 [2025-02-03 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394370', 'tblTempUsageDetail_20' ) start [2025-02-03 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394370', 'tblTempUsageDetail_20' ) end [2025-02-03 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394370', 'tblTempVendorCDR_20' ) start [2025-02-03 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394370', 'tblTempVendorCDR_20' ) end [2025-02-03 16:52:21] Production.INFO: ProcessCDR(1,14394370,1,1,2) [2025-02-03 16:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394370', 'tblTempUsageDetail_20' ) start [2025-02-03 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394370', 'tblTempUsageDetail_20' ) end [2025-02-03 16:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:52:26] Production.INFO: ==20826== Releasing lock... [2025-02-03 16:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:52:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:53:05 [end_date_ymd] => 2025-02-03 16:53:05 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:53:05' and `end` < '2025-02-03 16: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-02-03 16:53:22] Production.INFO: count ==5408 [2025-02-03 16:53:25] Production.ERROR: pbx CDR StartTime 2025-02-03 13:53:05 - End Time 2025-02-03 16:53:05 [2025-02-03 16:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394375', 'tblTempUsageDetail_20' ) start [2025-02-03 16:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394375', 'tblTempUsageDetail_20' ) end [2025-02-03 16:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394375', 'tblTempVendorCDR_20' ) start [2025-02-03 16:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394375', 'tblTempVendorCDR_20' ) end [2025-02-03 16:53:25] Production.INFO: ProcessCDR(1,14394375,1,1,2) [2025-02-03 16:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394375', 'tblTempUsageDetail_20' ) start [2025-02-03 16:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394375', 'tblTempUsageDetail_20' ) end [2025-02-03 16:53:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:53:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:53:29] Production.INFO: ==20899== Releasing lock... [2025-02-03 16:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:53:29] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:54:05 [end_date_ymd] => 2025-02-03 16:54:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:54:05' and `end` < '2025-02-03 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-02-03 16:54:21] Production.INFO: count ==5407 [2025-02-03 16:54:23] Production.ERROR: pbx CDR StartTime 2025-02-03 13:54:05 - End Time 2025-02-03 16:54:05 [2025-02-03 16:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394380', 'tblTempUsageDetail_20' ) start [2025-02-03 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394380', 'tblTempUsageDetail_20' ) end [2025-02-03 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394380', 'tblTempVendorCDR_20' ) start [2025-02-03 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394380', 'tblTempVendorCDR_20' ) end [2025-02-03 16:54:23] Production.INFO: ProcessCDR(1,14394380,1,1,2) [2025-02-03 16:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394380', 'tblTempUsageDetail_20' ) start [2025-02-03 16:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394380', 'tblTempUsageDetail_20' ) end [2025-02-03 16:54:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:54:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:54:28] Production.INFO: ==20969== Releasing lock... [2025-02-03 16:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:54:28] Production.INFO: 68.5 MB #Memory Used# [2025-02-03 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:55:05 [end_date_ymd] => 2025-02-03 16:55:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:55:05' and `end` < '2025-02-03 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-02-03 16:55:24] Production.INFO: count ==5393 [2025-02-03 16:55:26] Production.ERROR: pbx CDR StartTime 2025-02-03 13:55:05 - End Time 2025-02-03 16:55:05 [2025-02-03 16:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394385', 'tblTempUsageDetail_20' ) start [2025-02-03 16:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394385', 'tblTempUsageDetail_20' ) end [2025-02-03 16:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394385', 'tblTempVendorCDR_20' ) start [2025-02-03 16:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394385', 'tblTempVendorCDR_20' ) end [2025-02-03 16:55:26] Production.INFO: ProcessCDR(1,14394385,1,1,2) [2025-02-03 16:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394385', 'tblTempUsageDetail_20' ) start [2025-02-03 16:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394385', 'tblTempUsageDetail_20' ) end [2025-02-03 16:55:31] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:55:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:55:31] Production.INFO: ==21048== Releasing lock... [2025-02-03 16:55:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:55:31] Production.INFO: 68.25 MB #Memory Used# [2025-02-03 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:56:05 [end_date_ymd] => 2025-02-03 16:56:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:56:05' and `end` < '2025-02-03 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-02-03 16:56:21] Production.INFO: count ==5359 [2025-02-03 16:56:23] Production.ERROR: pbx CDR StartTime 2025-02-03 13:56:05 - End Time 2025-02-03 16:56:05 [2025-02-03 16:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394390', 'tblTempUsageDetail_20' ) start [2025-02-03 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394390', 'tblTempUsageDetail_20' ) end [2025-02-03 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394390', 'tblTempVendorCDR_20' ) start [2025-02-03 16:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394390', 'tblTempVendorCDR_20' ) end [2025-02-03 16:56:24] Production.INFO: ProcessCDR(1,14394390,1,1,2) [2025-02-03 16:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394390', 'tblTempUsageDetail_20' ) start [2025-02-03 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394390', 'tblTempUsageDetail_20' ) end [2025-02-03 16:56:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:56:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:56:28] Production.INFO: ==21120== Releasing lock... [2025-02-03 16:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:56:28] Production.INFO: 68 MB #Memory Used# [2025-02-03 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:57:06 [end_date_ymd] => 2025-02-03 16:57:06 [RateCDR] => 1 ) [2025-02-03 16: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-02-03 13:57:06' and `end` < '2025-02-03 16: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-02-03 16:57:20] Production.INFO: count ==5337 [2025-02-03 16:57:22] Production.ERROR: pbx CDR StartTime 2025-02-03 13:57:06 - End Time 2025-02-03 16:57:06 [2025-02-03 16:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394395', 'tblTempUsageDetail_20' ) start [2025-02-03 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394395', 'tblTempUsageDetail_20' ) end [2025-02-03 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394395', 'tblTempVendorCDR_20' ) start [2025-02-03 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394395', 'tblTempVendorCDR_20' ) end [2025-02-03 16:57:22] Production.INFO: ProcessCDR(1,14394395,1,1,2) [2025-02-03 16:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394395', 'tblTempUsageDetail_20' ) start [2025-02-03 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394395', 'tblTempUsageDetail_20' ) end [2025-02-03 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:57:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:57:27] Production.INFO: ==21192== Releasing lock... [2025-02-03 16:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:57:27] Production.INFO: 68 MB #Memory Used# [2025-02-03 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:58:05 [end_date_ymd] => 2025-02-03 16:58:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:58:05' and `end` < '2025-02-03 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-02-03 16:58:21] Production.INFO: count ==5305 [2025-02-03 16:58:23] Production.ERROR: pbx CDR StartTime 2025-02-03 13:58:05 - End Time 2025-02-03 16:58:05 [2025-02-03 16:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394400', 'tblTempUsageDetail_20' ) start [2025-02-03 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394400', 'tblTempUsageDetail_20' ) end [2025-02-03 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394400', 'tblTempVendorCDR_20' ) start [2025-02-03 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394400', 'tblTempVendorCDR_20' ) end [2025-02-03 16:58:23] Production.INFO: ProcessCDR(1,14394400,1,1,2) [2025-02-03 16:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394400', 'tblTempUsageDetail_20' ) start [2025-02-03 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394400', 'tblTempUsageDetail_20' ) end [2025-02-03 16:58:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:58:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:58:28] Production.INFO: ==21263== Releasing lock... [2025-02-03 16:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:58:28] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 13:59:05 [end_date_ymd] => 2025-02-03 16:59:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 13:59:05' and `end` < '2025-02-03 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-02-03 16:59:22] Production.INFO: count ==5307 [2025-02-03 16:59:24] Production.ERROR: pbx CDR StartTime 2025-02-03 13:59:05 - End Time 2025-02-03 16:59:05 [2025-02-03 16:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 16:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394405', 'tblTempUsageDetail_20' ) start [2025-02-03 16:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394405', 'tblTempUsageDetail_20' ) end [2025-02-03 16:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394405', 'tblTempVendorCDR_20' ) start [2025-02-03 16:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394405', 'tblTempVendorCDR_20' ) end [2025-02-03 16:59:25] Production.INFO: ProcessCDR(1,14394405,1,1,2) [2025-02-03 16:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 16:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 16:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394405', 'tblTempUsageDetail_20' ) start [2025-02-03 16:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394405', 'tblTempUsageDetail_20' ) end [2025-02-03 16:59:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 16:59:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 16:59:28] Production.INFO: ==21339== Releasing lock... [2025-02-03 16:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 16:59:28] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:00:05 [end_date_ymd] => 2025-02-03 17:00:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:00:05' and `end` < '2025-02-03 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-02-03 17:00:22] Production.INFO: count ==5289 [2025-02-03 17:00:24] Production.ERROR: pbx CDR StartTime 2025-02-03 14:00:05 - End Time 2025-02-03 17:00:05 [2025-02-03 17:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394410', 'tblTempUsageDetail_20' ) start [2025-02-03 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394410', 'tblTempUsageDetail_20' ) end [2025-02-03 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394410', 'tblTempVendorCDR_20' ) start [2025-02-03 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394410', 'tblTempVendorCDR_20' ) end [2025-02-03 17:00:24] Production.INFO: ProcessCDR(1,14394410,1,1,2) [2025-02-03 17:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394410', 'tblTempUsageDetail_20' ) start [2025-02-03 17:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394410', 'tblTempUsageDetail_20' ) end [2025-02-03 17:00:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:00:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:00:29] Production.INFO: ==21417== Releasing lock... [2025-02-03 17:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:00:29] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 17:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:01:04 [end_date_ymd] => 2025-02-03 17:01:04 [RateCDR] => 1 ) [2025-02-03 17: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-02-03 14:01:04' and `end` < '2025-02-03 17: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-02-03 17:01:19] Production.INFO: count ==5276 [2025-02-03 17:01:21] Production.ERROR: pbx CDR StartTime 2025-02-03 14:01:04 - End Time 2025-02-03 17:01:04 [2025-02-03 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394416', 'tblTempUsageDetail_20' ) start [2025-02-03 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394416', 'tblTempUsageDetail_20' ) end [2025-02-03 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394416', 'tblTempVendorCDR_20' ) start [2025-02-03 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394416', 'tblTempVendorCDR_20' ) end [2025-02-03 17:01:22] Production.INFO: ProcessCDR(1,14394416,1,1,2) [2025-02-03 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394416', 'tblTempUsageDetail_20' ) start [2025-02-03 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394416', 'tblTempUsageDetail_20' ) end [2025-02-03 17:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:01:26] Production.INFO: ==21512== Releasing lock... [2025-02-03 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:01:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:02:05 [end_date_ymd] => 2025-02-03 17:02:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:02:05' and `end` < '2025-02-03 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-02-03 17:02:20] Production.INFO: count ==5300 [2025-02-03 17:02:22] Production.ERROR: pbx CDR StartTime 2025-02-03 14:02:05 - End Time 2025-02-03 17:02:05 [2025-02-03 17:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394421', 'tblTempUsageDetail_20' ) start [2025-02-03 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394421', 'tblTempUsageDetail_20' ) end [2025-02-03 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394421', 'tblTempVendorCDR_20' ) start [2025-02-03 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394421', 'tblTempVendorCDR_20' ) end [2025-02-03 17:02:22] Production.INFO: ProcessCDR(1,14394421,1,1,2) [2025-02-03 17:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394421', 'tblTempUsageDetail_20' ) start [2025-02-03 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394421', 'tblTempUsageDetail_20' ) end [2025-02-03 17:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:02:27] Production.INFO: ==21586== Releasing lock... [2025-02-03 17:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:02:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-03 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:03:05 [end_date_ymd] => 2025-02-03 17:03:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:03:05' and `end` < '2025-02-03 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-02-03 17:03:23] Production.INFO: count ==5287 [2025-02-03 17:03:25] Production.ERROR: pbx CDR StartTime 2025-02-03 14:03:05 - End Time 2025-02-03 17:03:05 [2025-02-03 17:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394426', 'tblTempUsageDetail_20' ) start [2025-02-03 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394426', 'tblTempUsageDetail_20' ) end [2025-02-03 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394426', 'tblTempVendorCDR_20' ) start [2025-02-03 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394426', 'tblTempVendorCDR_20' ) end [2025-02-03 17:03:25] Production.INFO: ProcessCDR(1,14394426,1,1,2) [2025-02-03 17:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394426', 'tblTempUsageDetail_20' ) start [2025-02-03 17:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394426', 'tblTempUsageDetail_20' ) end [2025-02-03 17:03:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:03:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:03:30] Production.INFO: ==21701== Releasing lock... [2025-02-03 17:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:03:30] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:04:05 [end_date_ymd] => 2025-02-03 17:04:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:04:05' and `end` < '2025-02-03 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-02-03 17:04:19] Production.INFO: count ==5265 [2025-02-03 17:04:21] Production.ERROR: pbx CDR StartTime 2025-02-03 14:04:05 - End Time 2025-02-03 17:04:05 [2025-02-03 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394431', 'tblTempUsageDetail_20' ) start [2025-02-03 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394431', 'tblTempUsageDetail_20' ) end [2025-02-03 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394431', 'tblTempVendorCDR_20' ) start [2025-02-03 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394431', 'tblTempVendorCDR_20' ) end [2025-02-03 17:04:22] Production.INFO: ProcessCDR(1,14394431,1,1,2) [2025-02-03 17:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394431', 'tblTempUsageDetail_20' ) start [2025-02-03 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394431', 'tblTempUsageDetail_20' ) end [2025-02-03 17:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:04:26] Production.INFO: ==21775== Releasing lock... [2025-02-03 17:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:04:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:05:05 [end_date_ymd] => 2025-02-03 17:05:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:05:05' and `end` < '2025-02-03 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-02-03 17:05:18] Production.INFO: count ==5264 [2025-02-03 17:05:20] Production.ERROR: pbx CDR StartTime 2025-02-03 14:05:05 - End Time 2025-02-03 17:05:05 [2025-02-03 17:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394436', 'tblTempUsageDetail_20' ) start [2025-02-03 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394436', 'tblTempUsageDetail_20' ) end [2025-02-03 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394436', 'tblTempVendorCDR_20' ) start [2025-02-03 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394436', 'tblTempVendorCDR_20' ) end [2025-02-03 17:05:21] Production.INFO: ProcessCDR(1,14394436,1,1,2) [2025-02-03 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394436', 'tblTempUsageDetail_20' ) start [2025-02-03 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394436', 'tblTempUsageDetail_20' ) end [2025-02-03 17:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:05:25] Production.INFO: ==21850== Releasing lock... [2025-02-03 17:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:05:25] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:06:06 [end_date_ymd] => 2025-02-03 17:06:06 [RateCDR] => 1 ) [2025-02-03 17: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-02-03 14:06:06' and `end` < '2025-02-03 17: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-02-03 17:06:20] Production.INFO: count ==5288 [2025-02-03 17:06:22] Production.ERROR: pbx CDR StartTime 2025-02-03 14:06:06 - End Time 2025-02-03 17:06:06 [2025-02-03 17:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394441', 'tblTempUsageDetail_20' ) start [2025-02-03 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394441', 'tblTempUsageDetail_20' ) end [2025-02-03 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394441', 'tblTempVendorCDR_20' ) start [2025-02-03 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394441', 'tblTempVendorCDR_20' ) end [2025-02-03 17:06:22] Production.INFO: ProcessCDR(1,14394441,1,1,2) [2025-02-03 17:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394441', 'tblTempUsageDetail_20' ) start [2025-02-03 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394441', 'tblTempUsageDetail_20' ) end [2025-02-03 17:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:06:27] Production.INFO: ==21928== Releasing lock... [2025-02-03 17:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:06:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 17:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:07:04 [end_date_ymd] => 2025-02-03 17:07:04 [RateCDR] => 1 ) [2025-02-03 17: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-02-03 14:07:04' and `end` < '2025-02-03 17: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-02-03 17:07:20] Production.INFO: count ==5290 [2025-02-03 17:07:23] Production.ERROR: pbx CDR StartTime 2025-02-03 14:07:04 - End Time 2025-02-03 17:07:04 [2025-02-03 17:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394446', 'tblTempUsageDetail_20' ) start [2025-02-03 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394446', 'tblTempUsageDetail_20' ) end [2025-02-03 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394446', 'tblTempVendorCDR_20' ) start [2025-02-03 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394446', 'tblTempVendorCDR_20' ) end [2025-02-03 17:07:23] Production.INFO: ProcessCDR(1,14394446,1,1,2) [2025-02-03 17:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394446', 'tblTempUsageDetail_20' ) start [2025-02-03 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394446', 'tblTempUsageDetail_20' ) end [2025-02-03 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:07:27] Production.INFO: ==22001== Releasing lock... [2025-02-03 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:07:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:08:06 [end_date_ymd] => 2025-02-03 17:08:06 [RateCDR] => 1 ) [2025-02-03 17: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-02-03 14:08:06' and `end` < '2025-02-03 17: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-02-03 17:08:25] Production.INFO: count ==5276 [2025-02-03 17:08:27] Production.ERROR: pbx CDR StartTime 2025-02-03 14:08:06 - End Time 2025-02-03 17:08:06 [2025-02-03 17:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394451', 'tblTempUsageDetail_20' ) start [2025-02-03 17:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394451', 'tblTempUsageDetail_20' ) end [2025-02-03 17:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394451', 'tblTempVendorCDR_20' ) start [2025-02-03 17:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394451', 'tblTempVendorCDR_20' ) end [2025-02-03 17:08:27] Production.INFO: ProcessCDR(1,14394451,1,1,2) [2025-02-03 17:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394451', 'tblTempUsageDetail_20' ) start [2025-02-03 17:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394451', 'tblTempUsageDetail_20' ) end [2025-02-03 17:08:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:08:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:08:32] Production.INFO: ==22075== Releasing lock... [2025-02-03 17:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:08:32] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:09:05 [end_date_ymd] => 2025-02-03 17:09:05 [RateCDR] => 1 ) [2025-02-03 17: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-02-03 14:09:05' and `end` < '2025-02-03 17: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-02-03 17:09:21] Production.INFO: count ==5264 [2025-02-03 17:09:24] Production.ERROR: pbx CDR StartTime 2025-02-03 14:09:05 - End Time 2025-02-03 17:09:05 [2025-02-03 17:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394456', 'tblTempUsageDetail_20' ) start [2025-02-03 17:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394456', 'tblTempUsageDetail_20' ) end [2025-02-03 17:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394456', 'tblTempVendorCDR_20' ) start [2025-02-03 17:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394456', 'tblTempVendorCDR_20' ) end [2025-02-03 17:09:24] Production.INFO: ProcessCDR(1,14394456,1,1,2) [2025-02-03 17:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394456', 'tblTempUsageDetail_20' ) start [2025-02-03 17:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394456', 'tblTempUsageDetail_20' ) end [2025-02-03 17:09:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:09:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:09:28] Production.INFO: ==22153== Releasing lock... [2025-02-03 17:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:09:28] Production.INFO: 67.5 MB #Memory Used# [2025-02-03 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:10:06 [end_date_ymd] => 2025-02-03 17:10:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:10:06' and `end` < '2025-02-03 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-02-03 17:10:20] Production.INFO: count ==5255 [2025-02-03 17:10:22] Production.ERROR: pbx CDR StartTime 2025-02-03 14:10:06 - End Time 2025-02-03 17:10:06 [2025-02-03 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394462', 'tblTempUsageDetail_20' ) start [2025-02-03 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394462', 'tblTempUsageDetail_20' ) end [2025-02-03 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394462', 'tblTempVendorCDR_20' ) start [2025-02-03 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394462', 'tblTempVendorCDR_20' ) end [2025-02-03 17:10:22] Production.INFO: ProcessCDR(1,14394462,1,1,2) [2025-02-03 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394462', 'tblTempUsageDetail_20' ) start [2025-02-03 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394462', 'tblTempUsageDetail_20' ) end [2025-02-03 17:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:10:27] Production.INFO: ==22239== Releasing lock... [2025-02-03 17:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:10:27] Production.INFO: 67.25 MB #Memory Used# [2025-02-03 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:11:05 [end_date_ymd] => 2025-02-03 17:11:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:11:05' and `end` < '2025-02-03 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-02-03 17:11:19] Production.INFO: count ==5226 [2025-02-03 17:11:21] Production.ERROR: pbx CDR StartTime 2025-02-03 14:11:05 - End Time 2025-02-03 17:11:05 [2025-02-03 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394467', 'tblTempUsageDetail_20' ) start [2025-02-03 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394467', 'tblTempUsageDetail_20' ) end [2025-02-03 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394467', 'tblTempVendorCDR_20' ) start [2025-02-03 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394467', 'tblTempVendorCDR_20' ) end [2025-02-03 17:11:22] Production.INFO: ProcessCDR(1,14394467,1,1,2) [2025-02-03 17:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394467', 'tblTempUsageDetail_20' ) start [2025-02-03 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394467', 'tblTempUsageDetail_20' ) end [2025-02-03 17:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:11:25] Production.INFO: ==22314== Releasing lock... [2025-02-03 17:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:11:25] Production.INFO: 67 MB #Memory Used# [2025-02-03 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:12:05 [end_date_ymd] => 2025-02-03 17:12:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:12:05' and `end` < '2025-02-03 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-02-03 17:12:20] Production.INFO: count ==5217 [2025-02-03 17:12:22] Production.ERROR: pbx CDR StartTime 2025-02-03 14:12:05 - End Time 2025-02-03 17:12:05 [2025-02-03 17:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394472', 'tblTempUsageDetail_20' ) start [2025-02-03 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394472', 'tblTempUsageDetail_20' ) end [2025-02-03 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394472', 'tblTempVendorCDR_20' ) start [2025-02-03 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394472', 'tblTempVendorCDR_20' ) end [2025-02-03 17:12:22] Production.INFO: ProcessCDR(1,14394472,1,1,2) [2025-02-03 17:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394472', 'tblTempUsageDetail_20' ) start [2025-02-03 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394472', 'tblTempUsageDetail_20' ) end [2025-02-03 17:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:12:27] Production.INFO: ==22392== Releasing lock... [2025-02-03 17:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:12:27] Production.INFO: 67 MB #Memory Used# [2025-02-03 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:13:05 [end_date_ymd] => 2025-02-03 17:13:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:13:05' and `end` < '2025-02-03 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-02-03 17:13:19] Production.INFO: count ==5214 [2025-02-03 17:13:21] Production.ERROR: pbx CDR StartTime 2025-02-03 14:13:05 - End Time 2025-02-03 17:13:05 [2025-02-03 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394477', 'tblTempUsageDetail_20' ) start [2025-02-03 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394477', 'tblTempUsageDetail_20' ) end [2025-02-03 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394477', 'tblTempVendorCDR_20' ) start [2025-02-03 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394477', 'tblTempVendorCDR_20' ) end [2025-02-03 17:13:21] Production.INFO: ProcessCDR(1,14394477,1,1,2) [2025-02-03 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394477', 'tblTempUsageDetail_20' ) start [2025-02-03 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394477', 'tblTempUsageDetail_20' ) end [2025-02-03 17:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:13:26] Production.INFO: ==22467== Releasing lock... [2025-02-03 17:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:13:26] Production.INFO: 67 MB #Memory Used# [2025-02-03 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:14:05 [end_date_ymd] => 2025-02-03 17:14:05 [RateCDR] => 1 ) [2025-02-03 17: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-02-03 14:14:05' and `end` < '2025-02-03 17: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-02-03 17:14:20] Production.INFO: count ==5165 [2025-02-03 17:14:22] Production.ERROR: pbx CDR StartTime 2025-02-03 14:14:05 - End Time 2025-02-03 17:14:05 [2025-02-03 17:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394482', 'tblTempUsageDetail_20' ) start [2025-02-03 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394482', 'tblTempUsageDetail_20' ) end [2025-02-03 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394482', 'tblTempVendorCDR_20' ) start [2025-02-03 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394482', 'tblTempVendorCDR_20' ) end [2025-02-03 17:14:22] Production.INFO: ProcessCDR(1,14394482,1,1,2) [2025-02-03 17:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394482', 'tblTempUsageDetail_20' ) start [2025-02-03 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394482', 'tblTempUsageDetail_20' ) end [2025-02-03 17:14:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:14:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:14:27] Production.INFO: ==22542== Releasing lock... [2025-02-03 17:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:14:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-03 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:15:05 [end_date_ymd] => 2025-02-03 17:15:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:15:05' and `end` < '2025-02-03 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-02-03 17:15:19] Production.INFO: count ==5119 [2025-02-03 17:15:21] Production.ERROR: pbx CDR StartTime 2025-02-03 14:15:05 - End Time 2025-02-03 17:15:05 [2025-02-03 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394487', 'tblTempUsageDetail_20' ) start [2025-02-03 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394487', 'tblTempUsageDetail_20' ) end [2025-02-03 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394487', 'tblTempVendorCDR_20' ) start [2025-02-03 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394487', 'tblTempVendorCDR_20' ) end [2025-02-03 17:15:21] Production.INFO: ProcessCDR(1,14394487,1,1,2) [2025-02-03 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394487', 'tblTempUsageDetail_20' ) start [2025-02-03 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394487', 'tblTempUsageDetail_20' ) end [2025-02-03 17:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:15:25] Production.INFO: ==22616== Releasing lock... [2025-02-03 17:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:15:25] Production.INFO: 66.25 MB #Memory Used# [2025-02-03 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:16:05 [end_date_ymd] => 2025-02-03 17:16:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:16:05' and `end` < '2025-02-03 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-02-03 17:16:21] Production.INFO: count ==5081 [2025-02-03 17:16:22] Production.ERROR: pbx CDR StartTime 2025-02-03 14:16:05 - End Time 2025-02-03 17:16:05 [2025-02-03 17:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394492', 'tblTempUsageDetail_20' ) start [2025-02-03 17:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394492', 'tblTempUsageDetail_20' ) end [2025-02-03 17:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394492', 'tblTempVendorCDR_20' ) start [2025-02-03 17:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394492', 'tblTempVendorCDR_20' ) end [2025-02-03 17:16:23] Production.INFO: ProcessCDR(1,14394492,1,1,2) [2025-02-03 17:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394492', 'tblTempUsageDetail_20' ) start [2025-02-03 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394492', 'tblTempUsageDetail_20' ) end [2025-02-03 17:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:16:27] Production.INFO: ==22698== Releasing lock... [2025-02-03 17:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:16:27] Production.INFO: 66 MB #Memory Used# [2025-02-03 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:17:05 [end_date_ymd] => 2025-02-03 17:17:05 [RateCDR] => 1 ) [2025-02-03 17: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-02-03 14:17:05' and `end` < '2025-02-03 17: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-02-03 17:17:20] Production.INFO: count ==5035 [2025-02-03 17:17:22] Production.ERROR: pbx CDR StartTime 2025-02-03 14:17:05 - End Time 2025-02-03 17:17:05 [2025-02-03 17:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394497', 'tblTempUsageDetail_20' ) start [2025-02-03 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394497', 'tblTempUsageDetail_20' ) end [2025-02-03 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394497', 'tblTempVendorCDR_20' ) start [2025-02-03 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394497', 'tblTempVendorCDR_20' ) end [2025-02-03 17:17:22] Production.INFO: ProcessCDR(1,14394497,1,1,2) [2025-02-03 17:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394497', 'tblTempUsageDetail_20' ) start [2025-02-03 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394497', 'tblTempUsageDetail_20' ) end [2025-02-03 17:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:17:27] Production.INFO: ==22772== Releasing lock... [2025-02-03 17:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:17:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-03 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:18:05 [end_date_ymd] => 2025-02-03 17:18:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:18:05' and `end` < '2025-02-03 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-02-03 17:18:19] Production.INFO: count ==5001 [2025-02-03 17:18:21] Production.ERROR: pbx CDR StartTime 2025-02-03 14:18:05 - End Time 2025-02-03 17:18:05 [2025-02-03 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394502', 'tblTempUsageDetail_20' ) start [2025-02-03 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394502', 'tblTempUsageDetail_20' ) end [2025-02-03 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394502', 'tblTempVendorCDR_20' ) start [2025-02-03 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394502', 'tblTempVendorCDR_20' ) end [2025-02-03 17:18:22] Production.INFO: ProcessCDR(1,14394502,1,1,2) [2025-02-03 17:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394502', 'tblTempUsageDetail_20' ) start [2025-02-03 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394502', 'tblTempUsageDetail_20' ) end [2025-02-03 17:18:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:18:26] Production.INFO: ==22888== Releasing lock... [2025-02-03 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:18:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-03 17:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:19:06 [end_date_ymd] => 2025-02-03 17:19:06 [RateCDR] => 1 ) [2025-02-03 17: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-02-03 14:19:06' and `end` < '2025-02-03 17: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-02-03 17:19:20] Production.INFO: count ==4998 [2025-02-03 17:19:22] Production.ERROR: pbx CDR StartTime 2025-02-03 14:19:06 - End Time 2025-02-03 17:19:06 [2025-02-03 17:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394507', 'tblTempUsageDetail_20' ) start [2025-02-03 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394507', 'tblTempUsageDetail_20' ) end [2025-02-03 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394507', 'tblTempVendorCDR_20' ) start [2025-02-03 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394507', 'tblTempVendorCDR_20' ) end [2025-02-03 17:19:22] Production.INFO: ProcessCDR(1,14394507,1,1,2) [2025-02-03 17:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394507', 'tblTempUsageDetail_20' ) start [2025-02-03 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394507', 'tblTempUsageDetail_20' ) end [2025-02-03 17:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:19:25] Production.INFO: ==22968== Releasing lock... [2025-02-03 17:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:19:25] Production.INFO: 65.5 MB #Memory Used# [2025-02-03 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:20:05 [end_date_ymd] => 2025-02-03 17:20:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:20:05' and `end` < '2025-02-03 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-02-03 17:20:23] Production.INFO: count ==4998 [2025-02-03 17:20:25] Production.ERROR: pbx CDR StartTime 2025-02-03 14:20:05 - End Time 2025-02-03 17:20:05 [2025-02-03 17:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394512', 'tblTempUsageDetail_20' ) start [2025-02-03 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394512', 'tblTempUsageDetail_20' ) end [2025-02-03 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394512', 'tblTempVendorCDR_20' ) start [2025-02-03 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394512', 'tblTempVendorCDR_20' ) end [2025-02-03 17:20:25] Production.INFO: ProcessCDR(1,14394512,1,1,2) [2025-02-03 17:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394512', 'tblTempUsageDetail_20' ) start [2025-02-03 17:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394512', 'tblTempUsageDetail_20' ) end [2025-02-03 17:20:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:20:30] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:20:30] Production.INFO: ==23044== Releasing lock... [2025-02-03 17:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:20:30] Production.INFO: 65.5 MB #Memory Used# [2025-02-03 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:21:05 [end_date_ymd] => 2025-02-03 17:21:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:21:05' and `end` < '2025-02-03 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-02-03 17:21:27] Production.INFO: count ==5011 [2025-02-03 17:21:29] Production.ERROR: pbx CDR StartTime 2025-02-03 14:21:05 - End Time 2025-02-03 17:21:05 [2025-02-03 17:21:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394518', 'tblTempUsageDetail_20' ) start [2025-02-03 17:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394518', 'tblTempUsageDetail_20' ) end [2025-02-03 17:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394518', 'tblTempVendorCDR_20' ) start [2025-02-03 17:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394518', 'tblTempVendorCDR_20' ) end [2025-02-03 17:21:29] Production.INFO: ProcessCDR(1,14394518,1,1,2) [2025-02-03 17:21:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:21:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:21:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:21:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394518', 'tblTempUsageDetail_20' ) start [2025-02-03 17:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394518', 'tblTempUsageDetail_20' ) end [2025-02-03 17:21:33] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:21:33] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:21:33] Production.INFO: ==23124== Releasing lock... [2025-02-03 17:21:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:21:33] Production.INFO: 65.5 MB #Memory Used# [2025-02-03 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:22:05 [end_date_ymd] => 2025-02-03 17:22:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:22:05' and `end` < '2025-02-03 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-02-03 17:22:21] Production.INFO: count ==4987 [2025-02-03 17:22:23] Production.ERROR: pbx CDR StartTime 2025-02-03 14:22:05 - End Time 2025-02-03 17:22:05 [2025-02-03 17:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394523', 'tblTempUsageDetail_20' ) start [2025-02-03 17:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394523', 'tblTempUsageDetail_20' ) end [2025-02-03 17:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394523', 'tblTempVendorCDR_20' ) start [2025-02-03 17:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394523', 'tblTempVendorCDR_20' ) end [2025-02-03 17:22:23] Production.INFO: ProcessCDR(1,14394523,1,1,2) [2025-02-03 17:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394523', 'tblTempUsageDetail_20' ) start [2025-02-03 17:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394523', 'tblTempUsageDetail_20' ) end [2025-02-03 17:22:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:22:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:22:28] Production.INFO: ==23203== Releasing lock... [2025-02-03 17:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:22:28] Production.INFO: 65.25 MB #Memory Used# [2025-02-03 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:23:05 [end_date_ymd] => 2025-02-03 17:23:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:23:05' and `end` < '2025-02-03 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-02-03 17:23:22] Production.INFO: count ==5013 [2025-02-03 17:23:24] Production.ERROR: pbx CDR StartTime 2025-02-03 14:23:05 - End Time 2025-02-03 17:23:05 [2025-02-03 17:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394528', 'tblTempUsageDetail_20' ) start [2025-02-03 17:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394528', 'tblTempUsageDetail_20' ) end [2025-02-03 17:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394528', 'tblTempVendorCDR_20' ) start [2025-02-03 17:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394528', 'tblTempVendorCDR_20' ) end [2025-02-03 17:23:24] Production.INFO: ProcessCDR(1,14394528,1,1,2) [2025-02-03 17:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394528', 'tblTempUsageDetail_20' ) start [2025-02-03 17:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394528', 'tblTempUsageDetail_20' ) end [2025-02-03 17:23:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:23:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:23:29] Production.INFO: ==23274== Releasing lock... [2025-02-03 17:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:23:29] Production.INFO: 65.5 MB #Memory Used# [2025-02-03 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:24:06 [end_date_ymd] => 2025-02-03 17:24:06 [RateCDR] => 1 ) [2025-02-03 17: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-02-03 14:24:06' and `end` < '2025-02-03 17: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-02-03 17:24:19] Production.INFO: count ==5017 [2025-02-03 17:24:21] Production.ERROR: pbx CDR StartTime 2025-02-03 14:24:06 - End Time 2025-02-03 17:24:06 [2025-02-03 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394533', 'tblTempUsageDetail_20' ) start [2025-02-03 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394533', 'tblTempUsageDetail_20' ) end [2025-02-03 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394533', 'tblTempVendorCDR_20' ) start [2025-02-03 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394533', 'tblTempVendorCDR_20' ) end [2025-02-03 17:24:22] Production.INFO: ProcessCDR(1,14394533,1,1,2) [2025-02-03 17:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394533', 'tblTempUsageDetail_20' ) start [2025-02-03 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394533', 'tblTempUsageDetail_20' ) end [2025-02-03 17:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:24:27] Production.INFO: ==23359== Releasing lock... [2025-02-03 17:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:24:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-03 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:25:05 [end_date_ymd] => 2025-02-03 17:25:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:25:05' and `end` < '2025-02-03 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-02-03 17:25:19] Production.INFO: count ==5007 [2025-02-03 17:25:39] Production.ERROR: pbx CDR StartTime 2025-02-03 14:25:05 - End Time 2025-02-03 17:25:05 [2025-02-03 17:25:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:25:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394538', 'tblTempUsageDetail_20' ) start [2025-02-03 17:25:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394538', 'tblTempUsageDetail_20' ) end [2025-02-03 17:25:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394538', 'tblTempVendorCDR_20' ) start [2025-02-03 17:25:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394538', 'tblTempVendorCDR_20' ) end [2025-02-03 17:25:42] Production.INFO: ProcessCDR(1,14394538,1,1,2) [2025-02-03 17:25:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:25:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:25:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:26:01] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:26:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394538', 'tblTempUsageDetail_20' ) start [2025-02-03 17:26:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394538', 'tblTempUsageDetail_20' ) end [2025-02-03 17:26:12] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:26:12] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:26:16] Production.INFO: ==23436== Releasing lock... [2025-02-03 17:26:16] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:26:16] Production.INFO: 65.5 MB #Memory Used# [2025-02-03 17:27:35] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:27:35 [end_date_ymd] => 2025-02-03 17:27:35 [RateCDR] => 1 ) [2025-02-03 17:27:35] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 14:27:35' and `end` < '2025-02-03 17:27:35' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 17:27:50] Production.INFO: count ==4985 [2025-02-03 17:28:26] Production.ERROR: pbx CDR StartTime 2025-02-03 14:27:35 - End Time 2025-02-03 17:27:35 [2025-02-03 17:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394546', 'tblTempUsageDetail_20' ) start [2025-02-03 17:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394546', 'tblTempUsageDetail_20' ) end [2025-02-03 17:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394546', 'tblTempVendorCDR_20' ) start [2025-02-03 17:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394546', 'tblTempVendorCDR_20' ) end [2025-02-03 17:28:32] Production.INFO: ProcessCDR(1,14394546,1,1,2) [2025-02-03 17:28:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:28:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:28:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:29:09] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:29:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394546', 'tblTempUsageDetail_20' ) start [2025-02-03 17:29:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394546', 'tblTempUsageDetail_20' ) end [2025-02-03 17:29:15] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:29:15] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:29:18] Production.INFO: ==23583== Releasing lock... [2025-02-03 17:29:18] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:29:18] Production.INFO: 65.25 MB #Memory Used# [2025-02-03 17:30:16] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:30:16 [end_date_ymd] => 2025-02-03 17:30:16 [RateCDR] => 1 ) [2025-02-03 17:30:16] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 14:30:16' and `end` < '2025-02-03 17:30:16' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 17:30:31] Production.INFO: count ==4968 [2025-02-03 17:31:12] Production.ERROR: pbx CDR StartTime 2025-02-03 14:30:16 - End Time 2025-02-03 17:30:16 [2025-02-03 17:31:12] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:31:12] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394559', 'tblTempUsageDetail_20' ) start [2025-02-03 17:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394559', 'tblTempUsageDetail_20' ) end [2025-02-03 17:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394559', 'tblTempVendorCDR_20' ) start [2025-02-03 17:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394559', 'tblTempVendorCDR_20' ) end [2025-02-03 17:31:17] Production.INFO: ProcessCDR(1,14394559,1,1,2) [2025-02-03 17:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394559', 'tblTempUsageDetail_20' ) start [2025-02-03 17:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394559', 'tblTempUsageDetail_20' ) end [2025-02-03 17:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:31:24] Production.INFO: ==23809== Releasing lock... [2025-02-03 17:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:31:24] Production.INFO: 65.25 MB #Memory Used# [2025-02-03 17:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:32:06 [end_date_ymd] => 2025-02-03 17:32:06 [RateCDR] => 1 ) [2025-02-03 17: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-02-03 14:32:06' and `end` < '2025-02-03 17: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-02-03 17:32:20] Production.INFO: count ==4929 [2025-02-03 17:32:22] Production.ERROR: pbx CDR StartTime 2025-02-03 14:32:06 - End Time 2025-02-03 17:32:06 [2025-02-03 17:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394567', 'tblTempUsageDetail_20' ) start [2025-02-03 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394567', 'tblTempUsageDetail_20' ) end [2025-02-03 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394567', 'tblTempVendorCDR_20' ) start [2025-02-03 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394567', 'tblTempVendorCDR_20' ) end [2025-02-03 17:32:22] Production.INFO: ProcessCDR(1,14394567,1,1,2) [2025-02-03 17:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394567', 'tblTempUsageDetail_20' ) start [2025-02-03 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394567', 'tblTempUsageDetail_20' ) end [2025-02-03 17:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:32:27] Production.INFO: ==23961== Releasing lock... [2025-02-03 17:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:32:27] Production.INFO: 65 MB #Memory Used# [2025-02-03 17:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:33:04 [end_date_ymd] => 2025-02-03 17:33:04 [RateCDR] => 1 ) [2025-02-03 17: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-02-03 14:33:04' and `end` < '2025-02-03 17: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-02-03 17:33:19] Production.INFO: count ==4918 [2025-02-03 17:33:21] Production.ERROR: pbx CDR StartTime 2025-02-03 14:33:04 - End Time 2025-02-03 17:33:04 [2025-02-03 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394571', 'tblTempUsageDetail_20' ) start [2025-02-03 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394571', 'tblTempUsageDetail_20' ) end [2025-02-03 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394571', 'tblTempVendorCDR_20' ) start [2025-02-03 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394571', 'tblTempVendorCDR_20' ) end [2025-02-03 17:33:21] Production.INFO: ProcessCDR(1,14394571,1,1,2) [2025-02-03 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394571', 'tblTempUsageDetail_20' ) start [2025-02-03 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394571', 'tblTempUsageDetail_20' ) end [2025-02-03 17:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:33:26] Production.INFO: ==24036== Releasing lock... [2025-02-03 17:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:33:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:34:05 [end_date_ymd] => 2025-02-03 17:34:05 [RateCDR] => 1 ) [2025-02-03 17: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-02-03 14:34:05' and `end` < '2025-02-03 17: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-02-03 17:34:19] Production.INFO: count ==4893 [2025-02-03 17:34:21] Production.ERROR: pbx CDR StartTime 2025-02-03 14:34:05 - End Time 2025-02-03 17:34:05 [2025-02-03 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394577', 'tblTempUsageDetail_20' ) start [2025-02-03 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394577', 'tblTempUsageDetail_20' ) end [2025-02-03 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394577', 'tblTempVendorCDR_20' ) start [2025-02-03 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394577', 'tblTempVendorCDR_20' ) end [2025-02-03 17:34:21] Production.INFO: ProcessCDR(1,14394577,1,1,2) [2025-02-03 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394577', 'tblTempUsageDetail_20' ) start [2025-02-03 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394577', 'tblTempUsageDetail_20' ) end [2025-02-03 17:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:34:24] Production.INFO: ==24153== Releasing lock... [2025-02-03 17:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:34:24] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:35:05 [end_date_ymd] => 2025-02-03 17:35:05 [RateCDR] => 1 ) [2025-02-03 17: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-02-03 14:35:05' and `end` < '2025-02-03 17: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-02-03 17:35:25] Production.INFO: count ==4894 [2025-02-03 17:35:27] Production.ERROR: pbx CDR StartTime 2025-02-03 14:35:05 - End Time 2025-02-03 17:35:05 [2025-02-03 17:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394582', 'tblTempUsageDetail_20' ) start [2025-02-03 17:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394582', 'tblTempUsageDetail_20' ) end [2025-02-03 17:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394582', 'tblTempVendorCDR_20' ) start [2025-02-03 17:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394582', 'tblTempVendorCDR_20' ) end [2025-02-03 17:35:27] Production.INFO: ProcessCDR(1,14394582,1,1,2) [2025-02-03 17:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394582', 'tblTempUsageDetail_20' ) start [2025-02-03 17:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394582', 'tblTempUsageDetail_20' ) end [2025-02-03 17:35:32] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:35:32] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:35:32] Production.INFO: ==24230== Releasing lock... [2025-02-03 17:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:35:32] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:36:05 [end_date_ymd] => 2025-02-03 17:36:05 [RateCDR] => 1 ) [2025-02-03 17: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-02-03 14:36:05' and `end` < '2025-02-03 17: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-02-03 17:36:22] Production.INFO: count ==4898 [2025-02-03 17:36:23] Production.ERROR: pbx CDR StartTime 2025-02-03 14:36:05 - End Time 2025-02-03 17:36:05 [2025-02-03 17:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394587', 'tblTempUsageDetail_20' ) start [2025-02-03 17:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394587', 'tblTempUsageDetail_20' ) end [2025-02-03 17:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394587', 'tblTempVendorCDR_20' ) start [2025-02-03 17:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394587', 'tblTempVendorCDR_20' ) end [2025-02-03 17:36:24] Production.INFO: ProcessCDR(1,14394587,1,1,2) [2025-02-03 17:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394587', 'tblTempUsageDetail_20' ) start [2025-02-03 17:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394587', 'tblTempUsageDetail_20' ) end [2025-02-03 17:36:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:36:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:36:28] Production.INFO: ==24304== Releasing lock... [2025-02-03 17:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:36:28] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:37:06 [end_date_ymd] => 2025-02-03 17:37:06 [RateCDR] => 1 ) [2025-02-03 17: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-02-03 14:37:06' and `end` < '2025-02-03 17: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-02-03 17:37:19] Production.INFO: count ==4895 [2025-02-03 17:37:21] Production.ERROR: pbx CDR StartTime 2025-02-03 14:37:06 - End Time 2025-02-03 17:37:06 [2025-02-03 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394592', 'tblTempUsageDetail_20' ) start [2025-02-03 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394592', 'tblTempUsageDetail_20' ) end [2025-02-03 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394592', 'tblTempVendorCDR_20' ) start [2025-02-03 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394592', 'tblTempVendorCDR_20' ) end [2025-02-03 17:37:21] Production.INFO: ProcessCDR(1,14394592,1,1,2) [2025-02-03 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394592', 'tblTempUsageDetail_20' ) start [2025-02-03 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394592', 'tblTempUsageDetail_20' ) end [2025-02-03 17:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:37:26] Production.INFO: ==24381== Releasing lock... [2025-02-03 17:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:37:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:38:05 [end_date_ymd] => 2025-02-03 17:38:05 [RateCDR] => 1 ) [2025-02-03 17: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-02-03 14:38:05' and `end` < '2025-02-03 17: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-02-03 17:38:21] Production.INFO: count ==4893 [2025-02-03 17:38:23] Production.ERROR: pbx CDR StartTime 2025-02-03 14:38:05 - End Time 2025-02-03 17:38:05 [2025-02-03 17:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394597', 'tblTempUsageDetail_20' ) start [2025-02-03 17:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394597', 'tblTempUsageDetail_20' ) end [2025-02-03 17:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394597', 'tblTempVendorCDR_20' ) start [2025-02-03 17:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394597', 'tblTempVendorCDR_20' ) end [2025-02-03 17:38:23] Production.INFO: ProcessCDR(1,14394597,1,1,2) [2025-02-03 17:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394597', 'tblTempUsageDetail_20' ) start [2025-02-03 17:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394597', 'tblTempUsageDetail_20' ) end [2025-02-03 17:38:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:38:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:38:28] Production.INFO: ==24460== Releasing lock... [2025-02-03 17:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:38:28] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:39:05 [end_date_ymd] => 2025-02-03 17:39:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:39:05' and `end` < '2025-02-03 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-02-03 17:39:20] Production.INFO: count ==4895 [2025-02-03 17:39:22] Production.ERROR: pbx CDR StartTime 2025-02-03 14:39:05 - End Time 2025-02-03 17:39:05 [2025-02-03 17:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394602', 'tblTempUsageDetail_20' ) start [2025-02-03 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394602', 'tblTempUsageDetail_20' ) end [2025-02-03 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394602', 'tblTempVendorCDR_20' ) start [2025-02-03 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394602', 'tblTempVendorCDR_20' ) end [2025-02-03 17:39:22] Production.INFO: ProcessCDR(1,14394602,1,1,2) [2025-02-03 17:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394602', 'tblTempUsageDetail_20' ) start [2025-02-03 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394602', 'tblTempUsageDetail_20' ) end [2025-02-03 17:39:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:39:27] Production.INFO: ==24540== Releasing lock... [2025-02-03 17:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:39:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:40:06 [end_date_ymd] => 2025-02-03 17:40:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:40:06' and `end` < '2025-02-03 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-02-03 17:40:21] Production.INFO: count ==4897 [2025-02-03 17:40:22] Production.ERROR: pbx CDR StartTime 2025-02-03 14:40:06 - End Time 2025-02-03 17:40:06 [2025-02-03 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394608', 'tblTempUsageDetail_20' ) start [2025-02-03 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394608', 'tblTempUsageDetail_20' ) end [2025-02-03 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394608', 'tblTempVendorCDR_20' ) start [2025-02-03 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394608', 'tblTempVendorCDR_20' ) end [2025-02-03 17:40:22] Production.INFO: ProcessCDR(1,14394608,1,1,2) [2025-02-03 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394608', 'tblTempUsageDetail_20' ) start [2025-02-03 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394608', 'tblTempUsageDetail_20' ) end [2025-02-03 17:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:40:27] Production.INFO: ==24618== Releasing lock... [2025-02-03 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:40:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-03 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:41:05 [end_date_ymd] => 2025-02-03 17:41:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:41:05' and `end` < '2025-02-03 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-02-03 17:41:22] Production.INFO: count ==4877 [2025-02-03 17:41:24] Production.ERROR: pbx CDR StartTime 2025-02-03 14:41:05 - End Time 2025-02-03 17:41:05 [2025-02-03 17:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394613', 'tblTempUsageDetail_20' ) start [2025-02-03 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394613', 'tblTempUsageDetail_20' ) end [2025-02-03 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394613', 'tblTempVendorCDR_20' ) start [2025-02-03 17:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394613', 'tblTempVendorCDR_20' ) end [2025-02-03 17:41:25] Production.INFO: ProcessCDR(1,14394613,1,1,2) [2025-02-03 17:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394613', 'tblTempUsageDetail_20' ) start [2025-02-03 17:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394613', 'tblTempUsageDetail_20' ) end [2025-02-03 17:41:29] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:41:29] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:41:29] Production.INFO: ==24693== Releasing lock... [2025-02-03 17:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:41:29] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:42:05 [end_date_ymd] => 2025-02-03 17:42:05 [RateCDR] => 1 ) [2025-02-03 17: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-02-03 14:42:05' and `end` < '2025-02-03 17: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-02-03 17:42:21] Production.INFO: count ==4870 [2025-02-03 17:42:23] Production.ERROR: pbx CDR StartTime 2025-02-03 14:42:05 - End Time 2025-02-03 17:42:05 [2025-02-03 17:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394618', 'tblTempUsageDetail_20' ) start [2025-02-03 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394618', 'tblTempUsageDetail_20' ) end [2025-02-03 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394618', 'tblTempVendorCDR_20' ) start [2025-02-03 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394618', 'tblTempVendorCDR_20' ) end [2025-02-03 17:42:23] Production.INFO: ProcessCDR(1,14394618,1,1,2) [2025-02-03 17:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394618', 'tblTempUsageDetail_20' ) start [2025-02-03 17:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394618', 'tblTempUsageDetail_20' ) end [2025-02-03 17:42:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:42:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:42:28] Production.INFO: ==24769== Releasing lock... [2025-02-03 17:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:42:28] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 17:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:43:06 [end_date_ymd] => 2025-02-03 17:43:06 [RateCDR] => 1 ) [2025-02-03 17: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-02-03 14:43:06' and `end` < '2025-02-03 17: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-02-03 17:43:19] Production.INFO: count ==4868 [2025-02-03 17:43:21] Production.ERROR: pbx CDR StartTime 2025-02-03 14:43:06 - End Time 2025-02-03 17:43:06 [2025-02-03 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394623', 'tblTempUsageDetail_20' ) start [2025-02-03 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394623', 'tblTempUsageDetail_20' ) end [2025-02-03 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394623', 'tblTempVendorCDR_20' ) start [2025-02-03 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394623', 'tblTempVendorCDR_20' ) end [2025-02-03 17:43:22] Production.INFO: ProcessCDR(1,14394623,1,1,2) [2025-02-03 17:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394623', 'tblTempUsageDetail_20' ) start [2025-02-03 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394623', 'tblTempUsageDetail_20' ) end [2025-02-03 17:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:43:26] Production.INFO: ==24842== Releasing lock... [2025-02-03 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:43:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-03 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:44:05 [end_date_ymd] => 2025-02-03 17:44:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:44:05' and `end` < '2025-02-03 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-02-03 17:44:19] Production.INFO: count ==4838 [2025-02-03 17:44:21] Production.ERROR: pbx CDR StartTime 2025-02-03 14:44:05 - End Time 2025-02-03 17:44:05 [2025-02-03 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394628', 'tblTempUsageDetail_20' ) start [2025-02-03 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394628', 'tblTempUsageDetail_20' ) end [2025-02-03 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394628', 'tblTempVendorCDR_20' ) start [2025-02-03 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394628', 'tblTempVendorCDR_20' ) end [2025-02-03 17:44:21] Production.INFO: ProcessCDR(1,14394628,1,1,2) [2025-02-03 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394628', 'tblTempUsageDetail_20' ) start [2025-02-03 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394628', 'tblTempUsageDetail_20' ) end [2025-02-03 17:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:44:26] Production.INFO: ==24916== Releasing lock... [2025-02-03 17:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:44:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:45:05 [end_date_ymd] => 2025-02-03 17:45:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:45:05' and `end` < '2025-02-03 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-02-03 17:45:19] Production.INFO: count ==4834 [2025-02-03 17:45:21] Production.ERROR: pbx CDR StartTime 2025-02-03 14:45:05 - End Time 2025-02-03 17:45:05 [2025-02-03 17:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394633', 'tblTempUsageDetail_20' ) start [2025-02-03 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394633', 'tblTempUsageDetail_20' ) end [2025-02-03 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394633', 'tblTempVendorCDR_20' ) start [2025-02-03 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394633', 'tblTempVendorCDR_20' ) end [2025-02-03 17:45:21] Production.INFO: ProcessCDR(1,14394633,1,1,2) [2025-02-03 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394633', 'tblTempUsageDetail_20' ) start [2025-02-03 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394633', 'tblTempUsageDetail_20' ) end [2025-02-03 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:45:26] Production.INFO: ==24992== Releasing lock... [2025-02-03 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:45:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-03 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:46:05 [end_date_ymd] => 2025-02-03 17:46:05 [RateCDR] => 1 ) [2025-02-03 17: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-02-03 14:46:05' and `end` < '2025-02-03 17: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-02-03 17:46:19] Production.INFO: count ==4823 [2025-02-03 17:46:20] Production.ERROR: pbx CDR StartTime 2025-02-03 14:46:05 - End Time 2025-02-03 17:46:05 [2025-02-03 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394638', 'tblTempUsageDetail_20' ) start [2025-02-03 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394638', 'tblTempUsageDetail_20' ) end [2025-02-03 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394638', 'tblTempVendorCDR_20' ) start [2025-02-03 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394638', 'tblTempVendorCDR_20' ) end [2025-02-03 17:46:21] Production.INFO: ProcessCDR(1,14394638,1,1,2) [2025-02-03 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394638', 'tblTempUsageDetail_20' ) start [2025-02-03 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394638', 'tblTempUsageDetail_20' ) end [2025-02-03 17:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:46:24] Production.INFO: ==25065== Releasing lock... [2025-02-03 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:46:24] Production.INFO: 64 MB #Memory Used# [2025-02-03 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:47:06 [end_date_ymd] => 2025-02-03 17:47:06 [RateCDR] => 1 ) [2025-02-03 17: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-02-03 14:47:06' and `end` < '2025-02-03 17:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 17:47:20] Production.INFO: count ==4821 [2025-02-03 17:47:22] Production.ERROR: pbx CDR StartTime 2025-02-03 14:47:06 - End Time 2025-02-03 17:47:06 [2025-02-03 17:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394643', 'tblTempUsageDetail_20' ) start [2025-02-03 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394643', 'tblTempUsageDetail_20' ) end [2025-02-03 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394643', 'tblTempVendorCDR_20' ) start [2025-02-03 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394643', 'tblTempVendorCDR_20' ) end [2025-02-03 17:47:22] Production.INFO: ProcessCDR(1,14394643,1,1,2) [2025-02-03 17:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394643', 'tblTempUsageDetail_20' ) start [2025-02-03 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394643', 'tblTempUsageDetail_20' ) end [2025-02-03 17:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:47:27] Production.INFO: ==25138== Releasing lock... [2025-02-03 17:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:47:27] Production.INFO: 64 MB #Memory Used# [2025-02-03 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:48:05 [end_date_ymd] => 2025-02-03 17:48:05 [RateCDR] => 1 ) [2025-02-03 17: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-02-03 14:48:05' and `end` < '2025-02-03 17: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-02-03 17:48:20] Production.INFO: count ==4819 [2025-02-03 17:48:22] Production.ERROR: pbx CDR StartTime 2025-02-03 14:48:05 - End Time 2025-02-03 17:48:05 [2025-02-03 17:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394648', 'tblTempUsageDetail_20' ) start [2025-02-03 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394648', 'tblTempUsageDetail_20' ) end [2025-02-03 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394648', 'tblTempVendorCDR_20' ) start [2025-02-03 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394648', 'tblTempVendorCDR_20' ) end [2025-02-03 17:48:22] Production.INFO: ProcessCDR(1,14394648,1,1,2) [2025-02-03 17:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394648', 'tblTempUsageDetail_20' ) start [2025-02-03 17:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394648', 'tblTempUsageDetail_20' ) end [2025-02-03 17:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:48:27] Production.INFO: ==25217== Releasing lock... [2025-02-03 17:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:48:27] Production.INFO: 64 MB #Memory Used# [2025-02-03 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:49:05 [end_date_ymd] => 2025-02-03 17:49:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:49:05' and `end` < '2025-02-03 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-02-03 17:49:19] Production.INFO: count ==4826 [2025-02-03 17:49:21] Production.ERROR: pbx CDR StartTime 2025-02-03 14:49:05 - End Time 2025-02-03 17:49:05 [2025-02-03 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394653', 'tblTempUsageDetail_20' ) start [2025-02-03 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394653', 'tblTempUsageDetail_20' ) end [2025-02-03 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394653', 'tblTempVendorCDR_20' ) start [2025-02-03 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394653', 'tblTempVendorCDR_20' ) end [2025-02-03 17:49:21] Production.INFO: ProcessCDR(1,14394653,1,1,2) [2025-02-03 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394653', 'tblTempUsageDetail_20' ) start [2025-02-03 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394653', 'tblTempUsageDetail_20' ) end [2025-02-03 17:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:49:26] Production.INFO: ==25332== Releasing lock... [2025-02-03 17:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:49:26] Production.INFO: 64 MB #Memory Used# [2025-02-03 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:50:06 [end_date_ymd] => 2025-02-03 17:50:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:50:06' and `end` < '2025-02-03 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-02-03 17:50:21] Production.INFO: count ==4808 [2025-02-03 17:50:23] Production.ERROR: pbx CDR StartTime 2025-02-03 14:50:06 - End Time 2025-02-03 17:50:06 [2025-02-03 17:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394659', 'tblTempUsageDetail_20' ) start [2025-02-03 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394659', 'tblTempUsageDetail_20' ) end [2025-02-03 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394659', 'tblTempVendorCDR_20' ) start [2025-02-03 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394659', 'tblTempVendorCDR_20' ) end [2025-02-03 17:50:23] Production.INFO: ProcessCDR(1,14394659,1,1,2) [2025-02-03 17:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394659', 'tblTempUsageDetail_20' ) start [2025-02-03 17:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394659', 'tblTempUsageDetail_20' ) end [2025-02-03 17:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:50:28] Production.INFO: ==25407== Releasing lock... [2025-02-03 17:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:50:28] Production.INFO: 64 MB #Memory Used# [2025-02-03 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:51:05 [end_date_ymd] => 2025-02-03 17:51:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:51:05' and `end` < '2025-02-03 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-02-03 17:51:19] Production.INFO: count ==4780 [2025-02-03 17:51:21] Production.ERROR: pbx CDR StartTime 2025-02-03 14:51:05 - End Time 2025-02-03 17:51:05 [2025-02-03 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394664', 'tblTempUsageDetail_20' ) start [2025-02-03 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394664', 'tblTempUsageDetail_20' ) end [2025-02-03 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394664', 'tblTempVendorCDR_20' ) start [2025-02-03 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394664', 'tblTempVendorCDR_20' ) end [2025-02-03 17:51:21] Production.INFO: ProcessCDR(1,14394664,1,1,2) [2025-02-03 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394664', 'tblTempUsageDetail_20' ) start [2025-02-03 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394664', 'tblTempUsageDetail_20' ) end [2025-02-03 17:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:51:26] Production.INFO: ==25483== Releasing lock... [2025-02-03 17:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:51:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-03 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:52:05 [end_date_ymd] => 2025-02-03 17:52:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:52:05' and `end` < '2025-02-03 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-02-03 17:52:18] Production.INFO: count ==4748 [2025-02-03 17:52:20] Production.ERROR: pbx CDR StartTime 2025-02-03 14:52:05 - End Time 2025-02-03 17:52:05 [2025-02-03 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394669', 'tblTempUsageDetail_20' ) start [2025-02-03 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394669', 'tblTempUsageDetail_20' ) end [2025-02-03 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394669', 'tblTempVendorCDR_20' ) start [2025-02-03 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394669', 'tblTempVendorCDR_20' ) end [2025-02-03 17:52:20] Production.INFO: ProcessCDR(1,14394669,1,1,2) [2025-02-03 17:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394669', 'tblTempUsageDetail_20' ) start [2025-02-03 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394669', 'tblTempUsageDetail_20' ) end [2025-02-03 17:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:52:25] Production.INFO: ==25556== Releasing lock... [2025-02-03 17:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:52:25] Production.INFO: 63.5 MB #Memory Used# [2025-02-03 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:53:05 [end_date_ymd] => 2025-02-03 17:53:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:53:05' and `end` < '2025-02-03 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-02-03 17:53:21] Production.INFO: count ==4738 [2025-02-03 17:53:23] Production.ERROR: pbx CDR StartTime 2025-02-03 14:53:05 - End Time 2025-02-03 17:53:05 [2025-02-03 17:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394674', 'tblTempUsageDetail_20' ) start [2025-02-03 17:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394674', 'tblTempUsageDetail_20' ) end [2025-02-03 17:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394674', 'tblTempVendorCDR_20' ) start [2025-02-03 17:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394674', 'tblTempVendorCDR_20' ) end [2025-02-03 17:53:23] Production.INFO: ProcessCDR(1,14394674,1,1,2) [2025-02-03 17:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394674', 'tblTempUsageDetail_20' ) start [2025-02-03 17:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394674', 'tblTempUsageDetail_20' ) end [2025-02-03 17:53:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:53:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:53:28] Production.INFO: ==25636== Releasing lock... [2025-02-03 17:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:53:28] Production.INFO: 63.5 MB #Memory Used# [2025-02-03 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:54:06 [end_date_ymd] => 2025-02-03 17:54:06 [RateCDR] => 1 ) [2025-02-03 17: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-02-03 14:54:06' and `end` < '2025-02-03 17: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-02-03 17:54:19] Production.INFO: count ==4734 [2025-02-03 17:54:21] Production.ERROR: pbx CDR StartTime 2025-02-03 14:54:06 - End Time 2025-02-03 17:54:06 [2025-02-03 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394679', 'tblTempUsageDetail_20' ) start [2025-02-03 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394679', 'tblTempUsageDetail_20' ) end [2025-02-03 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394679', 'tblTempVendorCDR_20' ) start [2025-02-03 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394679', 'tblTempVendorCDR_20' ) end [2025-02-03 17:54:21] Production.INFO: ProcessCDR(1,14394679,1,1,2) [2025-02-03 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394679', 'tblTempUsageDetail_20' ) start [2025-02-03 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394679', 'tblTempUsageDetail_20' ) end [2025-02-03 17:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:54:26] Production.INFO: ==25708== Releasing lock... [2025-02-03 17:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:54:26] Production.INFO: 63.5 MB #Memory Used# [2025-02-03 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:55:05 [end_date_ymd] => 2025-02-03 17:55:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:55:05' and `end` < '2025-02-03 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-02-03 17:55:21] Production.INFO: count ==4727 [2025-02-03 17:55:22] Production.ERROR: pbx CDR StartTime 2025-02-03 14:55:05 - End Time 2025-02-03 17:55:05 [2025-02-03 17:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394684', 'tblTempUsageDetail_20' ) start [2025-02-03 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394684', 'tblTempUsageDetail_20' ) end [2025-02-03 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394684', 'tblTempVendorCDR_20' ) start [2025-02-03 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394684', 'tblTempVendorCDR_20' ) end [2025-02-03 17:55:22] Production.INFO: ProcessCDR(1,14394684,1,1,2) [2025-02-03 17:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394684', 'tblTempUsageDetail_20' ) start [2025-02-03 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394684', 'tblTempUsageDetail_20' ) end [2025-02-03 17:55:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:55:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:55:27] Production.INFO: ==25782== Releasing lock... [2025-02-03 17:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:55:27] Production.INFO: 63.25 MB #Memory Used# [2025-02-03 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:56:06 [end_date_ymd] => 2025-02-03 17:56:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:56:06' and `end` < '2025-02-03 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-02-03 17:56:19] Production.INFO: count ==4712 [2025-02-03 17:56:21] Production.ERROR: pbx CDR StartTime 2025-02-03 14:56:06 - End Time 2025-02-03 17:56:06 [2025-02-03 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394689', 'tblTempUsageDetail_20' ) start [2025-02-03 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394689', 'tblTempUsageDetail_20' ) end [2025-02-03 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394689', 'tblTempVendorCDR_20' ) start [2025-02-03 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394689', 'tblTempVendorCDR_20' ) end [2025-02-03 17:56:21] Production.INFO: ProcessCDR(1,14394689,1,1,2) [2025-02-03 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394689', 'tblTempUsageDetail_20' ) start [2025-02-03 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394689', 'tblTempUsageDetail_20' ) end [2025-02-03 17:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:56:26] Production.INFO: ==25856== Releasing lock... [2025-02-03 17:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:56:26] Production.INFO: 63.25 MB #Memory Used# [2025-02-03 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:57:05 [end_date_ymd] => 2025-02-03 17:57:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:57:05' and `end` < '2025-02-03 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-02-03 17:57:19] Production.INFO: count ==4697 [2025-02-03 17:57:21] Production.ERROR: pbx CDR StartTime 2025-02-03 14:57:05 - End Time 2025-02-03 17:57:05 [2025-02-03 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394694', 'tblTempUsageDetail_20' ) start [2025-02-03 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394694', 'tblTempUsageDetail_20' ) end [2025-02-03 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394694', 'tblTempVendorCDR_20' ) start [2025-02-03 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394694', 'tblTempVendorCDR_20' ) end [2025-02-03 17:57:21] Production.INFO: ProcessCDR(1,14394694,1,1,2) [2025-02-03 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394694', 'tblTempUsageDetail_20' ) start [2025-02-03 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394694', 'tblTempUsageDetail_20' ) end [2025-02-03 17:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:57:24] Production.INFO: ==25928== Releasing lock... [2025-02-03 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:57:25] Production.INFO: 63.25 MB #Memory Used# [2025-02-03 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:58:05 [end_date_ymd] => 2025-02-03 17:58:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:58:05' and `end` < '2025-02-03 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-02-03 17:58:20] Production.INFO: count ==4694 [2025-02-03 17:58:22] Production.ERROR: pbx CDR StartTime 2025-02-03 14:58:05 - End Time 2025-02-03 17:58:05 [2025-02-03 17:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394699', 'tblTempUsageDetail_20' ) start [2025-02-03 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394699', 'tblTempUsageDetail_20' ) end [2025-02-03 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394699', 'tblTempVendorCDR_20' ) start [2025-02-03 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394699', 'tblTempVendorCDR_20' ) end [2025-02-03 17:58:22] Production.INFO: ProcessCDR(1,14394699,1,1,2) [2025-02-03 17:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394699', 'tblTempUsageDetail_20' ) start [2025-02-03 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394699', 'tblTempUsageDetail_20' ) end [2025-02-03 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:58:26] Production.INFO: ==26004== Releasing lock... [2025-02-03 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:58:26] Production.INFO: 63 MB #Memory Used# [2025-02-03 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 14:59:05 [end_date_ymd] => 2025-02-03 17:59:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 14:59:05' and `end` < '2025-02-03 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-02-03 17:59:19] Production.INFO: count ==4683 [2025-02-03 17:59:20] Production.ERROR: pbx CDR StartTime 2025-02-03 14:59:05 - End Time 2025-02-03 17:59:05 [2025-02-03 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394704', 'tblTempUsageDetail_20' ) start [2025-02-03 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394704', 'tblTempUsageDetail_20' ) end [2025-02-03 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394704', 'tblTempVendorCDR_20' ) start [2025-02-03 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394704', 'tblTempVendorCDR_20' ) end [2025-02-03 17:59:21] Production.INFO: ProcessCDR(1,14394704,1,1,2) [2025-02-03 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394704', 'tblTempUsageDetail_20' ) start [2025-02-03 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394704', 'tblTempUsageDetail_20' ) end [2025-02-03 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 17:59:25] Production.INFO: ==26078== Releasing lock... [2025-02-03 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 17:59:25] Production.INFO: 63 MB #Memory Used# [2025-02-03 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:00:06 [end_date_ymd] => 2025-02-03 18:00:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:00:06' and `end` < '2025-02-03 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-02-03 18:00:20] Production.INFO: count ==4666 [2025-02-03 18:00:22] Production.ERROR: pbx CDR StartTime 2025-02-03 15:00:06 - End Time 2025-02-03 18:00:06 [2025-02-03 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394710', 'tblTempUsageDetail_20' ) start [2025-02-03 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394710', 'tblTempUsageDetail_20' ) end [2025-02-03 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394710', 'tblTempVendorCDR_20' ) start [2025-02-03 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394710', 'tblTempVendorCDR_20' ) end [2025-02-03 18:00:22] Production.INFO: ProcessCDR(1,14394710,1,1,2) [2025-02-03 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394710', 'tblTempUsageDetail_20' ) start [2025-02-03 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394710', 'tblTempUsageDetail_20' ) end [2025-02-03 18:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:00:26] Production.INFO: ==26155== Releasing lock... [2025-02-03 18:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:00:26] Production.INFO: 63 MB #Memory Used# [2025-02-03 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:01:05 [end_date_ymd] => 2025-02-03 18:01:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:01:05' and `end` < '2025-02-03 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-02-03 18:01:19] Production.INFO: count ==4595 [2025-02-03 18:01:21] Production.ERROR: pbx CDR StartTime 2025-02-03 15:01:05 - End Time 2025-02-03 18:01:05 [2025-02-03 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394715', 'tblTempUsageDetail_20' ) start [2025-02-03 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394715', 'tblTempUsageDetail_20' ) end [2025-02-03 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394715', 'tblTempVendorCDR_20' ) start [2025-02-03 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394715', 'tblTempVendorCDR_20' ) end [2025-02-03 18:01:21] Production.INFO: ProcessCDR(1,14394715,1,1,2) [2025-02-03 18:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394715', 'tblTempUsageDetail_20' ) start [2025-02-03 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394715', 'tblTempUsageDetail_20' ) end [2025-02-03 18:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:01:25] Production.INFO: ==26239== Releasing lock... [2025-02-03 18:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:01:25] Production.INFO: 62.5 MB #Memory Used# [2025-02-03 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:02:05 [end_date_ymd] => 2025-02-03 18:02:05 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:02:05' and `end` < '2025-02-03 18: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-02-03 18:02:19] Production.INFO: count ==4599 [2025-02-03 18:02:21] Production.ERROR: pbx CDR StartTime 2025-02-03 15:02:05 - End Time 2025-02-03 18:02:05 [2025-02-03 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394720', 'tblTempUsageDetail_20' ) start [2025-02-03 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394720', 'tblTempUsageDetail_20' ) end [2025-02-03 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394720', 'tblTempVendorCDR_20' ) start [2025-02-03 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394720', 'tblTempVendorCDR_20' ) end [2025-02-03 18:02:21] Production.INFO: ProcessCDR(1,14394720,1,1,2) [2025-02-03 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394720', 'tblTempUsageDetail_20' ) start [2025-02-03 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394720', 'tblTempUsageDetail_20' ) end [2025-02-03 18:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:02:26] Production.INFO: ==26313== Releasing lock... [2025-02-03 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:02:26] Production.INFO: 62.5 MB #Memory Used# [2025-02-03 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:03:06 [end_date_ymd] => 2025-02-03 18:03:06 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:03:06' and `end` < '2025-02-03 18: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-02-03 18:03:21] Production.INFO: count ==4584 [2025-02-03 18:03:22] Production.ERROR: pbx CDR StartTime 2025-02-03 15:03:06 - End Time 2025-02-03 18:03:06 [2025-02-03 18:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394725', 'tblTempUsageDetail_20' ) start [2025-02-03 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394725', 'tblTempUsageDetail_20' ) end [2025-02-03 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394725', 'tblTempVendorCDR_20' ) start [2025-02-03 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394725', 'tblTempVendorCDR_20' ) end [2025-02-03 18:03:22] Production.INFO: ProcessCDR(1,14394725,1,1,2) [2025-02-03 18:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394725', 'tblTempUsageDetail_20' ) start [2025-02-03 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394725', 'tblTempUsageDetail_20' ) end [2025-02-03 18:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:03:26] Production.INFO: ==26383== Releasing lock... [2025-02-03 18:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:03:26] Production.INFO: 62.25 MB #Memory Used# [2025-02-03 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:04:05 [end_date_ymd] => 2025-02-03 18:04:05 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:04:05' and `end` < '2025-02-03 18: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-02-03 18:04:20] Production.INFO: count ==4569 [2025-02-03 18:04:22] Production.ERROR: pbx CDR StartTime 2025-02-03 15:04:05 - End Time 2025-02-03 18:04:05 [2025-02-03 18:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394730', 'tblTempUsageDetail_20' ) start [2025-02-03 18:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394730', 'tblTempUsageDetail_20' ) end [2025-02-03 18:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394730', 'tblTempVendorCDR_20' ) start [2025-02-03 18:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394730', 'tblTempVendorCDR_20' ) end [2025-02-03 18:04:22] Production.INFO: ProcessCDR(1,14394730,1,1,2) [2025-02-03 18:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394730', 'tblTempUsageDetail_20' ) start [2025-02-03 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394730', 'tblTempUsageDetail_20' ) end [2025-02-03 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:04:25] Production.INFO: ==26455== Releasing lock... [2025-02-03 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:04:25] Production.INFO: 62.25 MB #Memory Used# [2025-02-03 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:05:05 [end_date_ymd] => 2025-02-03 18:05:05 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:05:05' and `end` < '2025-02-03 18: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-02-03 18:05:19] Production.INFO: count ==4571 [2025-02-03 18:05:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:05:05 - End Time 2025-02-03 18:05:05 [2025-02-03 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394735', 'tblTempUsageDetail_20' ) start [2025-02-03 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394735', 'tblTempUsageDetail_20' ) end [2025-02-03 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394735', 'tblTempVendorCDR_20' ) start [2025-02-03 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394735', 'tblTempVendorCDR_20' ) end [2025-02-03 18:05:20] Production.INFO: ProcessCDR(1,14394735,1,1,2) [2025-02-03 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394735', 'tblTempUsageDetail_20' ) start [2025-02-03 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394735', 'tblTempUsageDetail_20' ) end [2025-02-03 18:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:05:24] Production.INFO: ==26565== Releasing lock... [2025-02-03 18:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:05:24] Production.INFO: 62.25 MB #Memory Used# [2025-02-03 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:06:05 [end_date_ymd] => 2025-02-03 18:06:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:06:05' and `end` < '2025-02-03 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-02-03 18:06:21] Production.INFO: count ==4571 [2025-02-03 18:06:23] Production.ERROR: pbx CDR StartTime 2025-02-03 15:06:05 - End Time 2025-02-03 18:06:05 [2025-02-03 18:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394740', 'tblTempUsageDetail_20' ) start [2025-02-03 18:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394740', 'tblTempUsageDetail_20' ) end [2025-02-03 18:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394740', 'tblTempVendorCDR_20' ) start [2025-02-03 18:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394740', 'tblTempVendorCDR_20' ) end [2025-02-03 18:06:23] Production.INFO: ProcessCDR(1,14394740,1,1,2) [2025-02-03 18:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394740', 'tblTempUsageDetail_20' ) start [2025-02-03 18:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394740', 'tblTempUsageDetail_20' ) end [2025-02-03 18:06:28] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:06:28] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:06:28] Production.INFO: ==26634== Releasing lock... [2025-02-03 18:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:06:28] Production.INFO: 62.25 MB #Memory Used# [2025-02-03 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:07:05 [end_date_ymd] => 2025-02-03 18:07:05 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:07:05' and `end` < '2025-02-03 18: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-02-03 18:07:18] Production.INFO: count ==4555 [2025-02-03 18:07:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:07:05 - End Time 2025-02-03 18:07:05 [2025-02-03 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394745', 'tblTempUsageDetail_20' ) start [2025-02-03 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394745', 'tblTempUsageDetail_20' ) end [2025-02-03 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394745', 'tblTempVendorCDR_20' ) start [2025-02-03 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394745', 'tblTempVendorCDR_20' ) end [2025-02-03 18:07:20] Production.INFO: ProcessCDR(1,14394745,1,1,2) [2025-02-03 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394745', 'tblTempUsageDetail_20' ) start [2025-02-03 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394745', 'tblTempUsageDetail_20' ) end [2025-02-03 18:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:07:25] Production.INFO: ==26708== Releasing lock... [2025-02-03 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:07:25] Production.INFO: 62 MB #Memory Used# [2025-02-03 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:08:05 [end_date_ymd] => 2025-02-03 18:08:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:08:05' and `end` < '2025-02-03 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-02-03 18:08:18] Production.INFO: count ==4541 [2025-02-03 18:08:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:08:05 - End Time 2025-02-03 18:08:05 [2025-02-03 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394750', 'tblTempUsageDetail_20' ) start [2025-02-03 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394750', 'tblTempUsageDetail_20' ) end [2025-02-03 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394750', 'tblTempVendorCDR_20' ) start [2025-02-03 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394750', 'tblTempVendorCDR_20' ) end [2025-02-03 18:08:20] Production.INFO: ProcessCDR(1,14394750,1,1,2) [2025-02-03 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394750', 'tblTempUsageDetail_20' ) start [2025-02-03 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394750', 'tblTempUsageDetail_20' ) end [2025-02-03 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:08:25] Production.INFO: ==26792== Releasing lock... [2025-02-03 18:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:08:25] Production.INFO: 62 MB #Memory Used# [2025-02-03 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:09:05 [end_date_ymd] => 2025-02-03 18:09:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:09:05' and `end` < '2025-02-03 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-02-03 18:09:19] Production.INFO: count ==4505 [2025-02-03 18:09:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:09:05 - End Time 2025-02-03 18:09:05 [2025-02-03 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394755', 'tblTempUsageDetail_20' ) start [2025-02-03 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394755', 'tblTempUsageDetail_20' ) end [2025-02-03 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394755', 'tblTempVendorCDR_20' ) start [2025-02-03 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394755', 'tblTempVendorCDR_20' ) end [2025-02-03 18:09:21] Production.INFO: ProcessCDR(1,14394755,1,1,2) [2025-02-03 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394755', 'tblTempUsageDetail_20' ) start [2025-02-03 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394755', 'tblTempUsageDetail_20' ) end [2025-02-03 18:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:09:25] Production.INFO: ==26865== Releasing lock... [2025-02-03 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:09:25] Production.INFO: 61.75 MB #Memory Used# [2025-02-03 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:10:06 [end_date_ymd] => 2025-02-03 18:10:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:10:06' and `end` < '2025-02-03 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-02-03 18:10:19] Production.INFO: count ==4461 [2025-02-03 18:10:21] Production.ERROR: pbx CDR StartTime 2025-02-03 15:10:06 - End Time 2025-02-03 18:10:06 [2025-02-03 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394761', 'tblTempUsageDetail_20' ) start [2025-02-03 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394761', 'tblTempUsageDetail_20' ) end [2025-02-03 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394761', 'tblTempVendorCDR_20' ) start [2025-02-03 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394761', 'tblTempVendorCDR_20' ) end [2025-02-03 18:10:21] Production.INFO: ProcessCDR(1,14394761,1,1,2) [2025-02-03 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394761', 'tblTempUsageDetail_20' ) start [2025-02-03 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394761', 'tblTempUsageDetail_20' ) end [2025-02-03 18:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:10:26] Production.INFO: ==26939== Releasing lock... [2025-02-03 18:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:10:26] Production.INFO: 61.25 MB #Memory Used# [2025-02-03 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:11:05 [end_date_ymd] => 2025-02-03 18:11:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:11:05' and `end` < '2025-02-03 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-02-03 18:11:18] Production.INFO: count ==4380 [2025-02-03 18:11:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:11:05 - End Time 2025-02-03 18:11:05 [2025-02-03 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394766', 'tblTempUsageDetail_20' ) start [2025-02-03 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394766', 'tblTempUsageDetail_20' ) end [2025-02-03 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394766', 'tblTempVendorCDR_20' ) start [2025-02-03 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394766', 'tblTempVendorCDR_20' ) end [2025-02-03 18:11:20] Production.INFO: ProcessCDR(1,14394766,1,1,2) [2025-02-03 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394766', 'tblTempUsageDetail_20' ) start [2025-02-03 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394766', 'tblTempUsageDetail_20' ) end [2025-02-03 18:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:11:25] Production.INFO: ==27014== Releasing lock... [2025-02-03 18:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:11:25] Production.INFO: 60.75 MB #Memory Used# [2025-02-03 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:12:06 [end_date_ymd] => 2025-02-03 18:12:06 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:12:06' and `end` < '2025-02-03 18: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-02-03 18:12:20] Production.INFO: count ==4343 [2025-02-03 18:12:22] Production.ERROR: pbx CDR StartTime 2025-02-03 15:12:06 - End Time 2025-02-03 18:12:06 [2025-02-03 18:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394771', 'tblTempUsageDetail_20' ) start [2025-02-03 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394771', 'tblTempUsageDetail_20' ) end [2025-02-03 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394771', 'tblTempVendorCDR_20' ) start [2025-02-03 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394771', 'tblTempVendorCDR_20' ) end [2025-02-03 18:12:22] Production.INFO: ProcessCDR(1,14394771,1,1,2) [2025-02-03 18:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394771', 'tblTempUsageDetail_20' ) start [2025-02-03 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394771', 'tblTempUsageDetail_20' ) end [2025-02-03 18:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:12:27] Production.INFO: ==27086== Releasing lock... [2025-02-03 18:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:12:27] Production.INFO: 60.5 MB #Memory Used# [2025-02-03 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:13:05 [end_date_ymd] => 2025-02-03 18:13:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:13:05' and `end` < '2025-02-03 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-02-03 18:13:19] Production.INFO: count ==4304 [2025-02-03 18:13:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:13:05 - End Time 2025-02-03 18:13:05 [2025-02-03 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394776', 'tblTempUsageDetail_20' ) start [2025-02-03 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394776', 'tblTempUsageDetail_20' ) end [2025-02-03 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394776', 'tblTempVendorCDR_20' ) start [2025-02-03 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394776', 'tblTempVendorCDR_20' ) end [2025-02-03 18:13:20] Production.INFO: ProcessCDR(1,14394776,1,1,2) [2025-02-03 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394776', 'tblTempUsageDetail_20' ) start [2025-02-03 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394776', 'tblTempUsageDetail_20' ) end [2025-02-03 18:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:13:25] Production.INFO: ==27158== Releasing lock... [2025-02-03 18:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:13:25] Production.INFO: 60.25 MB #Memory Used# [2025-02-03 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:14:05 [end_date_ymd] => 2025-02-03 18:14:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:14:05' and `end` < '2025-02-03 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-02-03 18:14:19] Production.INFO: count ==4257 [2025-02-03 18:14:21] Production.ERROR: pbx CDR StartTime 2025-02-03 15:14:05 - End Time 2025-02-03 18:14:05 [2025-02-03 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394781', 'tblTempUsageDetail_20' ) start [2025-02-03 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394781', 'tblTempUsageDetail_20' ) end [2025-02-03 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394781', 'tblTempVendorCDR_20' ) start [2025-02-03 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394781', 'tblTempVendorCDR_20' ) end [2025-02-03 18:14:21] Production.INFO: ProcessCDR(1,14394781,1,1,2) [2025-02-03 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394781', 'tblTempUsageDetail_20' ) start [2025-02-03 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394781', 'tblTempUsageDetail_20' ) end [2025-02-03 18:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:14:26] Production.INFO: ==27231== Releasing lock... [2025-02-03 18:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:14:26] Production.INFO: 59.75 MB #Memory Used# [2025-02-03 18:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:15:04 [end_date_ymd] => 2025-02-03 18:15:04 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:15:04' and `end` < '2025-02-03 18: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-02-03 18:15:18] Production.INFO: count ==4210 [2025-02-03 18:15:19] Production.ERROR: pbx CDR StartTime 2025-02-03 15:15:04 - End Time 2025-02-03 18:15:04 [2025-02-03 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394786', 'tblTempUsageDetail_20' ) start [2025-02-03 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394786', 'tblTempUsageDetail_20' ) end [2025-02-03 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394786', 'tblTempVendorCDR_20' ) start [2025-02-03 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394786', 'tblTempVendorCDR_20' ) end [2025-02-03 18:15:19] Production.INFO: ProcessCDR(1,14394786,1,1,2) [2025-02-03 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394786', 'tblTempUsageDetail_20' ) start [2025-02-03 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394786', 'tblTempUsageDetail_20' ) end [2025-02-03 18:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:15:24] Production.INFO: ==27303== Releasing lock... [2025-02-03 18:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:15:24] Production.INFO: 59.5 MB #Memory Used# [2025-02-03 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:16:05 [end_date_ymd] => 2025-02-03 18:16:05 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:16:05' and `end` < '2025-02-03 18: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-02-03 18:16:19] Production.INFO: count ==4209 [2025-02-03 18:16:21] Production.ERROR: pbx CDR StartTime 2025-02-03 15:16:05 - End Time 2025-02-03 18:16:05 [2025-02-03 18:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394791', 'tblTempUsageDetail_20' ) start [2025-02-03 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394791', 'tblTempUsageDetail_20' ) end [2025-02-03 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394791', 'tblTempVendorCDR_20' ) start [2025-02-03 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394791', 'tblTempVendorCDR_20' ) end [2025-02-03 18:16:21] Production.INFO: ProcessCDR(1,14394791,1,1,2) [2025-02-03 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394791', 'tblTempUsageDetail_20' ) start [2025-02-03 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394791', 'tblTempUsageDetail_20' ) end [2025-02-03 18:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:16:26] Production.INFO: ==27377== Releasing lock... [2025-02-03 18:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:16:26] Production.INFO: 59.5 MB #Memory Used# [2025-02-03 18:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:17:06 [end_date_ymd] => 2025-02-03 18:17:06 [RateCDR] => 1 ) [2025-02-03 18:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 15:17:06' and `end` < '2025-02-03 18:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 18:17:19] Production.INFO: count ==4198 [2025-02-03 18:17:21] Production.ERROR: pbx CDR StartTime 2025-02-03 15:17:06 - End Time 2025-02-03 18:17:06 [2025-02-03 18:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394796', 'tblTempUsageDetail_20' ) start [2025-02-03 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394796', 'tblTempUsageDetail_20' ) end [2025-02-03 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394796', 'tblTempVendorCDR_20' ) start [2025-02-03 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394796', 'tblTempVendorCDR_20' ) end [2025-02-03 18:17:21] Production.INFO: ProcessCDR(1,14394796,1,1,2) [2025-02-03 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394796', 'tblTempUsageDetail_20' ) start [2025-02-03 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394796', 'tblTempUsageDetail_20' ) end [2025-02-03 18:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:17:25] Production.INFO: ==27451== Releasing lock... [2025-02-03 18:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:17:25] Production.INFO: 59.5 MB #Memory Used# [2025-02-03 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:18:05 [end_date_ymd] => 2025-02-03 18:18:05 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:18:05' and `end` < '2025-02-03 18: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-02-03 18:18:19] Production.INFO: count ==4185 [2025-02-03 18:18:21] Production.ERROR: pbx CDR StartTime 2025-02-03 15:18:05 - End Time 2025-02-03 18:18:05 [2025-02-03 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394801', 'tblTempUsageDetail_20' ) start [2025-02-03 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394801', 'tblTempUsageDetail_20' ) end [2025-02-03 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394801', 'tblTempVendorCDR_20' ) start [2025-02-03 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394801', 'tblTempVendorCDR_20' ) end [2025-02-03 18:18:21] Production.INFO: ProcessCDR(1,14394801,1,1,2) [2025-02-03 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394801', 'tblTempUsageDetail_20' ) start [2025-02-03 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394801', 'tblTempUsageDetail_20' ) end [2025-02-03 18:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:18:25] Production.INFO: ==27520== Releasing lock... [2025-02-03 18:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:18:25] Production.INFO: 59.25 MB #Memory Used# [2025-02-03 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:19:05 [end_date_ymd] => 2025-02-03 18:19:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:19:05' and `end` < '2025-02-03 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-02-03 18:19:19] Production.INFO: count ==4175 [2025-02-03 18:19:21] Production.ERROR: pbx CDR StartTime 2025-02-03 15:19:05 - End Time 2025-02-03 18:19:05 [2025-02-03 18:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394806', 'tblTempUsageDetail_20' ) start [2025-02-03 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394806', 'tblTempUsageDetail_20' ) end [2025-02-03 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394806', 'tblTempVendorCDR_20' ) start [2025-02-03 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394806', 'tblTempVendorCDR_20' ) end [2025-02-03 18:19:21] Production.INFO: ProcessCDR(1,14394806,1,1,2) [2025-02-03 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394806', 'tblTempUsageDetail_20' ) start [2025-02-03 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394806', 'tblTempUsageDetail_20' ) end [2025-02-03 18:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:19:25] Production.INFO: ==27594== Releasing lock... [2025-02-03 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:19:25] Production.INFO: 59.25 MB #Memory Used# [2025-02-03 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:20:06 [end_date_ymd] => 2025-02-03 18:20:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:20:06' and `end` < '2025-02-03 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-02-03 18:20:19] Production.INFO: count ==4138 [2025-02-03 18:20:21] Production.ERROR: pbx CDR StartTime 2025-02-03 15:20:06 - End Time 2025-02-03 18:20:06 [2025-02-03 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394812', 'tblTempUsageDetail_20' ) start [2025-02-03 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394812', 'tblTempUsageDetail_20' ) end [2025-02-03 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394812', 'tblTempVendorCDR_20' ) start [2025-02-03 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394812', 'tblTempVendorCDR_20' ) end [2025-02-03 18:20:21] Production.INFO: ProcessCDR(1,14394812,1,1,2) [2025-02-03 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394812', 'tblTempUsageDetail_20' ) start [2025-02-03 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394812', 'tblTempUsageDetail_20' ) end [2025-02-03 18:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:20:25] Production.INFO: ==27707== Releasing lock... [2025-02-03 18:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:20:25] Production.INFO: 59 MB #Memory Used# [2025-02-03 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:21:05 [end_date_ymd] => 2025-02-03 18:21:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:21:05' and `end` < '2025-02-03 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-02-03 18:21:19] Production.INFO: count ==4057 [2025-02-03 18:21:21] Production.ERROR: pbx CDR StartTime 2025-02-03 15:21:05 - End Time 2025-02-03 18:21:05 [2025-02-03 18:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394817', 'tblTempUsageDetail_20' ) start [2025-02-03 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394817', 'tblTempUsageDetail_20' ) end [2025-02-03 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394817', 'tblTempVendorCDR_20' ) start [2025-02-03 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394817', 'tblTempVendorCDR_20' ) end [2025-02-03 18:21:21] Production.INFO: ProcessCDR(1,14394817,1,1,2) [2025-02-03 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394817', 'tblTempUsageDetail_20' ) start [2025-02-03 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394817', 'tblTempUsageDetail_20' ) end [2025-02-03 18:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:21:24] Production.INFO: ==27783== Releasing lock... [2025-02-03 18:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:21:24] Production.INFO: 58.5 MB #Memory Used# [2025-02-03 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:22:05 [end_date_ymd] => 2025-02-03 18:22:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:22:05' and `end` < '2025-02-03 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-02-03 18:22:18] Production.INFO: count ==3989 [2025-02-03 18:22:19] Production.ERROR: pbx CDR StartTime 2025-02-03 15:22:05 - End Time 2025-02-03 18:22:05 [2025-02-03 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394822', 'tblTempUsageDetail_20' ) start [2025-02-03 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394822', 'tblTempUsageDetail_20' ) end [2025-02-03 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394822', 'tblTempVendorCDR_20' ) start [2025-02-03 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394822', 'tblTempVendorCDR_20' ) end [2025-02-03 18:22:19] Production.INFO: ProcessCDR(1,14394822,1,1,2) [2025-02-03 18:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394822', 'tblTempUsageDetail_20' ) start [2025-02-03 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394822', 'tblTempUsageDetail_20' ) end [2025-02-03 18:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:22:23] Production.INFO: ==27854== Releasing lock... [2025-02-03 18:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:22:23] Production.INFO: 57.75 MB #Memory Used# [2025-02-03 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:23:05 [end_date_ymd] => 2025-02-03 18:23:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:23:05' and `end` < '2025-02-03 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-02-03 18:23:19] Production.INFO: count ==3935 [2025-02-03 18:23:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:23:05 - End Time 2025-02-03 18:23:05 [2025-02-03 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394827', 'tblTempUsageDetail_20' ) start [2025-02-03 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394827', 'tblTempUsageDetail_20' ) end [2025-02-03 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394827', 'tblTempVendorCDR_20' ) start [2025-02-03 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394827', 'tblTempVendorCDR_20' ) end [2025-02-03 18:23:20] Production.INFO: ProcessCDR(1,14394827,1,1,2) [2025-02-03 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394827', 'tblTempUsageDetail_20' ) start [2025-02-03 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394827', 'tblTempUsageDetail_20' ) end [2025-02-03 18:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:23:23] Production.INFO: ==27929== Releasing lock... [2025-02-03 18:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:23:23] Production.INFO: 57.75 MB #Memory Used# [2025-02-03 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:24:05 [end_date_ymd] => 2025-02-03 18:24:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:24:05' and `end` < '2025-02-03 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-02-03 18:24:21] Production.INFO: count ==3896 [2025-02-03 18:24:22] Production.ERROR: pbx CDR StartTime 2025-02-03 15:24:05 - End Time 2025-02-03 18:24:05 [2025-02-03 18:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394832', 'tblTempUsageDetail_20' ) start [2025-02-03 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394832', 'tblTempUsageDetail_20' ) end [2025-02-03 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394832', 'tblTempVendorCDR_20' ) start [2025-02-03 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394832', 'tblTempVendorCDR_20' ) end [2025-02-03 18:24:22] Production.INFO: ProcessCDR(1,14394832,1,1,2) [2025-02-03 18:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394832', 'tblTempUsageDetail_20' ) start [2025-02-03 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394832', 'tblTempUsageDetail_20' ) end [2025-02-03 18:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:24:27] Production.INFO: ==28001== Releasing lock... [2025-02-03 18:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:24:27] Production.INFO: 57 MB #Memory Used# [2025-02-03 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:25:05 [end_date_ymd] => 2025-02-03 18:25:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:25:05' and `end` < '2025-02-03 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-02-03 18:25:19] Production.INFO: count ==3838 [2025-02-03 18:25:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:25:05 - End Time 2025-02-03 18:25:05 [2025-02-03 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394837', 'tblTempUsageDetail_20' ) start [2025-02-03 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394837', 'tblTempUsageDetail_20' ) end [2025-02-03 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394837', 'tblTempVendorCDR_20' ) start [2025-02-03 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394837', 'tblTempVendorCDR_20' ) end [2025-02-03 18:25:20] Production.INFO: ProcessCDR(1,14394837,1,1,2) [2025-02-03 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394837', 'tblTempUsageDetail_20' ) start [2025-02-03 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394837', 'tblTempUsageDetail_20' ) end [2025-02-03 18:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:25:23] Production.INFO: ==28072== Releasing lock... [2025-02-03 18:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:25:23] Production.INFO: 56.75 MB #Memory Used# [2025-02-03 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:26:05 [end_date_ymd] => 2025-02-03 18:26:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:26:05' and `end` < '2025-02-03 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-02-03 18:26:21] Production.INFO: count ==3807 [2025-02-03 18:26:22] Production.ERROR: pbx CDR StartTime 2025-02-03 15:26:05 - End Time 2025-02-03 18:26:05 [2025-02-03 18:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394842', 'tblTempUsageDetail_20' ) start [2025-02-03 18:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394842', 'tblTempUsageDetail_20' ) end [2025-02-03 18:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394842', 'tblTempVendorCDR_20' ) start [2025-02-03 18:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394842', 'tblTempVendorCDR_20' ) end [2025-02-03 18:26:23] Production.INFO: ProcessCDR(1,14394842,1,1,2) [2025-02-03 18:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394842', 'tblTempUsageDetail_20' ) start [2025-02-03 18:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394842', 'tblTempUsageDetail_20' ) end [2025-02-03 18:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:26:27] Production.INFO: ==28146== Releasing lock... [2025-02-03 18:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:26:27] Production.INFO: 57.5 MB #Memory Used# [2025-02-03 18:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:27:04 [end_date_ymd] => 2025-02-03 18:27:04 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:27:04' and `end` < '2025-02-03 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-02-03 18:27:18] Production.INFO: count ==3747 [2025-02-03 18:27:19] Production.ERROR: pbx CDR StartTime 2025-02-03 15:27:04 - End Time 2025-02-03 18:27:04 [2025-02-03 18:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394847', 'tblTempUsageDetail_20' ) start [2025-02-03 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394847', 'tblTempUsageDetail_20' ) end [2025-02-03 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394847', 'tblTempVendorCDR_20' ) start [2025-02-03 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394847', 'tblTempVendorCDR_20' ) end [2025-02-03 18:27:19] Production.INFO: ProcessCDR(1,14394847,1,1,2) [2025-02-03 18:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394847', 'tblTempUsageDetail_20' ) start [2025-02-03 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394847', 'tblTempUsageDetail_20' ) end [2025-02-03 18:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:27:24] Production.INFO: ==28223== Releasing lock... [2025-02-03 18:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:27:24] Production.INFO: 57 MB #Memory Used# [2025-02-03 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:28:05 [end_date_ymd] => 2025-02-03 18:28:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:28:05' and `end` < '2025-02-03 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-02-03 18:28:19] Production.INFO: count ==3729 [2025-02-03 18:28:21] Production.ERROR: pbx CDR StartTime 2025-02-03 15:28:05 - End Time 2025-02-03 18:28:05 [2025-02-03 18:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394852', 'tblTempUsageDetail_20' ) start [2025-02-03 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394852', 'tblTempUsageDetail_20' ) end [2025-02-03 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394852', 'tblTempVendorCDR_20' ) start [2025-02-03 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394852', 'tblTempVendorCDR_20' ) end [2025-02-03 18:28:21] Production.INFO: ProcessCDR(1,14394852,1,1,2) [2025-02-03 18:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394852', 'tblTempUsageDetail_20' ) start [2025-02-03 18:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394852', 'tblTempUsageDetail_20' ) end [2025-02-03 18:28:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:28:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:28:25] Production.INFO: ==28296== Releasing lock... [2025-02-03 18:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:28:25] Production.INFO: 56.75 MB #Memory Used# [2025-02-03 18:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:29:06 [end_date_ymd] => 2025-02-03 18:29:06 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:29:06' and `end` < '2025-02-03 18: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-02-03 18:29:20] Production.INFO: count ==3717 [2025-02-03 18:29:21] Production.ERROR: pbx CDR StartTime 2025-02-03 15:29:06 - End Time 2025-02-03 18:29:06 [2025-02-03 18:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394857', 'tblTempUsageDetail_20' ) start [2025-02-03 18:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394857', 'tblTempUsageDetail_20' ) end [2025-02-03 18:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394857', 'tblTempVendorCDR_20' ) start [2025-02-03 18:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394857', 'tblTempVendorCDR_20' ) end [2025-02-03 18:29:22] Production.INFO: ProcessCDR(1,14394857,1,1,2) [2025-02-03 18:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394857', 'tblTempUsageDetail_20' ) start [2025-02-03 18:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394857', 'tblTempUsageDetail_20' ) end [2025-02-03 18:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:29:26] Production.INFO: ==28370== Releasing lock... [2025-02-03 18:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:29:26] Production.INFO: 56 MB #Memory Used# [2025-02-03 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:30:06 [end_date_ymd] => 2025-02-03 18:30:06 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:30:06' and `end` < '2025-02-03 18: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-02-03 18:30:19] Production.INFO: count ==3706 [2025-02-03 18:30:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:30:06 - End Time 2025-02-03 18:30:06 [2025-02-03 18:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394862', 'tblTempUsageDetail_20' ) start [2025-02-03 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394862', 'tblTempUsageDetail_20' ) end [2025-02-03 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394862', 'tblTempVendorCDR_20' ) start [2025-02-03 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394862', 'tblTempVendorCDR_20' ) end [2025-02-03 18:30:21] Production.INFO: ProcessCDR(1,14394862,1,1,2) [2025-02-03 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394862', 'tblTempUsageDetail_20' ) start [2025-02-03 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394862', 'tblTempUsageDetail_20' ) end [2025-02-03 18:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:30:25] Production.INFO: ==28447== Releasing lock... [2025-02-03 18:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:30:25] Production.INFO: 56 MB #Memory Used# [2025-02-03 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:31:05 [end_date_ymd] => 2025-02-03 18:31:05 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:31:05' and `end` < '2025-02-03 18: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-02-03 18:31:21] Production.INFO: count ==3667 [2025-02-03 18:31:22] Production.ERROR: pbx CDR StartTime 2025-02-03 15:31:05 - End Time 2025-02-03 18:31:05 [2025-02-03 18:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394868', 'tblTempUsageDetail_20' ) start [2025-02-03 18:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394868', 'tblTempUsageDetail_20' ) end [2025-02-03 18:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394868', 'tblTempVendorCDR_20' ) start [2025-02-03 18:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394868', 'tblTempVendorCDR_20' ) end [2025-02-03 18:31:22] Production.INFO: ProcessCDR(1,14394868,1,1,2) [2025-02-03 18:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394868', 'tblTempUsageDetail_20' ) start [2025-02-03 18:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394868', 'tblTempUsageDetail_20' ) end [2025-02-03 18:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:31:27] Production.INFO: ==28521== Releasing lock... [2025-02-03 18:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:31:27] Production.INFO: 56.75 MB #Memory Used# [2025-02-03 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:32:05 [end_date_ymd] => 2025-02-03 18:32:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:32:05' and `end` < '2025-02-03 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-02-03 18:32:19] Production.INFO: count ==3643 [2025-02-03 18:32:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:32:05 - End Time 2025-02-03 18:32:05 [2025-02-03 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394873', 'tblTempUsageDetail_20' ) start [2025-02-03 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394873', 'tblTempUsageDetail_20' ) end [2025-02-03 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394873', 'tblTempVendorCDR_20' ) start [2025-02-03 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394873', 'tblTempVendorCDR_20' ) end [2025-02-03 18:32:20] Production.INFO: ProcessCDR(1,14394873,1,1,2) [2025-02-03 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394873', 'tblTempUsageDetail_20' ) start [2025-02-03 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394873', 'tblTempUsageDetail_20' ) end [2025-02-03 18:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:32:25] Production.INFO: ==28594== Releasing lock... [2025-02-03 18:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:32:25] Production.INFO: 56.25 MB #Memory Used# [2025-02-03 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:33:05 [end_date_ymd] => 2025-02-03 18:33:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:33:05' and `end` < '2025-02-03 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-02-03 18:33:18] Production.INFO: count ==3633 [2025-02-03 18:33:19] Production.ERROR: pbx CDR StartTime 2025-02-03 15:33:05 - End Time 2025-02-03 18:33:05 [2025-02-03 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394878', 'tblTempUsageDetail_20' ) start [2025-02-03 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394878', 'tblTempUsageDetail_20' ) end [2025-02-03 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394878', 'tblTempVendorCDR_20' ) start [2025-02-03 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394878', 'tblTempVendorCDR_20' ) end [2025-02-03 18:33:19] Production.INFO: ProcessCDR(1,14394878,1,1,2) [2025-02-03 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394878', 'tblTempUsageDetail_20' ) start [2025-02-03 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394878', 'tblTempUsageDetail_20' ) end [2025-02-03 18:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:33:24] Production.INFO: ==28667== Releasing lock... [2025-02-03 18:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:33:24] Production.INFO: 55.5 MB #Memory Used# [2025-02-03 18:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:34:04 [end_date_ymd] => 2025-02-03 18:34:04 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:34:04' and `end` < '2025-02-03 18: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-02-03 18:34:19] Production.INFO: count ==3638 [2025-02-03 18:34:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:34:04 - End Time 2025-02-03 18:34:04 [2025-02-03 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394883', 'tblTempUsageDetail_20' ) start [2025-02-03 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394883', 'tblTempUsageDetail_20' ) end [2025-02-03 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394883', 'tblTempVendorCDR_20' ) start [2025-02-03 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394883', 'tblTempVendorCDR_20' ) end [2025-02-03 18:34:20] Production.INFO: ProcessCDR(1,14394883,1,1,2) [2025-02-03 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394883', 'tblTempUsageDetail_20' ) start [2025-02-03 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394883', 'tblTempUsageDetail_20' ) end [2025-02-03 18:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:34:25] Production.INFO: ==28741== Releasing lock... [2025-02-03 18:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:34:25] Production.INFO: 56.25 MB #Memory Used# [2025-02-03 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:35:05 [end_date_ymd] => 2025-02-03 18:35:05 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:35:05' and `end` < '2025-02-03 18: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-02-03 18:35:24] Production.INFO: count ==3615 [2025-02-03 18:35:26] Production.ERROR: pbx CDR StartTime 2025-02-03 15:35:05 - End Time 2025-02-03 18:35:05 [2025-02-03 18:35:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394888', 'tblTempUsageDetail_20' ) start [2025-02-03 18:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394888', 'tblTempUsageDetail_20' ) end [2025-02-03 18:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394888', 'tblTempVendorCDR_20' ) start [2025-02-03 18:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394888', 'tblTempVendorCDR_20' ) end [2025-02-03 18:35:26] Production.INFO: ProcessCDR(1,14394888,1,1,2) [2025-02-03 18:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394888', 'tblTempUsageDetail_20' ) start [2025-02-03 18:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394888', 'tblTempUsageDetail_20' ) end [2025-02-03 18:35:30] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:35:31] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:35:31] Production.INFO: ==28852== Releasing lock... [2025-02-03 18:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:35:31] Production.INFO: 56.75 MB #Memory Used# [2025-02-03 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:36:05 [end_date_ymd] => 2025-02-03 18:36:05 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:36:05' and `end` < '2025-02-03 18: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-02-03 18:36:18] Production.INFO: count ==3604 [2025-02-03 18:36:19] Production.ERROR: pbx CDR StartTime 2025-02-03 15:36:05 - End Time 2025-02-03 18:36:05 [2025-02-03 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394893', 'tblTempUsageDetail_20' ) start [2025-02-03 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394893', 'tblTempUsageDetail_20' ) end [2025-02-03 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394893', 'tblTempVendorCDR_20' ) start [2025-02-03 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394893', 'tblTempVendorCDR_20' ) end [2025-02-03 18:36:19] Production.INFO: ProcessCDR(1,14394893,1,1,2) [2025-02-03 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394893', 'tblTempUsageDetail_20' ) start [2025-02-03 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394893', 'tblTempUsageDetail_20' ) end [2025-02-03 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:36:24] Production.INFO: ==28926== Releasing lock... [2025-02-03 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:36:24] Production.INFO: 56 MB #Memory Used# [2025-02-03 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:37:05 [end_date_ymd] => 2025-02-03 18:37:05 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:37:05' and `end` < '2025-02-03 18: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-02-03 18:37:19] Production.INFO: count ==3597 [2025-02-03 18:37:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:37:05 - End Time 2025-02-03 18:37:05 [2025-02-03 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394898', 'tblTempUsageDetail_20' ) start [2025-02-03 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394898', 'tblTempUsageDetail_20' ) end [2025-02-03 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394898', 'tblTempVendorCDR_20' ) start [2025-02-03 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394898', 'tblTempVendorCDR_20' ) end [2025-02-03 18:37:20] Production.INFO: ProcessCDR(1,14394898,1,1,2) [2025-02-03 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394898', 'tblTempUsageDetail_20' ) start [2025-02-03 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394898', 'tblTempUsageDetail_20' ) end [2025-02-03 18:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:37:25] Production.INFO: ==29008== Releasing lock... [2025-02-03 18:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:37:25] Production.INFO: 55 MB #Memory Used# [2025-02-03 18:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:38:06 [end_date_ymd] => 2025-02-03 18:38:06 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:38:06' and `end` < '2025-02-03 18: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-02-03 18:38:19] Production.INFO: count ==3585 [2025-02-03 18:38:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:38:06 - End Time 2025-02-03 18:38:06 [2025-02-03 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394903', 'tblTempUsageDetail_20' ) start [2025-02-03 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394903', 'tblTempUsageDetail_20' ) end [2025-02-03 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394903', 'tblTempVendorCDR_20' ) start [2025-02-03 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394903', 'tblTempVendorCDR_20' ) end [2025-02-03 18:38:20] Production.INFO: ProcessCDR(1,14394903,1,1,2) [2025-02-03 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394903', 'tblTempUsageDetail_20' ) start [2025-02-03 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394903', 'tblTempUsageDetail_20' ) end [2025-02-03 18:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:38:25] Production.INFO: ==29082== Releasing lock... [2025-02-03 18:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:38:25] Production.INFO: 55 MB #Memory Used# [2025-02-03 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:39:05 [end_date_ymd] => 2025-02-03 18:39:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:39:05' and `end` < '2025-02-03 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-02-03 18:39:18] Production.INFO: count ==3568 [2025-02-03 18:39:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:39:05 - End Time 2025-02-03 18:39:05 [2025-02-03 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394908', 'tblTempUsageDetail_20' ) start [2025-02-03 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394908', 'tblTempUsageDetail_20' ) end [2025-02-03 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394908', 'tblTempVendorCDR_20' ) start [2025-02-03 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394908', 'tblTempVendorCDR_20' ) end [2025-02-03 18:39:20] Production.INFO: ProcessCDR(1,14394908,1,1,2) [2025-02-03 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394908', 'tblTempUsageDetail_20' ) start [2025-02-03 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394908', 'tblTempUsageDetail_20' ) end [2025-02-03 18:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:39:24] Production.INFO: ==29157== Releasing lock... [2025-02-03 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:39:24] Production.INFO: 55.75 MB #Memory Used# [2025-02-03 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:40:06 [end_date_ymd] => 2025-02-03 18:40:06 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:40:06' and `end` < '2025-02-03 18: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-02-03 18:40:19] Production.INFO: count ==3537 [2025-02-03 18:40:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:40:06 - End Time 2025-02-03 18:40:06 [2025-02-03 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394913', 'tblTempUsageDetail_20' ) start [2025-02-03 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394913', 'tblTempUsageDetail_20' ) end [2025-02-03 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394913', 'tblTempVendorCDR_20' ) start [2025-02-03 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394913', 'tblTempVendorCDR_20' ) end [2025-02-03 18:40:20] Production.INFO: ProcessCDR(1,14394913,1,1,2) [2025-02-03 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394913', 'tblTempUsageDetail_20' ) start [2025-02-03 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394913', 'tblTempUsageDetail_20' ) end [2025-02-03 18:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:40:25] Production.INFO: ==29233== Releasing lock... [2025-02-03 18:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:40:25] Production.INFO: 55 MB #Memory Used# [2025-02-03 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:41:05 [end_date_ymd] => 2025-02-03 18:41:05 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:41:05' and `end` < '2025-02-03 18: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-02-03 18:41:18] Production.INFO: count ==3417 [2025-02-03 18:41:19] Production.ERROR: pbx CDR StartTime 2025-02-03 15:41:05 - End Time 2025-02-03 18:41:05 [2025-02-03 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394919', 'tblTempUsageDetail_20' ) start [2025-02-03 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394919', 'tblTempUsageDetail_20' ) end [2025-02-03 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394919', 'tblTempVendorCDR_20' ) start [2025-02-03 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394919', 'tblTempVendorCDR_20' ) end [2025-02-03 18:41:19] Production.INFO: ProcessCDR(1,14394919,1,1,2) [2025-02-03 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394919', 'tblTempUsageDetail_20' ) start [2025-02-03 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394919', 'tblTempUsageDetail_20' ) end [2025-02-03 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:41:23] Production.INFO: ==29310== Releasing lock... [2025-02-03 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:41:23] Production.INFO: 53.75 MB #Memory Used# [2025-02-03 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:42:06 [end_date_ymd] => 2025-02-03 18:42:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:42:06' and `end` < '2025-02-03 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-02-03 18:42:19] Production.INFO: count ==3389 [2025-02-03 18:42:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:42:06 - End Time 2025-02-03 18:42:06 [2025-02-03 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394924', 'tblTempUsageDetail_20' ) start [2025-02-03 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394924', 'tblTempUsageDetail_20' ) end [2025-02-03 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394924', 'tblTempVendorCDR_20' ) start [2025-02-03 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394924', 'tblTempVendorCDR_20' ) end [2025-02-03 18:42:21] Production.INFO: ProcessCDR(1,14394924,1,1,2) [2025-02-03 18:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394924', 'tblTempUsageDetail_20' ) start [2025-02-03 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394924', 'tblTempUsageDetail_20' ) end [2025-02-03 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:42:24] Production.INFO: ==29383== Releasing lock... [2025-02-03 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:42:24] Production.INFO: 53.5 MB #Memory Used# [2025-02-03 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:43:05 [end_date_ymd] => 2025-02-03 18:43:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:43:05' and `end` < '2025-02-03 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-02-03 18:43:19] Production.INFO: count ==3372 [2025-02-03 18:43:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:43:05 - End Time 2025-02-03 18:43:05 [2025-02-03 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394929', 'tblTempUsageDetail_20' ) start [2025-02-03 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394929', 'tblTempUsageDetail_20' ) end [2025-02-03 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394929', 'tblTempVendorCDR_20' ) start [2025-02-03 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394929', 'tblTempVendorCDR_20' ) end [2025-02-03 18:43:20] Production.INFO: ProcessCDR(1,14394929,1,1,2) [2025-02-03 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394929', 'tblTempUsageDetail_20' ) start [2025-02-03 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394929', 'tblTempUsageDetail_20' ) end [2025-02-03 18:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:43:24] Production.INFO: ==29455== Releasing lock... [2025-02-03 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:43:24] Production.INFO: 53.75 MB #Memory Used# [2025-02-03 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:44:06 [end_date_ymd] => 2025-02-03 18:44:06 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:44:06' and `end` < '2025-02-03 18: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-02-03 18:44:19] Production.INFO: count ==3361 [2025-02-03 18:44:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:44:06 - End Time 2025-02-03 18:44:06 [2025-02-03 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394934', 'tblTempUsageDetail_20' ) start [2025-02-03 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394934', 'tblTempUsageDetail_20' ) end [2025-02-03 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394934', 'tblTempVendorCDR_20' ) start [2025-02-03 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394934', 'tblTempVendorCDR_20' ) end [2025-02-03 18:44:20] Production.INFO: ProcessCDR(1,14394934,1,1,2) [2025-02-03 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394934', 'tblTempUsageDetail_20' ) start [2025-02-03 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394934', 'tblTempUsageDetail_20' ) end [2025-02-03 18:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:44:25] Production.INFO: ==29528== Releasing lock... [2025-02-03 18:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:44:25] Production.INFO: 53.25 MB #Memory Used# [2025-02-03 18:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:45:04 [end_date_ymd] => 2025-02-03 18:45:04 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:45:04' and `end` < '2025-02-03 18: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-02-03 18:45:18] Production.INFO: count ==3355 [2025-02-03 18:45:19] Production.ERROR: pbx CDR StartTime 2025-02-03 15:45:04 - End Time 2025-02-03 18:45:04 [2025-02-03 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394939', 'tblTempUsageDetail_20' ) start [2025-02-03 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394939', 'tblTempUsageDetail_20' ) end [2025-02-03 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394939', 'tblTempVendorCDR_20' ) start [2025-02-03 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394939', 'tblTempVendorCDR_20' ) end [2025-02-03 18:45:19] Production.INFO: ProcessCDR(1,14394939,1,1,2) [2025-02-03 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394939', 'tblTempUsageDetail_20' ) start [2025-02-03 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394939', 'tblTempUsageDetail_20' ) end [2025-02-03 18:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:45:22] Production.INFO: ==29600== Releasing lock... [2025-02-03 18:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:45:22] Production.INFO: 53.25 MB #Memory Used# [2025-02-03 18:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:46:05 [end_date_ymd] => 2025-02-03 18:46:05 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:46:05' and `end` < '2025-02-03 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-02-03 18:46:19] Production.INFO: count ==3345 [2025-02-03 18:46:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:46:05 - End Time 2025-02-03 18:46:05 [2025-02-03 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394944', 'tblTempUsageDetail_20' ) start [2025-02-03 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394944', 'tblTempUsageDetail_20' ) end [2025-02-03 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394944', 'tblTempVendorCDR_20' ) start [2025-02-03 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394944', 'tblTempVendorCDR_20' ) end [2025-02-03 18:46:20] Production.INFO: ProcessCDR(1,14394944,1,1,2) [2025-02-03 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394944', 'tblTempUsageDetail_20' ) start [2025-02-03 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394944', 'tblTempUsageDetail_20' ) end [2025-02-03 18:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:46:25] Production.INFO: ==29680== Releasing lock... [2025-02-03 18:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:46:25] Production.INFO: 53 MB #Memory Used# [2025-02-03 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:47:05 [end_date_ymd] => 2025-02-03 18:47:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:47:05' and `end` < '2025-02-03 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-02-03 18:47:18] Production.INFO: count ==3322 [2025-02-03 18:47:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:47:05 - End Time 2025-02-03 18:47:05 [2025-02-03 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394949', 'tblTempUsageDetail_20' ) start [2025-02-03 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394949', 'tblTempUsageDetail_20' ) end [2025-02-03 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394949', 'tblTempVendorCDR_20' ) start [2025-02-03 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394949', 'tblTempVendorCDR_20' ) end [2025-02-03 18:47:20] Production.INFO: ProcessCDR(1,14394949,1,1,2) [2025-02-03 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394949', 'tblTempUsageDetail_20' ) start [2025-02-03 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394949', 'tblTempUsageDetail_20' ) end [2025-02-03 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:47:24] Production.INFO: ==29751== Releasing lock... [2025-02-03 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:47:24] Production.INFO: 53.25 MB #Memory Used# [2025-02-03 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:48:05 [end_date_ymd] => 2025-02-03 18:48:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:48:05' and `end` < '2025-02-03 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-02-03 18:48:19] Production.INFO: count ==3305 [2025-02-03 18:48:21] Production.ERROR: pbx CDR StartTime 2025-02-03 15:48:05 - End Time 2025-02-03 18:48:05 [2025-02-03 18:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394954', 'tblTempUsageDetail_20' ) start [2025-02-03 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394954', 'tblTempUsageDetail_20' ) end [2025-02-03 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394954', 'tblTempVendorCDR_20' ) start [2025-02-03 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394954', 'tblTempVendorCDR_20' ) end [2025-02-03 18:48:21] Production.INFO: ProcessCDR(1,14394954,1,1,2) [2025-02-03 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394954', 'tblTempUsageDetail_20' ) start [2025-02-03 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394954', 'tblTempUsageDetail_20' ) end [2025-02-03 18:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:48:26] Production.INFO: ==29822== Releasing lock... [2025-02-03 18:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:48:26] Production.INFO: 52.75 MB #Memory Used# [2025-02-03 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:49:05 [end_date_ymd] => 2025-02-03 18:49:05 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:49:05' and `end` < '2025-02-03 18: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-02-03 18:49:18] Production.INFO: count ==3298 [2025-02-03 18:49:19] Production.ERROR: pbx CDR StartTime 2025-02-03 15:49:05 - End Time 2025-02-03 18:49:05 [2025-02-03 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394959', 'tblTempUsageDetail_20' ) start [2025-02-03 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394959', 'tblTempUsageDetail_20' ) end [2025-02-03 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394959', 'tblTempVendorCDR_20' ) start [2025-02-03 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394959', 'tblTempVendorCDR_20' ) end [2025-02-03 18:49:19] Production.INFO: ProcessCDR(1,14394959,1,1,2) [2025-02-03 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394959', 'tblTempUsageDetail_20' ) start [2025-02-03 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394959', 'tblTempUsageDetail_20' ) end [2025-02-03 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:49:24] Production.INFO: ==29892== Releasing lock... [2025-02-03 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:49:24] Production.INFO: 52.5 MB #Memory Used# [2025-02-03 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:50:06 [end_date_ymd] => 2025-02-03 18:50:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:50:06' and `end` < '2025-02-03 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-02-03 18:50:19] Production.INFO: count ==3280 [2025-02-03 18:50:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:50:06 - End Time 2025-02-03 18:50:06 [2025-02-03 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394964', 'tblTempUsageDetail_20' ) start [2025-02-03 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394964', 'tblTempUsageDetail_20' ) end [2025-02-03 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394964', 'tblTempVendorCDR_20' ) start [2025-02-03 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394964', 'tblTempVendorCDR_20' ) end [2025-02-03 18:50:20] Production.INFO: ProcessCDR(1,14394964,1,1,2) [2025-02-03 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394964', 'tblTempUsageDetail_20' ) start [2025-02-03 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394964', 'tblTempUsageDetail_20' ) end [2025-02-03 18:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:50:25] Production.INFO: ==29965== Releasing lock... [2025-02-03 18:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:50:25] Production.INFO: 52.75 MB #Memory Used# [2025-02-03 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:51:05 [end_date_ymd] => 2025-02-03 18:51:05 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:51:05' and `end` < '2025-02-03 18: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-02-03 18:51:18] Production.INFO: count ==3234 [2025-02-03 18:51:19] Production.ERROR: pbx CDR StartTime 2025-02-03 15:51:05 - End Time 2025-02-03 18:51:05 [2025-02-03 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394970', 'tblTempUsageDetail_20' ) start [2025-02-03 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394970', 'tblTempUsageDetail_20' ) end [2025-02-03 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394970', 'tblTempVendorCDR_20' ) start [2025-02-03 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394970', 'tblTempVendorCDR_20' ) end [2025-02-03 18:51:19] Production.INFO: ProcessCDR(1,14394970,1,1,2) [2025-02-03 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394970', 'tblTempUsageDetail_20' ) start [2025-02-03 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394970', 'tblTempUsageDetail_20' ) end [2025-02-03 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:51:24] Production.INFO: ==30078== Releasing lock... [2025-02-03 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:51:24] Production.INFO: 52.25 MB #Memory Used# [2025-02-03 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:52:05 [end_date_ymd] => 2025-02-03 18:52:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:52:05' and `end` < '2025-02-03 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-02-03 18:52:18] Production.INFO: count ==3228 [2025-02-03 18:52:19] Production.ERROR: pbx CDR StartTime 2025-02-03 15:52:05 - End Time 2025-02-03 18:52:05 [2025-02-03 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394975', 'tblTempUsageDetail_20' ) start [2025-02-03 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394975', 'tblTempUsageDetail_20' ) end [2025-02-03 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394975', 'tblTempVendorCDR_20' ) start [2025-02-03 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394975', 'tblTempVendorCDR_20' ) end [2025-02-03 18:52:19] Production.INFO: ProcessCDR(1,14394975,1,1,2) [2025-02-03 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394975', 'tblTempUsageDetail_20' ) start [2025-02-03 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394975', 'tblTempUsageDetail_20' ) end [2025-02-03 18:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:52:22] Production.INFO: ==30158== Releasing lock... [2025-02-03 18:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:52:22] Production.INFO: 52.25 MB #Memory Used# [2025-02-03 18:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:53:06 [end_date_ymd] => 2025-02-03 18:53:06 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:53:06' and `end` < '2025-02-03 18: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-02-03 18:53:19] Production.INFO: count ==3217 [2025-02-03 18:53:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:53:06 - End Time 2025-02-03 18:53:06 [2025-02-03 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394980', 'tblTempUsageDetail_20' ) start [2025-02-03 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394980', 'tblTempUsageDetail_20' ) end [2025-02-03 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394980', 'tblTempVendorCDR_20' ) start [2025-02-03 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394980', 'tblTempVendorCDR_20' ) end [2025-02-03 18:53:20] Production.INFO: ProcessCDR(1,14394980,1,1,2) [2025-02-03 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394980', 'tblTempUsageDetail_20' ) start [2025-02-03 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394980', 'tblTempUsageDetail_20' ) end [2025-02-03 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:53:24] Production.INFO: ==30232== Releasing lock... [2025-02-03 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:53:24] Production.INFO: 53 MB #Memory Used# [2025-02-03 18:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:54:04 [end_date_ymd] => 2025-02-03 18:54:04 [RateCDR] => 1 ) [2025-02-03 18:54: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-02-03 15:54:04' and `end` < '2025-02-03 18:54: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-02-03 18:54:19] Production.INFO: count ==3199 [2025-02-03 18:54:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:54:04 - End Time 2025-02-03 18:54:04 [2025-02-03 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394985', 'tblTempUsageDetail_20' ) start [2025-02-03 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394985', 'tblTempUsageDetail_20' ) end [2025-02-03 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394985', 'tblTempVendorCDR_20' ) start [2025-02-03 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394985', 'tblTempVendorCDR_20' ) end [2025-02-03 18:54:20] Production.INFO: ProcessCDR(1,14394985,1,1,2) [2025-02-03 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394985', 'tblTempUsageDetail_20' ) start [2025-02-03 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394985', 'tblTempUsageDetail_20' ) end [2025-02-03 18:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:54:24] Production.INFO: ==30308== Releasing lock... [2025-02-03 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:54:24] Production.INFO: 52 MB #Memory Used# [2025-02-03 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:55:05 [end_date_ymd] => 2025-02-03 18:55:05 [RateCDR] => 1 ) [2025-02-03 18: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-02-03 15:55:05' and `end` < '2025-02-03 18: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-02-03 18:55:18] Production.INFO: count ==3192 [2025-02-03 18:55:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:55:05 - End Time 2025-02-03 18:55:05 [2025-02-03 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394990', 'tblTempUsageDetail_20' ) start [2025-02-03 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394990', 'tblTempUsageDetail_20' ) end [2025-02-03 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394990', 'tblTempVendorCDR_20' ) start [2025-02-03 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394990', 'tblTempVendorCDR_20' ) end [2025-02-03 18:55:20] Production.INFO: ProcessCDR(1,14394990,1,1,2) [2025-02-03 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394990', 'tblTempUsageDetail_20' ) start [2025-02-03 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394990', 'tblTempUsageDetail_20' ) end [2025-02-03 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:55:24] Production.INFO: ==30384== Releasing lock... [2025-02-03 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:55:24] Production.INFO: 51.75 MB #Memory Used# [2025-02-03 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:56:05 [end_date_ymd] => 2025-02-03 18:56:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:56:05' and `end` < '2025-02-03 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-02-03 18:56:19] Production.INFO: count ==3190 [2025-02-03 18:56:20] Production.ERROR: pbx CDR StartTime 2025-02-03 15:56:05 - End Time 2025-02-03 18:56:05 [2025-02-03 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394995', 'tblTempUsageDetail_20' ) start [2025-02-03 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14394995', 'tblTempUsageDetail_20' ) end [2025-02-03 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394995', 'tblTempVendorCDR_20' ) start [2025-02-03 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14394995', 'tblTempVendorCDR_20' ) end [2025-02-03 18:56:20] Production.INFO: ProcessCDR(1,14394995,1,1,2) [2025-02-03 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14394995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14394995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14394995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14394995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394995', 'tblTempUsageDetail_20' ) start [2025-02-03 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14394995', 'tblTempUsageDetail_20' ) end [2025-02-03 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:56:24] Production.INFO: ==30460== Releasing lock... [2025-02-03 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:56:24] Production.INFO: 51.75 MB #Memory Used# [2025-02-03 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:57:05 [end_date_ymd] => 2025-02-03 18:57:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:57:05' and `end` < '2025-02-03 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-02-03 18:57:18] Production.INFO: count ==3171 [2025-02-03 18:57:19] Production.ERROR: pbx CDR StartTime 2025-02-03 15:57:05 - End Time 2025-02-03 18:57:05 [2025-02-03 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395000', 'tblTempUsageDetail_20' ) start [2025-02-03 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395000', 'tblTempUsageDetail_20' ) end [2025-02-03 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395000', 'tblTempVendorCDR_20' ) start [2025-02-03 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395000', 'tblTempVendorCDR_20' ) end [2025-02-03 18:57:19] Production.INFO: ProcessCDR(1,14395000,1,1,2) [2025-02-03 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395000', 'tblTempUsageDetail_20' ) start [2025-02-03 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395000', 'tblTempUsageDetail_20' ) end [2025-02-03 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:57:24] Production.INFO: ==30535== Releasing lock... [2025-02-03 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:57:24] Production.INFO: 51.75 MB #Memory Used# [2025-02-03 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:58:05 [end_date_ymd] => 2025-02-03 18:58:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:58:05' and `end` < '2025-02-03 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-02-03 18:58:18] Production.INFO: count ==3158 [2025-02-03 18:58:19] Production.ERROR: pbx CDR StartTime 2025-02-03 15:58:05 - End Time 2025-02-03 18:58:05 [2025-02-03 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395005', 'tblTempUsageDetail_20' ) start [2025-02-03 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395005', 'tblTempUsageDetail_20' ) end [2025-02-03 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395005', 'tblTempVendorCDR_20' ) start [2025-02-03 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395005', 'tblTempVendorCDR_20' ) end [2025-02-03 18:58:19] Production.INFO: ProcessCDR(1,14395005,1,1,2) [2025-02-03 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395005', 'tblTempUsageDetail_20' ) start [2025-02-03 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395005', 'tblTempUsageDetail_20' ) end [2025-02-03 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:58:24] Production.INFO: ==30609== Releasing lock... [2025-02-03 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:58:24] Production.INFO: 51.5 MB #Memory Used# [2025-02-03 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 15:59:05 [end_date_ymd] => 2025-02-03 18:59:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 15:59:05' and `end` < '2025-02-03 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-02-03 18:59:18] Production.INFO: count ==3132 [2025-02-03 18:59:19] Production.ERROR: pbx CDR StartTime 2025-02-03 15:59:05 - End Time 2025-02-03 18:59:05 [2025-02-03 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395010', 'tblTempUsageDetail_20' ) start [2025-02-03 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395010', 'tblTempUsageDetail_20' ) end [2025-02-03 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395010', 'tblTempVendorCDR_20' ) start [2025-02-03 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395010', 'tblTempVendorCDR_20' ) end [2025-02-03 18:59:19] Production.INFO: ProcessCDR(1,14395010,1,1,2) [2025-02-03 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 18:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395010', 'tblTempUsageDetail_20' ) start [2025-02-03 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395010', 'tblTempUsageDetail_20' ) end [2025-02-03 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 18:59:23] Production.INFO: ==30685== Releasing lock... [2025-02-03 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 18:59:23] Production.INFO: 51.5 MB #Memory Used# [2025-02-03 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:00:06 [end_date_ymd] => 2025-02-03 19:00:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:00:06' and `end` < '2025-02-03 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-02-03 19:00:20] Production.INFO: count ==3118 [2025-02-03 19:00:21] Production.ERROR: pbx CDR StartTime 2025-02-03 16:00:06 - End Time 2025-02-03 19:00:06 [2025-02-03 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395015', 'tblTempUsageDetail_20' ) start [2025-02-03 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395015', 'tblTempUsageDetail_20' ) end [2025-02-03 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395015', 'tblTempVendorCDR_20' ) start [2025-02-03 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395015', 'tblTempVendorCDR_20' ) end [2025-02-03 19:00:21] Production.INFO: ProcessCDR(1,14395015,1,1,2) [2025-02-03 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395015', 'tblTempUsageDetail_20' ) start [2025-02-03 19:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395015', 'tblTempUsageDetail_20' ) end [2025-02-03 19:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:00:26] Production.INFO: ==30766== Releasing lock... [2025-02-03 19:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:00:26] Production.INFO: 51.25 MB #Memory Used# [2025-02-03 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:01:05 [end_date_ymd] => 2025-02-03 19:01:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:01:05' and `end` < '2025-02-03 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-02-03 19:01:19] Production.INFO: count ==3054 [2025-02-03 19:01:20] Production.ERROR: pbx CDR StartTime 2025-02-03 16:01:05 - End Time 2025-02-03 19:01:05 [2025-02-03 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395021', 'tblTempUsageDetail_20' ) start [2025-02-03 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395021', 'tblTempUsageDetail_20' ) end [2025-02-03 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395021', 'tblTempVendorCDR_20' ) start [2025-02-03 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395021', 'tblTempVendorCDR_20' ) end [2025-02-03 19:01:20] Production.INFO: ProcessCDR(1,14395021,1,1,2) [2025-02-03 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395021', 'tblTempUsageDetail_20' ) start [2025-02-03 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395021', 'tblTempUsageDetail_20' ) end [2025-02-03 19:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:01:25] Production.INFO: ==30931== Releasing lock... [2025-02-03 19:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:01:25] Production.INFO: 51 MB #Memory Used# [2025-02-03 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:02:05 [end_date_ymd] => 2025-02-03 19:02:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:02:05' and `end` < '2025-02-03 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-02-03 19:02:18] Production.INFO: count ==3050 [2025-02-03 19:02:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:02:05 - End Time 2025-02-03 19:02:05 [2025-02-03 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395026', 'tblTempUsageDetail_20' ) start [2025-02-03 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395026', 'tblTempUsageDetail_20' ) end [2025-02-03 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395026', 'tblTempVendorCDR_20' ) start [2025-02-03 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395026', 'tblTempVendorCDR_20' ) end [2025-02-03 19:02:20] Production.INFO: ProcessCDR(1,14395026,1,1,2) [2025-02-03 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395026', 'tblTempUsageDetail_20' ) start [2025-02-03 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395026', 'tblTempUsageDetail_20' ) end [2025-02-03 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:02:24] Production.INFO: ==31005== Releasing lock... [2025-02-03 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:02:24] Production.INFO: 50.75 MB #Memory Used# [2025-02-03 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:03:05 [end_date_ymd] => 2025-02-03 19:03:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:03:05' and `end` < '2025-02-03 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-02-03 19:03:19] Production.INFO: count ==3039 [2025-02-03 19:03:20] Production.ERROR: pbx CDR StartTime 2025-02-03 16:03:05 - End Time 2025-02-03 19:03:05 [2025-02-03 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395031', 'tblTempUsageDetail_20' ) start [2025-02-03 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395031', 'tblTempUsageDetail_20' ) end [2025-02-03 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395031', 'tblTempVendorCDR_20' ) start [2025-02-03 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395031', 'tblTempVendorCDR_20' ) end [2025-02-03 19:03:21] Production.INFO: ProcessCDR(1,14395031,1,1,2) [2025-02-03 19:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395031', 'tblTempUsageDetail_20' ) start [2025-02-03 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395031', 'tblTempUsageDetail_20' ) end [2025-02-03 19:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:03:25] Production.INFO: ==31077== Releasing lock... [2025-02-03 19:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:03:25] Production.INFO: 50.75 MB #Memory Used# [2025-02-03 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:04:06 [end_date_ymd] => 2025-02-03 19:04:06 [RateCDR] => 1 ) [2025-02-03 19: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-02-03 16:04:06' and `end` < '2025-02-03 19: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-02-03 19:04:19] Production.INFO: count ==3036 [2025-02-03 19:04:20] Production.ERROR: pbx CDR StartTime 2025-02-03 16:04:06 - End Time 2025-02-03 19:04:06 [2025-02-03 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395036', 'tblTempUsageDetail_20' ) start [2025-02-03 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395036', 'tblTempUsageDetail_20' ) end [2025-02-03 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395036', 'tblTempVendorCDR_20' ) start [2025-02-03 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395036', 'tblTempVendorCDR_20' ) end [2025-02-03 19:04:21] Production.INFO: ProcessCDR(1,14395036,1,1,2) [2025-02-03 19:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395036', 'tblTempUsageDetail_20' ) start [2025-02-03 19:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395036', 'tblTempUsageDetail_20' ) end [2025-02-03 19:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:04:26] Production.INFO: ==31151== Releasing lock... [2025-02-03 19:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:04:26] Production.INFO: 50.75 MB #Memory Used# [2025-02-03 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:05:05 [end_date_ymd] => 2025-02-03 19:05:05 [RateCDR] => 1 ) [2025-02-03 19: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-02-03 16:05:05' and `end` < '2025-02-03 19: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-02-03 19:05:18] Production.INFO: count ==3036 [2025-02-03 19:05:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:05:05 - End Time 2025-02-03 19:05:05 [2025-02-03 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395041', 'tblTempUsageDetail_20' ) start [2025-02-03 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395041', 'tblTempUsageDetail_20' ) end [2025-02-03 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395041', 'tblTempVendorCDR_20' ) start [2025-02-03 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395041', 'tblTempVendorCDR_20' ) end [2025-02-03 19:05:19] Production.INFO: ProcessCDR(1,14395041,1,1,2) [2025-02-03 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395041', 'tblTempUsageDetail_20' ) start [2025-02-03 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395041', 'tblTempUsageDetail_20' ) end [2025-02-03 19:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:05:24] Production.INFO: ==31303== Releasing lock... [2025-02-03 19:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:05:24] Production.INFO: 50.75 MB #Memory Used# [2025-02-03 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:06:05 [end_date_ymd] => 2025-02-03 19:06:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:06:05' and `end` < '2025-02-03 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-02-03 19:06:19] Production.INFO: count ==3007 [2025-02-03 19:06:20] Production.ERROR: pbx CDR StartTime 2025-02-03 16:06:05 - End Time 2025-02-03 19:06:05 [2025-02-03 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395046', 'tblTempUsageDetail_20' ) start [2025-02-03 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395046', 'tblTempUsageDetail_20' ) end [2025-02-03 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395046', 'tblTempVendorCDR_20' ) start [2025-02-03 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395046', 'tblTempVendorCDR_20' ) end [2025-02-03 19:06:20] Production.INFO: ProcessCDR(1,14395046,1,1,2) [2025-02-03 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395046', 'tblTempUsageDetail_20' ) start [2025-02-03 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395046', 'tblTempUsageDetail_20' ) end [2025-02-03 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:06:24] Production.INFO: ==31433== Releasing lock... [2025-02-03 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:06:24] Production.INFO: 50.5 MB #Memory Used# [2025-02-03 19:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:07:04 [end_date_ymd] => 2025-02-03 19:07:04 [RateCDR] => 1 ) [2025-02-03 19: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-02-03 16:07:04' and `end` < '2025-02-03 19: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-02-03 19:07:18] Production.INFO: count ==3011 [2025-02-03 19:07:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:07:04 - End Time 2025-02-03 19:07:04 [2025-02-03 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395051', 'tblTempUsageDetail_20' ) start [2025-02-03 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395051', 'tblTempUsageDetail_20' ) end [2025-02-03 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395051', 'tblTempVendorCDR_20' ) start [2025-02-03 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395051', 'tblTempVendorCDR_20' ) end [2025-02-03 19:07:19] Production.INFO: ProcessCDR(1,14395051,1,1,2) [2025-02-03 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395051', 'tblTempUsageDetail_20' ) start [2025-02-03 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395051', 'tblTempUsageDetail_20' ) end [2025-02-03 19:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:07:24] Production.INFO: ==31508== Releasing lock... [2025-02-03 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:07:24] Production.INFO: 50.5 MB #Memory Used# [2025-02-03 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:08:05 [end_date_ymd] => 2025-02-03 19:08:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:08:05' and `end` < '2025-02-03 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-02-03 19:08:19] Production.INFO: count ==3005 [2025-02-03 19:08:20] Production.ERROR: pbx CDR StartTime 2025-02-03 16:08:05 - End Time 2025-02-03 19:08:05 [2025-02-03 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395056', 'tblTempUsageDetail_20' ) start [2025-02-03 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395056', 'tblTempUsageDetail_20' ) end [2025-02-03 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395056', 'tblTempVendorCDR_20' ) start [2025-02-03 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395056', 'tblTempVendorCDR_20' ) end [2025-02-03 19:08:20] Production.INFO: ProcessCDR(1,14395056,1,1,2) [2025-02-03 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395056', 'tblTempUsageDetail_20' ) start [2025-02-03 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395056', 'tblTempUsageDetail_20' ) end [2025-02-03 19:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:08:25] Production.INFO: ==31661== Releasing lock... [2025-02-03 19:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:08:25] Production.INFO: 50.5 MB #Memory Used# [2025-02-03 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:09:05 [end_date_ymd] => 2025-02-03 19:09:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:09:05' and `end` < '2025-02-03 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-02-03 19:09:18] Production.INFO: count ==3006 [2025-02-03 19:09:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:09:05 - End Time 2025-02-03 19:09:05 [2025-02-03 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395061', 'tblTempUsageDetail_20' ) start [2025-02-03 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395061', 'tblTempUsageDetail_20' ) end [2025-02-03 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395061', 'tblTempVendorCDR_20' ) start [2025-02-03 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395061', 'tblTempVendorCDR_20' ) end [2025-02-03 19:09:19] Production.INFO: ProcessCDR(1,14395061,1,1,2) [2025-02-03 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395061', 'tblTempUsageDetail_20' ) start [2025-02-03 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395061', 'tblTempUsageDetail_20' ) end [2025-02-03 19:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:09:24] Production.INFO: ==31734== Releasing lock... [2025-02-03 19:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:09:24] Production.INFO: 50.75 MB #Memory Used# [2025-02-03 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:10:06 [end_date_ymd] => 2025-02-03 19:10:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:10:06' and `end` < '2025-02-03 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-02-03 19:10:23] Production.INFO: count ==3000 [2025-02-03 19:10:24] Production.ERROR: pbx CDR StartTime 2025-02-03 16:10:06 - End Time 2025-02-03 19:10:06 [2025-02-03 19:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395066', 'tblTempUsageDetail_20' ) start [2025-02-03 19:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395066', 'tblTempUsageDetail_20' ) end [2025-02-03 19:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395066', 'tblTempVendorCDR_20' ) start [2025-02-03 19:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395066', 'tblTempVendorCDR_20' ) end [2025-02-03 19:10:24] Production.INFO: ProcessCDR(1,14395066,1,1,2) [2025-02-03 19:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395066', 'tblTempUsageDetail_20' ) start [2025-02-03 19:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395066', 'tblTempUsageDetail_20' ) end [2025-02-03 19:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:10:27] Production.INFO: ==31810== Releasing lock... [2025-02-03 19:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:10:27] Production.INFO: 50.75 MB #Memory Used# [2025-02-03 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:11:05 [end_date_ymd] => 2025-02-03 19:11:05 [RateCDR] => 1 ) [2025-02-03 19: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-02-03 16:11:05' and `end` < '2025-02-03 19: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-02-03 19:11:18] Production.INFO: count ==2904 [2025-02-03 19:11:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:11:05 - End Time 2025-02-03 19:11:05 [2025-02-03 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395072', 'tblTempUsageDetail_20' ) start [2025-02-03 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395072', 'tblTempUsageDetail_20' ) end [2025-02-03 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395072', 'tblTempVendorCDR_20' ) start [2025-02-03 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395072', 'tblTempVendorCDR_20' ) end [2025-02-03 19:11:19] Production.INFO: ProcessCDR(1,14395072,1,1,2) [2025-02-03 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395072', 'tblTempUsageDetail_20' ) start [2025-02-03 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395072', 'tblTempUsageDetail_20' ) end [2025-02-03 19:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:11:22] Production.INFO: ==31935== Releasing lock... [2025-02-03 19:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:11:22] Production.INFO: 49.75 MB #Memory Used# [2025-02-03 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:12:05 [end_date_ymd] => 2025-02-03 19:12:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:12:05' and `end` < '2025-02-03 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-02-03 19:12:18] Production.INFO: count ==2883 [2025-02-03 19:12:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:12:05 - End Time 2025-02-03 19:12:05 [2025-02-03 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395077', 'tblTempUsageDetail_20' ) start [2025-02-03 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395077', 'tblTempUsageDetail_20' ) end [2025-02-03 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395077', 'tblTempVendorCDR_20' ) start [2025-02-03 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395077', 'tblTempVendorCDR_20' ) end [2025-02-03 19:12:19] Production.INFO: ProcessCDR(1,14395077,1,1,2) [2025-02-03 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395077', 'tblTempUsageDetail_20' ) start [2025-02-03 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395077', 'tblTempUsageDetail_20' ) end [2025-02-03 19:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:12:23] Production.INFO: ==32133== Releasing lock... [2025-02-03 19:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:12:23] Production.INFO: 49.75 MB #Memory Used# [2025-02-03 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:13:05 [end_date_ymd] => 2025-02-03 19:13:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:13:05' and `end` < '2025-02-03 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-02-03 19:13:18] Production.INFO: count ==2873 [2025-02-03 19:13:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:13:05 - End Time 2025-02-03 19:13:05 [2025-02-03 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395082', 'tblTempUsageDetail_20' ) start [2025-02-03 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395082', 'tblTempUsageDetail_20' ) end [2025-02-03 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395082', 'tblTempVendorCDR_20' ) start [2025-02-03 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395082', 'tblTempVendorCDR_20' ) end [2025-02-03 19:13:19] Production.INFO: ProcessCDR(1,14395082,1,1,2) [2025-02-03 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395082', 'tblTempUsageDetail_20' ) start [2025-02-03 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395082', 'tblTempUsageDetail_20' ) end [2025-02-03 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:13:24] Production.INFO: ==32218== Releasing lock... [2025-02-03 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:13:24] Production.INFO: 49.75 MB #Memory Used# [2025-02-03 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:14:05 [end_date_ymd] => 2025-02-03 19:14:05 [RateCDR] => 1 ) [2025-02-03 19: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-02-03 16:14:05' and `end` < '2025-02-03 19: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-02-03 19:14:19] Production.INFO: count ==2855 [2025-02-03 19:14:20] Production.ERROR: pbx CDR StartTime 2025-02-03 16:14:05 - End Time 2025-02-03 19:14:05 [2025-02-03 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395087', 'tblTempUsageDetail_20' ) start [2025-02-03 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395087', 'tblTempUsageDetail_20' ) end [2025-02-03 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395087', 'tblTempVendorCDR_20' ) start [2025-02-03 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395087', 'tblTempVendorCDR_20' ) end [2025-02-03 19:14:20] Production.INFO: ProcessCDR(1,14395087,1,1,2) [2025-02-03 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395087', 'tblTempUsageDetail_20' ) start [2025-02-03 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395087', 'tblTempUsageDetail_20' ) end [2025-02-03 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:14:24] Production.INFO: ==32303== Releasing lock... [2025-02-03 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:14:24] Production.INFO: 49.5 MB #Memory Used# [2025-02-03 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:15:05 [end_date_ymd] => 2025-02-03 19:15:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:15:05' and `end` < '2025-02-03 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-02-03 19:15:19] Production.INFO: count ==2825 [2025-02-03 19:15:20] Production.ERROR: pbx CDR StartTime 2025-02-03 16:15:05 - End Time 2025-02-03 19:15:05 [2025-02-03 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395092', 'tblTempUsageDetail_20' ) start [2025-02-03 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395092', 'tblTempUsageDetail_20' ) end [2025-02-03 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395092', 'tblTempVendorCDR_20' ) start [2025-02-03 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395092', 'tblTempVendorCDR_20' ) end [2025-02-03 19:15:20] Production.INFO: ProcessCDR(1,14395092,1,1,2) [2025-02-03 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395092', 'tblTempUsageDetail_20' ) start [2025-02-03 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395092', 'tblTempUsageDetail_20' ) end [2025-02-03 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:15:23] Production.INFO: ==32469== Releasing lock... [2025-02-03 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:15:23] Production.INFO: 49.25 MB #Memory Used# [2025-02-03 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:16:05 [end_date_ymd] => 2025-02-03 19:16:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:16:05' and `end` < '2025-02-03 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-02-03 19:16:19] Production.INFO: count ==2818 [2025-02-03 19:16:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:16:05 - End Time 2025-02-03 19:16:05 [2025-02-03 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395097', 'tblTempUsageDetail_20' ) start [2025-02-03 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395097', 'tblTempUsageDetail_20' ) end [2025-02-03 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395097', 'tblTempVendorCDR_20' ) start [2025-02-03 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395097', 'tblTempVendorCDR_20' ) end [2025-02-03 19:16:19] Production.INFO: ProcessCDR(1,14395097,1,1,2) [2025-02-03 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395097', 'tblTempUsageDetail_20' ) start [2025-02-03 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395097', 'tblTempUsageDetail_20' ) end [2025-02-03 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:16:24] Production.INFO: ==32549== Releasing lock... [2025-02-03 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:16:24] Production.INFO: 49.5 MB #Memory Used# [2025-02-03 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:17:05 [end_date_ymd] => 2025-02-03 19:17:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:17:05' and `end` < '2025-02-03 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-02-03 19:17:19] Production.INFO: count ==2790 [2025-02-03 19:17:20] Production.ERROR: pbx CDR StartTime 2025-02-03 16:17:05 - End Time 2025-02-03 19:17:05 [2025-02-03 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395102', 'tblTempUsageDetail_20' ) start [2025-02-03 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395102', 'tblTempUsageDetail_20' ) end [2025-02-03 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395102', 'tblTempVendorCDR_20' ) start [2025-02-03 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395102', 'tblTempVendorCDR_20' ) end [2025-02-03 19:17:20] Production.INFO: ProcessCDR(1,14395102,1,1,2) [2025-02-03 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395102', 'tblTempUsageDetail_20' ) start [2025-02-03 19:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395102', 'tblTempUsageDetail_20' ) end [2025-02-03 19:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:17:25] Production.INFO: ==32633== Releasing lock... [2025-02-03 19:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:17:25] Production.INFO: 49 MB #Memory Used# [2025-02-03 19:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:18:04 [end_date_ymd] => 2025-02-03 19:18:04 [RateCDR] => 1 ) [2025-02-03 19: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-02-03 16:18:04' and `end` < '2025-02-03 19: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-02-03 19:18:18] Production.INFO: count ==2782 [2025-02-03 19:18:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:18:04 - End Time 2025-02-03 19:18:04 [2025-02-03 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395107', 'tblTempUsageDetail_20' ) start [2025-02-03 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395107', 'tblTempUsageDetail_20' ) end [2025-02-03 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395107', 'tblTempVendorCDR_20' ) start [2025-02-03 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395107', 'tblTempVendorCDR_20' ) end [2025-02-03 19:18:19] Production.INFO: ProcessCDR(1,14395107,1,1,2) [2025-02-03 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395107', 'tblTempUsageDetail_20' ) start [2025-02-03 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395107', 'tblTempUsageDetail_20' ) end [2025-02-03 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:18:23] Production.INFO: ==32711== Releasing lock... [2025-02-03 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:18:23] Production.INFO: 49 MB #Memory Used# [2025-02-03 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:19:05 [end_date_ymd] => 2025-02-03 19:19:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:19:05' and `end` < '2025-02-03 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-02-03 19:19:18] Production.INFO: count ==2754 [2025-02-03 19:19:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:19:05 - End Time 2025-02-03 19:19:05 [2025-02-03 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395112', 'tblTempUsageDetail_20' ) start [2025-02-03 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395112', 'tblTempUsageDetail_20' ) end [2025-02-03 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395112', 'tblTempVendorCDR_20' ) start [2025-02-03 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395112', 'tblTempVendorCDR_20' ) end [2025-02-03 19:19:19] Production.INFO: ProcessCDR(1,14395112,1,1,2) [2025-02-03 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395112', 'tblTempUsageDetail_20' ) start [2025-02-03 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395112', 'tblTempUsageDetail_20' ) end [2025-02-03 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:19:24] Production.INFO: ==336== Releasing lock... [2025-02-03 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:19:24] Production.INFO: 48.75 MB #Memory Used# [2025-02-03 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:20:06 [end_date_ymd] => 2025-02-03 19:20:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:20:06' and `end` < '2025-02-03 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-02-03 19:20:19] Production.INFO: count ==2731 [2025-02-03 19:20:20] Production.ERROR: pbx CDR StartTime 2025-02-03 16:20:06 - End Time 2025-02-03 19:20:06 [2025-02-03 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395117', 'tblTempUsageDetail_20' ) start [2025-02-03 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395117', 'tblTempUsageDetail_20' ) end [2025-02-03 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395117', 'tblTempVendorCDR_20' ) start [2025-02-03 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395117', 'tblTempVendorCDR_20' ) end [2025-02-03 19:20:20] Production.INFO: ProcessCDR(1,14395117,1,1,2) [2025-02-03 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395117', 'tblTempUsageDetail_20' ) start [2025-02-03 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395117', 'tblTempUsageDetail_20' ) end [2025-02-03 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:20:24] Production.INFO: ==435== Releasing lock... [2025-02-03 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:20:24] Production.INFO: 48.5 MB #Memory Used# [2025-02-03 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:21:05 [end_date_ymd] => 2025-02-03 19:21:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:21:05' and `end` < '2025-02-03 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-02-03 19:21:19] Production.INFO: count ==2672 [2025-02-03 19:21:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:21:05 - End Time 2025-02-03 19:21:05 [2025-02-03 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395123', 'tblTempUsageDetail_20' ) start [2025-02-03 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395123', 'tblTempUsageDetail_20' ) end [2025-02-03 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395123', 'tblTempVendorCDR_20' ) start [2025-02-03 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395123', 'tblTempVendorCDR_20' ) end [2025-02-03 19:21:19] Production.INFO: ProcessCDR(1,14395123,1,1,2) [2025-02-03 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395123', 'tblTempUsageDetail_20' ) start [2025-02-03 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395123', 'tblTempUsageDetail_20' ) end [2025-02-03 19:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:21:24] Production.INFO: ==528== Releasing lock... [2025-02-03 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:21:24] Production.INFO: 48.5 MB #Memory Used# [2025-02-03 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:22:05 [end_date_ymd] => 2025-02-03 19:22:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:22:05' and `end` < '2025-02-03 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-02-03 19:22:19] Production.INFO: count ==2673 [2025-02-03 19:22:20] Production.ERROR: pbx CDR StartTime 2025-02-03 16:22:05 - End Time 2025-02-03 19:22:05 [2025-02-03 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395128', 'tblTempUsageDetail_20' ) start [2025-02-03 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395128', 'tblTempUsageDetail_20' ) end [2025-02-03 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395128', 'tblTempVendorCDR_20' ) start [2025-02-03 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395128', 'tblTempVendorCDR_20' ) end [2025-02-03 19:22:20] Production.INFO: ProcessCDR(1,14395128,1,1,2) [2025-02-03 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395128', 'tblTempUsageDetail_20' ) start [2025-02-03 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395128', 'tblTempUsageDetail_20' ) end [2025-02-03 19:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:22:24] Production.INFO: ==662== Releasing lock... [2025-02-03 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:22:24] Production.INFO: 48.25 MB #Memory Used# [2025-02-03 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:23:05 [end_date_ymd] => 2025-02-03 19:23:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:23:05' and `end` < '2025-02-03 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-02-03 19:23:18] Production.INFO: count ==2653 [2025-02-03 19:23:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:23:05 - End Time 2025-02-03 19:23:05 [2025-02-03 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395133', 'tblTempUsageDetail_20' ) start [2025-02-03 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395133', 'tblTempUsageDetail_20' ) end [2025-02-03 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395133', 'tblTempVendorCDR_20' ) start [2025-02-03 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395133', 'tblTempVendorCDR_20' ) end [2025-02-03 19:23:19] Production.INFO: ProcessCDR(1,14395133,1,1,2) [2025-02-03 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395133', 'tblTempUsageDetail_20' ) start [2025-02-03 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395133', 'tblTempUsageDetail_20' ) end [2025-02-03 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:23:22] Production.INFO: ==769== Releasing lock... [2025-02-03 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:23:22] Production.INFO: 48 MB #Memory Used# [2025-02-03 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:24:05 [end_date_ymd] => 2025-02-03 19:24:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:24:05' and `end` < '2025-02-03 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-02-03 19:24:18] Production.INFO: count ==2639 [2025-02-03 19:24:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:24:05 - End Time 2025-02-03 19:24:05 [2025-02-03 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395138', 'tblTempUsageDetail_20' ) start [2025-02-03 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395138', 'tblTempUsageDetail_20' ) end [2025-02-03 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395138', 'tblTempVendorCDR_20' ) start [2025-02-03 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395138', 'tblTempVendorCDR_20' ) end [2025-02-03 19:24:19] Production.INFO: ProcessCDR(1,14395138,1,1,2) [2025-02-03 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395138', 'tblTempUsageDetail_20' ) start [2025-02-03 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395138', 'tblTempUsageDetail_20' ) end [2025-02-03 19:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:24:22] Production.INFO: ==852== Releasing lock... [2025-02-03 19:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:24:22] Production.INFO: 48 MB #Memory Used# [2025-02-03 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:25:05 [end_date_ymd] => 2025-02-03 19:25:05 [RateCDR] => 1 ) [2025-02-03 19: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-02-03 16:25:05' and `end` < '2025-02-03 19: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-02-03 19:25:18] Production.INFO: count ==2625 [2025-02-03 19:25:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:25:05 - End Time 2025-02-03 19:25:05 [2025-02-03 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395142', 'tblTempUsageDetail_20' ) start [2025-02-03 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395142', 'tblTempUsageDetail_20' ) end [2025-02-03 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395142', 'tblTempVendorCDR_20' ) start [2025-02-03 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395142', 'tblTempVendorCDR_20' ) end [2025-02-03 19:25:19] Production.INFO: ProcessCDR(1,14395142,1,1,2) [2025-02-03 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395142', 'tblTempUsageDetail_20' ) start [2025-02-03 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395142', 'tblTempUsageDetail_20' ) end [2025-02-03 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:25:24] Production.INFO: ==940== Releasing lock... [2025-02-03 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:25:24] Production.INFO: 47.75 MB #Memory Used# [2025-02-03 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:26:05 [end_date_ymd] => 2025-02-03 19:26:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:26:05' and `end` < '2025-02-03 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-02-03 19:26:18] Production.INFO: count ==2587 [2025-02-03 19:26:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:26:05 - End Time 2025-02-03 19:26:05 [2025-02-03 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395148', 'tblTempUsageDetail_20' ) start [2025-02-03 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395148', 'tblTempUsageDetail_20' ) end [2025-02-03 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395148', 'tblTempVendorCDR_20' ) start [2025-02-03 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395148', 'tblTempVendorCDR_20' ) end [2025-02-03 19:26:19] Production.INFO: ProcessCDR(1,14395148,1,1,2) [2025-02-03 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395148', 'tblTempUsageDetail_20' ) start [2025-02-03 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395148', 'tblTempUsageDetail_20' ) end [2025-02-03 19:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:26:22] Production.INFO: ==1027== Releasing lock... [2025-02-03 19:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:26:22] Production.INFO: 47.5 MB #Memory Used# [2025-02-03 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:27:05 [end_date_ymd] => 2025-02-03 19:27:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:27:05' and `end` < '2025-02-03 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-02-03 19:27:20] Production.INFO: count ==2589 [2025-02-03 19:27:21] Production.ERROR: pbx CDR StartTime 2025-02-03 16:27:05 - End Time 2025-02-03 19:27:05 [2025-02-03 19:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395153', 'tblTempUsageDetail_20' ) start [2025-02-03 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395153', 'tblTempUsageDetail_20' ) end [2025-02-03 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395153', 'tblTempVendorCDR_20' ) start [2025-02-03 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395153', 'tblTempVendorCDR_20' ) end [2025-02-03 19:27:21] Production.INFO: ProcessCDR(1,14395153,1,1,2) [2025-02-03 19:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395153', 'tblTempUsageDetail_20' ) start [2025-02-03 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395153', 'tblTempUsageDetail_20' ) end [2025-02-03 19:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:27:24] Production.INFO: ==1109== Releasing lock... [2025-02-03 19:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:27:24] Production.INFO: 47.5 MB #Memory Used# [2025-02-03 19:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:28:04 [end_date_ymd] => 2025-02-03 19:28:04 [RateCDR] => 1 ) [2025-02-03 19: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-02-03 16:28:04' and `end` < '2025-02-03 19: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-02-03 19:28:18] Production.INFO: count ==2579 [2025-02-03 19:28:18] Production.ERROR: pbx CDR StartTime 2025-02-03 16:28:04 - End Time 2025-02-03 19:28:04 [2025-02-03 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395158', 'tblTempUsageDetail_20' ) start [2025-02-03 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395158', 'tblTempUsageDetail_20' ) end [2025-02-03 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395158', 'tblTempVendorCDR_20' ) start [2025-02-03 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395158', 'tblTempVendorCDR_20' ) end [2025-02-03 19:28:18] Production.INFO: ProcessCDR(1,14395158,1,1,2) [2025-02-03 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395158', 'tblTempUsageDetail_20' ) start [2025-02-03 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395158', 'tblTempUsageDetail_20' ) end [2025-02-03 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:28:23] Production.INFO: ==1198== Releasing lock... [2025-02-03 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:28:23] Production.INFO: 47.5 MB #Memory Used# [2025-02-03 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:29:05 [end_date_ymd] => 2025-02-03 19:29:05 [RateCDR] => 1 ) [2025-02-03 19: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-02-03 16:29:05' and `end` < '2025-02-03 19: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-02-03 19:29:19] Production.INFO: count ==2557 [2025-02-03 19:29:20] Production.ERROR: pbx CDR StartTime 2025-02-03 16:29:05 - End Time 2025-02-03 19:29:05 [2025-02-03 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395163', 'tblTempUsageDetail_20' ) start [2025-02-03 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395163', 'tblTempUsageDetail_20' ) end [2025-02-03 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395163', 'tblTempVendorCDR_20' ) start [2025-02-03 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395163', 'tblTempVendorCDR_20' ) end [2025-02-03 19:29:20] Production.INFO: ProcessCDR(1,14395163,1,1,2) [2025-02-03 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395163', 'tblTempUsageDetail_20' ) start [2025-02-03 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395163', 'tblTempUsageDetail_20' ) end [2025-02-03 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:29:23] Production.INFO: ==1291== Releasing lock... [2025-02-03 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:29:23] Production.INFO: 47.25 MB #Memory Used# [2025-02-03 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:30:05 [end_date_ymd] => 2025-02-03 19:30:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:30:05' and `end` < '2025-02-03 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-02-03 19:30:19] Production.INFO: count ==2551 [2025-02-03 19:30:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:30:05 - End Time 2025-02-03 19:30:05 [2025-02-03 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395168', 'tblTempUsageDetail_20' ) start [2025-02-03 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395168', 'tblTempUsageDetail_20' ) end [2025-02-03 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395168', 'tblTempVendorCDR_20' ) start [2025-02-03 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395168', 'tblTempVendorCDR_20' ) end [2025-02-03 19:30:19] Production.INFO: ProcessCDR(1,14395168,1,1,2) [2025-02-03 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395168', 'tblTempUsageDetail_20' ) start [2025-02-03 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395168', 'tblTempUsageDetail_20' ) end [2025-02-03 19:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:30:22] Production.INFO: ==1378== Releasing lock... [2025-02-03 19:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:30:22] Production.INFO: 47.25 MB #Memory Used# [2025-02-03 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:31:05 [end_date_ymd] => 2025-02-03 19:31:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:31:05' and `end` < '2025-02-03 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-02-03 19:31:18] Production.INFO: count ==2474 [2025-02-03 19:31:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:31:05 - End Time 2025-02-03 19:31:05 [2025-02-03 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395174', 'tblTempUsageDetail_20' ) start [2025-02-03 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395174', 'tblTempUsageDetail_20' ) end [2025-02-03 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395174', 'tblTempVendorCDR_20' ) start [2025-02-03 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395174', 'tblTempVendorCDR_20' ) end [2025-02-03 19:31:19] Production.INFO: ProcessCDR(1,14395174,1,1,2) [2025-02-03 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395174', 'tblTempUsageDetail_20' ) start [2025-02-03 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395174', 'tblTempUsageDetail_20' ) end [2025-02-03 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:31:22] Production.INFO: ==1466== Releasing lock... [2025-02-03 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:31:22] Production.INFO: 46.75 MB #Memory Used# [2025-02-03 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:32:05 [end_date_ymd] => 2025-02-03 19:32:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:32:05' and `end` < '2025-02-03 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-02-03 19:32:18] Production.INFO: count ==2465 [2025-02-03 19:32:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:32:05 - End Time 2025-02-03 19:32:05 [2025-02-03 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395179', 'tblTempUsageDetail_20' ) start [2025-02-03 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395179', 'tblTempUsageDetail_20' ) end [2025-02-03 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395179', 'tblTempVendorCDR_20' ) start [2025-02-03 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395179', 'tblTempVendorCDR_20' ) end [2025-02-03 19:32:19] Production.INFO: ProcessCDR(1,14395179,1,1,2) [2025-02-03 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395179', 'tblTempUsageDetail_20' ) start [2025-02-03 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395179', 'tblTempUsageDetail_20' ) end [2025-02-03 19:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:32:22] Production.INFO: ==1588== Releasing lock... [2025-02-03 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:32:22] Production.INFO: 46.5 MB #Memory Used# [2025-02-03 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:33:05 [end_date_ymd] => 2025-02-03 19:33:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:33:05' and `end` < '2025-02-03 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-02-03 19:33:18] Production.INFO: count ==2452 [2025-02-03 19:33:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:33:05 - End Time 2025-02-03 19:33:05 [2025-02-03 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395184', 'tblTempUsageDetail_20' ) start [2025-02-03 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395184', 'tblTempUsageDetail_20' ) end [2025-02-03 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395184', 'tblTempVendorCDR_20' ) start [2025-02-03 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395184', 'tblTempVendorCDR_20' ) end [2025-02-03 19:33:19] Production.INFO: ProcessCDR(1,14395184,1,1,2) [2025-02-03 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395184', 'tblTempUsageDetail_20' ) start [2025-02-03 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395184', 'tblTempUsageDetail_20' ) end [2025-02-03 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:33:23] Production.INFO: ==1668== Releasing lock... [2025-02-03 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:33:23] Production.INFO: 46.5 MB #Memory Used# [2025-02-03 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:34:05 [end_date_ymd] => 2025-02-03 19:34:05 [RateCDR] => 1 ) [2025-02-03 19: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-02-03 16:34:05' and `end` < '2025-02-03 19: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-02-03 19:34:18] Production.INFO: count ==2439 [2025-02-03 19:34:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:34:05 - End Time 2025-02-03 19:34:05 [2025-02-03 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395189', 'tblTempUsageDetail_20' ) start [2025-02-03 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395189', 'tblTempUsageDetail_20' ) end [2025-02-03 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395189', 'tblTempVendorCDR_20' ) start [2025-02-03 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395189', 'tblTempVendorCDR_20' ) end [2025-02-03 19:34:19] Production.INFO: ProcessCDR(1,14395189,1,1,2) [2025-02-03 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395189', 'tblTempUsageDetail_20' ) start [2025-02-03 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395189', 'tblTempUsageDetail_20' ) end [2025-02-03 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:34:23] Production.INFO: ==1753== Releasing lock... [2025-02-03 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:34:23] Production.INFO: 46.5 MB #Memory Used# [2025-02-03 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:35:05 [end_date_ymd] => 2025-02-03 19:35:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:35:05' and `end` < '2025-02-03 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-02-03 19:35:18] Production.INFO: count ==2410 [2025-02-03 19:35:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:35:05 - End Time 2025-02-03 19:35:05 [2025-02-03 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395194', 'tblTempUsageDetail_20' ) start [2025-02-03 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395194', 'tblTempUsageDetail_20' ) end [2025-02-03 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395194', 'tblTempVendorCDR_20' ) start [2025-02-03 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395194', 'tblTempVendorCDR_20' ) end [2025-02-03 19:35:19] Production.INFO: ProcessCDR(1,14395194,1,1,2) [2025-02-03 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395194', 'tblTempUsageDetail_20' ) start [2025-02-03 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395194', 'tblTempUsageDetail_20' ) end [2025-02-03 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:35:22] Production.INFO: ==1843== Releasing lock... [2025-02-03 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:35:22] Production.INFO: 46.5 MB #Memory Used# [2025-02-03 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:36:05 [end_date_ymd] => 2025-02-03 19:36:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:36:05' and `end` < '2025-02-03 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-02-03 19:36:18] Production.INFO: count ==2401 [2025-02-03 19:36:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:36:05 - End Time 2025-02-03 19:36:05 [2025-02-03 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395199', 'tblTempUsageDetail_20' ) start [2025-02-03 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395199', 'tblTempUsageDetail_20' ) end [2025-02-03 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395199', 'tblTempVendorCDR_20' ) start [2025-02-03 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395199', 'tblTempVendorCDR_20' ) end [2025-02-03 19:36:19] Production.INFO: ProcessCDR(1,14395199,1,1,2) [2025-02-03 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395199', 'tblTempUsageDetail_20' ) start [2025-02-03 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395199', 'tblTempUsageDetail_20' ) end [2025-02-03 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:36:22] Production.INFO: ==1926== Releasing lock... [2025-02-03 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:36:22] Production.INFO: 46 MB #Memory Used# [2025-02-03 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:37:05 [end_date_ymd] => 2025-02-03 19:37:05 [RateCDR] => 1 ) [2025-02-03 19: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-02-03 16:37:05' and `end` < '2025-02-03 19: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-02-03 19:37:18] Production.INFO: count ==2393 [2025-02-03 19:37:18] Production.ERROR: pbx CDR StartTime 2025-02-03 16:37:05 - End Time 2025-02-03 19:37:05 [2025-02-03 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395204', 'tblTempUsageDetail_20' ) start [2025-02-03 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395204', 'tblTempUsageDetail_20' ) end [2025-02-03 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395204', 'tblTempVendorCDR_20' ) start [2025-02-03 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395204', 'tblTempVendorCDR_20' ) end [2025-02-03 19:37:18] Production.INFO: ProcessCDR(1,14395204,1,1,2) [2025-02-03 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395204', 'tblTempUsageDetail_20' ) start [2025-02-03 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395204', 'tblTempUsageDetail_20' ) end [2025-02-03 19:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:37:23] Production.INFO: ==2045== Releasing lock... [2025-02-03 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:37:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-03 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:38:05 [end_date_ymd] => 2025-02-03 19:38:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:38:05' and `end` < '2025-02-03 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-02-03 19:38:18] Production.INFO: count ==2379 [2025-02-03 19:38:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:38:05 - End Time 2025-02-03 19:38:05 [2025-02-03 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395209', 'tblTempUsageDetail_20' ) start [2025-02-03 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395209', 'tblTempUsageDetail_20' ) end [2025-02-03 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395209', 'tblTempVendorCDR_20' ) start [2025-02-03 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395209', 'tblTempVendorCDR_20' ) end [2025-02-03 19:38:19] Production.INFO: ProcessCDR(1,14395209,1,1,2) [2025-02-03 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395209', 'tblTempUsageDetail_20' ) start [2025-02-03 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395209', 'tblTempUsageDetail_20' ) end [2025-02-03 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:38:22] Production.INFO: ==2125== Releasing lock... [2025-02-03 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:38:22] Production.INFO: 46.25 MB #Memory Used# [2025-02-03 19:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:39:06 [end_date_ymd] => 2025-02-03 19:39:06 [RateCDR] => 1 ) [2025-02-03 19: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-02-03 16:39:06' and `end` < '2025-02-03 19: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-02-03 19:39:19] Production.INFO: count ==2360 [2025-02-03 19:39:20] Production.ERROR: pbx CDR StartTime 2025-02-03 16:39:06 - End Time 2025-02-03 19:39:06 [2025-02-03 19:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395214', 'tblTempUsageDetail_20' ) start [2025-02-03 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395214', 'tblTempUsageDetail_20' ) end [2025-02-03 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395214', 'tblTempVendorCDR_20' ) start [2025-02-03 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395214', 'tblTempVendorCDR_20' ) end [2025-02-03 19:39:20] Production.INFO: ProcessCDR(1,14395214,1,1,2) [2025-02-03 19:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395214', 'tblTempUsageDetail_20' ) start [2025-02-03 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395214', 'tblTempUsageDetail_20' ) end [2025-02-03 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:39:23] Production.INFO: ==2205== Releasing lock... [2025-02-03 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:39:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-03 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:40:05 [end_date_ymd] => 2025-02-03 19:40:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:40:05' and `end` < '2025-02-03 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-02-03 19:40:18] Production.INFO: count ==2356 [2025-02-03 19:40:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:40:05 - End Time 2025-02-03 19:40:05 [2025-02-03 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395220', 'tblTempUsageDetail_20' ) start [2025-02-03 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395220', 'tblTempUsageDetail_20' ) end [2025-02-03 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395220', 'tblTempVendorCDR_20' ) start [2025-02-03 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395220', 'tblTempVendorCDR_20' ) end [2025-02-03 19:40:19] Production.INFO: ProcessCDR(1,14395220,1,1,2) [2025-02-03 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395220', 'tblTempUsageDetail_20' ) start [2025-02-03 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395220', 'tblTempUsageDetail_20' ) end [2025-02-03 19:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:40:22] Production.INFO: ==2283== Releasing lock... [2025-02-03 19:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:40:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-03 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:41:05 [end_date_ymd] => 2025-02-03 19:41:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:41:05' and `end` < '2025-02-03 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-02-03 19:41:18] Production.INFO: count ==2289 [2025-02-03 19:41:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:41:05 - End Time 2025-02-03 19:41:05 [2025-02-03 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395225', 'tblTempUsageDetail_20' ) start [2025-02-03 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395225', 'tblTempUsageDetail_20' ) end [2025-02-03 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395225', 'tblTempVendorCDR_20' ) start [2025-02-03 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395225', 'tblTempVendorCDR_20' ) end [2025-02-03 19:41:19] Production.INFO: ProcessCDR(1,14395225,1,1,2) [2025-02-03 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395225', 'tblTempUsageDetail_20' ) start [2025-02-03 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395225', 'tblTempUsageDetail_20' ) end [2025-02-03 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:41:23] Production.INFO: ==2372== Releasing lock... [2025-02-03 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:41:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-03 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:42:05 [end_date_ymd] => 2025-02-03 19:42:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:42:05' and `end` < '2025-02-03 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-02-03 19:42:19] Production.INFO: count ==2275 [2025-02-03 19:42:20] Production.ERROR: pbx CDR StartTime 2025-02-03 16:42:05 - End Time 2025-02-03 19:42:05 [2025-02-03 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395230', 'tblTempUsageDetail_20' ) start [2025-02-03 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395230', 'tblTempUsageDetail_20' ) end [2025-02-03 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395230', 'tblTempVendorCDR_20' ) start [2025-02-03 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395230', 'tblTempVendorCDR_20' ) end [2025-02-03 19:42:20] Production.INFO: ProcessCDR(1,14395230,1,1,2) [2025-02-03 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395230', 'tblTempUsageDetail_20' ) start [2025-02-03 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395230', 'tblTempUsageDetail_20' ) end [2025-02-03 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:42:23] Production.INFO: ==2450== Releasing lock... [2025-02-03 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:42:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-03 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:43:05 [end_date_ymd] => 2025-02-03 19:43:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:43:05' and `end` < '2025-02-03 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-02-03 19:43:18] Production.INFO: count ==2260 [2025-02-03 19:43:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:43:05 - End Time 2025-02-03 19:43:05 [2025-02-03 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395235', 'tblTempUsageDetail_20' ) start [2025-02-03 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395235', 'tblTempUsageDetail_20' ) end [2025-02-03 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395235', 'tblTempVendorCDR_20' ) start [2025-02-03 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395235', 'tblTempVendorCDR_20' ) end [2025-02-03 19:43:19] Production.INFO: ProcessCDR(1,14395235,1,1,2) [2025-02-03 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395235', 'tblTempUsageDetail_20' ) start [2025-02-03 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395235', 'tblTempUsageDetail_20' ) end [2025-02-03 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:43:23] Production.INFO: ==2529== Releasing lock... [2025-02-03 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:43:23] Production.INFO: 45 MB #Memory Used# [2025-02-03 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:44:05 [end_date_ymd] => 2025-02-03 19:44:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:44:05' and `end` < '2025-02-03 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-02-03 19:44:18] Production.INFO: count ==2251 [2025-02-03 19:44:18] Production.ERROR: pbx CDR StartTime 2025-02-03 16:44:05 - End Time 2025-02-03 19:44:05 [2025-02-03 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395240', 'tblTempUsageDetail_20' ) start [2025-02-03 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395240', 'tblTempUsageDetail_20' ) end [2025-02-03 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395240', 'tblTempVendorCDR_20' ) start [2025-02-03 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395240', 'tblTempVendorCDR_20' ) end [2025-02-03 19:44:18] Production.INFO: ProcessCDR(1,14395240,1,1,2) [2025-02-03 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395240', 'tblTempUsageDetail_20' ) start [2025-02-03 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395240', 'tblTempUsageDetail_20' ) end [2025-02-03 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:44:22] Production.INFO: ==2605== Releasing lock... [2025-02-03 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:44:22] Production.INFO: 45 MB #Memory Used# [2025-02-03 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:45:05 [end_date_ymd] => 2025-02-03 19:45:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:45:05' and `end` < '2025-02-03 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-02-03 19:45:18] Production.INFO: count ==2239 [2025-02-03 19:45:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:45:05 - End Time 2025-02-03 19:45:05 [2025-02-03 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395245', 'tblTempUsageDetail_20' ) start [2025-02-03 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395245', 'tblTempUsageDetail_20' ) end [2025-02-03 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395245', 'tblTempVendorCDR_20' ) start [2025-02-03 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395245', 'tblTempVendorCDR_20' ) end [2025-02-03 19:45:19] Production.INFO: ProcessCDR(1,14395245,1,1,2) [2025-02-03 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395245', 'tblTempUsageDetail_20' ) start [2025-02-03 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395245', 'tblTempUsageDetail_20' ) end [2025-02-03 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:45:22] Production.INFO: ==2687== Releasing lock... [2025-02-03 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:45:22] Production.INFO: 45 MB #Memory Used# [2025-02-03 19:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:46:06 [end_date_ymd] => 2025-02-03 19:46:06 [RateCDR] => 1 ) [2025-02-03 19: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-02-03 16:46:06' and `end` < '2025-02-03 19: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-02-03 19:46:19] Production.INFO: count ==2225 [2025-02-03 19:46:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:46:06 - End Time 2025-02-03 19:46:06 [2025-02-03 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395250', 'tblTempUsageDetail_20' ) start [2025-02-03 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395250', 'tblTempUsageDetail_20' ) end [2025-02-03 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395250', 'tblTempVendorCDR_20' ) start [2025-02-03 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395250', 'tblTempVendorCDR_20' ) end [2025-02-03 19:46:19] Production.INFO: ProcessCDR(1,14395250,1,1,2) [2025-02-03 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395250', 'tblTempUsageDetail_20' ) start [2025-02-03 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395250', 'tblTempUsageDetail_20' ) end [2025-02-03 19:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:46:24] Production.INFO: ==2765== Releasing lock... [2025-02-03 19:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:46:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-03 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:47:05 [end_date_ymd] => 2025-02-03 19:47:05 [RateCDR] => 1 ) [2025-02-03 19: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-02-03 16:47:05' and `end` < '2025-02-03 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-02-03 19:47:18] Production.INFO: count ==2215 [2025-02-03 19:47:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:47:05 - End Time 2025-02-03 19:47:05 [2025-02-03 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395255', 'tblTempUsageDetail_20' ) start [2025-02-03 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395255', 'tblTempUsageDetail_20' ) end [2025-02-03 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395255', 'tblTempVendorCDR_20' ) start [2025-02-03 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395255', 'tblTempVendorCDR_20' ) end [2025-02-03 19:47:19] Production.INFO: ProcessCDR(1,14395255,1,1,2) [2025-02-03 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395255', 'tblTempUsageDetail_20' ) start [2025-02-03 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395255', 'tblTempUsageDetail_20' ) end [2025-02-03 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:47:22] Production.INFO: ==2842== Releasing lock... [2025-02-03 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:47:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-03 19:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:48:06 [end_date_ymd] => 2025-02-03 19:48:06 [RateCDR] => 1 ) [2025-02-03 19: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-02-03 16:48:06' and `end` < '2025-02-03 19: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-02-03 19:48:19] Production.INFO: count ==2208 [2025-02-03 19:48:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:48:06 - End Time 2025-02-03 19:48:06 [2025-02-03 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395260', 'tblTempUsageDetail_20' ) start [2025-02-03 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395260', 'tblTempUsageDetail_20' ) end [2025-02-03 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395260', 'tblTempVendorCDR_20' ) start [2025-02-03 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395260', 'tblTempVendorCDR_20' ) end [2025-02-03 19:48:19] Production.INFO: ProcessCDR(1,14395260,1,1,2) [2025-02-03 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395260', 'tblTempUsageDetail_20' ) start [2025-02-03 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395260', 'tblTempUsageDetail_20' ) end [2025-02-03 19:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:48:24] Production.INFO: ==2915== Releasing lock... [2025-02-03 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:48:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-03 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:49:05 [end_date_ymd] => 2025-02-03 19:49:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:49:05' and `end` < '2025-02-03 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-02-03 19:49:20] Production.INFO: count ==2198 [2025-02-03 19:49:20] Production.ERROR: pbx CDR StartTime 2025-02-03 16:49:05 - End Time 2025-02-03 19:49:05 [2025-02-03 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395265', 'tblTempUsageDetail_20' ) start [2025-02-03 19:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395265', 'tblTempUsageDetail_20' ) end [2025-02-03 19:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395265', 'tblTempVendorCDR_20' ) start [2025-02-03 19:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395265', 'tblTempVendorCDR_20' ) end [2025-02-03 19:49:21] Production.INFO: ProcessCDR(1,14395265,1,1,2) [2025-02-03 19:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395265', 'tblTempUsageDetail_20' ) start [2025-02-03 19:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395265', 'tblTempUsageDetail_20' ) end [2025-02-03 19:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:49:25] Production.INFO: ==2991== Releasing lock... [2025-02-03 19:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:49:25] Production.INFO: 44.25 MB #Memory Used# [2025-02-03 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:50:06 [end_date_ymd] => 2025-02-03 19:50:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:50:06' and `end` < '2025-02-03 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-02-03 19:50:21] Production.INFO: count ==2194 [2025-02-03 19:50:21] Production.ERROR: pbx CDR StartTime 2025-02-03 16:50:06 - End Time 2025-02-03 19:50:06 [2025-02-03 19:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395271', 'tblTempUsageDetail_20' ) start [2025-02-03 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395271', 'tblTempUsageDetail_20' ) end [2025-02-03 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395271', 'tblTempVendorCDR_20' ) start [2025-02-03 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395271', 'tblTempVendorCDR_20' ) end [2025-02-03 19:50:21] Production.INFO: ProcessCDR(1,14395271,1,1,2) [2025-02-03 19:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395271', 'tblTempUsageDetail_20' ) start [2025-02-03 19:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395271', 'tblTempUsageDetail_20' ) end [2025-02-03 19:50:26] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:50:26] Production.INFO: ==3077== Releasing lock... [2025-02-03 19:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:50:26] Production.INFO: 44.5 MB #Memory Used# [2025-02-03 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:51:05 [end_date_ymd] => 2025-02-03 19:51:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:51:05' and `end` < '2025-02-03 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-02-03 19:51:18] Production.INFO: count ==2141 [2025-02-03 19:51:18] Production.ERROR: pbx CDR StartTime 2025-02-03 16:51:05 - End Time 2025-02-03 19:51:05 [2025-02-03 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395276', 'tblTempUsageDetail_20' ) start [2025-02-03 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395276', 'tblTempUsageDetail_20' ) end [2025-02-03 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395276', 'tblTempVendorCDR_20' ) start [2025-02-03 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395276', 'tblTempVendorCDR_20' ) end [2025-02-03 19:51:18] Production.INFO: ProcessCDR(1,14395276,1,1,2) [2025-02-03 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395276', 'tblTempUsageDetail_20' ) start [2025-02-03 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395276', 'tblTempUsageDetail_20' ) end [2025-02-03 19:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:51:21] Production.INFO: ==3152== Releasing lock... [2025-02-03 19:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:51:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-03 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:52:05 [end_date_ymd] => 2025-02-03 19:52:05 [RateCDR] => 1 ) [2025-02-03 19: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-02-03 16:52:05' and `end` < '2025-02-03 19: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-02-03 19:52:18] Production.INFO: count ==2145 [2025-02-03 19:52:18] Production.ERROR: pbx CDR StartTime 2025-02-03 16:52:05 - End Time 2025-02-03 19:52:05 [2025-02-03 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395281', 'tblTempUsageDetail_20' ) start [2025-02-03 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395281', 'tblTempUsageDetail_20' ) end [2025-02-03 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395281', 'tblTempVendorCDR_20' ) start [2025-02-03 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395281', 'tblTempVendorCDR_20' ) end [2025-02-03 19:52:18] Production.INFO: ProcessCDR(1,14395281,1,1,2) [2025-02-03 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395281', 'tblTempUsageDetail_20' ) start [2025-02-03 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395281', 'tblTempUsageDetail_20' ) end [2025-02-03 19:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:52:23] Production.INFO: ==3233== Releasing lock... [2025-02-03 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:52:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-03 19:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:53:06 [end_date_ymd] => 2025-02-03 19:53:06 [RateCDR] => 1 ) [2025-02-03 19: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-02-03 16:53:06' and `end` < '2025-02-03 19: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-02-03 19:53:20] Production.INFO: count ==2131 [2025-02-03 19:53:21] Production.ERROR: pbx CDR StartTime 2025-02-03 16:53:06 - End Time 2025-02-03 19:53:06 [2025-02-03 19:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395286', 'tblTempUsageDetail_20' ) start [2025-02-03 19:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395286', 'tblTempUsageDetail_20' ) end [2025-02-03 19:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395286', 'tblTempVendorCDR_20' ) start [2025-02-03 19:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395286', 'tblTempVendorCDR_20' ) end [2025-02-03 19:53:21] Production.INFO: ProcessCDR(1,14395286,1,1,2) [2025-02-03 19:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395286', 'tblTempUsageDetail_20' ) start [2025-02-03 19:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395286', 'tblTempUsageDetail_20' ) end [2025-02-03 19:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:53:25] Production.INFO: ==3349== Releasing lock... [2025-02-03 19:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:53:25] Production.INFO: 44 MB #Memory Used# [2025-02-03 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:54:05 [end_date_ymd] => 2025-02-03 19:54:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:54:05' and `end` < '2025-02-03 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-02-03 19:54:18] Production.INFO: count ==2131 [2025-02-03 19:54:18] Production.ERROR: pbx CDR StartTime 2025-02-03 16:54:05 - End Time 2025-02-03 19:54:05 [2025-02-03 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395291', 'tblTempUsageDetail_20' ) start [2025-02-03 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395291', 'tblTempUsageDetail_20' ) end [2025-02-03 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395291', 'tblTempVendorCDR_20' ) start [2025-02-03 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395291', 'tblTempVendorCDR_20' ) end [2025-02-03 19:54:18] Production.INFO: ProcessCDR(1,14395291,1,1,2) [2025-02-03 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395291', 'tblTempUsageDetail_20' ) start [2025-02-03 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395291', 'tblTempUsageDetail_20' ) end [2025-02-03 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:54:23] Production.INFO: ==3426== Releasing lock... [2025-02-03 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:54:23] Production.INFO: 44 MB #Memory Used# [2025-02-03 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:55:05 [end_date_ymd] => 2025-02-03 19:55:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:55:05' and `end` < '2025-02-03 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-02-03 19:55:18] Production.INFO: count ==2122 [2025-02-03 19:55:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:55:05 - End Time 2025-02-03 19:55:05 [2025-02-03 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395296', 'tblTempUsageDetail_20' ) start [2025-02-03 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395296', 'tblTempUsageDetail_20' ) end [2025-02-03 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395296', 'tblTempVendorCDR_20' ) start [2025-02-03 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395296', 'tblTempVendorCDR_20' ) end [2025-02-03 19:55:19] Production.INFO: ProcessCDR(1,14395296,1,1,2) [2025-02-03 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395296', 'tblTempUsageDetail_20' ) start [2025-02-03 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395296', 'tblTempUsageDetail_20' ) end [2025-02-03 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:55:22] Production.INFO: ==3500== Releasing lock... [2025-02-03 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:55:22] Production.INFO: 44 MB #Memory Used# [2025-02-03 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:56:05 [end_date_ymd] => 2025-02-03 19:56:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:56:05' and `end` < '2025-02-03 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-02-03 19:56:18] Production.INFO: count ==2103 [2025-02-03 19:56:18] Production.ERROR: pbx CDR StartTime 2025-02-03 16:56:05 - End Time 2025-02-03 19:56:05 [2025-02-03 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395301', 'tblTempUsageDetail_20' ) start [2025-02-03 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395301', 'tblTempUsageDetail_20' ) end [2025-02-03 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395301', 'tblTempVendorCDR_20' ) start [2025-02-03 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395301', 'tblTempVendorCDR_20' ) end [2025-02-03 19:56:18] Production.INFO: ProcessCDR(1,14395301,1,1,2) [2025-02-03 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395301', 'tblTempUsageDetail_20' ) start [2025-02-03 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395301', 'tblTempUsageDetail_20' ) end [2025-02-03 19:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:56:21] Production.INFO: ==3574== Releasing lock... [2025-02-03 19:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:56:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-03 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:57:05 [end_date_ymd] => 2025-02-03 19:57:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:57:05' and `end` < '2025-02-03 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-02-03 19:57:20] Production.INFO: count ==2093 [2025-02-03 19:57:20] Production.ERROR: pbx CDR StartTime 2025-02-03 16:57:05 - End Time 2025-02-03 19:57:05 [2025-02-03 19:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395306', 'tblTempUsageDetail_20' ) start [2025-02-03 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395306', 'tblTempUsageDetail_20' ) end [2025-02-03 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395306', 'tblTempVendorCDR_20' ) start [2025-02-03 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395306', 'tblTempVendorCDR_20' ) end [2025-02-03 19:57:20] Production.INFO: ProcessCDR(1,14395306,1,1,2) [2025-02-03 19:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395306', 'tblTempUsageDetail_20' ) start [2025-02-03 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395306', 'tblTempUsageDetail_20' ) end [2025-02-03 19:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:57:23] Production.INFO: ==3653== Releasing lock... [2025-02-03 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:57:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-03 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:58:05 [end_date_ymd] => 2025-02-03 19:58:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 16:58:05' and `end` < '2025-02-03 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-02-03 19:58:18] Production.INFO: count ==2079 [2025-02-03 19:58:18] Production.ERROR: pbx CDR StartTime 2025-02-03 16:58:05 - End Time 2025-02-03 19:58:05 [2025-02-03 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395311', 'tblTempUsageDetail_20' ) start [2025-02-03 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395311', 'tblTempUsageDetail_20' ) end [2025-02-03 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395311', 'tblTempVendorCDR_20' ) start [2025-02-03 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395311', 'tblTempVendorCDR_20' ) end [2025-02-03 19:58:18] Production.INFO: ProcessCDR(1,14395311,1,1,2) [2025-02-03 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395311', 'tblTempUsageDetail_20' ) start [2025-02-03 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395311', 'tblTempUsageDetail_20' ) end [2025-02-03 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:58:23] Production.INFO: ==3731== Releasing lock... [2025-02-03 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:58:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-03 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 16:59:05 [end_date_ymd] => 2025-02-03 19:59:05 [RateCDR] => 1 ) [2025-02-03 19: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-02-03 16:59:05' and `end` < '2025-02-03 19: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-02-03 19:59:18] Production.INFO: count ==2067 [2025-02-03 19:59:19] Production.ERROR: pbx CDR StartTime 2025-02-03 16:59:05 - End Time 2025-02-03 19:59:05 [2025-02-03 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395316', 'tblTempUsageDetail_20' ) start [2025-02-03 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395316', 'tblTempUsageDetail_20' ) end [2025-02-03 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395316', 'tblTempVendorCDR_20' ) start [2025-02-03 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395316', 'tblTempVendorCDR_20' ) end [2025-02-03 19:59:19] Production.INFO: ProcessCDR(1,14395316,1,1,2) [2025-02-03 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395316', 'tblTempUsageDetail_20' ) start [2025-02-03 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395316', 'tblTempUsageDetail_20' ) end [2025-02-03 19:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 19:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 19:59:23] Production.INFO: ==3806== Releasing lock... [2025-02-03 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 19:59:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-03 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:00:06 [end_date_ymd] => 2025-02-03 20:00:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:00:06' and `end` < '2025-02-03 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-02-03 20:00:19] Production.INFO: count ==2043 [2025-02-03 20:00:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:00:06 - End Time 2025-02-03 20:00:06 [2025-02-03 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395321', 'tblTempUsageDetail_20' ) start [2025-02-03 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395321', 'tblTempUsageDetail_20' ) end [2025-02-03 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395321', 'tblTempVendorCDR_20' ) start [2025-02-03 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395321', 'tblTempVendorCDR_20' ) end [2025-02-03 20:00:19] Production.INFO: ProcessCDR(1,14395321,1,1,2) [2025-02-03 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395321', 'tblTempUsageDetail_20' ) start [2025-02-03 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395321', 'tblTempUsageDetail_20' ) end [2025-02-03 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:00:23] Production.INFO: ==3883== Releasing lock... [2025-02-03 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:00:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-03 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:01:05 [end_date_ymd] => 2025-02-03 20:01:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:01:05' and `end` < '2025-02-03 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-02-03 20:01:18] Production.INFO: count ==1988 [2025-02-03 20:01:18] Production.ERROR: pbx CDR StartTime 2025-02-03 17:01:05 - End Time 2025-02-03 20:01:05 [2025-02-03 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395327', 'tblTempUsageDetail_20' ) start [2025-02-03 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395327', 'tblTempUsageDetail_20' ) end [2025-02-03 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395327', 'tblTempVendorCDR_20' ) start [2025-02-03 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395327', 'tblTempVendorCDR_20' ) end [2025-02-03 20:01:18] Production.INFO: ProcessCDR(1,14395327,1,1,2) [2025-02-03 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395327', 'tblTempUsageDetail_20' ) start [2025-02-03 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395327', 'tblTempUsageDetail_20' ) end [2025-02-03 20:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:01:21] Production.INFO: ==4010== Releasing lock... [2025-02-03 20:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:01:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-03 20:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:02:06 [end_date_ymd] => 2025-02-03 20:02:06 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:02:06' and `end` < '2025-02-03 20: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-02-03 20:02:19] Production.INFO: count ==1968 [2025-02-03 20:02:20] Production.ERROR: pbx CDR StartTime 2025-02-03 17:02:06 - End Time 2025-02-03 20:02:06 [2025-02-03 20:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395332', 'tblTempUsageDetail_20' ) start [2025-02-03 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395332', 'tblTempUsageDetail_20' ) end [2025-02-03 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395332', 'tblTempVendorCDR_20' ) start [2025-02-03 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395332', 'tblTempVendorCDR_20' ) end [2025-02-03 20:02:20] Production.INFO: ProcessCDR(1,14395332,1,1,2) [2025-02-03 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395332', 'tblTempUsageDetail_20' ) start [2025-02-03 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395332', 'tblTempUsageDetail_20' ) end [2025-02-03 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:02:23] Production.INFO: ==4086== Releasing lock... [2025-02-03 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:02:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-03 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:03:05 [end_date_ymd] => 2025-02-03 20:03:05 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:03:05' and `end` < '2025-02-03 20: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-02-03 20:03:19] Production.INFO: count ==1954 [2025-02-03 20:03:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:03:05 - End Time 2025-02-03 20:03:05 [2025-02-03 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395337', 'tblTempUsageDetail_20' ) start [2025-02-03 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395337', 'tblTempUsageDetail_20' ) end [2025-02-03 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395337', 'tblTempVendorCDR_20' ) start [2025-02-03 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395337', 'tblTempVendorCDR_20' ) end [2025-02-03 20:03:20] Production.INFO: ProcessCDR(1,14395337,1,1,2) [2025-02-03 20:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395337', 'tblTempUsageDetail_20' ) start [2025-02-03 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395337', 'tblTempUsageDetail_20' ) end [2025-02-03 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:03:23] Production.INFO: ==4161== Releasing lock... [2025-02-03 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:03:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-03 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:04:05 [end_date_ymd] => 2025-02-03 20:04:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:04:05' and `end` < '2025-02-03 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-02-03 20:04:18] Production.INFO: count ==1948 [2025-02-03 20:04:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:04:05 - End Time 2025-02-03 20:04:05 [2025-02-03 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395342', 'tblTempUsageDetail_20' ) start [2025-02-03 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395342', 'tblTempUsageDetail_20' ) end [2025-02-03 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395342', 'tblTempVendorCDR_20' ) start [2025-02-03 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395342', 'tblTempVendorCDR_20' ) end [2025-02-03 20:04:19] Production.INFO: ProcessCDR(1,14395342,1,1,2) [2025-02-03 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395342', 'tblTempUsageDetail_20' ) start [2025-02-03 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395342', 'tblTempUsageDetail_20' ) end [2025-02-03 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:04:22] Production.INFO: ==4242== Releasing lock... [2025-02-03 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:04:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-03 20:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:05:06 [end_date_ymd] => 2025-02-03 20:05:06 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:05:06' and `end` < '2025-02-03 20: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-02-03 20:05:19] Production.INFO: count ==1934 [2025-02-03 20:05:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:05:06 - End Time 2025-02-03 20:05:06 [2025-02-03 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395347', 'tblTempUsageDetail_20' ) start [2025-02-03 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395347', 'tblTempUsageDetail_20' ) end [2025-02-03 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395347', 'tblTempVendorCDR_20' ) start [2025-02-03 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395347', 'tblTempVendorCDR_20' ) end [2025-02-03 20:05:19] Production.INFO: ProcessCDR(1,14395347,1,1,2) [2025-02-03 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395347', 'tblTempUsageDetail_20' ) start [2025-02-03 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395347', 'tblTempUsageDetail_20' ) end [2025-02-03 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:05:22] Production.INFO: ==4323== Releasing lock... [2025-02-03 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:05:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-03 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:06:06 [end_date_ymd] => 2025-02-03 20:06:06 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:06:06' and `end` < '2025-02-03 20: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-02-03 20:06:19] Production.INFO: count ==1926 [2025-02-03 20:06:20] Production.ERROR: pbx CDR StartTime 2025-02-03 17:06:06 - End Time 2025-02-03 20:06:06 [2025-02-03 20:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395352', 'tblTempUsageDetail_20' ) start [2025-02-03 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395352', 'tblTempUsageDetail_20' ) end [2025-02-03 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395352', 'tblTempVendorCDR_20' ) start [2025-02-03 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395352', 'tblTempVendorCDR_20' ) end [2025-02-03 20:06:20] Production.INFO: ProcessCDR(1,14395352,1,1,2) [2025-02-03 20:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395352', 'tblTempUsageDetail_20' ) start [2025-02-03 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395352', 'tblTempUsageDetail_20' ) end [2025-02-03 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:06:23] Production.INFO: ==4402== Releasing lock... [2025-02-03 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:06:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-03 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:07:05 [end_date_ymd] => 2025-02-03 20:07:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:07:05' and `end` < '2025-02-03 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-02-03 20:07:18] Production.INFO: count ==1924 [2025-02-03 20:07:18] Production.ERROR: pbx CDR StartTime 2025-02-03 17:07:05 - End Time 2025-02-03 20:07:05 [2025-02-03 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395357', 'tblTempUsageDetail_20' ) start [2025-02-03 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395357', 'tblTempUsageDetail_20' ) end [2025-02-03 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395357', 'tblTempVendorCDR_20' ) start [2025-02-03 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395357', 'tblTempVendorCDR_20' ) end [2025-02-03 20:07:18] Production.INFO: ProcessCDR(1,14395357,1,1,2) [2025-02-03 20:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395357', 'tblTempUsageDetail_20' ) start [2025-02-03 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395357', 'tblTempUsageDetail_20' ) end [2025-02-03 20:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:07:21] Production.INFO: ==4474== Releasing lock... [2025-02-03 20:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:07:21] Production.INFO: 42.25 MB #Memory Used# [2025-02-03 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:08:06 [end_date_ymd] => 2025-02-03 20:08:06 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:08:06' and `end` < '2025-02-03 20: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-02-03 20:08:19] Production.INFO: count ==1922 [2025-02-03 20:08:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:08:06 - End Time 2025-02-03 20:08:06 [2025-02-03 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395362', 'tblTempUsageDetail_20' ) start [2025-02-03 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395362', 'tblTempUsageDetail_20' ) end [2025-02-03 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395362', 'tblTempVendorCDR_20' ) start [2025-02-03 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395362', 'tblTempVendorCDR_20' ) end [2025-02-03 20:08:19] Production.INFO: ProcessCDR(1,14395362,1,1,2) [2025-02-03 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395362', 'tblTempUsageDetail_20' ) start [2025-02-03 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395362', 'tblTempUsageDetail_20' ) end [2025-02-03 20:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:08:24] Production.INFO: ==4598== Releasing lock... [2025-02-03 20:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:08:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-03 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:09:05 [end_date_ymd] => 2025-02-03 20:09:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:09:05' and `end` < '2025-02-03 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-02-03 20:09:18] Production.INFO: count ==1925 [2025-02-03 20:09:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:09:05 - End Time 2025-02-03 20:09:05 [2025-02-03 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395367', 'tblTempUsageDetail_20' ) start [2025-02-03 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395367', 'tblTempUsageDetail_20' ) end [2025-02-03 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395367', 'tblTempVendorCDR_20' ) start [2025-02-03 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395367', 'tblTempVendorCDR_20' ) end [2025-02-03 20:09:19] Production.INFO: ProcessCDR(1,14395367,1,1,2) [2025-02-03 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395367', 'tblTempUsageDetail_20' ) start [2025-02-03 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395367', 'tblTempUsageDetail_20' ) end [2025-02-03 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:09:22] Production.INFO: ==4671== Releasing lock... [2025-02-03 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:09:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-03 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:10:06 [end_date_ymd] => 2025-02-03 20:10:06 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:10:06' and `end` < '2025-02-03 20: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-02-03 20:10:19] Production.INFO: count ==1921 [2025-02-03 20:10:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:10:06 - End Time 2025-02-03 20:10:06 [2025-02-03 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395373', 'tblTempUsageDetail_20' ) start [2025-02-03 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395373', 'tblTempUsageDetail_20' ) end [2025-02-03 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395373', 'tblTempVendorCDR_20' ) start [2025-02-03 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395373', 'tblTempVendorCDR_20' ) end [2025-02-03 20:10:19] Production.INFO: ProcessCDR(1,14395373,1,1,2) [2025-02-03 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395373', 'tblTempUsageDetail_20' ) start [2025-02-03 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395373', 'tblTempUsageDetail_20' ) end [2025-02-03 20:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:10:24] Production.INFO: ==4750== Releasing lock... [2025-02-03 20:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:10:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-03 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:11:05 [end_date_ymd] => 2025-02-03 20:11:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:11:05' and `end` < '2025-02-03 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-02-03 20:11:19] Production.INFO: count ==1882 [2025-02-03 20:11:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:11:05 - End Time 2025-02-03 20:11:05 [2025-02-03 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395378', 'tblTempUsageDetail_20' ) start [2025-02-03 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395378', 'tblTempUsageDetail_20' ) end [2025-02-03 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395378', 'tblTempVendorCDR_20' ) start [2025-02-03 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395378', 'tblTempVendorCDR_20' ) end [2025-02-03 20:11:20] Production.INFO: ProcessCDR(1,14395378,1,1,2) [2025-02-03 20:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395378', 'tblTempUsageDetail_20' ) start [2025-02-03 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395378', 'tblTempUsageDetail_20' ) end [2025-02-03 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:11:23] Production.INFO: ==4829== Releasing lock... [2025-02-03 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:11:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-03 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:12:05 [end_date_ymd] => 2025-02-03 20:12:05 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:12:05' and `end` < '2025-02-03 20: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-02-03 20:12:18] Production.INFO: count ==1877 [2025-02-03 20:12:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:12:05 - End Time 2025-02-03 20:12:05 [2025-02-03 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395383', 'tblTempUsageDetail_20' ) start [2025-02-03 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395383', 'tblTempUsageDetail_20' ) end [2025-02-03 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395383', 'tblTempVendorCDR_20' ) start [2025-02-03 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395383', 'tblTempVendorCDR_20' ) end [2025-02-03 20:12:19] Production.INFO: ProcessCDR(1,14395383,1,1,2) [2025-02-03 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395383', 'tblTempUsageDetail_20' ) start [2025-02-03 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395383', 'tblTempUsageDetail_20' ) end [2025-02-03 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:12:22] Production.INFO: ==4903== Releasing lock... [2025-02-03 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:12:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-03 20:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:13:04 [end_date_ymd] => 2025-02-03 20:13:04 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:13:04' and `end` < '2025-02-03 20: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-02-03 20:13:17] Production.INFO: count ==1873 [2025-02-03 20:13:18] Production.ERROR: pbx CDR StartTime 2025-02-03 17:13:04 - End Time 2025-02-03 20:13:04 [2025-02-03 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395388', 'tblTempUsageDetail_20' ) start [2025-02-03 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395388', 'tblTempUsageDetail_20' ) end [2025-02-03 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395388', 'tblTempVendorCDR_20' ) start [2025-02-03 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395388', 'tblTempVendorCDR_20' ) end [2025-02-03 20:13:18] Production.INFO: ProcessCDR(1,14395388,1,1,2) [2025-02-03 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395388', 'tblTempUsageDetail_20' ) start [2025-02-03 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395388', 'tblTempUsageDetail_20' ) end [2025-02-03 20:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:13:21] Production.INFO: ==4980== Releasing lock... [2025-02-03 20:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:13:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-03 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:14:05 [end_date_ymd] => 2025-02-03 20:14:05 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:14:05' and `end` < '2025-02-03 20: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-02-03 20:14:18] Production.INFO: count ==1871 [2025-02-03 20:14:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:14:05 - End Time 2025-02-03 20:14:05 [2025-02-03 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395393', 'tblTempUsageDetail_20' ) start [2025-02-03 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395393', 'tblTempUsageDetail_20' ) end [2025-02-03 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395393', 'tblTempVendorCDR_20' ) start [2025-02-03 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395393', 'tblTempVendorCDR_20' ) end [2025-02-03 20:14:19] Production.INFO: ProcessCDR(1,14395393,1,1,2) [2025-02-03 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395393', 'tblTempUsageDetail_20' ) start [2025-02-03 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395393', 'tblTempUsageDetail_20' ) end [2025-02-03 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:14:22] Production.INFO: ==5060== Releasing lock... [2025-02-03 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:14:22] Production.INFO: 42 MB #Memory Used# [2025-02-03 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:15:05 [end_date_ymd] => 2025-02-03 20:15:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:15:05' and `end` < '2025-02-03 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-02-03 20:15:18] Production.INFO: count ==1860 [2025-02-03 20:15:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:15:05 - End Time 2025-02-03 20:15:05 [2025-02-03 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395398', 'tblTempUsageDetail_20' ) start [2025-02-03 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395398', 'tblTempUsageDetail_20' ) end [2025-02-03 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395398', 'tblTempVendorCDR_20' ) start [2025-02-03 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395398', 'tblTempVendorCDR_20' ) end [2025-02-03 20:15:19] Production.INFO: ProcessCDR(1,14395398,1,1,2) [2025-02-03 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395398', 'tblTempUsageDetail_20' ) start [2025-02-03 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395398', 'tblTempUsageDetail_20' ) end [2025-02-03 20:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:15:23] Production.INFO: ==5137== Releasing lock... [2025-02-03 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:15:23] Production.INFO: 42 MB #Memory Used# [2025-02-03 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:16:05 [end_date_ymd] => 2025-02-03 20:16:05 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:16:05' and `end` < '2025-02-03 20: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-02-03 20:16:18] Production.INFO: count ==1854 [2025-02-03 20:16:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:16:05 - End Time 2025-02-03 20:16:05 [2025-02-03 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395403', 'tblTempUsageDetail_20' ) start [2025-02-03 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395403', 'tblTempUsageDetail_20' ) end [2025-02-03 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395403', 'tblTempVendorCDR_20' ) start [2025-02-03 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395403', 'tblTempVendorCDR_20' ) end [2025-02-03 20:16:19] Production.INFO: ProcessCDR(1,14395403,1,1,2) [2025-02-03 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395403', 'tblTempUsageDetail_20' ) start [2025-02-03 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395403', 'tblTempUsageDetail_20' ) end [2025-02-03 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:16:23] Production.INFO: ==5213== Releasing lock... [2025-02-03 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:16:23] Production.INFO: 42 MB #Memory Used# [2025-02-03 20:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:17:06 [end_date_ymd] => 2025-02-03 20:17:06 [RateCDR] => 1 ) [2025-02-03 20:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 17:17:06' and `end` < '2025-02-03 20:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 20:17:19] Production.INFO: count ==1850 [2025-02-03 20:17:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:17:06 - End Time 2025-02-03 20:17:06 [2025-02-03 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395408', 'tblTempUsageDetail_20' ) start [2025-02-03 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395408', 'tblTempUsageDetail_20' ) end [2025-02-03 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395408', 'tblTempVendorCDR_20' ) start [2025-02-03 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395408', 'tblTempVendorCDR_20' ) end [2025-02-03 20:17:19] Production.INFO: ProcessCDR(1,14395408,1,1,2) [2025-02-03 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395408', 'tblTempUsageDetail_20' ) start [2025-02-03 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395408', 'tblTempUsageDetail_20' ) end [2025-02-03 20:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:17:24] Production.INFO: ==5289== Releasing lock... [2025-02-03 20:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:17:24] Production.INFO: 42 MB #Memory Used# [2025-02-03 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:18:05 [end_date_ymd] => 2025-02-03 20:18:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:18:05' and `end` < '2025-02-03 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-02-03 20:18:19] Production.INFO: count ==1832 [2025-02-03 20:18:20] Production.ERROR: pbx CDR StartTime 2025-02-03 17:18:05 - End Time 2025-02-03 20:18:05 [2025-02-03 20:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395413', 'tblTempUsageDetail_20' ) start [2025-02-03 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395413', 'tblTempUsageDetail_20' ) end [2025-02-03 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395413', 'tblTempVendorCDR_20' ) start [2025-02-03 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395413', 'tblTempVendorCDR_20' ) end [2025-02-03 20:18:20] Production.INFO: ProcessCDR(1,14395413,1,1,2) [2025-02-03 20:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395413', 'tblTempUsageDetail_20' ) start [2025-02-03 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395413', 'tblTempUsageDetail_20' ) end [2025-02-03 20:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:18:24] Production.INFO: ==5378== Releasing lock... [2025-02-03 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:18:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-03 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:19:05 [end_date_ymd] => 2025-02-03 20:19:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:19:05' and `end` < '2025-02-03 20: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-02-03 20:19:18] Production.INFO: count ==1823 [2025-02-03 20:19:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:19:05 - End Time 2025-02-03 20:19:05 [2025-02-03 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395418', 'tblTempUsageDetail_20' ) start [2025-02-03 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395418', 'tblTempUsageDetail_20' ) end [2025-02-03 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395418', 'tblTempVendorCDR_20' ) start [2025-02-03 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395418', 'tblTempVendorCDR_20' ) end [2025-02-03 20:19:19] Production.INFO: ProcessCDR(1,14395418,1,1,2) [2025-02-03 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395418', 'tblTempUsageDetail_20' ) start [2025-02-03 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395418', 'tblTempUsageDetail_20' ) end [2025-02-03 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:19:23] Production.INFO: ==5461== Releasing lock... [2025-02-03 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:19:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-03 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:20:06 [end_date_ymd] => 2025-02-03 20:20:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:20:06' and `end` < '2025-02-03 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-02-03 20:20:19] Production.INFO: count ==1809 [2025-02-03 20:20:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:20:06 - End Time 2025-02-03 20:20:06 [2025-02-03 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395424', 'tblTempUsageDetail_20' ) start [2025-02-03 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395424', 'tblTempUsageDetail_20' ) end [2025-02-03 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395424', 'tblTempVendorCDR_20' ) start [2025-02-03 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395424', 'tblTempVendorCDR_20' ) end [2025-02-03 20:20:19] Production.INFO: ProcessCDR(1,14395424,1,1,2) [2025-02-03 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395424', 'tblTempUsageDetail_20' ) start [2025-02-03 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395424', 'tblTempUsageDetail_20' ) end [2025-02-03 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:20:23] Production.INFO: ==5546== Releasing lock... [2025-02-03 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:20:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-03 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:21:05 [end_date_ymd] => 2025-02-03 20:21:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:21:05' and `end` < '2025-02-03 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-02-03 20:21:18] Production.INFO: count ==1749 [2025-02-03 20:21:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:21:05 - End Time 2025-02-03 20:21:05 [2025-02-03 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395429', 'tblTempUsageDetail_20' ) start [2025-02-03 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395429', 'tblTempUsageDetail_20' ) end [2025-02-03 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395429', 'tblTempVendorCDR_20' ) start [2025-02-03 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395429', 'tblTempVendorCDR_20' ) end [2025-02-03 20:21:19] Production.INFO: ProcessCDR(1,14395429,1,1,2) [2025-02-03 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395429', 'tblTempUsageDetail_20' ) start [2025-02-03 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395429', 'tblTempUsageDetail_20' ) end [2025-02-03 20:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:21:23] Production.INFO: ==5628== Releasing lock... [2025-02-03 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:21:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-03 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:22:05 [end_date_ymd] => 2025-02-03 20:22:05 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:22:05' and `end` < '2025-02-03 20: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-02-03 20:22:18] Production.INFO: count ==1734 [2025-02-03 20:22:18] Production.ERROR: pbx CDR StartTime 2025-02-03 17:22:05 - End Time 2025-02-03 20:22:05 [2025-02-03 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395434', 'tblTempUsageDetail_20' ) start [2025-02-03 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395434', 'tblTempUsageDetail_20' ) end [2025-02-03 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395434', 'tblTempVendorCDR_20' ) start [2025-02-03 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395434', 'tblTempVendorCDR_20' ) end [2025-02-03 20:22:18] Production.INFO: ProcessCDR(1,14395434,1,1,2) [2025-02-03 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395434', 'tblTempUsageDetail_20' ) start [2025-02-03 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395434', 'tblTempUsageDetail_20' ) end [2025-02-03 20:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:22:21] Production.INFO: ==5707== Releasing lock... [2025-02-03 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:22:21] Production.INFO: 41 MB #Memory Used# [2025-02-03 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:23:05 [end_date_ymd] => 2025-02-03 20:23:05 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:23:05' and `end` < '2025-02-03 20: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-02-03 20:23:20] Production.INFO: count ==1727 [2025-02-03 20:23:21] Production.ERROR: pbx CDR StartTime 2025-02-03 17:23:05 - End Time 2025-02-03 20:23:05 [2025-02-03 20:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395439', 'tblTempUsageDetail_20' ) start [2025-02-03 20:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395439', 'tblTempUsageDetail_20' ) end [2025-02-03 20:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395439', 'tblTempVendorCDR_20' ) start [2025-02-03 20:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395439', 'tblTempVendorCDR_20' ) end [2025-02-03 20:23:21] Production.INFO: ProcessCDR(1,14395439,1,1,2) [2025-02-03 20:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395439', 'tblTempUsageDetail_20' ) start [2025-02-03 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395439', 'tblTempUsageDetail_20' ) end [2025-02-03 20:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:23:24] Production.INFO: ==5791== Releasing lock... [2025-02-03 20:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:23:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-03 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:24:05 [end_date_ymd] => 2025-02-03 20:24:05 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:24:05' and `end` < '2025-02-03 20: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-02-03 20:24:19] Production.INFO: count ==1722 [2025-02-03 20:24:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:24:05 - End Time 2025-02-03 20:24:05 [2025-02-03 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395444', 'tblTempUsageDetail_20' ) start [2025-02-03 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395444', 'tblTempUsageDetail_20' ) end [2025-02-03 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395444', 'tblTempVendorCDR_20' ) start [2025-02-03 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395444', 'tblTempVendorCDR_20' ) end [2025-02-03 20:24:19] Production.INFO: ProcessCDR(1,14395444,1,1,2) [2025-02-03 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395444', 'tblTempUsageDetail_20' ) start [2025-02-03 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395444', 'tblTempUsageDetail_20' ) end [2025-02-03 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:24:22] Production.INFO: ==5915== Releasing lock... [2025-02-03 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:24:22] Production.INFO: 41 MB #Memory Used# [2025-02-03 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:25:05 [end_date_ymd] => 2025-02-03 20:25:05 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:25:05' and `end` < '2025-02-03 20: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-02-03 20:25:19] Production.INFO: count ==1716 [2025-02-03 20:25:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:25:05 - End Time 2025-02-03 20:25:05 [2025-02-03 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395449', 'tblTempUsageDetail_20' ) start [2025-02-03 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395449', 'tblTempUsageDetail_20' ) end [2025-02-03 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395449', 'tblTempVendorCDR_20' ) start [2025-02-03 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395449', 'tblTempVendorCDR_20' ) end [2025-02-03 20:25:19] Production.INFO: ProcessCDR(1,14395449,1,1,2) [2025-02-03 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395449', 'tblTempUsageDetail_20' ) start [2025-02-03 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395449', 'tblTempUsageDetail_20' ) end [2025-02-03 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:25:23] Production.INFO: ==5993== Releasing lock... [2025-02-03 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:25:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-03 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:26:05 [end_date_ymd] => 2025-02-03 20:26:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:26:05' and `end` < '2025-02-03 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-02-03 20:26:18] Production.INFO: count ==1715 [2025-02-03 20:26:18] Production.ERROR: pbx CDR StartTime 2025-02-03 17:26:05 - End Time 2025-02-03 20:26:05 [2025-02-03 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395454', 'tblTempUsageDetail_20' ) start [2025-02-03 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395454', 'tblTempUsageDetail_20' ) end [2025-02-03 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395454', 'tblTempVendorCDR_20' ) start [2025-02-03 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395454', 'tblTempVendorCDR_20' ) end [2025-02-03 20:26:19] Production.INFO: ProcessCDR(1,14395454,1,1,2) [2025-02-03 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395454', 'tblTempUsageDetail_20' ) start [2025-02-03 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395454', 'tblTempUsageDetail_20' ) end [2025-02-03 20:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:26:23] Production.INFO: ==6074== Releasing lock... [2025-02-03 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:26:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-03 20:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:27:04 [end_date_ymd] => 2025-02-03 20:27:04 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:27:04' and `end` < '2025-02-03 20: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-02-03 20:27:17] Production.INFO: count ==1718 [2025-02-03 20:27:17] Production.ERROR: pbx CDR StartTime 2025-02-03 17:27:04 - End Time 2025-02-03 20:27:04 [2025-02-03 20:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395459', 'tblTempUsageDetail_20' ) start [2025-02-03 20:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395459', 'tblTempUsageDetail_20' ) end [2025-02-03 20:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395459', 'tblTempVendorCDR_20' ) start [2025-02-03 20:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395459', 'tblTempVendorCDR_20' ) end [2025-02-03 20:27:17] Production.INFO: ProcessCDR(1,14395459,1,1,2) [2025-02-03 20:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395459', 'tblTempUsageDetail_20' ) start [2025-02-03 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395459', 'tblTempUsageDetail_20' ) end [2025-02-03 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:27:22] Production.INFO: ==6156== Releasing lock... [2025-02-03 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:27:22] Production.INFO: 41 MB #Memory Used# [2025-02-03 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:28:05 [end_date_ymd] => 2025-02-03 20:28:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:28:05' and `end` < '2025-02-03 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-02-03 20:28:18] Production.INFO: count ==1706 [2025-02-03 20:28:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:28:05 - End Time 2025-02-03 20:28:05 [2025-02-03 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395464', 'tblTempUsageDetail_20' ) start [2025-02-03 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395464', 'tblTempUsageDetail_20' ) end [2025-02-03 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395464', 'tblTempVendorCDR_20' ) start [2025-02-03 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395464', 'tblTempVendorCDR_20' ) end [2025-02-03 20:28:19] Production.INFO: ProcessCDR(1,14395464,1,1,2) [2025-02-03 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395464', 'tblTempUsageDetail_20' ) start [2025-02-03 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395464', 'tblTempUsageDetail_20' ) end [2025-02-03 20:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:28:24] Production.INFO: ==6232== Releasing lock... [2025-02-03 20:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:28:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-03 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:29:06 [end_date_ymd] => 2025-02-03 20:29:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:29:06' and `end` < '2025-02-03 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-02-03 20:29:19] Production.INFO: count ==1697 [2025-02-03 20:29:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:29:06 - End Time 2025-02-03 20:29:06 [2025-02-03 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395469', 'tblTempUsageDetail_20' ) start [2025-02-03 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395469', 'tblTempUsageDetail_20' ) end [2025-02-03 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395469', 'tblTempVendorCDR_20' ) start [2025-02-03 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395469', 'tblTempVendorCDR_20' ) end [2025-02-03 20:29:20] Production.INFO: ProcessCDR(1,14395469,1,1,2) [2025-02-03 20:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395469', 'tblTempUsageDetail_20' ) start [2025-02-03 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395469', 'tblTempUsageDetail_20' ) end [2025-02-03 20:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:29:24] Production.INFO: ==6313== Releasing lock... [2025-02-03 20:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:29:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-03 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:30:05 [end_date_ymd] => 2025-02-03 20:30:05 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:30:05' and `end` < '2025-02-03 20: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-02-03 20:30:18] Production.INFO: count ==1687 [2025-02-03 20:30:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:30:05 - End Time 2025-02-03 20:30:05 [2025-02-03 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395475', 'tblTempUsageDetail_20' ) start [2025-02-03 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395475', 'tblTempUsageDetail_20' ) end [2025-02-03 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395475', 'tblTempVendorCDR_20' ) start [2025-02-03 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395475', 'tblTempVendorCDR_20' ) end [2025-02-03 20:30:19] Production.INFO: ProcessCDR(1,14395475,1,1,2) [2025-02-03 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395475', 'tblTempUsageDetail_20' ) start [2025-02-03 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395475', 'tblTempUsageDetail_20' ) end [2025-02-03 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:30:23] Production.INFO: ==6393== Releasing lock... [2025-02-03 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:30:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-03 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:31:05 [end_date_ymd] => 2025-02-03 20:31:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:31:05' and `end` < '2025-02-03 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-02-03 20:31:18] Production.INFO: count ==1640 [2025-02-03 20:31:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:31:05 - End Time 2025-02-03 20:31:05 [2025-02-03 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395480', 'tblTempUsageDetail_20' ) start [2025-02-03 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395480', 'tblTempUsageDetail_20' ) end [2025-02-03 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395480', 'tblTempVendorCDR_20' ) start [2025-02-03 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395480', 'tblTempVendorCDR_20' ) end [2025-02-03 20:31:19] Production.INFO: ProcessCDR(1,14395480,1,1,2) [2025-02-03 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395480', 'tblTempUsageDetail_20' ) start [2025-02-03 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395480', 'tblTempUsageDetail_20' ) end [2025-02-03 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:31:22] Production.INFO: ==6475== Releasing lock... [2025-02-03 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:31:22] Production.INFO: 40 MB #Memory Used# [2025-02-03 20:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:32:04 [end_date_ymd] => 2025-02-03 20:32:04 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:32:04' and `end` < '2025-02-03 20: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-02-03 20:32:17] Production.INFO: count ==1634 [2025-02-03 20:32:18] Production.ERROR: pbx CDR StartTime 2025-02-03 17:32:04 - End Time 2025-02-03 20:32:04 [2025-02-03 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395485', 'tblTempUsageDetail_20' ) start [2025-02-03 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395485', 'tblTempUsageDetail_20' ) end [2025-02-03 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395485', 'tblTempVendorCDR_20' ) start [2025-02-03 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395485', 'tblTempVendorCDR_20' ) end [2025-02-03 20:32:18] Production.INFO: ProcessCDR(1,14395485,1,1,2) [2025-02-03 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395485', 'tblTempUsageDetail_20' ) start [2025-02-03 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395485', 'tblTempUsageDetail_20' ) end [2025-02-03 20:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:32:21] Production.INFO: ==6549== Releasing lock... [2025-02-03 20:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:32:21] Production.INFO: 40 MB #Memory Used# [2025-02-03 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:33:05 [end_date_ymd] => 2025-02-03 20:33:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:33:05' and `end` < '2025-02-03 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-02-03 20:33:18] Production.INFO: count ==1628 [2025-02-03 20:33:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:33:05 - End Time 2025-02-03 20:33:05 [2025-02-03 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395490', 'tblTempUsageDetail_20' ) start [2025-02-03 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395490', 'tblTempUsageDetail_20' ) end [2025-02-03 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395490', 'tblTempVendorCDR_20' ) start [2025-02-03 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395490', 'tblTempVendorCDR_20' ) end [2025-02-03 20:33:19] Production.INFO: ProcessCDR(1,14395490,1,1,2) [2025-02-03 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395490', 'tblTempUsageDetail_20' ) start [2025-02-03 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395490', 'tblTempUsageDetail_20' ) end [2025-02-03 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:33:22] Production.INFO: ==6628== Releasing lock... [2025-02-03 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:33:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-03 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:34:06 [end_date_ymd] => 2025-02-03 20:34:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:34:06' and `end` < '2025-02-03 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-02-03 20:34:19] Production.INFO: count ==1621 [2025-02-03 20:34:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:34:06 - End Time 2025-02-03 20:34:06 [2025-02-03 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395495', 'tblTempUsageDetail_20' ) start [2025-02-03 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395495', 'tblTempUsageDetail_20' ) end [2025-02-03 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395495', 'tblTempVendorCDR_20' ) start [2025-02-03 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395495', 'tblTempVendorCDR_20' ) end [2025-02-03 20:34:19] Production.INFO: ProcessCDR(1,14395495,1,1,2) [2025-02-03 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395495', 'tblTempUsageDetail_20' ) start [2025-02-03 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395495', 'tblTempUsageDetail_20' ) end [2025-02-03 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:34:22] Production.INFO: ==6712== Releasing lock... [2025-02-03 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:34:22] Production.INFO: 40 MB #Memory Used# [2025-02-03 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:35:05 [end_date_ymd] => 2025-02-03 20:35:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:35:05' and `end` < '2025-02-03 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-02-03 20:35:18] Production.INFO: count ==1612 [2025-02-03 20:35:18] Production.ERROR: pbx CDR StartTime 2025-02-03 17:35:05 - End Time 2025-02-03 20:35:05 [2025-02-03 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395500', 'tblTempUsageDetail_20' ) start [2025-02-03 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395500', 'tblTempUsageDetail_20' ) end [2025-02-03 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395500', 'tblTempVendorCDR_20' ) start [2025-02-03 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395500', 'tblTempVendorCDR_20' ) end [2025-02-03 20:35:18] Production.INFO: ProcessCDR(1,14395500,1,1,2) [2025-02-03 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395500', 'tblTempUsageDetail_20' ) start [2025-02-03 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395500', 'tblTempUsageDetail_20' ) end [2025-02-03 20:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:35:21] Production.INFO: ==6790== Releasing lock... [2025-02-03 20:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:35:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-03 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:36:06 [end_date_ymd] => 2025-02-03 20:36:06 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:36:06' and `end` < '2025-02-03 20: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-02-03 20:36:19] Production.INFO: count ==1606 [2025-02-03 20:36:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:36:06 - End Time 2025-02-03 20:36:06 [2025-02-03 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395505', 'tblTempUsageDetail_20' ) start [2025-02-03 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395505', 'tblTempUsageDetail_20' ) end [2025-02-03 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395505', 'tblTempVendorCDR_20' ) start [2025-02-03 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395505', 'tblTempVendorCDR_20' ) end [2025-02-03 20:36:19] Production.INFO: ProcessCDR(1,14395505,1,1,2) [2025-02-03 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395505', 'tblTempUsageDetail_20' ) start [2025-02-03 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395505', 'tblTempUsageDetail_20' ) end [2025-02-03 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:36:22] Production.INFO: ==6870== Releasing lock... [2025-02-03 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:36:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-03 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:37:05 [end_date_ymd] => 2025-02-03 20:37:05 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:37:05' and `end` < '2025-02-03 20: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-02-03 20:37:18] Production.INFO: count ==1604 [2025-02-03 20:37:18] Production.ERROR: pbx CDR StartTime 2025-02-03 17:37:05 - End Time 2025-02-03 20:37:05 [2025-02-03 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395510', 'tblTempUsageDetail_20' ) start [2025-02-03 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395510', 'tblTempUsageDetail_20' ) end [2025-02-03 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395510', 'tblTempVendorCDR_20' ) start [2025-02-03 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395510', 'tblTempVendorCDR_20' ) end [2025-02-03 20:37:18] Production.INFO: ProcessCDR(1,14395510,1,1,2) [2025-02-03 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395510', 'tblTempUsageDetail_20' ) start [2025-02-03 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395510', 'tblTempUsageDetail_20' ) end [2025-02-03 20:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:37:21] Production.INFO: ==6947== Releasing lock... [2025-02-03 20:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:37:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-03 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:38:06 [end_date_ymd] => 2025-02-03 20:38:06 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:38:06' and `end` < '2025-02-03 20: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-02-03 20:38:19] Production.INFO: count ==1600 [2025-02-03 20:38:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:38:06 - End Time 2025-02-03 20:38:06 [2025-02-03 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395515', 'tblTempUsageDetail_20' ) start [2025-02-03 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395515', 'tblTempUsageDetail_20' ) end [2025-02-03 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395515', 'tblTempVendorCDR_20' ) start [2025-02-03 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395515', 'tblTempVendorCDR_20' ) end [2025-02-03 20:38:19] Production.INFO: ProcessCDR(1,14395515,1,1,2) [2025-02-03 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395515', 'tblTempUsageDetail_20' ) start [2025-02-03 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395515', 'tblTempUsageDetail_20' ) end [2025-02-03 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:38:22] Production.INFO: ==7024== Releasing lock... [2025-02-03 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:38:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-03 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:39:05 [end_date_ymd] => 2025-02-03 20:39:05 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:39:05' and `end` < '2025-02-03 20: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-02-03 20:39:18] Production.INFO: count ==1586 [2025-02-03 20:39:18] Production.ERROR: pbx CDR StartTime 2025-02-03 17:39:05 - End Time 2025-02-03 20:39:05 [2025-02-03 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395520', 'tblTempUsageDetail_20' ) start [2025-02-03 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395520', 'tblTempUsageDetail_20' ) end [2025-02-03 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395520', 'tblTempVendorCDR_20' ) start [2025-02-03 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395520', 'tblTempVendorCDR_20' ) end [2025-02-03 20:39:18] Production.INFO: ProcessCDR(1,14395520,1,1,2) [2025-02-03 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395520', 'tblTempUsageDetail_20' ) start [2025-02-03 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395520', 'tblTempUsageDetail_20' ) end [2025-02-03 20:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:39:22] Production.INFO: ==7134== Releasing lock... [2025-02-03 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:39:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-03 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:40:06 [end_date_ymd] => 2025-02-03 20:40:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:40:06' and `end` < '2025-02-03 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-02-03 20:40:19] Production.INFO: count ==1560 [2025-02-03 20:40:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:40:06 - End Time 2025-02-03 20:40:06 [2025-02-03 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395526', 'tblTempUsageDetail_20' ) start [2025-02-03 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395526', 'tblTempUsageDetail_20' ) end [2025-02-03 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395526', 'tblTempVendorCDR_20' ) start [2025-02-03 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395526', 'tblTempVendorCDR_20' ) end [2025-02-03 20:40:19] Production.INFO: ProcessCDR(1,14395526,1,1,2) [2025-02-03 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395526', 'tblTempUsageDetail_20' ) start [2025-02-03 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395526', 'tblTempUsageDetail_20' ) end [2025-02-03 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:40:22] Production.INFO: ==7209== Releasing lock... [2025-02-03 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:40:22] Production.INFO: 40 MB #Memory Used# [2025-02-03 20:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:41:06 [end_date_ymd] => 2025-02-03 20:41:06 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:41:06' and `end` < '2025-02-03 20: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-02-03 20:41:19] Production.INFO: count ==1502 [2025-02-03 20:41:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:41:06 - End Time 2025-02-03 20:41:06 [2025-02-03 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395531', 'tblTempUsageDetail_20' ) start [2025-02-03 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395531', 'tblTempUsageDetail_20' ) end [2025-02-03 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395531', 'tblTempVendorCDR_20' ) start [2025-02-03 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395531', 'tblTempVendorCDR_20' ) end [2025-02-03 20:41:19] Production.INFO: ProcessCDR(1,14395531,1,1,2) [2025-02-03 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395531', 'tblTempUsageDetail_20' ) start [2025-02-03 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395531', 'tblTempUsageDetail_20' ) end [2025-02-03 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:41:22] Production.INFO: ==7288== Releasing lock... [2025-02-03 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:41:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-03 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:42:05 [end_date_ymd] => 2025-02-03 20:42:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:42:05' and `end` < '2025-02-03 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-02-03 20:42:18] Production.INFO: count ==1487 [2025-02-03 20:42:18] Production.ERROR: pbx CDR StartTime 2025-02-03 17:42:05 - End Time 2025-02-03 20:42:05 [2025-02-03 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395536', 'tblTempUsageDetail_20' ) start [2025-02-03 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395536', 'tblTempUsageDetail_20' ) end [2025-02-03 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395536', 'tblTempVendorCDR_20' ) start [2025-02-03 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395536', 'tblTempVendorCDR_20' ) end [2025-02-03 20:42:19] Production.INFO: ProcessCDR(1,14395536,1,1,2) [2025-02-03 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395536', 'tblTempUsageDetail_20' ) start [2025-02-03 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395536', 'tblTempUsageDetail_20' ) end [2025-02-03 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:42:22] Production.INFO: ==7360== Releasing lock... [2025-02-03 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:42:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-03 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:43:05 [end_date_ymd] => 2025-02-03 20:43:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:43:05' and `end` < '2025-02-03 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-02-03 20:43:18] Production.INFO: count ==1484 [2025-02-03 20:43:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:43:05 - End Time 2025-02-03 20:43:05 [2025-02-03 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395541', 'tblTempUsageDetail_20' ) start [2025-02-03 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395541', 'tblTempUsageDetail_20' ) end [2025-02-03 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395541', 'tblTempVendorCDR_20' ) start [2025-02-03 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395541', 'tblTempVendorCDR_20' ) end [2025-02-03 20:43:19] Production.INFO: ProcessCDR(1,14395541,1,1,2) [2025-02-03 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395541', 'tblTempUsageDetail_20' ) start [2025-02-03 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395541', 'tblTempUsageDetail_20' ) end [2025-02-03 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:43:22] Production.INFO: ==7462== Releasing lock... [2025-02-03 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:43:22] Production.INFO: 39 MB #Memory Used# [2025-02-03 20:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:44:04 [end_date_ymd] => 2025-02-03 20:44:04 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:44:04' and `end` < '2025-02-03 20: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-02-03 20:44:17] Production.INFO: count ==1487 [2025-02-03 20:44:18] Production.ERROR: pbx CDR StartTime 2025-02-03 17:44:04 - End Time 2025-02-03 20:44:04 [2025-02-03 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395546', 'tblTempUsageDetail_20' ) start [2025-02-03 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395546', 'tblTempUsageDetail_20' ) end [2025-02-03 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395546', 'tblTempVendorCDR_20' ) start [2025-02-03 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395546', 'tblTempVendorCDR_20' ) end [2025-02-03 20:44:18] Production.INFO: ProcessCDR(1,14395546,1,1,2) [2025-02-03 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395546', 'tblTempUsageDetail_20' ) start [2025-02-03 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395546', 'tblTempUsageDetail_20' ) end [2025-02-03 20:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:44:21] Production.INFO: ==7534== Releasing lock... [2025-02-03 20:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:44:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-03 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:45:05 [end_date_ymd] => 2025-02-03 20:45:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:45:05' and `end` < '2025-02-03 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-02-03 20:45:18] Production.INFO: count ==1478 [2025-02-03 20:45:18] Production.ERROR: pbx CDR StartTime 2025-02-03 17:45:05 - End Time 2025-02-03 20:45:05 [2025-02-03 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395551', 'tblTempUsageDetail_20' ) start [2025-02-03 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395551', 'tblTempUsageDetail_20' ) end [2025-02-03 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395551', 'tblTempVendorCDR_20' ) start [2025-02-03 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395551', 'tblTempVendorCDR_20' ) end [2025-02-03 20:45:18] Production.INFO: ProcessCDR(1,14395551,1,1,2) [2025-02-03 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395551', 'tblTempUsageDetail_20' ) start [2025-02-03 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395551', 'tblTempUsageDetail_20' ) end [2025-02-03 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:45:21] Production.INFO: ==7607== Releasing lock... [2025-02-03 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:45:21] Production.INFO: 39 MB #Memory Used# [2025-02-03 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:46:05 [end_date_ymd] => 2025-02-03 20:46:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:46:05' and `end` < '2025-02-03 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-02-03 20:46:18] Production.INFO: count ==1471 [2025-02-03 20:46:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:46:05 - End Time 2025-02-03 20:46:05 [2025-02-03 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395556', 'tblTempUsageDetail_20' ) start [2025-02-03 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395556', 'tblTempUsageDetail_20' ) end [2025-02-03 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395556', 'tblTempVendorCDR_20' ) start [2025-02-03 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395556', 'tblTempVendorCDR_20' ) end [2025-02-03 20:46:19] Production.INFO: ProcessCDR(1,14395556,1,1,2) [2025-02-03 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395556', 'tblTempUsageDetail_20' ) start [2025-02-03 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395556', 'tblTempUsageDetail_20' ) end [2025-02-03 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:46:22] Production.INFO: ==7678== Releasing lock... [2025-02-03 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:46:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-03 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:47:05 [end_date_ymd] => 2025-02-03 20:47:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:47:05' and `end` < '2025-02-03 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-02-03 20:47:18] Production.INFO: count ==1466 [2025-02-03 20:47:18] Production.ERROR: pbx CDR StartTime 2025-02-03 17:47:05 - End Time 2025-02-03 20:47:05 [2025-02-03 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395561', 'tblTempUsageDetail_20' ) start [2025-02-03 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395561', 'tblTempUsageDetail_20' ) end [2025-02-03 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395561', 'tblTempVendorCDR_20' ) start [2025-02-03 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395561', 'tblTempVendorCDR_20' ) end [2025-02-03 20:47:18] Production.INFO: ProcessCDR(1,14395561,1,1,2) [2025-02-03 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395561', 'tblTempUsageDetail_20' ) start [2025-02-03 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395561', 'tblTempUsageDetail_20' ) end [2025-02-03 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:47:22] Production.INFO: ==7754== Releasing lock... [2025-02-03 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:47:22] Production.INFO: 39 MB #Memory Used# [2025-02-03 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:48:05 [end_date_ymd] => 2025-02-03 20:48:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:48:05' and `end` < '2025-02-03 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-02-03 20:48:19] Production.INFO: count ==1462 [2025-02-03 20:48:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:48:05 - End Time 2025-02-03 20:48:05 [2025-02-03 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395566', 'tblTempUsageDetail_20' ) start [2025-02-03 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395566', 'tblTempUsageDetail_20' ) end [2025-02-03 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395566', 'tblTempVendorCDR_20' ) start [2025-02-03 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395566', 'tblTempVendorCDR_20' ) end [2025-02-03 20:48:19] Production.INFO: ProcessCDR(1,14395566,1,1,2) [2025-02-03 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395566', 'tblTempUsageDetail_20' ) start [2025-02-03 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395566', 'tblTempUsageDetail_20' ) end [2025-02-03 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:48:22] Production.INFO: ==7825== Releasing lock... [2025-02-03 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:48:22] Production.INFO: 39 MB #Memory Used# [2025-02-03 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:49:04 [end_date_ymd] => 2025-02-03 20:49:04 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:49:04' and `end` < '2025-02-03 20: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-02-03 20:49:17] Production.INFO: count ==1461 [2025-02-03 20:49:18] Production.ERROR: pbx CDR StartTime 2025-02-03 17:49:04 - End Time 2025-02-03 20:49:04 [2025-02-03 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395571', 'tblTempUsageDetail_20' ) start [2025-02-03 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395571', 'tblTempUsageDetail_20' ) end [2025-02-03 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395571', 'tblTempVendorCDR_20' ) start [2025-02-03 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395571', 'tblTempVendorCDR_20' ) end [2025-02-03 20:49:18] Production.INFO: ProcessCDR(1,14395571,1,1,2) [2025-02-03 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395571', 'tblTempUsageDetail_20' ) start [2025-02-03 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395571', 'tblTempUsageDetail_20' ) end [2025-02-03 20:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:49:21] Production.INFO: ==7904== Releasing lock... [2025-02-03 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:49:21] Production.INFO: 39 MB #Memory Used# [2025-02-03 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:50:05 [end_date_ymd] => 2025-02-03 20:50:05 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:50:05' and `end` < '2025-02-03 20: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-02-03 20:50:18] Production.INFO: count ==1445 [2025-02-03 20:50:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:50:05 - End Time 2025-02-03 20:50:05 [2025-02-03 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395576', 'tblTempUsageDetail_20' ) start [2025-02-03 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395576', 'tblTempUsageDetail_20' ) end [2025-02-03 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395576', 'tblTempVendorCDR_20' ) start [2025-02-03 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395576', 'tblTempVendorCDR_20' ) end [2025-02-03 20:50:19] Production.INFO: ProcessCDR(1,14395576,1,1,2) [2025-02-03 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395576', 'tblTempUsageDetail_20' ) start [2025-02-03 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395576', 'tblTempUsageDetail_20' ) end [2025-02-03 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:50:22] Production.INFO: ==7981== Releasing lock... [2025-02-03 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:50:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-03 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:51:05 [end_date_ymd] => 2025-02-03 20:51:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:51:05' and `end` < '2025-02-03 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-02-03 20:51:18] Production.INFO: count ==1363 [2025-02-03 20:51:18] Production.ERROR: pbx CDR StartTime 2025-02-03 17:51:05 - End Time 2025-02-03 20:51:05 [2025-02-03 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395582', 'tblTempUsageDetail_20' ) start [2025-02-03 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395582', 'tblTempUsageDetail_20' ) end [2025-02-03 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395582', 'tblTempVendorCDR_20' ) start [2025-02-03 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395582', 'tblTempVendorCDR_20' ) end [2025-02-03 20:51:18] Production.INFO: ProcessCDR(1,14395582,1,1,2) [2025-02-03 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395582', 'tblTempUsageDetail_20' ) start [2025-02-03 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395582', 'tblTempUsageDetail_20' ) end [2025-02-03 20:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:51:21] Production.INFO: ==8058== Releasing lock... [2025-02-03 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:51:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-03 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:52:05 [end_date_ymd] => 2025-02-03 20:52:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:52:05' and `end` < '2025-02-03 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-02-03 20:52:18] Production.INFO: count ==1359 [2025-02-03 20:52:18] Production.ERROR: pbx CDR StartTime 2025-02-03 17:52:05 - End Time 2025-02-03 20:52:05 [2025-02-03 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395587', 'tblTempUsageDetail_20' ) start [2025-02-03 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395587', 'tblTempUsageDetail_20' ) end [2025-02-03 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395587', 'tblTempVendorCDR_20' ) start [2025-02-03 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395587', 'tblTempVendorCDR_20' ) end [2025-02-03 20:52:18] Production.INFO: ProcessCDR(1,14395587,1,1,2) [2025-02-03 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395587', 'tblTempUsageDetail_20' ) start [2025-02-03 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395587', 'tblTempUsageDetail_20' ) end [2025-02-03 20:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:52:21] Production.INFO: ==8132== Releasing lock... [2025-02-03 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:52:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-03 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:53:05 [end_date_ymd] => 2025-02-03 20:53:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:53:05' and `end` < '2025-02-03 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-02-03 20:53:19] Production.INFO: count ==1358 [2025-02-03 20:53:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:53:05 - End Time 2025-02-03 20:53:05 [2025-02-03 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395592', 'tblTempUsageDetail_20' ) start [2025-02-03 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395592', 'tblTempUsageDetail_20' ) end [2025-02-03 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395592', 'tblTempVendorCDR_20' ) start [2025-02-03 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395592', 'tblTempVendorCDR_20' ) end [2025-02-03 20:53:19] Production.INFO: ProcessCDR(1,14395592,1,1,2) [2025-02-03 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395592', 'tblTempUsageDetail_20' ) start [2025-02-03 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395592', 'tblTempUsageDetail_20' ) end [2025-02-03 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:53:22] Production.INFO: ==8211== Releasing lock... [2025-02-03 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:53:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-03 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:54:05 [end_date_ymd] => 2025-02-03 20:54:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:54:05' and `end` < '2025-02-03 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-02-03 20:54:19] Production.INFO: count ==1347 [2025-02-03 20:54:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:54:05 - End Time 2025-02-03 20:54:05 [2025-02-03 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395597', 'tblTempUsageDetail_20' ) start [2025-02-03 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395597', 'tblTempUsageDetail_20' ) end [2025-02-03 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395597', 'tblTempVendorCDR_20' ) start [2025-02-03 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395597', 'tblTempVendorCDR_20' ) end [2025-02-03 20:54:19] Production.INFO: ProcessCDR(1,14395597,1,1,2) [2025-02-03 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395597', 'tblTempUsageDetail_20' ) start [2025-02-03 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395597', 'tblTempUsageDetail_20' ) end [2025-02-03 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:54:22] Production.INFO: ==8287== Releasing lock... [2025-02-03 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:54:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-03 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:55:05 [end_date_ymd] => 2025-02-03 20:55:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:55:05' and `end` < '2025-02-03 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-02-03 20:55:18] Production.INFO: count ==1345 [2025-02-03 20:55:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:55:05 - End Time 2025-02-03 20:55:05 [2025-02-03 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395602', 'tblTempUsageDetail_20' ) start [2025-02-03 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395602', 'tblTempUsageDetail_20' ) end [2025-02-03 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395602', 'tblTempVendorCDR_20' ) start [2025-02-03 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395602', 'tblTempVendorCDR_20' ) end [2025-02-03 20:55:19] Production.INFO: ProcessCDR(1,14395602,1,1,2) [2025-02-03 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395602', 'tblTempUsageDetail_20' ) start [2025-02-03 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395602', 'tblTempUsageDetail_20' ) end [2025-02-03 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:55:22] Production.INFO: ==8403== Releasing lock... [2025-02-03 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:55:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-03 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:56:05 [end_date_ymd] => 2025-02-03 20:56:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:56:05' and `end` < '2025-02-03 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-02-03 20:56:18] Production.INFO: count ==1341 [2025-02-03 20:56:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:56:05 - End Time 2025-02-03 20:56:05 [2025-02-03 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395607', 'tblTempUsageDetail_20' ) start [2025-02-03 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395607', 'tblTempUsageDetail_20' ) end [2025-02-03 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395607', 'tblTempVendorCDR_20' ) start [2025-02-03 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395607', 'tblTempVendorCDR_20' ) end [2025-02-03 20:56:19] Production.INFO: ProcessCDR(1,14395607,1,1,2) [2025-02-03 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395607', 'tblTempUsageDetail_20' ) start [2025-02-03 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395607', 'tblTempUsageDetail_20' ) end [2025-02-03 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:56:22] Production.INFO: ==8477== Releasing lock... [2025-02-03 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:56:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-03 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:57:05 [end_date_ymd] => 2025-02-03 20:57:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:57:05' and `end` < '2025-02-03 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-02-03 20:57:19] Production.INFO: count ==1332 [2025-02-03 20:57:19] Production.ERROR: pbx CDR StartTime 2025-02-03 17:57:05 - End Time 2025-02-03 20:57:05 [2025-02-03 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395612', 'tblTempUsageDetail_20' ) start [2025-02-03 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395612', 'tblTempUsageDetail_20' ) end [2025-02-03 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395612', 'tblTempVendorCDR_20' ) start [2025-02-03 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395612', 'tblTempVendorCDR_20' ) end [2025-02-03 20:57:19] Production.INFO: ProcessCDR(1,14395612,1,1,2) [2025-02-03 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395612', 'tblTempUsageDetail_20' ) start [2025-02-03 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395612', 'tblTempUsageDetail_20' ) end [2025-02-03 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:57:22] Production.INFO: ==8551== Releasing lock... [2025-02-03 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:57:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-03 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:58:05 [end_date_ymd] => 2025-02-03 20:58:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 17:58:05' and `end` < '2025-02-03 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-02-03 20:58:18] Production.INFO: count ==1329 [2025-02-03 20:58:18] Production.ERROR: pbx CDR StartTime 2025-02-03 17:58:05 - End Time 2025-02-03 20:58:05 [2025-02-03 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395617', 'tblTempUsageDetail_20' ) start [2025-02-03 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395617', 'tblTempUsageDetail_20' ) end [2025-02-03 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395617', 'tblTempVendorCDR_20' ) start [2025-02-03 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395617', 'tblTempVendorCDR_20' ) end [2025-02-03 20:58:18] Production.INFO: ProcessCDR(1,14395617,1,1,2) [2025-02-03 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395617', 'tblTempUsageDetail_20' ) start [2025-02-03 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395617', 'tblTempUsageDetail_20' ) end [2025-02-03 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:58:21] Production.INFO: ==8624== Releasing lock... [2025-02-03 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:58:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-03 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 17:59:05 [end_date_ymd] => 2025-02-03 20:59:05 [RateCDR] => 1 ) [2025-02-03 20: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-02-03 17:59:05' and `end` < '2025-02-03 20: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-02-03 20:59:18] Production.INFO: count ==1325 [2025-02-03 20:59:18] Production.ERROR: pbx CDR StartTime 2025-02-03 17:59:05 - End Time 2025-02-03 20:59:05 [2025-02-03 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395622', 'tblTempUsageDetail_20' ) start [2025-02-03 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395622', 'tblTempUsageDetail_20' ) end [2025-02-03 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395622', 'tblTempVendorCDR_20' ) start [2025-02-03 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395622', 'tblTempVendorCDR_20' ) end [2025-02-03 20:59:18] Production.INFO: ProcessCDR(1,14395622,1,1,2) [2025-02-03 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395622', 'tblTempUsageDetail_20' ) start [2025-02-03 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395622', 'tblTempUsageDetail_20' ) end [2025-02-03 20:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 20:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 20:59:21] Production.INFO: ==8701== Releasing lock... [2025-02-03 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 20:59:21] Production.INFO: 38 MB #Memory Used# [2025-02-03 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:00:06 [end_date_ymd] => 2025-02-03 21:00:06 [RateCDR] => 1 ) [2025-02-03 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 18:00:06' and `end` < '2025-02-03 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 21:00:18] Production.INFO: count ==1325 [2025-02-03 21:00:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:00:06 - End Time 2025-02-03 21:00:06 [2025-02-03 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395627', 'tblTempUsageDetail_20' ) start [2025-02-03 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395627', 'tblTempUsageDetail_20' ) end [2025-02-03 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395627', 'tblTempVendorCDR_20' ) start [2025-02-03 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395627', 'tblTempVendorCDR_20' ) end [2025-02-03 21:00:19] Production.INFO: ProcessCDR(1,14395627,1,1,2) [2025-02-03 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395627', 'tblTempUsageDetail_20' ) start [2025-02-03 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395627', 'tblTempUsageDetail_20' ) end [2025-02-03 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:00:22] Production.INFO: ==8778== Releasing lock... [2025-02-03 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:00:22] Production.INFO: 38 MB #Memory Used# [2025-02-03 21:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:01:04 [end_date_ymd] => 2025-02-03 21:01:04 [RateCDR] => 1 ) [2025-02-03 21: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-02-03 18:01:04' and `end` < '2025-02-03 21: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-02-03 21:01:17] Production.INFO: count ==1288 [2025-02-03 21:01:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:01:04 - End Time 2025-02-03 21:01:04 [2025-02-03 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395633', 'tblTempUsageDetail_20' ) start [2025-02-03 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395633', 'tblTempUsageDetail_20' ) end [2025-02-03 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395633', 'tblTempVendorCDR_20' ) start [2025-02-03 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395633', 'tblTempVendorCDR_20' ) end [2025-02-03 21:01:18] Production.INFO: ProcessCDR(1,14395633,1,1,2) [2025-02-03 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395633', 'tblTempUsageDetail_20' ) start [2025-02-03 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395633', 'tblTempUsageDetail_20' ) end [2025-02-03 21:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:01:21] Production.INFO: ==8868== Releasing lock... [2025-02-03 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:01:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-03 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:02:06 [end_date_ymd] => 2025-02-03 21:02:06 [RateCDR] => 1 ) [2025-02-03 21: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-02-03 18:02:06' and `end` < '2025-02-03 21: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-02-03 21:02:18] Production.INFO: count ==1283 [2025-02-03 21:02:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:02:06 - End Time 2025-02-03 21:02:06 [2025-02-03 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395638', 'tblTempUsageDetail_20' ) start [2025-02-03 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395638', 'tblTempUsageDetail_20' ) end [2025-02-03 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395638', 'tblTempVendorCDR_20' ) start [2025-02-03 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395638', 'tblTempVendorCDR_20' ) end [2025-02-03 21:02:19] Production.INFO: ProcessCDR(1,14395638,1,1,2) [2025-02-03 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395638', 'tblTempUsageDetail_20' ) start [2025-02-03 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395638', 'tblTempUsageDetail_20' ) end [2025-02-03 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:02:22] Production.INFO: ==8948== Releasing lock... [2025-02-03 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:02:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-03 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:03:05 [end_date_ymd] => 2025-02-03 21:03:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:03:05' and `end` < '2025-02-03 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-02-03 21:03:18] Production.INFO: count ==1276 [2025-02-03 21:03:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:03:05 - End Time 2025-02-03 21:03:05 [2025-02-03 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395643', 'tblTempUsageDetail_20' ) start [2025-02-03 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395643', 'tblTempUsageDetail_20' ) end [2025-02-03 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395643', 'tblTempVendorCDR_20' ) start [2025-02-03 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395643', 'tblTempVendorCDR_20' ) end [2025-02-03 21:03:18] Production.INFO: ProcessCDR(1,14395643,1,1,2) [2025-02-03 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395643', 'tblTempUsageDetail_20' ) start [2025-02-03 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395643', 'tblTempUsageDetail_20' ) end [2025-02-03 21:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:03:21] Production.INFO: ==9022== Releasing lock... [2025-02-03 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:03:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-03 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:04:05 [end_date_ymd] => 2025-02-03 21:04:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:04:05' and `end` < '2025-02-03 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-02-03 21:04:18] Production.INFO: count ==1273 [2025-02-03 21:04:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:04:05 - End Time 2025-02-03 21:04:05 [2025-02-03 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395648', 'tblTempUsageDetail_20' ) start [2025-02-03 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395648', 'tblTempUsageDetail_20' ) end [2025-02-03 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395648', 'tblTempVendorCDR_20' ) start [2025-02-03 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395648', 'tblTempVendorCDR_20' ) end [2025-02-03 21:04:18] Production.INFO: ProcessCDR(1,14395648,1,1,2) [2025-02-03 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395648', 'tblTempUsageDetail_20' ) start [2025-02-03 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395648', 'tblTempUsageDetail_20' ) end [2025-02-03 21:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:04:23] Production.INFO: ==9103== Releasing lock... [2025-02-03 21:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:04:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-03 21:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:05:04 [end_date_ymd] => 2025-02-03 21:05:04 [RateCDR] => 1 ) [2025-02-03 21: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-02-03 18:05:04' and `end` < '2025-02-03 21: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-02-03 21:05:18] Production.INFO: count ==1257 [2025-02-03 21:05:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:05:04 - End Time 2025-02-03 21:05:04 [2025-02-03 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395653', 'tblTempUsageDetail_20' ) start [2025-02-03 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395653', 'tblTempUsageDetail_20' ) end [2025-02-03 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395653', 'tblTempVendorCDR_20' ) start [2025-02-03 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395653', 'tblTempVendorCDR_20' ) end [2025-02-03 21:05:18] Production.INFO: ProcessCDR(1,14395653,1,1,2) [2025-02-03 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395653', 'tblTempUsageDetail_20' ) start [2025-02-03 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395653', 'tblTempUsageDetail_20' ) end [2025-02-03 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:05:21] Production.INFO: ==9186== Releasing lock... [2025-02-03 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:05:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-03 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:06:05 [end_date_ymd] => 2025-02-03 21:06:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:06:05' and `end` < '2025-02-03 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-02-03 21:06:19] Production.INFO: count ==1251 [2025-02-03 21:06:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:06:05 - End Time 2025-02-03 21:06:05 [2025-02-03 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395658', 'tblTempUsageDetail_20' ) start [2025-02-03 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395658', 'tblTempUsageDetail_20' ) end [2025-02-03 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395658', 'tblTempVendorCDR_20' ) start [2025-02-03 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395658', 'tblTempVendorCDR_20' ) end [2025-02-03 21:06:19] Production.INFO: ProcessCDR(1,14395658,1,1,2) [2025-02-03 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395658', 'tblTempUsageDetail_20' ) start [2025-02-03 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395658', 'tblTempUsageDetail_20' ) end [2025-02-03 21:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:06:24] Production.INFO: ==9270== Releasing lock... [2025-02-03 21:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:06:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-03 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:07:05 [end_date_ymd] => 2025-02-03 21:07:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:07:05' and `end` < '2025-02-03 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-02-03 21:07:18] Production.INFO: count ==1250 [2025-02-03 21:07:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:07:05 - End Time 2025-02-03 21:07:05 [2025-02-03 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395663', 'tblTempUsageDetail_20' ) start [2025-02-03 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395663', 'tblTempUsageDetail_20' ) end [2025-02-03 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395663', 'tblTempVendorCDR_20' ) start [2025-02-03 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395663', 'tblTempVendorCDR_20' ) end [2025-02-03 21:07:18] Production.INFO: ProcessCDR(1,14395663,1,1,2) [2025-02-03 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395663', 'tblTempUsageDetail_20' ) start [2025-02-03 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395663', 'tblTempUsageDetail_20' ) end [2025-02-03 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:07:21] Production.INFO: ==9356== Releasing lock... [2025-02-03 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:07:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-03 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:08:05 [end_date_ymd] => 2025-02-03 21:08:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:08:05' and `end` < '2025-02-03 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-02-03 21:08:19] Production.INFO: count ==1248 [2025-02-03 21:08:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:08:05 - End Time 2025-02-03 21:08:05 [2025-02-03 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395668', 'tblTempUsageDetail_20' ) start [2025-02-03 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395668', 'tblTempUsageDetail_20' ) end [2025-02-03 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395668', 'tblTempVendorCDR_20' ) start [2025-02-03 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395668', 'tblTempVendorCDR_20' ) end [2025-02-03 21:08:19] Production.INFO: ProcessCDR(1,14395668,1,1,2) [2025-02-03 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395668', 'tblTempUsageDetail_20' ) start [2025-02-03 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395668', 'tblTempUsageDetail_20' ) end [2025-02-03 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:08:22] Production.INFO: ==9450== Releasing lock... [2025-02-03 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:08:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-03 21:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:09:04 [end_date_ymd] => 2025-02-03 21:09:04 [RateCDR] => 1 ) [2025-02-03 21: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-02-03 18:09:04' and `end` < '2025-02-03 21: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-02-03 21:09:18] Production.INFO: count ==1246 [2025-02-03 21:09:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:09:04 - End Time 2025-02-03 21:09:04 [2025-02-03 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395673', 'tblTempUsageDetail_20' ) start [2025-02-03 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395673', 'tblTempUsageDetail_20' ) end [2025-02-03 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395673', 'tblTempVendorCDR_20' ) start [2025-02-03 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395673', 'tblTempVendorCDR_20' ) end [2025-02-03 21:09:18] Production.INFO: ProcessCDR(1,14395673,1,1,2) [2025-02-03 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395673', 'tblTempUsageDetail_20' ) start [2025-02-03 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395673', 'tblTempUsageDetail_20' ) end [2025-02-03 21:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:09:21] Production.INFO: ==9536== Releasing lock... [2025-02-03 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:09:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-03 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:10:06 [end_date_ymd] => 2025-02-03 21:10:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:10:06' and `end` < '2025-02-03 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-02-03 21:10:19] Production.INFO: count ==1238 [2025-02-03 21:10:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:10:06 - End Time 2025-02-03 21:10:06 [2025-02-03 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395679', 'tblTempUsageDetail_20' ) start [2025-02-03 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395679', 'tblTempUsageDetail_20' ) end [2025-02-03 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395679', 'tblTempVendorCDR_20' ) start [2025-02-03 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395679', 'tblTempVendorCDR_20' ) end [2025-02-03 21:10:19] Production.INFO: ProcessCDR(1,14395679,1,1,2) [2025-02-03 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395679', 'tblTempUsageDetail_20' ) start [2025-02-03 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395679', 'tblTempUsageDetail_20' ) end [2025-02-03 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:10:23] Production.INFO: ==9673== Releasing lock... [2025-02-03 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:10:23] Production.INFO: 37 MB #Memory Used# [2025-02-03 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:11:05 [end_date_ymd] => 2025-02-03 21:11:05 [RateCDR] => 1 ) [2025-02-03 21: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-02-03 18:11:05' and `end` < '2025-02-03 21: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-02-03 21:11:18] Production.INFO: count ==1194 [2025-02-03 21:11:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:11:05 - End Time 2025-02-03 21:11:05 [2025-02-03 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395684', 'tblTempUsageDetail_20' ) start [2025-02-03 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395684', 'tblTempUsageDetail_20' ) end [2025-02-03 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395684', 'tblTempVendorCDR_20' ) start [2025-02-03 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395684', 'tblTempVendorCDR_20' ) end [2025-02-03 21:11:18] Production.INFO: ProcessCDR(1,14395684,1,1,2) [2025-02-03 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395684', 'tblTempUsageDetail_20' ) start [2025-02-03 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395684', 'tblTempUsageDetail_20' ) end [2025-02-03 21:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:11:23] Production.INFO: ==9760== Releasing lock... [2025-02-03 21:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:11:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:12:05 [end_date_ymd] => 2025-02-03 21:12:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:12:05' and `end` < '2025-02-03 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-02-03 21:12:18] Production.INFO: count ==1183 [2025-02-03 21:12:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:12:05 - End Time 2025-02-03 21:12:05 [2025-02-03 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395689', 'tblTempUsageDetail_20' ) start [2025-02-03 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395689', 'tblTempUsageDetail_20' ) end [2025-02-03 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395689', 'tblTempVendorCDR_20' ) start [2025-02-03 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395689', 'tblTempVendorCDR_20' ) end [2025-02-03 21:12:18] Production.INFO: ProcessCDR(1,14395689,1,1,2) [2025-02-03 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395689', 'tblTempUsageDetail_20' ) start [2025-02-03 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395689', 'tblTempUsageDetail_20' ) end [2025-02-03 21:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:12:23] Production.INFO: ==9848== Releasing lock... [2025-02-03 21:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:12:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:13:05 [end_date_ymd] => 2025-02-03 21:13:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:13:05' and `end` < '2025-02-03 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-02-03 21:13:18] Production.INFO: count ==1179 [2025-02-03 21:13:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:13:05 - End Time 2025-02-03 21:13:05 [2025-02-03 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395694', 'tblTempUsageDetail_20' ) start [2025-02-03 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395694', 'tblTempUsageDetail_20' ) end [2025-02-03 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395694', 'tblTempVendorCDR_20' ) start [2025-02-03 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395694', 'tblTempVendorCDR_20' ) end [2025-02-03 21:13:19] Production.INFO: ProcessCDR(1,14395694,1,1,2) [2025-02-03 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395694', 'tblTempUsageDetail_20' ) start [2025-02-03 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395694', 'tblTempUsageDetail_20' ) end [2025-02-03 21:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:13:21] Production.INFO: ==9949== Releasing lock... [2025-02-03 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:13:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:14:05 [end_date_ymd] => 2025-02-03 21:14:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:14:05' and `end` < '2025-02-03 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-02-03 21:14:18] Production.INFO: count ==1174 [2025-02-03 21:14:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:14:05 - End Time 2025-02-03 21:14:05 [2025-02-03 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395699', 'tblTempUsageDetail_20' ) start [2025-02-03 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395699', 'tblTempUsageDetail_20' ) end [2025-02-03 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395699', 'tblTempVendorCDR_20' ) start [2025-02-03 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395699', 'tblTempVendorCDR_20' ) end [2025-02-03 21:14:18] Production.INFO: ProcessCDR(1,14395699,1,1,2) [2025-02-03 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395699', 'tblTempUsageDetail_20' ) start [2025-02-03 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395699', 'tblTempUsageDetail_20' ) end [2025-02-03 21:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:14:21] Production.INFO: ==10035== Releasing lock... [2025-02-03 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:14:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-03 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:15:05 [end_date_ymd] => 2025-02-03 21:15:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:15:05' and `end` < '2025-02-03 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-02-03 21:15:19] Production.INFO: count ==1167 [2025-02-03 21:15:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:15:05 - End Time 2025-02-03 21:15:05 [2025-02-03 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395704', 'tblTempUsageDetail_20' ) start [2025-02-03 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395704', 'tblTempUsageDetail_20' ) end [2025-02-03 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395704', 'tblTempVendorCDR_20' ) start [2025-02-03 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395704', 'tblTempVendorCDR_20' ) end [2025-02-03 21:15:19] Production.INFO: ProcessCDR(1,14395704,1,1,2) [2025-02-03 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395704', 'tblTempUsageDetail_20' ) start [2025-02-03 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395704', 'tblTempUsageDetail_20' ) end [2025-02-03 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:15:22] Production.INFO: ==10131== Releasing lock... [2025-02-03 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:15:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-03 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:16:05 [end_date_ymd] => 2025-02-03 21:16:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:16:05' and `end` < '2025-02-03 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-02-03 21:16:18] Production.INFO: count ==1164 [2025-02-03 21:16:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:16:05 - End Time 2025-02-03 21:16:05 [2025-02-03 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395709', 'tblTempUsageDetail_20' ) start [2025-02-03 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395709', 'tblTempUsageDetail_20' ) end [2025-02-03 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395709', 'tblTempVendorCDR_20' ) start [2025-02-03 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395709', 'tblTempVendorCDR_20' ) end [2025-02-03 21:16:18] Production.INFO: ProcessCDR(1,14395709,1,1,2) [2025-02-03 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395709', 'tblTempUsageDetail_20' ) start [2025-02-03 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395709', 'tblTempUsageDetail_20' ) end [2025-02-03 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:16:21] Production.INFO: ==10230== Releasing lock... [2025-02-03 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:16:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:17:05 [end_date_ymd] => 2025-02-03 21:17:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:17:05' and `end` < '2025-02-03 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-02-03 21:17:19] Production.INFO: count ==1163 [2025-02-03 21:17:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:17:05 - End Time 2025-02-03 21:17:05 [2025-02-03 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395714', 'tblTempUsageDetail_20' ) start [2025-02-03 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395714', 'tblTempUsageDetail_20' ) end [2025-02-03 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395714', 'tblTempVendorCDR_20' ) start [2025-02-03 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395714', 'tblTempVendorCDR_20' ) end [2025-02-03 21:17:19] Production.INFO: ProcessCDR(1,14395714,1,1,2) [2025-02-03 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395714', 'tblTempUsageDetail_20' ) start [2025-02-03 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395714', 'tblTempUsageDetail_20' ) end [2025-02-03 21:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:17:22] Production.INFO: ==10319== Releasing lock... [2025-02-03 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:17:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-03 21:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:18:06 [end_date_ymd] => 2025-02-03 21:18:06 [RateCDR] => 1 ) [2025-02-03 21: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-02-03 18:18:06' and `end` < '2025-02-03 21: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-02-03 21:18:19] Production.INFO: count ==1162 [2025-02-03 21:18:20] Production.ERROR: pbx CDR StartTime 2025-02-03 18:18:06 - End Time 2025-02-03 21:18:06 [2025-02-03 21:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395719', 'tblTempUsageDetail_20' ) start [2025-02-03 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395719', 'tblTempUsageDetail_20' ) end [2025-02-03 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395719', 'tblTempVendorCDR_20' ) start [2025-02-03 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395719', 'tblTempVendorCDR_20' ) end [2025-02-03 21:18:20] Production.INFO: ProcessCDR(1,14395719,1,1,2) [2025-02-03 21:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395719', 'tblTempUsageDetail_20' ) start [2025-02-03 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395719', 'tblTempUsageDetail_20' ) end [2025-02-03 21:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:18:23] Production.INFO: ==10413== Releasing lock... [2025-02-03 21:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:18:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-03 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:19:05 [end_date_ymd] => 2025-02-03 21:19:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:19:05' and `end` < '2025-02-03 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-02-03 21:19:18] Production.INFO: count ==1159 [2025-02-03 21:19:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:19:05 - End Time 2025-02-03 21:19:05 [2025-02-03 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395724', 'tblTempUsageDetail_20' ) start [2025-02-03 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395724', 'tblTempUsageDetail_20' ) end [2025-02-03 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395724', 'tblTempVendorCDR_20' ) start [2025-02-03 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395724', 'tblTempVendorCDR_20' ) end [2025-02-03 21:19:18] Production.INFO: ProcessCDR(1,14395724,1,1,2) [2025-02-03 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395724', 'tblTempUsageDetail_20' ) start [2025-02-03 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395724', 'tblTempUsageDetail_20' ) end [2025-02-03 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:19:21] Production.INFO: ==10515== Releasing lock... [2025-02-03 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:19:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-03 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:20:06 [end_date_ymd] => 2025-02-03 21:20:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:20:06' and `end` < '2025-02-03 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-02-03 21:20:19] Production.INFO: count ==1156 [2025-02-03 21:20:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:20:06 - End Time 2025-02-03 21:20:06 [2025-02-03 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395730', 'tblTempUsageDetail_20' ) start [2025-02-03 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395730', 'tblTempUsageDetail_20' ) end [2025-02-03 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395730', 'tblTempVendorCDR_20' ) start [2025-02-03 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395730', 'tblTempVendorCDR_20' ) end [2025-02-03 21:20:20] Production.INFO: ProcessCDR(1,14395730,1,1,2) [2025-02-03 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395730', 'tblTempUsageDetail_20' ) start [2025-02-03 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395730', 'tblTempUsageDetail_20' ) end [2025-02-03 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:20:23] Production.INFO: ==10620== Releasing lock... [2025-02-03 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:20:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:21:05 [end_date_ymd] => 2025-02-03 21:21:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:21:05' and `end` < '2025-02-03 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-02-03 21:21:18] Production.INFO: count ==1114 [2025-02-03 21:21:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:21:05 - End Time 2025-02-03 21:21:05 [2025-02-03 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395735', 'tblTempUsageDetail_20' ) start [2025-02-03 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395735', 'tblTempUsageDetail_20' ) end [2025-02-03 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395735', 'tblTempVendorCDR_20' ) start [2025-02-03 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395735', 'tblTempVendorCDR_20' ) end [2025-02-03 21:21:19] Production.INFO: ProcessCDR(1,14395735,1,1,2) [2025-02-03 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395735', 'tblTempUsageDetail_20' ) start [2025-02-03 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395735', 'tblTempUsageDetail_20' ) end [2025-02-03 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:21:22] Production.INFO: ==10713== Releasing lock... [2025-02-03 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:21:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-03 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:22:05 [end_date_ymd] => 2025-02-03 21:22:05 [RateCDR] => 1 ) [2025-02-03 21: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-02-03 18:22:05' and `end` < '2025-02-03 21: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-02-03 21:22:18] Production.INFO: count ==1115 [2025-02-03 21:22:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:22:05 - End Time 2025-02-03 21:22:05 [2025-02-03 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395740', 'tblTempUsageDetail_20' ) start [2025-02-03 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395740', 'tblTempUsageDetail_20' ) end [2025-02-03 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395740', 'tblTempVendorCDR_20' ) start [2025-02-03 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395740', 'tblTempVendorCDR_20' ) end [2025-02-03 21:22:18] Production.INFO: ProcessCDR(1,14395740,1,1,2) [2025-02-03 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395740', 'tblTempUsageDetail_20' ) start [2025-02-03 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395740', 'tblTempUsageDetail_20' ) end [2025-02-03 21:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:22:21] Production.INFO: ==10805== Releasing lock... [2025-02-03 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:22:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-03 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:23:05 [end_date_ymd] => 2025-02-03 21:23:05 [RateCDR] => 1 ) [2025-02-03 21: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-02-03 18:23:05' and `end` < '2025-02-03 21: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-02-03 21:23:18] Production.INFO: count ==1112 [2025-02-03 21:23:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:23:05 - End Time 2025-02-03 21:23:05 [2025-02-03 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395745', 'tblTempUsageDetail_20' ) start [2025-02-03 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395745', 'tblTempUsageDetail_20' ) end [2025-02-03 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395745', 'tblTempVendorCDR_20' ) start [2025-02-03 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395745', 'tblTempVendorCDR_20' ) end [2025-02-03 21:23:18] Production.INFO: ProcessCDR(1,14395745,1,1,2) [2025-02-03 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395745', 'tblTempUsageDetail_20' ) start [2025-02-03 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395745', 'tblTempUsageDetail_20' ) end [2025-02-03 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:23:21] Production.INFO: ==10891== Releasing lock... [2025-02-03 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:23:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-03 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:24:05 [end_date_ymd] => 2025-02-03 21:24:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:24:05' and `end` < '2025-02-03 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-02-03 21:24:18] Production.INFO: count ==1112 [2025-02-03 21:24:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:24:05 - End Time 2025-02-03 21:24:05 [2025-02-03 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395750', 'tblTempUsageDetail_20' ) start [2025-02-03 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395750', 'tblTempUsageDetail_20' ) end [2025-02-03 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395750', 'tblTempVendorCDR_20' ) start [2025-02-03 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395750', 'tblTempVendorCDR_20' ) end [2025-02-03 21:24:18] Production.INFO: ProcessCDR(1,14395750,1,1,2) [2025-02-03 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395750', 'tblTempUsageDetail_20' ) start [2025-02-03 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395750', 'tblTempUsageDetail_20' ) end [2025-02-03 21:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:24:21] Production.INFO: ==10985== Releasing lock... [2025-02-03 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:24:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-03 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:25:04 [end_date_ymd] => 2025-02-03 21:25:04 [RateCDR] => 1 ) [2025-02-03 21:25: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-02-03 18:25:04' and `end` < '2025-02-03 21:25: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-02-03 21:25:17] Production.INFO: count ==1108 [2025-02-03 21:25:17] Production.ERROR: pbx CDR StartTime 2025-02-03 18:25:04 - End Time 2025-02-03 21:25:04 [2025-02-03 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395755', 'tblTempUsageDetail_20' ) start [2025-02-03 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395755', 'tblTempUsageDetail_20' ) end [2025-02-03 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395755', 'tblTempVendorCDR_20' ) start [2025-02-03 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395755', 'tblTempVendorCDR_20' ) end [2025-02-03 21:25:17] Production.INFO: ProcessCDR(1,14395755,1,1,2) [2025-02-03 21:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395755', 'tblTempUsageDetail_20' ) start [2025-02-03 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395755', 'tblTempUsageDetail_20' ) end [2025-02-03 21:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:25:21] Production.INFO: ==11119== Releasing lock... [2025-02-03 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:25:21] Production.INFO: 36 MB #Memory Used# [2025-02-03 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:26:05 [end_date_ymd] => 2025-02-03 21:26:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:26:05' and `end` < '2025-02-03 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-02-03 21:26:19] Production.INFO: count ==1104 [2025-02-03 21:26:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:26:05 - End Time 2025-02-03 21:26:05 [2025-02-03 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395760', 'tblTempUsageDetail_20' ) start [2025-02-03 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395760', 'tblTempUsageDetail_20' ) end [2025-02-03 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395760', 'tblTempVendorCDR_20' ) start [2025-02-03 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395760', 'tblTempVendorCDR_20' ) end [2025-02-03 21:26:19] Production.INFO: ProcessCDR(1,14395760,1,1,2) [2025-02-03 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395760', 'tblTempUsageDetail_20' ) start [2025-02-03 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395760', 'tblTempUsageDetail_20' ) end [2025-02-03 21:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:26:23] Production.INFO: ==11219== Releasing lock... [2025-02-03 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:26:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-03 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:27:05 [end_date_ymd] => 2025-02-03 21:27:05 [RateCDR] => 1 ) [2025-02-03 21: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-02-03 18:27:05' and `end` < '2025-02-03 21: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-02-03 21:27:18] Production.INFO: count ==1075 [2025-02-03 21:27:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:27:05 - End Time 2025-02-03 21:27:05 [2025-02-03 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395765', 'tblTempUsageDetail_20' ) start [2025-02-03 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395765', 'tblTempUsageDetail_20' ) end [2025-02-03 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395765', 'tblTempVendorCDR_20' ) start [2025-02-03 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395765', 'tblTempVendorCDR_20' ) end [2025-02-03 21:27:18] Production.INFO: ProcessCDR(1,14395765,1,1,2) [2025-02-03 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395765', 'tblTempUsageDetail_20' ) start [2025-02-03 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395765', 'tblTempUsageDetail_20' ) end [2025-02-03 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:27:21] Production.INFO: ==11314== Releasing lock... [2025-02-03 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:27:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-03 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:28:05 [end_date_ymd] => 2025-02-03 21:28:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:28:05' and `end` < '2025-02-03 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-02-03 21:28:18] Production.INFO: count ==1062 [2025-02-03 21:28:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:28:05 - End Time 2025-02-03 21:28:05 [2025-02-03 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395770', 'tblTempUsageDetail_20' ) start [2025-02-03 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395770', 'tblTempUsageDetail_20' ) end [2025-02-03 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395770', 'tblTempVendorCDR_20' ) start [2025-02-03 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395770', 'tblTempVendorCDR_20' ) end [2025-02-03 21:28:18] Production.INFO: ProcessCDR(1,14395770,1,1,2) [2025-02-03 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395770', 'tblTempUsageDetail_20' ) start [2025-02-03 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395770', 'tblTempUsageDetail_20' ) end [2025-02-03 21:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:28:21] Production.INFO: ==11411== Releasing lock... [2025-02-03 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:28:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-03 21:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:29:06 [end_date_ymd] => 2025-02-03 21:29:06 [RateCDR] => 1 ) [2025-02-03 21: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-02-03 18:29:06' and `end` < '2025-02-03 21: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-02-03 21:29:19] Production.INFO: count ==1055 [2025-02-03 21:29:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:29:06 - End Time 2025-02-03 21:29:06 [2025-02-03 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395775', 'tblTempUsageDetail_20' ) start [2025-02-03 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395775', 'tblTempUsageDetail_20' ) end [2025-02-03 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395775', 'tblTempVendorCDR_20' ) start [2025-02-03 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395775', 'tblTempVendorCDR_20' ) end [2025-02-03 21:29:19] Production.INFO: ProcessCDR(1,14395775,1,1,2) [2025-02-03 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395775', 'tblTempUsageDetail_20' ) start [2025-02-03 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395775', 'tblTempUsageDetail_20' ) end [2025-02-03 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:29:22] Production.INFO: ==11512== Releasing lock... [2025-02-03 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:29:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-03 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:30:06 [end_date_ymd] => 2025-02-03 21:30:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:30:06' and `end` < '2025-02-03 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-02-03 21:30:18] Production.INFO: count ==1053 [2025-02-03 21:30:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:30:06 - End Time 2025-02-03 21:30:06 [2025-02-03 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395781', 'tblTempUsageDetail_20' ) start [2025-02-03 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395781', 'tblTempUsageDetail_20' ) end [2025-02-03 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395781', 'tblTempVendorCDR_20' ) start [2025-02-03 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395781', 'tblTempVendorCDR_20' ) end [2025-02-03 21:30:19] Production.INFO: ProcessCDR(1,14395781,1,1,2) [2025-02-03 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395781', 'tblTempUsageDetail_20' ) start [2025-02-03 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395781', 'tblTempUsageDetail_20' ) end [2025-02-03 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:30:22] Production.INFO: ==11613== Releasing lock... [2025-02-03 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:30:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-03 21:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:31:06 [end_date_ymd] => 2025-02-03 21:31:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:31:06' and `end` < '2025-02-03 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-02-03 21:31:18] Production.INFO: count ==992 [2025-02-03 21:31:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:31:06 - End Time 2025-02-03 21:31:06 [2025-02-03 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395786', 'tblTempUsageDetail_20' ) start [2025-02-03 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395786', 'tblTempUsageDetail_20' ) end [2025-02-03 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395786', 'tblTempVendorCDR_20' ) start [2025-02-03 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395786', 'tblTempVendorCDR_20' ) end [2025-02-03 21:31:19] Production.INFO: ProcessCDR(1,14395786,1,1,2) [2025-02-03 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395786', 'tblTempUsageDetail_20' ) start [2025-02-03 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395786', 'tblTempUsageDetail_20' ) end [2025-02-03 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:31:23] Production.INFO: ==11690== Releasing lock... [2025-02-03 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:31:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:32:05 [end_date_ymd] => 2025-02-03 21:32:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:32:05' and `end` < '2025-02-03 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-02-03 21:32:18] Production.INFO: count ==991 [2025-02-03 21:32:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:32:05 - End Time 2025-02-03 21:32:05 [2025-02-03 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395791', 'tblTempUsageDetail_20' ) start [2025-02-03 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395791', 'tblTempUsageDetail_20' ) end [2025-02-03 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395791', 'tblTempVendorCDR_20' ) start [2025-02-03 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395791', 'tblTempVendorCDR_20' ) end [2025-02-03 21:32:19] Production.INFO: ProcessCDR(1,14395791,1,1,2) [2025-02-03 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395791', 'tblTempUsageDetail_20' ) start [2025-02-03 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395791', 'tblTempUsageDetail_20' ) end [2025-02-03 21:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:32:21] Production.INFO: ==11762== Releasing lock... [2025-02-03 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:32:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:33:05 [end_date_ymd] => 2025-02-03 21:33:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:33:05' and `end` < '2025-02-03 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-02-03 21:33:18] Production.INFO: count ==988 [2025-02-03 21:33:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:33:05 - End Time 2025-02-03 21:33:05 [2025-02-03 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395796', 'tblTempUsageDetail_20' ) start [2025-02-03 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395796', 'tblTempUsageDetail_20' ) end [2025-02-03 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395796', 'tblTempVendorCDR_20' ) start [2025-02-03 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395796', 'tblTempVendorCDR_20' ) end [2025-02-03 21:33:18] Production.INFO: ProcessCDR(1,14395796,1,1,2) [2025-02-03 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395796', 'tblTempUsageDetail_20' ) start [2025-02-03 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395796', 'tblTempUsageDetail_20' ) end [2025-02-03 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:33:21] Production.INFO: ==11842== Releasing lock... [2025-02-03 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:33:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:34:05 [end_date_ymd] => 2025-02-03 21:34:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:34:05' and `end` < '2025-02-03 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-02-03 21:34:18] Production.INFO: count ==983 [2025-02-03 21:34:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:34:05 - End Time 2025-02-03 21:34:05 [2025-02-03 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395801', 'tblTempUsageDetail_20' ) start [2025-02-03 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395801', 'tblTempUsageDetail_20' ) end [2025-02-03 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395801', 'tblTempVendorCDR_20' ) start [2025-02-03 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395801', 'tblTempVendorCDR_20' ) end [2025-02-03 21:34:18] Production.INFO: ProcessCDR(1,14395801,1,1,2) [2025-02-03 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395801', 'tblTempUsageDetail_20' ) start [2025-02-03 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395801', 'tblTempUsageDetail_20' ) end [2025-02-03 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:34:21] Production.INFO: ==11921== Releasing lock... [2025-02-03 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:34:21] Production.INFO: 35 MB #Memory Used# [2025-02-03 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:35:05 [end_date_ymd] => 2025-02-03 21:35:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:35:05' and `end` < '2025-02-03 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-02-03 21:35:18] Production.INFO: count ==989 [2025-02-03 21:35:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:35:05 - End Time 2025-02-03 21:35:05 [2025-02-03 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395806', 'tblTempUsageDetail_20' ) start [2025-02-03 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395806', 'tblTempUsageDetail_20' ) end [2025-02-03 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395806', 'tblTempVendorCDR_20' ) start [2025-02-03 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395806', 'tblTempVendorCDR_20' ) end [2025-02-03 21:35:18] Production.INFO: ProcessCDR(1,14395806,1,1,2) [2025-02-03 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395806', 'tblTempUsageDetail_20' ) start [2025-02-03 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395806', 'tblTempUsageDetail_20' ) end [2025-02-03 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:35:21] Production.INFO: ==11995== Releasing lock... [2025-02-03 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:35:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 21:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:36:06 [end_date_ymd] => 2025-02-03 21:36:06 [RateCDR] => 1 ) [2025-02-03 21: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-02-03 18:36:06' and `end` < '2025-02-03 21: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-02-03 21:36:18] Production.INFO: count ==987 [2025-02-03 21:36:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:36:06 - End Time 2025-02-03 21:36:06 [2025-02-03 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395811', 'tblTempUsageDetail_20' ) start [2025-02-03 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395811', 'tblTempUsageDetail_20' ) end [2025-02-03 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395811', 'tblTempVendorCDR_20' ) start [2025-02-03 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395811', 'tblTempVendorCDR_20' ) end [2025-02-03 21:36:19] Production.INFO: ProcessCDR(1,14395811,1,1,2) [2025-02-03 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395811', 'tblTempUsageDetail_20' ) start [2025-02-03 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395811', 'tblTempUsageDetail_20' ) end [2025-02-03 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:36:22] Production.INFO: ==12070== Releasing lock... [2025-02-03 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:36:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 21:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:37:04 [end_date_ymd] => 2025-02-03 21:37:04 [RateCDR] => 1 ) [2025-02-03 21: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-02-03 18:37:04' and `end` < '2025-02-03 21: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-02-03 21:37:17] Production.INFO: count ==981 [2025-02-03 21:37:17] Production.ERROR: pbx CDR StartTime 2025-02-03 18:37:04 - End Time 2025-02-03 21:37:04 [2025-02-03 21:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395816', 'tblTempUsageDetail_20' ) start [2025-02-03 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395816', 'tblTempUsageDetail_20' ) end [2025-02-03 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395816', 'tblTempVendorCDR_20' ) start [2025-02-03 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395816', 'tblTempVendorCDR_20' ) end [2025-02-03 21:37:17] Production.INFO: ProcessCDR(1,14395816,1,1,2) [2025-02-03 21:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395816', 'tblTempUsageDetail_20' ) start [2025-02-03 21:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395816', 'tblTempUsageDetail_20' ) end [2025-02-03 21:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:37:20] Production.INFO: ==12142== Releasing lock... [2025-02-03 21:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:37:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:38:05 [end_date_ymd] => 2025-02-03 21:38:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:38:05' and `end` < '2025-02-03 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-02-03 21:38:18] Production.INFO: count ==980 [2025-02-03 21:38:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:38:05 - End Time 2025-02-03 21:38:05 [2025-02-03 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395821', 'tblTempUsageDetail_20' ) start [2025-02-03 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395821', 'tblTempUsageDetail_20' ) end [2025-02-03 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395821', 'tblTempVendorCDR_20' ) start [2025-02-03 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395821', 'tblTempVendorCDR_20' ) end [2025-02-03 21:38:19] Production.INFO: ProcessCDR(1,14395821,1,1,2) [2025-02-03 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395821', 'tblTempUsageDetail_20' ) start [2025-02-03 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395821', 'tblTempUsageDetail_20' ) end [2025-02-03 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:38:22] Production.INFO: ==12220== Releasing lock... [2025-02-03 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:38:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:39:05 [end_date_ymd] => 2025-02-03 21:39:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:39:05' and `end` < '2025-02-03 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-02-03 21:39:18] Production.INFO: count ==978 [2025-02-03 21:39:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:39:05 - End Time 2025-02-03 21:39:05 [2025-02-03 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395826', 'tblTempUsageDetail_20' ) start [2025-02-03 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395826', 'tblTempUsageDetail_20' ) end [2025-02-03 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395826', 'tblTempVendorCDR_20' ) start [2025-02-03 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395826', 'tblTempVendorCDR_20' ) end [2025-02-03 21:39:18] Production.INFO: ProcessCDR(1,14395826,1,1,2) [2025-02-03 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395826', 'tblTempUsageDetail_20' ) start [2025-02-03 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395826', 'tblTempUsageDetail_20' ) end [2025-02-03 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:39:21] Production.INFO: ==12293== Releasing lock... [2025-02-03 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:39:21] Production.INFO: 35 MB #Memory Used# [2025-02-03 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:40:06 [end_date_ymd] => 2025-02-03 21:40:06 [RateCDR] => 1 ) [2025-02-03 21: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-02-03 18:40:06' and `end` < '2025-02-03 21: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-02-03 21:40:19] Production.INFO: count ==975 [2025-02-03 21:40:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:40:06 - End Time 2025-02-03 21:40:06 [2025-02-03 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395831', 'tblTempUsageDetail_20' ) start [2025-02-03 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395831', 'tblTempUsageDetail_20' ) end [2025-02-03 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395831', 'tblTempVendorCDR_20' ) start [2025-02-03 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395831', 'tblTempVendorCDR_20' ) end [2025-02-03 21:40:19] Production.INFO: ProcessCDR(1,14395831,1,1,2) [2025-02-03 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395831', 'tblTempUsageDetail_20' ) start [2025-02-03 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395831', 'tblTempUsageDetail_20' ) end [2025-02-03 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:40:22] Production.INFO: ==12370== Releasing lock... [2025-02-03 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:40:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:41:05 [end_date_ymd] => 2025-02-03 21:41:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:41:05' and `end` < '2025-02-03 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-02-03 21:41:20] Production.INFO: count ==963 [2025-02-03 21:41:20] Production.ERROR: pbx CDR StartTime 2025-02-03 18:41:05 - End Time 2025-02-03 21:41:05 [2025-02-03 21:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395837', 'tblTempUsageDetail_20' ) start [2025-02-03 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395837', 'tblTempUsageDetail_20' ) end [2025-02-03 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395837', 'tblTempVendorCDR_20' ) start [2025-02-03 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395837', 'tblTempVendorCDR_20' ) end [2025-02-03 21:41:20] Production.INFO: ProcessCDR(1,14395837,1,1,2) [2025-02-03 21:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395837', 'tblTempUsageDetail_20' ) start [2025-02-03 21:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395837', 'tblTempUsageDetail_20' ) end [2025-02-03 21:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:41:24] Production.INFO: ==12492== Releasing lock... [2025-02-03 21:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:41:24] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:42:05 [end_date_ymd] => 2025-02-03 21:42:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:42:05' and `end` < '2025-02-03 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-02-03 21:42:18] Production.INFO: count ==963 [2025-02-03 21:42:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:42:05 - End Time 2025-02-03 21:42:05 [2025-02-03 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395842', 'tblTempUsageDetail_20' ) start [2025-02-03 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395842', 'tblTempUsageDetail_20' ) end [2025-02-03 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395842', 'tblTempVendorCDR_20' ) start [2025-02-03 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395842', 'tblTempVendorCDR_20' ) end [2025-02-03 21:42:18] Production.INFO: ProcessCDR(1,14395842,1,1,2) [2025-02-03 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395842', 'tblTempUsageDetail_20' ) start [2025-02-03 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395842', 'tblTempUsageDetail_20' ) end [2025-02-03 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:42:21] Production.INFO: ==12565== Releasing lock... [2025-02-03 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:42:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:43:05 [end_date_ymd] => 2025-02-03 21:43:05 [RateCDR] => 1 ) [2025-02-03 21: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-02-03 18:43:05' and `end` < '2025-02-03 21: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-02-03 21:43:18] Production.INFO: count ==948 [2025-02-03 21:43:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:43:05 - End Time 2025-02-03 21:43:05 [2025-02-03 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395847', 'tblTempUsageDetail_20' ) start [2025-02-03 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395847', 'tblTempUsageDetail_20' ) end [2025-02-03 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395847', 'tblTempVendorCDR_20' ) start [2025-02-03 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395847', 'tblTempVendorCDR_20' ) end [2025-02-03 21:43:18] Production.INFO: ProcessCDR(1,14395847,1,1,2) [2025-02-03 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395847', 'tblTempUsageDetail_20' ) start [2025-02-03 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395847', 'tblTempUsageDetail_20' ) end [2025-02-03 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:43:22] Production.INFO: ==12641== Releasing lock... [2025-02-03 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:43:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:44:05 [end_date_ymd] => 2025-02-03 21:44:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:44:05' and `end` < '2025-02-03 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-02-03 21:44:19] Production.INFO: count ==946 [2025-02-03 21:44:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:44:05 - End Time 2025-02-03 21:44:05 [2025-02-03 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395852', 'tblTempUsageDetail_20' ) start [2025-02-03 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395852', 'tblTempUsageDetail_20' ) end [2025-02-03 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395852', 'tblTempVendorCDR_20' ) start [2025-02-03 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395852', 'tblTempVendorCDR_20' ) end [2025-02-03 21:44:20] Production.INFO: ProcessCDR(1,14395852,1,1,2) [2025-02-03 21:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395852', 'tblTempUsageDetail_20' ) start [2025-02-03 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395852', 'tblTempUsageDetail_20' ) end [2025-02-03 21:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:44:23] Production.INFO: ==12715== Releasing lock... [2025-02-03 21:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:44:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:45:05 [end_date_ymd] => 2025-02-03 21:45:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:45:05' and `end` < '2025-02-03 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-02-03 21:45:18] Production.INFO: count ==947 [2025-02-03 21:45:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:45:05 - End Time 2025-02-03 21:45:05 [2025-02-03 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395857', 'tblTempUsageDetail_20' ) start [2025-02-03 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395857', 'tblTempUsageDetail_20' ) end [2025-02-03 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395857', 'tblTempVendorCDR_20' ) start [2025-02-03 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395857', 'tblTempVendorCDR_20' ) end [2025-02-03 21:45:18] Production.INFO: ProcessCDR(1,14395857,1,1,2) [2025-02-03 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395857', 'tblTempUsageDetail_20' ) start [2025-02-03 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395857', 'tblTempUsageDetail_20' ) end [2025-02-03 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:45:21] Production.INFO: ==12787== Releasing lock... [2025-02-03 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:45:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:46:05 [end_date_ymd] => 2025-02-03 21:46:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:46:05' and `end` < '2025-02-03 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-02-03 21:46:18] Production.INFO: count ==967 [2025-02-03 21:46:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:46:05 - End Time 2025-02-03 21:46:05 [2025-02-03 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395862', 'tblTempUsageDetail_20' ) start [2025-02-03 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395862', 'tblTempUsageDetail_20' ) end [2025-02-03 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395862', 'tblTempVendorCDR_20' ) start [2025-02-03 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395862', 'tblTempVendorCDR_20' ) end [2025-02-03 21:46:18] Production.INFO: ProcessCDR(1,14395862,1,1,2) [2025-02-03 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395862', 'tblTempUsageDetail_20' ) start [2025-02-03 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395862', 'tblTempUsageDetail_20' ) end [2025-02-03 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:46:21] Production.INFO: ==12864== Releasing lock... [2025-02-03 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:46:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:47:05 [end_date_ymd] => 2025-02-03 21:47:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:47:05' and `end` < '2025-02-03 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-02-03 21:47:18] Production.INFO: count ==1006 [2025-02-03 21:47:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:47:05 - End Time 2025-02-03 21:47:05 [2025-02-03 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395867', 'tblTempUsageDetail_20' ) start [2025-02-03 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395867', 'tblTempUsageDetail_20' ) end [2025-02-03 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395867', 'tblTempVendorCDR_20' ) start [2025-02-03 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395867', 'tblTempVendorCDR_20' ) end [2025-02-03 21:47:18] Production.INFO: ProcessCDR(1,14395867,1,1,2) [2025-02-03 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395867', 'tblTempUsageDetail_20' ) start [2025-02-03 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395867', 'tblTempUsageDetail_20' ) end [2025-02-03 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:47:21] Production.INFO: ==12936== Releasing lock... [2025-02-03 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:47:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 21:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:48:06 [end_date_ymd] => 2025-02-03 21:48:06 [RateCDR] => 1 ) [2025-02-03 21: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-02-03 18:48:06' and `end` < '2025-02-03 21: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-02-03 21:48:18] Production.INFO: count ==1046 [2025-02-03 21:48:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:48:06 - End Time 2025-02-03 21:48:06 [2025-02-03 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395872', 'tblTempUsageDetail_20' ) start [2025-02-03 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395872', 'tblTempUsageDetail_20' ) end [2025-02-03 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395872', 'tblTempVendorCDR_20' ) start [2025-02-03 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395872', 'tblTempVendorCDR_20' ) end [2025-02-03 21:48:19] Production.INFO: ProcessCDR(1,14395872,1,1,2) [2025-02-03 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395872', 'tblTempUsageDetail_20' ) start [2025-02-03 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395872', 'tblTempUsageDetail_20' ) end [2025-02-03 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:48:22] Production.INFO: ==13012== Releasing lock... [2025-02-03 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:48:22] Production.INFO: 36 MB #Memory Used# [2025-02-03 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:49:05 [end_date_ymd] => 2025-02-03 21:49:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:49:05' and `end` < '2025-02-03 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-02-03 21:49:18] Production.INFO: count ==1081 [2025-02-03 21:49:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:49:05 - End Time 2025-02-03 21:49:05 [2025-02-03 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395877', 'tblTempUsageDetail_20' ) start [2025-02-03 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395877', 'tblTempUsageDetail_20' ) end [2025-02-03 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395877', 'tblTempVendorCDR_20' ) start [2025-02-03 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395877', 'tblTempVendorCDR_20' ) end [2025-02-03 21:49:18] Production.INFO: ProcessCDR(1,14395877,1,1,2) [2025-02-03 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395877', 'tblTempUsageDetail_20' ) start [2025-02-03 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395877', 'tblTempUsageDetail_20' ) end [2025-02-03 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:49:21] Production.INFO: ==13091== Releasing lock... [2025-02-03 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:49:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-03 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:50:06 [end_date_ymd] => 2025-02-03 21:50:06 [RateCDR] => 1 ) [2025-02-03 21: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-02-03 18:50:06' and `end` < '2025-02-03 21: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-02-03 21:50:19] Production.INFO: count ==1117 [2025-02-03 21:50:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:50:06 - End Time 2025-02-03 21:50:06 [2025-02-03 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395883', 'tblTempUsageDetail_20' ) start [2025-02-03 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395883', 'tblTempUsageDetail_20' ) end [2025-02-03 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395883', 'tblTempVendorCDR_20' ) start [2025-02-03 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395883', 'tblTempVendorCDR_20' ) end [2025-02-03 21:50:19] Production.INFO: ProcessCDR(1,14395883,1,1,2) [2025-02-03 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395883', 'tblTempUsageDetail_20' ) start [2025-02-03 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395883', 'tblTempUsageDetail_20' ) end [2025-02-03 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:50:22] Production.INFO: ==13165== Releasing lock... [2025-02-03 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:50:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-03 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:51:05 [end_date_ymd] => 2025-02-03 21:51:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:51:05' and `end` < '2025-02-03 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-02-03 21:51:18] Production.INFO: count ==1306 [2025-02-03 21:51:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:51:05 - End Time 2025-02-03 21:51:05 [2025-02-03 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395888', 'tblTempUsageDetail_20' ) start [2025-02-03 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395888', 'tblTempUsageDetail_20' ) end [2025-02-03 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395888', 'tblTempVendorCDR_20' ) start [2025-02-03 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395888', 'tblTempVendorCDR_20' ) end [2025-02-03 21:51:19] Production.INFO: ProcessCDR(1,14395888,1,1,2) [2025-02-03 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395888', 'tblTempUsageDetail_20' ) start [2025-02-03 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395888', 'tblTempUsageDetail_20' ) end [2025-02-03 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:51:22] Production.INFO: ==13241== Releasing lock... [2025-02-03 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:51:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-03 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:52:05 [end_date_ymd] => 2025-02-03 21:52:05 [RateCDR] => 1 ) [2025-02-03 21: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-02-03 18:52:05' and `end` < '2025-02-03 21: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-02-03 21:52:19] Production.INFO: count ==1306 [2025-02-03 21:52:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:52:05 - End Time 2025-02-03 21:52:05 [2025-02-03 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395893', 'tblTempUsageDetail_20' ) start [2025-02-03 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395893', 'tblTempUsageDetail_20' ) end [2025-02-03 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395893', 'tblTempVendorCDR_20' ) start [2025-02-03 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395893', 'tblTempVendorCDR_20' ) end [2025-02-03 21:52:19] Production.INFO: ProcessCDR(1,14395893,1,1,2) [2025-02-03 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395893', 'tblTempUsageDetail_20' ) start [2025-02-03 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395893', 'tblTempUsageDetail_20' ) end [2025-02-03 21:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:52:23] Production.INFO: ==13313== Releasing lock... [2025-02-03 21:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:52:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-03 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:53:05 [end_date_ymd] => 2025-02-03 21:53:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:53:05' and `end` < '2025-02-03 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-02-03 21:53:19] Production.INFO: count ==1305 [2025-02-03 21:53:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:53:05 - End Time 2025-02-03 21:53:05 [2025-02-03 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395898', 'tblTempUsageDetail_20' ) start [2025-02-03 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395898', 'tblTempUsageDetail_20' ) end [2025-02-03 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395898', 'tblTempVendorCDR_20' ) start [2025-02-03 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395898', 'tblTempVendorCDR_20' ) end [2025-02-03 21:53:19] Production.INFO: ProcessCDR(1,14395898,1,1,2) [2025-02-03 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395898', 'tblTempUsageDetail_20' ) start [2025-02-03 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395898', 'tblTempUsageDetail_20' ) end [2025-02-03 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:53:22] Production.INFO: ==13387== Releasing lock... [2025-02-03 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:53:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-03 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:54:06 [end_date_ymd] => 2025-02-03 21:54:06 [RateCDR] => 1 ) [2025-02-03 21: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-02-03 18:54:06' and `end` < '2025-02-03 21: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-02-03 21:54:19] Production.INFO: count ==1306 [2025-02-03 21:54:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:54:06 - End Time 2025-02-03 21:54:06 [2025-02-03 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395903', 'tblTempUsageDetail_20' ) start [2025-02-03 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395903', 'tblTempUsageDetail_20' ) end [2025-02-03 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395903', 'tblTempVendorCDR_20' ) start [2025-02-03 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395903', 'tblTempVendorCDR_20' ) end [2025-02-03 21:54:19] Production.INFO: ProcessCDR(1,14395903,1,1,2) [2025-02-03 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395903', 'tblTempUsageDetail_20' ) start [2025-02-03 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395903', 'tblTempUsageDetail_20' ) end [2025-02-03 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:54:22] Production.INFO: ==13459== Releasing lock... [2025-02-03 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:54:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-03 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:55:05 [end_date_ymd] => 2025-02-03 21:55:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:55:05' and `end` < '2025-02-03 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-02-03 21:55:18] Production.INFO: count ==1304 [2025-02-03 21:55:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:55:05 - End Time 2025-02-03 21:55:05 [2025-02-03 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395908', 'tblTempUsageDetail_20' ) start [2025-02-03 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395908', 'tblTempUsageDetail_20' ) end [2025-02-03 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395908', 'tblTempVendorCDR_20' ) start [2025-02-03 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395908', 'tblTempVendorCDR_20' ) end [2025-02-03 21:55:18] Production.INFO: ProcessCDR(1,14395908,1,1,2) [2025-02-03 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395908', 'tblTempUsageDetail_20' ) start [2025-02-03 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395908', 'tblTempUsageDetail_20' ) end [2025-02-03 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:55:21] Production.INFO: ==13534== Releasing lock... [2025-02-03 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:55:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-03 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:56:05 [end_date_ymd] => 2025-02-03 21:56:05 [RateCDR] => 1 ) [2025-02-03 21: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-02-03 18:56:05' and `end` < '2025-02-03 21: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-02-03 21:56:20] Production.INFO: count ==1298 [2025-02-03 21:56:20] Production.ERROR: pbx CDR StartTime 2025-02-03 18:56:05 - End Time 2025-02-03 21:56:05 [2025-02-03 21:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395913', 'tblTempUsageDetail_20' ) start [2025-02-03 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395913', 'tblTempUsageDetail_20' ) end [2025-02-03 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395913', 'tblTempVendorCDR_20' ) start [2025-02-03 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395913', 'tblTempVendorCDR_20' ) end [2025-02-03 21:56:20] Production.INFO: ProcessCDR(1,14395913,1,1,2) [2025-02-03 21:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395913', 'tblTempUsageDetail_20' ) start [2025-02-03 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395913', 'tblTempUsageDetail_20' ) end [2025-02-03 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:56:23] Production.INFO: ==13645== Releasing lock... [2025-02-03 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:56:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-03 21:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:57:04 [end_date_ymd] => 2025-02-03 21:57:04 [RateCDR] => 1 ) [2025-02-03 21:57: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-02-03 18:57:04' and `end` < '2025-02-03 21: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-02-03 21:57:17] Production.INFO: count ==1295 [2025-02-03 21:57:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:57:04 - End Time 2025-02-03 21:57:04 [2025-02-03 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395918', 'tblTempUsageDetail_20' ) start [2025-02-03 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395918', 'tblTempUsageDetail_20' ) end [2025-02-03 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395918', 'tblTempVendorCDR_20' ) start [2025-02-03 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395918', 'tblTempVendorCDR_20' ) end [2025-02-03 21:57:18] Production.INFO: ProcessCDR(1,14395918,1,1,2) [2025-02-03 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395918', 'tblTempUsageDetail_20' ) start [2025-02-03 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395918', 'tblTempUsageDetail_20' ) end [2025-02-03 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:57:22] Production.INFO: ==13715== Releasing lock... [2025-02-03 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:57:22] Production.INFO: 38 MB #Memory Used# [2025-02-03 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:58:05 [end_date_ymd] => 2025-02-03 21:58:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:58:05' and `end` < '2025-02-03 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-02-03 21:58:18] Production.INFO: count ==1293 [2025-02-03 21:58:18] Production.ERROR: pbx CDR StartTime 2025-02-03 18:58:05 - End Time 2025-02-03 21:58:05 [2025-02-03 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395923', 'tblTempUsageDetail_20' ) start [2025-02-03 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395923', 'tblTempUsageDetail_20' ) end [2025-02-03 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395923', 'tblTempVendorCDR_20' ) start [2025-02-03 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395923', 'tblTempVendorCDR_20' ) end [2025-02-03 21:58:18] Production.INFO: ProcessCDR(1,14395923,1,1,2) [2025-02-03 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395923', 'tblTempUsageDetail_20' ) start [2025-02-03 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395923', 'tblTempUsageDetail_20' ) end [2025-02-03 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:58:21] Production.INFO: ==13785== Releasing lock... [2025-02-03 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:58:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-03 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 18:59:05 [end_date_ymd] => 2025-02-03 21:59:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 18:59:05' and `end` < '2025-02-03 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-02-03 21:59:19] Production.INFO: count ==1284 [2025-02-03 21:59:19] Production.ERROR: pbx CDR StartTime 2025-02-03 18:59:05 - End Time 2025-02-03 21:59:05 [2025-02-03 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395928', 'tblTempUsageDetail_20' ) start [2025-02-03 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395928', 'tblTempUsageDetail_20' ) end [2025-02-03 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395928', 'tblTempVendorCDR_20' ) start [2025-02-03 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395928', 'tblTempVendorCDR_20' ) end [2025-02-03 21:59:19] Production.INFO: ProcessCDR(1,14395928,1,1,2) [2025-02-03 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 21:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 21:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395928', 'tblTempUsageDetail_20' ) start [2025-02-03 21:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395928', 'tblTempUsageDetail_20' ) end [2025-02-03 21:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 21:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 21:59:24] Production.INFO: ==13857== Releasing lock... [2025-02-03 21:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 21:59:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-03 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:00:06 [end_date_ymd] => 2025-02-03 22:00:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:00:06' and `end` < '2025-02-03 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-02-03 22:00:19] Production.INFO: count ==1283 [2025-02-03 22:00:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:00:06 - End Time 2025-02-03 22:00:06 [2025-02-03 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395934', 'tblTempUsageDetail_20' ) start [2025-02-03 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395934', 'tblTempUsageDetail_20' ) end [2025-02-03 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395934', 'tblTempVendorCDR_20' ) start [2025-02-03 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395934', 'tblTempVendorCDR_20' ) end [2025-02-03 22:00:19] Production.INFO: ProcessCDR(1,14395934,1,1,2) [2025-02-03 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395934', 'tblTempUsageDetail_20' ) start [2025-02-03 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395934', 'tblTempUsageDetail_20' ) end [2025-02-03 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:00:23] Production.INFO: ==13939== Releasing lock... [2025-02-03 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:00:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-03 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:01:06 [end_date_ymd] => 2025-02-03 22:01:06 [RateCDR] => 1 ) [2025-02-03 22: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-02-03 19:01:06' and `end` < '2025-02-03 22: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-02-03 22:01:19] Production.INFO: count ==1223 [2025-02-03 22:01:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:01:06 - End Time 2025-02-03 22:01:06 [2025-02-03 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395939', 'tblTempUsageDetail_20' ) start [2025-02-03 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395939', 'tblTempUsageDetail_20' ) end [2025-02-03 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395939', 'tblTempVendorCDR_20' ) start [2025-02-03 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395939', 'tblTempVendorCDR_20' ) end [2025-02-03 22:01:19] Production.INFO: ProcessCDR(1,14395939,1,1,2) [2025-02-03 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395939', 'tblTempUsageDetail_20' ) start [2025-02-03 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395939', 'tblTempUsageDetail_20' ) end [2025-02-03 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:01:22] Production.INFO: ==14026== Releasing lock... [2025-02-03 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:01:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-03 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:02:05 [end_date_ymd] => 2025-02-03 22:02:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:02:05' and `end` < '2025-02-03 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-02-03 22:02:18] Production.INFO: count ==1222 [2025-02-03 22:02:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:02:05 - End Time 2025-02-03 22:02:05 [2025-02-03 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395944', 'tblTempUsageDetail_20' ) start [2025-02-03 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395944', 'tblTempUsageDetail_20' ) end [2025-02-03 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395944', 'tblTempVendorCDR_20' ) start [2025-02-03 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395944', 'tblTempVendorCDR_20' ) end [2025-02-03 22:02:18] Production.INFO: ProcessCDR(1,14395944,1,1,2) [2025-02-03 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395944', 'tblTempUsageDetail_20' ) start [2025-02-03 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395944', 'tblTempUsageDetail_20' ) end [2025-02-03 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:02:21] Production.INFO: ==14099== Releasing lock... [2025-02-03 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:02:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-03 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:03:05 [end_date_ymd] => 2025-02-03 22:03:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:03:05' and `end` < '2025-02-03 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-02-03 22:03:17] Production.INFO: count ==1220 [2025-02-03 22:03:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:03:05 - End Time 2025-02-03 22:03:05 [2025-02-03 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395949', 'tblTempUsageDetail_20' ) start [2025-02-03 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395949', 'tblTempUsageDetail_20' ) end [2025-02-03 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395949', 'tblTempVendorCDR_20' ) start [2025-02-03 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395949', 'tblTempVendorCDR_20' ) end [2025-02-03 22:03:18] Production.INFO: ProcessCDR(1,14395949,1,1,2) [2025-02-03 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395949', 'tblTempUsageDetail_20' ) start [2025-02-03 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395949', 'tblTempUsageDetail_20' ) end [2025-02-03 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:03:21] Production.INFO: ==14179== Releasing lock... [2025-02-03 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:03:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-03 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:04:06 [end_date_ymd] => 2025-02-03 22:04:06 [RateCDR] => 1 ) [2025-02-03 22: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-02-03 19:04:06' and `end` < '2025-02-03 22: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-02-03 22:04:19] Production.INFO: count ==1215 [2025-02-03 22:04:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:04:06 - End Time 2025-02-03 22:04:06 [2025-02-03 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395954', 'tblTempUsageDetail_20' ) start [2025-02-03 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395954', 'tblTempUsageDetail_20' ) end [2025-02-03 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395954', 'tblTempVendorCDR_20' ) start [2025-02-03 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395954', 'tblTempVendorCDR_20' ) end [2025-02-03 22:04:19] Production.INFO: ProcessCDR(1,14395954,1,1,2) [2025-02-03 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395954', 'tblTempUsageDetail_20' ) start [2025-02-03 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395954', 'tblTempUsageDetail_20' ) end [2025-02-03 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:04:22] Production.INFO: ==14252== Releasing lock... [2025-02-03 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:04:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-03 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:05:05 [end_date_ymd] => 2025-02-03 22:05:05 [RateCDR] => 1 ) [2025-02-03 22: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-02-03 19:05:05' and `end` < '2025-02-03 22: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-02-03 22:05:18] Production.INFO: count ==1202 [2025-02-03 22:05:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:05:05 - End Time 2025-02-03 22:05:05 [2025-02-03 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395959', 'tblTempUsageDetail_20' ) start [2025-02-03 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395959', 'tblTempUsageDetail_20' ) end [2025-02-03 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395959', 'tblTempVendorCDR_20' ) start [2025-02-03 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395959', 'tblTempVendorCDR_20' ) end [2025-02-03 22:05:18] Production.INFO: ProcessCDR(1,14395959,1,1,2) [2025-02-03 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395959', 'tblTempUsageDetail_20' ) start [2025-02-03 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395959', 'tblTempUsageDetail_20' ) end [2025-02-03 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:05:21] Production.INFO: ==14324== Releasing lock... [2025-02-03 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:05:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-03 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:06:05 [end_date_ymd] => 2025-02-03 22:06:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:06:05' and `end` < '2025-02-03 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-02-03 22:06:19] Production.INFO: count ==1195 [2025-02-03 22:06:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:06:05 - End Time 2025-02-03 22:06:05 [2025-02-03 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395964', 'tblTempUsageDetail_20' ) start [2025-02-03 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395964', 'tblTempUsageDetail_20' ) end [2025-02-03 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395964', 'tblTempVendorCDR_20' ) start [2025-02-03 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395964', 'tblTempVendorCDR_20' ) end [2025-02-03 22:06:19] Production.INFO: ProcessCDR(1,14395964,1,1,2) [2025-02-03 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395964', 'tblTempUsageDetail_20' ) start [2025-02-03 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395964', 'tblTempUsageDetail_20' ) end [2025-02-03 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:06:22] Production.INFO: ==14395== Releasing lock... [2025-02-03 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:06:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-03 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:07:05 [end_date_ymd] => 2025-02-03 22:07:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:07:05' and `end` < '2025-02-03 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-02-03 22:07:17] Production.INFO: count ==1191 [2025-02-03 22:07:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:07:05 - End Time 2025-02-03 22:07:05 [2025-02-03 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395968', 'tblTempUsageDetail_20' ) start [2025-02-03 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395968', 'tblTempUsageDetail_20' ) end [2025-02-03 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395968', 'tblTempVendorCDR_20' ) start [2025-02-03 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395968', 'tblTempVendorCDR_20' ) end [2025-02-03 22:07:18] Production.INFO: ProcessCDR(1,14395968,1,1,2) [2025-02-03 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395968', 'tblTempUsageDetail_20' ) start [2025-02-03 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395968', 'tblTempUsageDetail_20' ) end [2025-02-03 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:07:21] Production.INFO: ==14465== Releasing lock... [2025-02-03 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:07:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-03 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:08:05 [end_date_ymd] => 2025-02-03 22:08:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:08:05' and `end` < '2025-02-03 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-02-03 22:08:18] Production.INFO: count ==1185 [2025-02-03 22:08:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:08:05 - End Time 2025-02-03 22:08:05 [2025-02-03 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395974', 'tblTempUsageDetail_20' ) start [2025-02-03 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395974', 'tblTempUsageDetail_20' ) end [2025-02-03 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395974', 'tblTempVendorCDR_20' ) start [2025-02-03 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395974', 'tblTempVendorCDR_20' ) end [2025-02-03 22:08:18] Production.INFO: ProcessCDR(1,14395974,1,1,2) [2025-02-03 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395974', 'tblTempUsageDetail_20' ) start [2025-02-03 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395974', 'tblTempUsageDetail_20' ) end [2025-02-03 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:08:22] Production.INFO: ==14540== Releasing lock... [2025-02-03 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:08:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-03 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:09:05 [end_date_ymd] => 2025-02-03 22:09:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:09:05' and `end` < '2025-02-03 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-02-03 22:09:19] Production.INFO: count ==1182 [2025-02-03 22:09:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:09:05 - End Time 2025-02-03 22:09:05 [2025-02-03 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395979', 'tblTempUsageDetail_20' ) start [2025-02-03 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395979', 'tblTempUsageDetail_20' ) end [2025-02-03 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395979', 'tblTempVendorCDR_20' ) start [2025-02-03 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395979', 'tblTempVendorCDR_20' ) end [2025-02-03 22:09:19] Production.INFO: ProcessCDR(1,14395979,1,1,2) [2025-02-03 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395979', 'tblTempUsageDetail_20' ) start [2025-02-03 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395979', 'tblTempUsageDetail_20' ) end [2025-02-03 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:09:22] Production.INFO: ==14613== Releasing lock... [2025-02-03 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:09:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-03 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:10:06 [end_date_ymd] => 2025-02-03 22:10:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:10:06' and `end` < '2025-02-03 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-02-03 22:10:19] Production.INFO: count ==1182 [2025-02-03 22:10:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:10:06 - End Time 2025-02-03 22:10:06 [2025-02-03 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395985', 'tblTempUsageDetail_20' ) start [2025-02-03 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395985', 'tblTempUsageDetail_20' ) end [2025-02-03 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395985', 'tblTempVendorCDR_20' ) start [2025-02-03 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395985', 'tblTempVendorCDR_20' ) end [2025-02-03 22:10:19] Production.INFO: ProcessCDR(1,14395985,1,1,2) [2025-02-03 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395985', 'tblTempUsageDetail_20' ) start [2025-02-03 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395985', 'tblTempUsageDetail_20' ) end [2025-02-03 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:10:22] Production.INFO: ==14687== Releasing lock... [2025-02-03 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:10:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-03 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:11:05 [end_date_ymd] => 2025-02-03 22:11:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:11:05' and `end` < '2025-02-03 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-02-03 22:11:18] Production.INFO: count ==1163 [2025-02-03 22:11:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:11:05 - End Time 2025-02-03 22:11:05 [2025-02-03 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395990', 'tblTempUsageDetail_20' ) start [2025-02-03 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395990', 'tblTempUsageDetail_20' ) end [2025-02-03 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395990', 'tblTempVendorCDR_20' ) start [2025-02-03 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395990', 'tblTempVendorCDR_20' ) end [2025-02-03 22:11:18] Production.INFO: ProcessCDR(1,14395990,1,1,2) [2025-02-03 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395990', 'tblTempUsageDetail_20' ) start [2025-02-03 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395990', 'tblTempUsageDetail_20' ) end [2025-02-03 22:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:11:23] Production.INFO: ==14763== Releasing lock... [2025-02-03 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:11:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-03 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:12:05 [end_date_ymd] => 2025-02-03 22:12:05 [RateCDR] => 1 ) [2025-02-03 22: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-02-03 19:12:05' and `end` < '2025-02-03 22: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-02-03 22:12:18] Production.INFO: count ==1160 [2025-02-03 22:12:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:12:05 - End Time 2025-02-03 22:12:05 [2025-02-03 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395995', 'tblTempUsageDetail_20' ) start [2025-02-03 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14395995', 'tblTempUsageDetail_20' ) end [2025-02-03 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395995', 'tblTempVendorCDR_20' ) start [2025-02-03 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14395995', 'tblTempVendorCDR_20' ) end [2025-02-03 22:12:19] Production.INFO: ProcessCDR(1,14395995,1,1,2) [2025-02-03 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14395995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14395995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14395995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14395995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395995', 'tblTempUsageDetail_20' ) start [2025-02-03 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14395995', 'tblTempUsageDetail_20' ) end [2025-02-03 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:12:22] Production.INFO: ==14875== Releasing lock... [2025-02-03 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:12:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-03 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:13:05 [end_date_ymd] => 2025-02-03 22:13:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:13:05' and `end` < '2025-02-03 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-02-03 22:13:18] Production.INFO: count ==1159 [2025-02-03 22:13:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:13:05 - End Time 2025-02-03 22:13:05 [2025-02-03 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396000', 'tblTempUsageDetail_20' ) start [2025-02-03 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396000', 'tblTempUsageDetail_20' ) end [2025-02-03 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396000', 'tblTempVendorCDR_20' ) start [2025-02-03 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396000', 'tblTempVendorCDR_20' ) end [2025-02-03 22:13:19] Production.INFO: ProcessCDR(1,14396000,1,1,2) [2025-02-03 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396000', 'tblTempUsageDetail_20' ) start [2025-02-03 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396000', 'tblTempUsageDetail_20' ) end [2025-02-03 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:13:22] Production.INFO: ==14945== Releasing lock... [2025-02-03 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:13:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-03 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:14:05 [end_date_ymd] => 2025-02-03 22:14:05 [RateCDR] => 1 ) [2025-02-03 22: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-02-03 19:14:05' and `end` < '2025-02-03 22: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-02-03 22:14:19] Production.INFO: count ==1157 [2025-02-03 22:14:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:14:05 - End Time 2025-02-03 22:14:05 [2025-02-03 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396005', 'tblTempUsageDetail_20' ) start [2025-02-03 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396005', 'tblTempUsageDetail_20' ) end [2025-02-03 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396005', 'tblTempVendorCDR_20' ) start [2025-02-03 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396005', 'tblTempVendorCDR_20' ) end [2025-02-03 22:14:19] Production.INFO: ProcessCDR(1,14396005,1,1,2) [2025-02-03 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396005', 'tblTempUsageDetail_20' ) start [2025-02-03 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396005', 'tblTempUsageDetail_20' ) end [2025-02-03 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:14:22] Production.INFO: ==15017== Releasing lock... [2025-02-03 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:14:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-03 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:15:05 [end_date_ymd] => 2025-02-03 22:15:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:15:05' and `end` < '2025-02-03 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-02-03 22:15:18] Production.INFO: count ==1156 [2025-02-03 22:15:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:15:05 - End Time 2025-02-03 22:15:05 [2025-02-03 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396010', 'tblTempUsageDetail_20' ) start [2025-02-03 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396010', 'tblTempUsageDetail_20' ) end [2025-02-03 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396010', 'tblTempVendorCDR_20' ) start [2025-02-03 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396010', 'tblTempVendorCDR_20' ) end [2025-02-03 22:15:19] Production.INFO: ProcessCDR(1,14396010,1,1,2) [2025-02-03 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396010', 'tblTempUsageDetail_20' ) start [2025-02-03 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396010', 'tblTempUsageDetail_20' ) end [2025-02-03 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:15:22] Production.INFO: ==15090== Releasing lock... [2025-02-03 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:15:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-03 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:16:05 [end_date_ymd] => 2025-02-03 22:16:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:16:05' and `end` < '2025-02-03 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-02-03 22:16:18] Production.INFO: count ==1153 [2025-02-03 22:16:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:16:05 - End Time 2025-02-03 22:16:05 [2025-02-03 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396015', 'tblTempUsageDetail_20' ) start [2025-02-03 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396015', 'tblTempUsageDetail_20' ) end [2025-02-03 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396015', 'tblTempVendorCDR_20' ) start [2025-02-03 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396015', 'tblTempVendorCDR_20' ) end [2025-02-03 22:16:18] Production.INFO: ProcessCDR(1,14396015,1,1,2) [2025-02-03 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396015', 'tblTempUsageDetail_20' ) start [2025-02-03 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396015', 'tblTempUsageDetail_20' ) end [2025-02-03 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:16:21] Production.INFO: ==15164== Releasing lock... [2025-02-03 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:16:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-03 22:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:17:06 [end_date_ymd] => 2025-02-03 22:17:06 [RateCDR] => 1 ) [2025-02-03 22:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 19:17:06' and `end` < '2025-02-03 22:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 22:17:20] Production.INFO: count ==1151 [2025-02-03 22:17:20] Production.ERROR: pbx CDR StartTime 2025-02-03 19:17:06 - End Time 2025-02-03 22:17:06 [2025-02-03 22:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396020', 'tblTempUsageDetail_20' ) start [2025-02-03 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396020', 'tblTempUsageDetail_20' ) end [2025-02-03 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396020', 'tblTempVendorCDR_20' ) start [2025-02-03 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396020', 'tblTempVendorCDR_20' ) end [2025-02-03 22:17:20] Production.INFO: ProcessCDR(1,14396020,1,1,2) [2025-02-03 22:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396020', 'tblTempUsageDetail_20' ) start [2025-02-03 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396020', 'tblTempUsageDetail_20' ) end [2025-02-03 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:17:23] Production.INFO: ==15239== Releasing lock... [2025-02-03 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:17:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-03 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:18:05 [end_date_ymd] => 2025-02-03 22:18:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:18:05' and `end` < '2025-02-03 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-02-03 22:18:18] Production.INFO: count ==1147 [2025-02-03 22:18:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:18:05 - End Time 2025-02-03 22:18:05 [2025-02-03 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396025', 'tblTempUsageDetail_20' ) start [2025-02-03 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396025', 'tblTempUsageDetail_20' ) end [2025-02-03 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396025', 'tblTempVendorCDR_20' ) start [2025-02-03 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396025', 'tblTempVendorCDR_20' ) end [2025-02-03 22:18:19] Production.INFO: ProcessCDR(1,14396025,1,1,2) [2025-02-03 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396025', 'tblTempUsageDetail_20' ) start [2025-02-03 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396025', 'tblTempUsageDetail_20' ) end [2025-02-03 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:18:22] Production.INFO: ==15317== Releasing lock... [2025-02-03 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:18:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-03 22:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:19:06 [end_date_ymd] => 2025-02-03 22:19:06 [RateCDR] => 1 ) [2025-02-03 22: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-02-03 19:19:06' and `end` < '2025-02-03 22: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-02-03 22:19:18] Production.INFO: count ==1144 [2025-02-03 22:19:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:19:06 - End Time 2025-02-03 22:19:06 [2025-02-03 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396030', 'tblTempUsageDetail_20' ) start [2025-02-03 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396030', 'tblTempUsageDetail_20' ) end [2025-02-03 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396030', 'tblTempVendorCDR_20' ) start [2025-02-03 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396030', 'tblTempVendorCDR_20' ) end [2025-02-03 22:19:19] Production.INFO: ProcessCDR(1,14396030,1,1,2) [2025-02-03 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396030', 'tblTempUsageDetail_20' ) start [2025-02-03 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396030', 'tblTempUsageDetail_20' ) end [2025-02-03 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:19:22] Production.INFO: ==15390== Releasing lock... [2025-02-03 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:19:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-03 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:20:05 [end_date_ymd] => 2025-02-03 22:20:05 [RateCDR] => 1 ) [2025-02-03 22: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-02-03 19:20:05' and `end` < '2025-02-03 22: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-02-03 22:20:18] Production.INFO: count ==1142 [2025-02-03 22:20:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:20:05 - End Time 2025-02-03 22:20:05 [2025-02-03 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396036', 'tblTempUsageDetail_20' ) start [2025-02-03 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396036', 'tblTempUsageDetail_20' ) end [2025-02-03 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396036', 'tblTempVendorCDR_20' ) start [2025-02-03 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396036', 'tblTempVendorCDR_20' ) end [2025-02-03 22:20:18] Production.INFO: ProcessCDR(1,14396036,1,1,2) [2025-02-03 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396036', 'tblTempUsageDetail_20' ) start [2025-02-03 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396036', 'tblTempUsageDetail_20' ) end [2025-02-03 22:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:20:21] Production.INFO: ==15469== Releasing lock... [2025-02-03 22:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:20:21] Production.INFO: 37 MB #Memory Used# [2025-02-03 22:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:21:04 [end_date_ymd] => 2025-02-03 22:21:04 [RateCDR] => 1 ) [2025-02-03 22: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-02-03 19:21:04' and `end` < '2025-02-03 22: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-02-03 22:21:19] Production.INFO: count ==1090 [2025-02-03 22:21:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:21:04 - End Time 2025-02-03 22:21:04 [2025-02-03 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396041', 'tblTempUsageDetail_20' ) start [2025-02-03 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396041', 'tblTempUsageDetail_20' ) end [2025-02-03 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396041', 'tblTempVendorCDR_20' ) start [2025-02-03 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396041', 'tblTempVendorCDR_20' ) end [2025-02-03 22:21:19] Production.INFO: ProcessCDR(1,14396041,1,1,2) [2025-02-03 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396041', 'tblTempUsageDetail_20' ) start [2025-02-03 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396041', 'tblTempUsageDetail_20' ) end [2025-02-03 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:21:22] Production.INFO: ==15547== Releasing lock... [2025-02-03 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:21:22] Production.INFO: 37 MB #Memory Used# [2025-02-03 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:22:05 [end_date_ymd] => 2025-02-03 22:22:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:22:05' and `end` < '2025-02-03 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-02-03 22:22:18] Production.INFO: count ==1086 [2025-02-03 22:22:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:22:05 - End Time 2025-02-03 22:22:05 [2025-02-03 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396046', 'tblTempUsageDetail_20' ) start [2025-02-03 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396046', 'tblTempUsageDetail_20' ) end [2025-02-03 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396046', 'tblTempVendorCDR_20' ) start [2025-02-03 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396046', 'tblTempVendorCDR_20' ) end [2025-02-03 22:22:19] Production.INFO: ProcessCDR(1,14396046,1,1,2) [2025-02-03 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396046', 'tblTempUsageDetail_20' ) start [2025-02-03 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396046', 'tblTempUsageDetail_20' ) end [2025-02-03 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:22:22] Production.INFO: ==15623== Releasing lock... [2025-02-03 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:22:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-03 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:23:05 [end_date_ymd] => 2025-02-03 22:23:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:23:05' and `end` < '2025-02-03 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-02-03 22:23:19] Production.INFO: count ==1087 [2025-02-03 22:23:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:23:05 - End Time 2025-02-03 22:23:05 [2025-02-03 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396051', 'tblTempUsageDetail_20' ) start [2025-02-03 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396051', 'tblTempUsageDetail_20' ) end [2025-02-03 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396051', 'tblTempVendorCDR_20' ) start [2025-02-03 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396051', 'tblTempVendorCDR_20' ) end [2025-02-03 22:23:19] Production.INFO: ProcessCDR(1,14396051,1,1,2) [2025-02-03 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396051', 'tblTempUsageDetail_20' ) start [2025-02-03 22:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396051', 'tblTempUsageDetail_20' ) end [2025-02-03 22:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:23:24] Production.INFO: ==15695== Releasing lock... [2025-02-03 22:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:23:24] Production.INFO: 37 MB #Memory Used# [2025-02-03 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:24:05 [end_date_ymd] => 2025-02-03 22:24:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:24:05' and `end` < '2025-02-03 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-02-03 22:24:20] Production.INFO: count ==1085 [2025-02-03 22:24:20] Production.ERROR: pbx CDR StartTime 2025-02-03 19:24:05 - End Time 2025-02-03 22:24:05 [2025-02-03 22:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396056', 'tblTempUsageDetail_20' ) start [2025-02-03 22:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396056', 'tblTempUsageDetail_20' ) end [2025-02-03 22:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396056', 'tblTempVendorCDR_20' ) start [2025-02-03 22:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396056', 'tblTempVendorCDR_20' ) end [2025-02-03 22:24:20] Production.INFO: ProcessCDR(1,14396056,1,1,2) [2025-02-03 22:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396056', 'tblTempUsageDetail_20' ) start [2025-02-03 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396056', 'tblTempUsageDetail_20' ) end [2025-02-03 22:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:24:23] Production.INFO: ==15771== Releasing lock... [2025-02-03 22:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:24:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 22:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:25:04 [end_date_ymd] => 2025-02-03 22:25:04 [RateCDR] => 1 ) [2025-02-03 22:25: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-02-03 19:25:04' and `end` < '2025-02-03 22:25: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-02-03 22:25:17] Production.INFO: count ==1084 [2025-02-03 22:25:17] Production.ERROR: pbx CDR StartTime 2025-02-03 19:25:04 - End Time 2025-02-03 22:25:04 [2025-02-03 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396061', 'tblTempUsageDetail_20' ) start [2025-02-03 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396061', 'tblTempUsageDetail_20' ) end [2025-02-03 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396061', 'tblTempVendorCDR_20' ) start [2025-02-03 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396061', 'tblTempVendorCDR_20' ) end [2025-02-03 22:25:17] Production.INFO: ProcessCDR(1,14396061,1,1,2) [2025-02-03 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396061', 'tblTempUsageDetail_20' ) start [2025-02-03 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396061', 'tblTempUsageDetail_20' ) end [2025-02-03 22:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:25:20] Production.INFO: ==15843== Releasing lock... [2025-02-03 22:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:25:20] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:26:05 [end_date_ymd] => 2025-02-03 22:26:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:26:05' and `end` < '2025-02-03 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-02-03 22:26:19] Production.INFO: count ==1079 [2025-02-03 22:26:20] Production.ERROR: pbx CDR StartTime 2025-02-03 19:26:05 - End Time 2025-02-03 22:26:05 [2025-02-03 22:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396066', 'tblTempUsageDetail_20' ) start [2025-02-03 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396066', 'tblTempUsageDetail_20' ) end [2025-02-03 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396066', 'tblTempVendorCDR_20' ) start [2025-02-03 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396066', 'tblTempVendorCDR_20' ) end [2025-02-03 22:26:20] Production.INFO: ProcessCDR(1,14396066,1,1,2) [2025-02-03 22:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396066', 'tblTempUsageDetail_20' ) start [2025-02-03 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396066', 'tblTempUsageDetail_20' ) end [2025-02-03 22:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:26:23] Production.INFO: ==15919== Releasing lock... [2025-02-03 22:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:26:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-03 22:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:27:04 [end_date_ymd] => 2025-02-03 22:27:04 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:27:04' and `end` < '2025-02-03 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-02-03 22:27:17] Production.INFO: count ==1079 [2025-02-03 22:27:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:27:04 - End Time 2025-02-03 22:27:04 [2025-02-03 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396071', 'tblTempUsageDetail_20' ) start [2025-02-03 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396071', 'tblTempUsageDetail_20' ) end [2025-02-03 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396071', 'tblTempVendorCDR_20' ) start [2025-02-03 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396071', 'tblTempVendorCDR_20' ) end [2025-02-03 22:27:18] Production.INFO: ProcessCDR(1,14396071,1,1,2) [2025-02-03 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396071', 'tblTempUsageDetail_20' ) start [2025-02-03 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396071', 'tblTempUsageDetail_20' ) end [2025-02-03 22:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:27:21] Production.INFO: ==16030== Releasing lock... [2025-02-03 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:27:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-03 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:28:05 [end_date_ymd] => 2025-02-03 22:28:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:28:05' and `end` < '2025-02-03 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-02-03 22:28:18] Production.INFO: count ==1075 [2025-02-03 22:28:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:28:05 - End Time 2025-02-03 22:28:05 [2025-02-03 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396076', 'tblTempUsageDetail_20' ) start [2025-02-03 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396076', 'tblTempUsageDetail_20' ) end [2025-02-03 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396076', 'tblTempVendorCDR_20' ) start [2025-02-03 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396076', 'tblTempVendorCDR_20' ) end [2025-02-03 22:28:18] Production.INFO: ProcessCDR(1,14396076,1,1,2) [2025-02-03 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396076', 'tblTempUsageDetail_20' ) start [2025-02-03 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396076', 'tblTempUsageDetail_20' ) end [2025-02-03 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:28:21] Production.INFO: ==16119== Releasing lock... [2025-02-03 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:28:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-03 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:29:05 [end_date_ymd] => 2025-02-03 22:29:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:29:05' and `end` < '2025-02-03 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-02-03 22:29:19] Production.INFO: count ==1079 [2025-02-03 22:29:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:29:05 - End Time 2025-02-03 22:29:05 [2025-02-03 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396081', 'tblTempUsageDetail_20' ) start [2025-02-03 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396081', 'tblTempUsageDetail_20' ) end [2025-02-03 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396081', 'tblTempVendorCDR_20' ) start [2025-02-03 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396081', 'tblTempVendorCDR_20' ) end [2025-02-03 22:29:19] Production.INFO: ProcessCDR(1,14396081,1,1,2) [2025-02-03 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396081', 'tblTempUsageDetail_20' ) start [2025-02-03 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396081', 'tblTempUsageDetail_20' ) end [2025-02-03 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:29:22] Production.INFO: ==16217== Releasing lock... [2025-02-03 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:29:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-03 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:30:05 [end_date_ymd] => 2025-02-03 22:30:05 [RateCDR] => 1 ) [2025-02-03 22: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-02-03 19:30:05' and `end` < '2025-02-03 22: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-02-03 22:30:18] Production.INFO: count ==1075 [2025-02-03 22:30:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:30:05 - End Time 2025-02-03 22:30:05 [2025-02-03 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396086', 'tblTempUsageDetail_20' ) start [2025-02-03 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396086', 'tblTempUsageDetail_20' ) end [2025-02-03 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396086', 'tblTempVendorCDR_20' ) start [2025-02-03 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396086', 'tblTempVendorCDR_20' ) end [2025-02-03 22:30:19] Production.INFO: ProcessCDR(1,14396086,1,1,2) [2025-02-03 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396086', 'tblTempUsageDetail_20' ) start [2025-02-03 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396086', 'tblTempUsageDetail_20' ) end [2025-02-03 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:30:22] Production.INFO: ==16314== Releasing lock... [2025-02-03 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:30:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:31:05 [end_date_ymd] => 2025-02-03 22:31:05 [RateCDR] => 1 ) [2025-02-03 22: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-02-03 19:31:05' and `end` < '2025-02-03 22: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-02-03 22:31:19] Production.INFO: count ==1072 [2025-02-03 22:31:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:31:05 - End Time 2025-02-03 22:31:05 [2025-02-03 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396092', 'tblTempUsageDetail_20' ) start [2025-02-03 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396092', 'tblTempUsageDetail_20' ) end [2025-02-03 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396092', 'tblTempVendorCDR_20' ) start [2025-02-03 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396092', 'tblTempVendorCDR_20' ) end [2025-02-03 22:31:19] Production.INFO: ProcessCDR(1,14396092,1,1,2) [2025-02-03 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396092', 'tblTempUsageDetail_20' ) start [2025-02-03 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396092', 'tblTempUsageDetail_20' ) end [2025-02-03 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:31:22] Production.INFO: ==16410== Releasing lock... [2025-02-03 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:31:22] Production.INFO: 37 MB #Memory Used# [2025-02-03 22:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:32:04 [end_date_ymd] => 2025-02-03 22:32:04 [RateCDR] => 1 ) [2025-02-03 22: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-02-03 19:32:04' and `end` < '2025-02-03 22: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-02-03 22:32:18] Production.INFO: count ==1075 [2025-02-03 22:32:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:32:04 - End Time 2025-02-03 22:32:04 [2025-02-03 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396097', 'tblTempUsageDetail_20' ) start [2025-02-03 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396097', 'tblTempUsageDetail_20' ) end [2025-02-03 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396097', 'tblTempVendorCDR_20' ) start [2025-02-03 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396097', 'tblTempVendorCDR_20' ) end [2025-02-03 22:32:19] Production.INFO: ProcessCDR(1,14396097,1,1,2) [2025-02-03 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396097', 'tblTempUsageDetail_20' ) start [2025-02-03 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396097', 'tblTempUsageDetail_20' ) end [2025-02-03 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:32:22] Production.INFO: ==16507== Releasing lock... [2025-02-03 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:32:22] Production.INFO: 37 MB #Memory Used# [2025-02-03 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:33:05 [end_date_ymd] => 2025-02-03 22:33:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:33:05' and `end` < '2025-02-03 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-02-03 22:33:18] Production.INFO: count ==1074 [2025-02-03 22:33:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:33:05 - End Time 2025-02-03 22:33:05 [2025-02-03 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396102', 'tblTempUsageDetail_20' ) start [2025-02-03 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396102', 'tblTempUsageDetail_20' ) end [2025-02-03 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396102', 'tblTempVendorCDR_20' ) start [2025-02-03 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396102', 'tblTempVendorCDR_20' ) end [2025-02-03 22:33:18] Production.INFO: ProcessCDR(1,14396102,1,1,2) [2025-02-03 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396102', 'tblTempUsageDetail_20' ) start [2025-02-03 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396102', 'tblTempUsageDetail_20' ) end [2025-02-03 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:33:21] Production.INFO: ==16590== Releasing lock... [2025-02-03 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:33:21] Production.INFO: 37 MB #Memory Used# [2025-02-03 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:34:05 [end_date_ymd] => 2025-02-03 22:34:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:34:05' and `end` < '2025-02-03 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-02-03 22:34:18] Production.INFO: count ==1075 [2025-02-03 22:34:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:34:05 - End Time 2025-02-03 22:34:05 [2025-02-03 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396107', 'tblTempUsageDetail_20' ) start [2025-02-03 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396107', 'tblTempUsageDetail_20' ) end [2025-02-03 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396107', 'tblTempVendorCDR_20' ) start [2025-02-03 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396107', 'tblTempVendorCDR_20' ) end [2025-02-03 22:34:18] Production.INFO: ProcessCDR(1,14396107,1,1,2) [2025-02-03 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396107', 'tblTempUsageDetail_20' ) start [2025-02-03 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396107', 'tblTempUsageDetail_20' ) end [2025-02-03 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:34:21] Production.INFO: ==16667== Releasing lock... [2025-02-03 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:34:21] Production.INFO: 37 MB #Memory Used# [2025-02-03 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:35:05 [end_date_ymd] => 2025-02-03 22:35:05 [RateCDR] => 1 ) [2025-02-03 22: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-02-03 19:35:05' and `end` < '2025-02-03 22: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-02-03 22:35:18] Production.INFO: count ==1075 [2025-02-03 22:35:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:35:05 - End Time 2025-02-03 22:35:05 [2025-02-03 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396112', 'tblTempUsageDetail_20' ) start [2025-02-03 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396112', 'tblTempUsageDetail_20' ) end [2025-02-03 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396112', 'tblTempVendorCDR_20' ) start [2025-02-03 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396112', 'tblTempVendorCDR_20' ) end [2025-02-03 22:35:18] Production.INFO: ProcessCDR(1,14396112,1,1,2) [2025-02-03 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396112', 'tblTempUsageDetail_20' ) start [2025-02-03 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396112', 'tblTempUsageDetail_20' ) end [2025-02-03 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:35:21] Production.INFO: ==16741== Releasing lock... [2025-02-03 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:35:21] Production.INFO: 37 MB #Memory Used# [2025-02-03 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:36:05 [end_date_ymd] => 2025-02-03 22:36:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:36:05' and `end` < '2025-02-03 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-02-03 22:36:17] Production.INFO: count ==1075 [2025-02-03 22:36:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:36:05 - End Time 2025-02-03 22:36:05 [2025-02-03 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396117', 'tblTempUsageDetail_20' ) start [2025-02-03 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396117', 'tblTempUsageDetail_20' ) end [2025-02-03 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396117', 'tblTempVendorCDR_20' ) start [2025-02-03 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396117', 'tblTempVendorCDR_20' ) end [2025-02-03 22:36:18] Production.INFO: ProcessCDR(1,14396117,1,1,2) [2025-02-03 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396117', 'tblTempUsageDetail_20' ) start [2025-02-03 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396117', 'tblTempUsageDetail_20' ) end [2025-02-03 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:36:21] Production.INFO: ==16814== Releasing lock... [2025-02-03 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:36:21] Production.INFO: 37 MB #Memory Used# [2025-02-03 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:37:05 [end_date_ymd] => 2025-02-03 22:37:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:37:05' and `end` < '2025-02-03 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-02-03 22:37:18] Production.INFO: count ==1074 [2025-02-03 22:37:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:37:05 - End Time 2025-02-03 22:37:05 [2025-02-03 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396122', 'tblTempUsageDetail_20' ) start [2025-02-03 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396122', 'tblTempUsageDetail_20' ) end [2025-02-03 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396122', 'tblTempVendorCDR_20' ) start [2025-02-03 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396122', 'tblTempVendorCDR_20' ) end [2025-02-03 22:37:18] Production.INFO: ProcessCDR(1,14396122,1,1,2) [2025-02-03 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396122', 'tblTempUsageDetail_20' ) start [2025-02-03 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396122', 'tblTempUsageDetail_20' ) end [2025-02-03 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:37:21] Production.INFO: ==16888== Releasing lock... [2025-02-03 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:37:21] Production.INFO: 37 MB #Memory Used# [2025-02-03 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:38:05 [end_date_ymd] => 2025-02-03 22:38:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:38:05' and `end` < '2025-02-03 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-02-03 22:38:18] Production.INFO: count ==1073 [2025-02-03 22:38:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:38:05 - End Time 2025-02-03 22:38:05 [2025-02-03 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396127', 'tblTempUsageDetail_20' ) start [2025-02-03 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396127', 'tblTempUsageDetail_20' ) end [2025-02-03 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396127', 'tblTempVendorCDR_20' ) start [2025-02-03 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396127', 'tblTempVendorCDR_20' ) end [2025-02-03 22:38:18] Production.INFO: ProcessCDR(1,14396127,1,1,2) [2025-02-03 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396127', 'tblTempUsageDetail_20' ) start [2025-02-03 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396127', 'tblTempUsageDetail_20' ) end [2025-02-03 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:38:21] Production.INFO: ==16962== Releasing lock... [2025-02-03 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:38:21] Production.INFO: 37 MB #Memory Used# [2025-02-03 22:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:39:04 [end_date_ymd] => 2025-02-03 22:39:04 [RateCDR] => 1 ) [2025-02-03 22: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-02-03 19:39:04' and `end` < '2025-02-03 22: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-02-03 22:39:17] Production.INFO: count ==1073 [2025-02-03 22:39:17] Production.ERROR: pbx CDR StartTime 2025-02-03 19:39:04 - End Time 2025-02-03 22:39:04 [2025-02-03 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396132', 'tblTempUsageDetail_20' ) start [2025-02-03 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396132', 'tblTempUsageDetail_20' ) end [2025-02-03 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396132', 'tblTempVendorCDR_20' ) start [2025-02-03 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396132', 'tblTempVendorCDR_20' ) end [2025-02-03 22:39:17] Production.INFO: ProcessCDR(1,14396132,1,1,2) [2025-02-03 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396132', 'tblTempUsageDetail_20' ) start [2025-02-03 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396132', 'tblTempUsageDetail_20' ) end [2025-02-03 22:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:39:20] Production.INFO: ==17042== Releasing lock... [2025-02-03 22:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:39:20] Production.INFO: 37 MB #Memory Used# [2025-02-03 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:40:05 [end_date_ymd] => 2025-02-03 22:40:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:40:05' and `end` < '2025-02-03 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-02-03 22:40:18] Production.INFO: count ==1073 [2025-02-03 22:40:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:40:05 - End Time 2025-02-03 22:40:05 [2025-02-03 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396137', 'tblTempUsageDetail_20' ) start [2025-02-03 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396137', 'tblTempUsageDetail_20' ) end [2025-02-03 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396137', 'tblTempVendorCDR_20' ) start [2025-02-03 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396137', 'tblTempVendorCDR_20' ) end [2025-02-03 22:40:18] Production.INFO: ProcessCDR(1,14396137,1,1,2) [2025-02-03 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396137', 'tblTempUsageDetail_20' ) start [2025-02-03 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396137', 'tblTempUsageDetail_20' ) end [2025-02-03 22:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:40:21] Production.INFO: ==17118== Releasing lock... [2025-02-03 22:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:40:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 22:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:41:06 [end_date_ymd] => 2025-02-03 22:41:06 [RateCDR] => 1 ) [2025-02-03 22: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-02-03 19:41:06' and `end` < '2025-02-03 22: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-02-03 22:41:19] Production.INFO: count ==1056 [2025-02-03 22:41:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:41:06 - End Time 2025-02-03 22:41:06 [2025-02-03 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396143', 'tblTempUsageDetail_20' ) start [2025-02-03 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396143', 'tblTempUsageDetail_20' ) end [2025-02-03 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396143', 'tblTempVendorCDR_20' ) start [2025-02-03 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396143', 'tblTempVendorCDR_20' ) end [2025-02-03 22:41:19] Production.INFO: ProcessCDR(1,14396143,1,1,2) [2025-02-03 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396143', 'tblTempUsageDetail_20' ) start [2025-02-03 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396143', 'tblTempUsageDetail_20' ) end [2025-02-03 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:41:22] Production.INFO: ==17194== Releasing lock... [2025-02-03 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:41:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 22:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:42:04 [end_date_ymd] => 2025-02-03 22:42:04 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:42:04' and `end` < '2025-02-03 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-02-03 22:42:18] Production.INFO: count ==1055 [2025-02-03 22:42:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:42:04 - End Time 2025-02-03 22:42:04 [2025-02-03 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396148', 'tblTempUsageDetail_20' ) start [2025-02-03 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396148', 'tblTempUsageDetail_20' ) end [2025-02-03 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396148', 'tblTempVendorCDR_20' ) start [2025-02-03 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396148', 'tblTempVendorCDR_20' ) end [2025-02-03 22:42:18] Production.INFO: ProcessCDR(1,14396148,1,1,2) [2025-02-03 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396148', 'tblTempUsageDetail_20' ) start [2025-02-03 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396148', 'tblTempUsageDetail_20' ) end [2025-02-03 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:42:21] Production.INFO: ==17267== Releasing lock... [2025-02-03 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:42:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:43:05 [end_date_ymd] => 2025-02-03 22:43:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:43:05' and `end` < '2025-02-03 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-02-03 22:43:19] Production.INFO: count ==1050 [2025-02-03 22:43:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:43:05 - End Time 2025-02-03 22:43:05 [2025-02-03 22:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396153', 'tblTempUsageDetail_20' ) start [2025-02-03 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396153', 'tblTempUsageDetail_20' ) end [2025-02-03 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396153', 'tblTempVendorCDR_20' ) start [2025-02-03 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396153', 'tblTempVendorCDR_20' ) end [2025-02-03 22:43:19] Production.INFO: ProcessCDR(1,14396153,1,1,2) [2025-02-03 22:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396153', 'tblTempUsageDetail_20' ) start [2025-02-03 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396153', 'tblTempUsageDetail_20' ) end [2025-02-03 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:43:22] Production.INFO: ==17381== Releasing lock... [2025-02-03 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:43:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:44:05 [end_date_ymd] => 2025-02-03 22:44:05 [RateCDR] => 1 ) [2025-02-03 22: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-02-03 19:44:05' and `end` < '2025-02-03 22: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-02-03 22:44:18] Production.INFO: count ==1049 [2025-02-03 22:44:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:44:05 - End Time 2025-02-03 22:44:05 [2025-02-03 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396158', 'tblTempUsageDetail_20' ) start [2025-02-03 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396158', 'tblTempUsageDetail_20' ) end [2025-02-03 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396158', 'tblTempVendorCDR_20' ) start [2025-02-03 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396158', 'tblTempVendorCDR_20' ) end [2025-02-03 22:44:18] Production.INFO: ProcessCDR(1,14396158,1,1,2) [2025-02-03 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396158', 'tblTempUsageDetail_20' ) start [2025-02-03 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396158', 'tblTempUsageDetail_20' ) end [2025-02-03 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:44:21] Production.INFO: ==17453== Releasing lock... [2025-02-03 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:44:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-03 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:45:05 [end_date_ymd] => 2025-02-03 22:45:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:45:05' and `end` < '2025-02-03 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-02-03 22:45:18] Production.INFO: count ==1049 [2025-02-03 22:45:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:45:05 - End Time 2025-02-03 22:45:05 [2025-02-03 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396163', 'tblTempUsageDetail_20' ) start [2025-02-03 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396163', 'tblTempUsageDetail_20' ) end [2025-02-03 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396163', 'tblTempVendorCDR_20' ) start [2025-02-03 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396163', 'tblTempVendorCDR_20' ) end [2025-02-03 22:45:18] Production.INFO: ProcessCDR(1,14396163,1,1,2) [2025-02-03 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396163', 'tblTempUsageDetail_20' ) start [2025-02-03 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396163', 'tblTempUsageDetail_20' ) end [2025-02-03 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:45:21] Production.INFO: ==17526== Releasing lock... [2025-02-03 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:45:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-03 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:46:05 [end_date_ymd] => 2025-02-03 22:46:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:46:05' and `end` < '2025-02-03 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-02-03 22:46:17] Production.INFO: count ==1048 [2025-02-03 22:46:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:46:05 - End Time 2025-02-03 22:46:05 [2025-02-03 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396168', 'tblTempUsageDetail_20' ) start [2025-02-03 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396168', 'tblTempUsageDetail_20' ) end [2025-02-03 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396168', 'tblTempVendorCDR_20' ) start [2025-02-03 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396168', 'tblTempVendorCDR_20' ) end [2025-02-03 22:46:18] Production.INFO: ProcessCDR(1,14396168,1,1,2) [2025-02-03 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396168', 'tblTempUsageDetail_20' ) start [2025-02-03 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396168', 'tblTempUsageDetail_20' ) end [2025-02-03 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:46:21] Production.INFO: ==17603== Releasing lock... [2025-02-03 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:46:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-03 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:47:05 [end_date_ymd] => 2025-02-03 22:47:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:47:05' and `end` < '2025-02-03 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-02-03 22:47:19] Production.INFO: count ==1048 [2025-02-03 22:47:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:47:05 - End Time 2025-02-03 22:47:05 [2025-02-03 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396173', 'tblTempUsageDetail_20' ) start [2025-02-03 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396173', 'tblTempUsageDetail_20' ) end [2025-02-03 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396173', 'tblTempVendorCDR_20' ) start [2025-02-03 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396173', 'tblTempVendorCDR_20' ) end [2025-02-03 22:47:19] Production.INFO: ProcessCDR(1,14396173,1,1,2) [2025-02-03 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396173', 'tblTempUsageDetail_20' ) start [2025-02-03 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396173', 'tblTempUsageDetail_20' ) end [2025-02-03 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:47:22] Production.INFO: ==17682== Releasing lock... [2025-02-03 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:47:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-03 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:48:05 [end_date_ymd] => 2025-02-03 22:48:05 [RateCDR] => 1 ) [2025-02-03 22: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-02-03 19:48:05' and `end` < '2025-02-03 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-02-03 22:48:20] Production.INFO: count ==1047 [2025-02-03 22:48:20] Production.ERROR: pbx CDR StartTime 2025-02-03 19:48:05 - End Time 2025-02-03 22:48:05 [2025-02-03 22:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396178', 'tblTempUsageDetail_20' ) start [2025-02-03 22:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396178', 'tblTempUsageDetail_20' ) end [2025-02-03 22:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396178', 'tblTempVendorCDR_20' ) start [2025-02-03 22:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396178', 'tblTempVendorCDR_20' ) end [2025-02-03 22:48:20] Production.INFO: ProcessCDR(1,14396178,1,1,2) [2025-02-03 22:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396178', 'tblTempUsageDetail_20' ) start [2025-02-03 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396178', 'tblTempUsageDetail_20' ) end [2025-02-03 22:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:48:23] Production.INFO: ==17757== Releasing lock... [2025-02-03 22:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:48:23] Production.INFO: 37 MB #Memory Used# [2025-02-03 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:49:05 [end_date_ymd] => 2025-02-03 22:49:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:49:05' and `end` < '2025-02-03 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-02-03 22:49:18] Production.INFO: count ==1043 [2025-02-03 22:49:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:49:05 - End Time 2025-02-03 22:49:05 [2025-02-03 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396183', 'tblTempUsageDetail_20' ) start [2025-02-03 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396183', 'tblTempUsageDetail_20' ) end [2025-02-03 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396183', 'tblTempVendorCDR_20' ) start [2025-02-03 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396183', 'tblTempVendorCDR_20' ) end [2025-02-03 22:49:18] Production.INFO: ProcessCDR(1,14396183,1,1,2) [2025-02-03 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396183', 'tblTempUsageDetail_20' ) start [2025-02-03 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396183', 'tblTempUsageDetail_20' ) end [2025-02-03 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:49:21] Production.INFO: ==17828== Releasing lock... [2025-02-03 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:49:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:50:06 [end_date_ymd] => 2025-02-03 22:50:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:50:06' and `end` < '2025-02-03 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-02-03 22:50:19] Production.INFO: count ==1042 [2025-02-03 22:50:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:50:06 - End Time 2025-02-03 22:50:06 [2025-02-03 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396188', 'tblTempUsageDetail_20' ) start [2025-02-03 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396188', 'tblTempUsageDetail_20' ) end [2025-02-03 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396188', 'tblTempVendorCDR_20' ) start [2025-02-03 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396188', 'tblTempVendorCDR_20' ) end [2025-02-03 22:50:19] Production.INFO: ProcessCDR(1,14396188,1,1,2) [2025-02-03 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396188', 'tblTempUsageDetail_20' ) start [2025-02-03 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396188', 'tblTempUsageDetail_20' ) end [2025-02-03 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:50:22] Production.INFO: ==17903== Releasing lock... [2025-02-03 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:50:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-03 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:51:05 [end_date_ymd] => 2025-02-03 22:51:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:51:05' and `end` < '2025-02-03 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-02-03 22:51:18] Production.INFO: count ==1046 [2025-02-03 22:51:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:51:05 - End Time 2025-02-03 22:51:05 [2025-02-03 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396194', 'tblTempUsageDetail_20' ) start [2025-02-03 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396194', 'tblTempUsageDetail_20' ) end [2025-02-03 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396194', 'tblTempVendorCDR_20' ) start [2025-02-03 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396194', 'tblTempVendorCDR_20' ) end [2025-02-03 22:51:18] Production.INFO: ProcessCDR(1,14396194,1,1,2) [2025-02-03 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396194', 'tblTempUsageDetail_20' ) start [2025-02-03 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396194', 'tblTempUsageDetail_20' ) end [2025-02-03 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:51:21] Production.INFO: ==17979== Releasing lock... [2025-02-03 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:51:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:52:05 [end_date_ymd] => 2025-02-03 22:52:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:52:05' and `end` < '2025-02-03 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-02-03 22:52:18] Production.INFO: count ==1039 [2025-02-03 22:52:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:52:05 - End Time 2025-02-03 22:52:05 [2025-02-03 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396199', 'tblTempUsageDetail_20' ) start [2025-02-03 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396199', 'tblTempUsageDetail_20' ) end [2025-02-03 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396199', 'tblTempVendorCDR_20' ) start [2025-02-03 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396199', 'tblTempVendorCDR_20' ) end [2025-02-03 22:52:18] Production.INFO: ProcessCDR(1,14396199,1,1,2) [2025-02-03 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396199', 'tblTempUsageDetail_20' ) start [2025-02-03 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396199', 'tblTempUsageDetail_20' ) end [2025-02-03 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:52:21] Production.INFO: ==18050== Releasing lock... [2025-02-03 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:52:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-03 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:53:05 [end_date_ymd] => 2025-02-03 22:53:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:53:05' and `end` < '2025-02-03 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-02-03 22:53:19] Production.INFO: count ==1045 [2025-02-03 22:53:20] Production.ERROR: pbx CDR StartTime 2025-02-03 19:53:05 - End Time 2025-02-03 22:53:05 [2025-02-03 22:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396204', 'tblTempUsageDetail_20' ) start [2025-02-03 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396204', 'tblTempUsageDetail_20' ) end [2025-02-03 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396204', 'tblTempVendorCDR_20' ) start [2025-02-03 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396204', 'tblTempVendorCDR_20' ) end [2025-02-03 22:53:20] Production.INFO: ProcessCDR(1,14396204,1,1,2) [2025-02-03 22:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396204', 'tblTempUsageDetail_20' ) start [2025-02-03 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396204', 'tblTempUsageDetail_20' ) end [2025-02-03 22:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:53:23] Production.INFO: ==18125== Releasing lock... [2025-02-03 22:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:53:23] Production.INFO: 37 MB #Memory Used# [2025-02-03 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:54:05 [end_date_ymd] => 2025-02-03 22:54:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:54:05' and `end` < '2025-02-03 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-02-03 22:54:19] Production.INFO: count ==1043 [2025-02-03 22:54:20] Production.ERROR: pbx CDR StartTime 2025-02-03 19:54:05 - End Time 2025-02-03 22:54:05 [2025-02-03 22:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396209', 'tblTempUsageDetail_20' ) start [2025-02-03 22:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396209', 'tblTempUsageDetail_20' ) end [2025-02-03 22:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396209', 'tblTempVendorCDR_20' ) start [2025-02-03 22:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396209', 'tblTempVendorCDR_20' ) end [2025-02-03 22:54:20] Production.INFO: ProcessCDR(1,14396209,1,1,2) [2025-02-03 22:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396209', 'tblTempUsageDetail_20' ) start [2025-02-03 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396209', 'tblTempUsageDetail_20' ) end [2025-02-03 22:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:54:23] Production.INFO: ==18198== Releasing lock... [2025-02-03 22:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:54:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:55:05 [end_date_ymd] => 2025-02-03 22:55:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:55:05' and `end` < '2025-02-03 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-02-03 22:55:18] Production.INFO: count ==1046 [2025-02-03 22:55:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:55:05 - End Time 2025-02-03 22:55:05 [2025-02-03 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396214', 'tblTempUsageDetail_20' ) start [2025-02-03 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396214', 'tblTempUsageDetail_20' ) end [2025-02-03 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396214', 'tblTempVendorCDR_20' ) start [2025-02-03 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396214', 'tblTempVendorCDR_20' ) end [2025-02-03 22:55:18] Production.INFO: ProcessCDR(1,14396214,1,1,2) [2025-02-03 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396214', 'tblTempUsageDetail_20' ) start [2025-02-03 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396214', 'tblTempUsageDetail_20' ) end [2025-02-03 22:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:55:23] Production.INFO: ==18271== Releasing lock... [2025-02-03 22:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:55:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:56:05 [end_date_ymd] => 2025-02-03 22:56:05 [RateCDR] => 1 ) [2025-02-03 22: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-02-03 19:56:05' and `end` < '2025-02-03 22: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-02-03 22:56:19] Production.INFO: count ==1047 [2025-02-03 22:56:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:56:05 - End Time 2025-02-03 22:56:05 [2025-02-03 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396219', 'tblTempUsageDetail_20' ) start [2025-02-03 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396219', 'tblTempUsageDetail_20' ) end [2025-02-03 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396219', 'tblTempVendorCDR_20' ) start [2025-02-03 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396219', 'tblTempVendorCDR_20' ) end [2025-02-03 22:56:19] Production.INFO: ProcessCDR(1,14396219,1,1,2) [2025-02-03 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396219', 'tblTempUsageDetail_20' ) start [2025-02-03 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396219', 'tblTempUsageDetail_20' ) end [2025-02-03 22:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:56:23] Production.INFO: ==18343== Releasing lock... [2025-02-03 22:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:56:23] Production.INFO: 37 MB #Memory Used# [2025-02-03 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:57:05 [end_date_ymd] => 2025-02-03 22:57:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:57:05' and `end` < '2025-02-03 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-02-03 22:57:19] Production.INFO: count ==1049 [2025-02-03 22:57:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:57:05 - End Time 2025-02-03 22:57:05 [2025-02-03 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396224', 'tblTempUsageDetail_20' ) start [2025-02-03 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396224', 'tblTempUsageDetail_20' ) end [2025-02-03 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396224', 'tblTempVendorCDR_20' ) start [2025-02-03 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396224', 'tblTempVendorCDR_20' ) end [2025-02-03 22:57:19] Production.INFO: ProcessCDR(1,14396224,1,1,2) [2025-02-03 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396224', 'tblTempUsageDetail_20' ) start [2025-02-03 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396224', 'tblTempUsageDetail_20' ) end [2025-02-03 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:57:22] Production.INFO: ==18414== Releasing lock... [2025-02-03 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:57:22] Production.INFO: 37 MB #Memory Used# [2025-02-03 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:58:05 [end_date_ymd] => 2025-02-03 22:58:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:58:05' and `end` < '2025-02-03 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-02-03 22:58:18] Production.INFO: count ==1048 [2025-02-03 22:58:18] Production.ERROR: pbx CDR StartTime 2025-02-03 19:58:05 - End Time 2025-02-03 22:58:05 [2025-02-03 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396229', 'tblTempUsageDetail_20' ) start [2025-02-03 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396229', 'tblTempUsageDetail_20' ) end [2025-02-03 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396229', 'tblTempVendorCDR_20' ) start [2025-02-03 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396229', 'tblTempVendorCDR_20' ) end [2025-02-03 22:58:18] Production.INFO: ProcessCDR(1,14396229,1,1,2) [2025-02-03 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396229', 'tblTempUsageDetail_20' ) start [2025-02-03 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396229', 'tblTempUsageDetail_20' ) end [2025-02-03 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:58:22] Production.INFO: ==18530== Releasing lock... [2025-02-03 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:58:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-03 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 19:59:05 [end_date_ymd] => 2025-02-03 22:59:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 19:59:05' and `end` < '2025-02-03 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-02-03 22:59:19] Production.INFO: count ==1047 [2025-02-03 22:59:19] Production.ERROR: pbx CDR StartTime 2025-02-03 19:59:05 - End Time 2025-02-03 22:59:05 [2025-02-03 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396234', 'tblTempUsageDetail_20' ) start [2025-02-03 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396234', 'tblTempUsageDetail_20' ) end [2025-02-03 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396234', 'tblTempVendorCDR_20' ) start [2025-02-03 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396234', 'tblTempVendorCDR_20' ) end [2025-02-03 22:59:19] Production.INFO: ProcessCDR(1,14396234,1,1,2) [2025-02-03 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396234', 'tblTempUsageDetail_20' ) start [2025-02-03 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396234', 'tblTempUsageDetail_20' ) end [2025-02-03 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 22:59:22] Production.INFO: ==18603== Releasing lock... [2025-02-03 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 22:59:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:00:06 [end_date_ymd] => 2025-02-03 23:00:06 [RateCDR] => 1 ) [2025-02-03 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 20:00:06' and `end` < '2025-02-03 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 23:00:19] Production.INFO: count ==1046 [2025-02-03 23:00:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:00:06 - End Time 2025-02-03 23:00:06 [2025-02-03 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396240', 'tblTempUsageDetail_20' ) start [2025-02-03 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396240', 'tblTempUsageDetail_20' ) end [2025-02-03 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396240', 'tblTempVendorCDR_20' ) start [2025-02-03 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396240', 'tblTempVendorCDR_20' ) end [2025-02-03 23:00:19] Production.INFO: ProcessCDR(1,14396240,1,1,2) [2025-02-03 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396240', 'tblTempUsageDetail_20' ) start [2025-02-03 23:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396240', 'tblTempUsageDetail_20' ) end [2025-02-03 23:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:00:24] Production.INFO: ==18681== Releasing lock... [2025-02-03 23:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:00:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-03 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:01:05 [end_date_ymd] => 2025-02-03 23:01:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:01:05' and `end` < '2025-02-03 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-02-03 23:01:19] Production.INFO: count ==1011 [2025-02-03 23:01:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:01:05 - End Time 2025-02-03 23:01:05 [2025-02-03 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396245', 'tblTempUsageDetail_20' ) start [2025-02-03 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396245', 'tblTempUsageDetail_20' ) end [2025-02-03 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396245', 'tblTempVendorCDR_20' ) start [2025-02-03 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396245', 'tblTempVendorCDR_20' ) end [2025-02-03 23:01:19] Production.INFO: ProcessCDR(1,14396245,1,1,2) [2025-02-03 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396245', 'tblTempUsageDetail_20' ) start [2025-02-03 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396245', 'tblTempUsageDetail_20' ) end [2025-02-03 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:01:22] Production.INFO: ==18814== Releasing lock... [2025-02-03 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:01:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-03 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:02:05 [end_date_ymd] => 2025-02-03 23:02:05 [RateCDR] => 1 ) [2025-02-03 23: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-02-03 20:02:05' and `end` < '2025-02-03 23: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-02-03 23:02:18] Production.INFO: count ==1014 [2025-02-03 23:02:18] Production.ERROR: pbx CDR StartTime 2025-02-03 20:02:05 - End Time 2025-02-03 23:02:05 [2025-02-03 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396250', 'tblTempUsageDetail_20' ) start [2025-02-03 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396250', 'tblTempUsageDetail_20' ) end [2025-02-03 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396250', 'tblTempVendorCDR_20' ) start [2025-02-03 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396250', 'tblTempVendorCDR_20' ) end [2025-02-03 23:02:18] Production.INFO: ProcessCDR(1,14396250,1,1,2) [2025-02-03 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396250', 'tblTempUsageDetail_20' ) start [2025-02-03 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396250', 'tblTempUsageDetail_20' ) end [2025-02-03 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:02:22] Production.INFO: ==18923== Releasing lock... [2025-02-03 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:02:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-03 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:03:05 [end_date_ymd] => 2025-02-03 23:03:05 [RateCDR] => 1 ) [2025-02-03 23: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-02-03 20:03:05' and `end` < '2025-02-03 23: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-02-03 23:03:18] Production.INFO: count ==1008 [2025-02-03 23:03:18] Production.ERROR: pbx CDR StartTime 2025-02-03 20:03:05 - End Time 2025-02-03 23:03:05 [2025-02-03 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396255', 'tblTempUsageDetail_20' ) start [2025-02-03 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396255', 'tblTempUsageDetail_20' ) end [2025-02-03 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396255', 'tblTempVendorCDR_20' ) start [2025-02-03 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396255', 'tblTempVendorCDR_20' ) end [2025-02-03 23:03:18] Production.INFO: ProcessCDR(1,14396255,1,1,2) [2025-02-03 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396255', 'tblTempUsageDetail_20' ) start [2025-02-03 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396255', 'tblTempUsageDetail_20' ) end [2025-02-03 23:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:03:21] Production.INFO: ==18993== Releasing lock... [2025-02-03 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:03:21] Production.INFO: 36 MB #Memory Used# [2025-02-03 23:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:04:06 [end_date_ymd] => 2025-02-03 23:04:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:04:06' and `end` < '2025-02-03 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-02-03 23:04:18] Production.INFO: count ==1015 [2025-02-03 23:04:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:04:06 - End Time 2025-02-03 23:04:06 [2025-02-03 23:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396260', 'tblTempUsageDetail_20' ) start [2025-02-03 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396260', 'tblTempUsageDetail_20' ) end [2025-02-03 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396260', 'tblTempVendorCDR_20' ) start [2025-02-03 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396260', 'tblTempVendorCDR_20' ) end [2025-02-03 23:04:19] Production.INFO: ProcessCDR(1,14396260,1,1,2) [2025-02-03 23:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396260', 'tblTempUsageDetail_20' ) start [2025-02-03 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396260', 'tblTempUsageDetail_20' ) end [2025-02-03 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:04:22] Production.INFO: ==19068== Releasing lock... [2025-02-03 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:04:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:05:05 [end_date_ymd] => 2025-02-03 23:05:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:05:05' and `end` < '2025-02-03 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-02-03 23:05:18] Production.INFO: count ==1015 [2025-02-03 23:05:18] Production.ERROR: pbx CDR StartTime 2025-02-03 20:05:05 - End Time 2025-02-03 23:05:05 [2025-02-03 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396265', 'tblTempUsageDetail_20' ) start [2025-02-03 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396265', 'tblTempUsageDetail_20' ) end [2025-02-03 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396265', 'tblTempVendorCDR_20' ) start [2025-02-03 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396265', 'tblTempVendorCDR_20' ) end [2025-02-03 23:05:18] Production.INFO: ProcessCDR(1,14396265,1,1,2) [2025-02-03 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396265', 'tblTempUsageDetail_20' ) start [2025-02-03 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396265', 'tblTempUsageDetail_20' ) end [2025-02-03 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:05:22] Production.INFO: ==19221== Releasing lock... [2025-02-03 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:05:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:06:05 [end_date_ymd] => 2025-02-03 23:06:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:06:05' and `end` < '2025-02-03 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-02-03 23:06:20] Production.INFO: count ==1015 [2025-02-03 23:06:20] Production.ERROR: pbx CDR StartTime 2025-02-03 20:06:05 - End Time 2025-02-03 23:06:05 [2025-02-03 23:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396270', 'tblTempUsageDetail_20' ) start [2025-02-03 23:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396270', 'tblTempUsageDetail_20' ) end [2025-02-03 23:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396270', 'tblTempVendorCDR_20' ) start [2025-02-03 23:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396270', 'tblTempVendorCDR_20' ) end [2025-02-03 23:06:20] Production.INFO: ProcessCDR(1,14396270,1,1,2) [2025-02-03 23:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396270', 'tblTempUsageDetail_20' ) start [2025-02-03 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396270', 'tblTempUsageDetail_20' ) end [2025-02-03 23:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:06:23] Production.INFO: ==19294== Releasing lock... [2025-02-03 23:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:06:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-03 23:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:07:04 [end_date_ymd] => 2025-02-03 23:07:04 [RateCDR] => 1 ) [2025-02-03 23: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-02-03 20:07:04' and `end` < '2025-02-03 23: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-02-03 23:07:17] Production.INFO: count ==1010 [2025-02-03 23:07:17] Production.ERROR: pbx CDR StartTime 2025-02-03 20:07:04 - End Time 2025-02-03 23:07:04 [2025-02-03 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396275', 'tblTempUsageDetail_20' ) start [2025-02-03 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396275', 'tblTempUsageDetail_20' ) end [2025-02-03 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396275', 'tblTempVendorCDR_20' ) start [2025-02-03 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396275', 'tblTempVendorCDR_20' ) end [2025-02-03 23:07:17] Production.INFO: ProcessCDR(1,14396275,1,1,2) [2025-02-03 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396275', 'tblTempUsageDetail_20' ) start [2025-02-03 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396275', 'tblTempUsageDetail_20' ) end [2025-02-03 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:07:21] Production.INFO: ==19363== Releasing lock... [2025-02-03 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:07:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-03 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:08:05 [end_date_ymd] => 2025-02-03 23:08:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:08:05' and `end` < '2025-02-03 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-02-03 23:08:17] Production.INFO: count ==1009 [2025-02-03 23:08:18] Production.ERROR: pbx CDR StartTime 2025-02-03 20:08:05 - End Time 2025-02-03 23:08:05 [2025-02-03 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396280', 'tblTempUsageDetail_20' ) start [2025-02-03 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396280', 'tblTempUsageDetail_20' ) end [2025-02-03 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396280', 'tblTempVendorCDR_20' ) start [2025-02-03 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396280', 'tblTempVendorCDR_20' ) end [2025-02-03 23:08:18] Production.INFO: ProcessCDR(1,14396280,1,1,2) [2025-02-03 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396280', 'tblTempUsageDetail_20' ) start [2025-02-03 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396280', 'tblTempUsageDetail_20' ) end [2025-02-03 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:08:21] Production.INFO: ==19515== Releasing lock... [2025-02-03 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:08:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-03 23:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:09:06 [end_date_ymd] => 2025-02-03 23:09:06 [RateCDR] => 1 ) [2025-02-03 23:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 20:09:06' and `end` < '2025-02-03 23:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 23:09:20] Production.INFO: count ==1009 [2025-02-03 23:09:20] Production.ERROR: pbx CDR StartTime 2025-02-03 20:09:06 - End Time 2025-02-03 23:09:06 [2025-02-03 23:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396285', 'tblTempUsageDetail_20' ) start [2025-02-03 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396285', 'tblTempUsageDetail_20' ) end [2025-02-03 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396285', 'tblTempVendorCDR_20' ) start [2025-02-03 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396285', 'tblTempVendorCDR_20' ) end [2025-02-03 23:09:20] Production.INFO: ProcessCDR(1,14396285,1,1,2) [2025-02-03 23:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396285', 'tblTempUsageDetail_20' ) start [2025-02-03 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396285', 'tblTempUsageDetail_20' ) end [2025-02-03 23:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:09:23] Production.INFO: ==19585== Releasing lock... [2025-02-03 23:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:09:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-03 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:10:05 [end_date_ymd] => 2025-02-03 23:10:05 [RateCDR] => 1 ) [2025-02-03 23: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-02-03 20:10:05' and `end` < '2025-02-03 23: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-02-03 23:10:18] Production.INFO: count ==1006 [2025-02-03 23:10:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:10:05 - End Time 2025-02-03 23:10:05 [2025-02-03 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396291', 'tblTempUsageDetail_20' ) start [2025-02-03 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396291', 'tblTempUsageDetail_20' ) end [2025-02-03 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396291', 'tblTempVendorCDR_20' ) start [2025-02-03 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396291', 'tblTempVendorCDR_20' ) end [2025-02-03 23:10:19] Production.INFO: ProcessCDR(1,14396291,1,1,2) [2025-02-03 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396291', 'tblTempUsageDetail_20' ) start [2025-02-03 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396291', 'tblTempUsageDetail_20' ) end [2025-02-03 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:10:22] Production.INFO: ==19658== Releasing lock... [2025-02-03 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:10:22] Production.INFO: 36 MB #Memory Used# [2025-02-03 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:11:05 [end_date_ymd] => 2025-02-03 23:11:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:11:05' and `end` < '2025-02-03 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-02-03 23:11:18] Production.INFO: count ==1022 [2025-02-03 23:11:18] Production.ERROR: pbx CDR StartTime 2025-02-03 20:11:05 - End Time 2025-02-03 23:11:05 [2025-02-03 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396296', 'tblTempUsageDetail_20' ) start [2025-02-03 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396296', 'tblTempUsageDetail_20' ) end [2025-02-03 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396296', 'tblTempVendorCDR_20' ) start [2025-02-03 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396296', 'tblTempVendorCDR_20' ) end [2025-02-03 23:11:18] Production.INFO: ProcessCDR(1,14396296,1,1,2) [2025-02-03 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396296', 'tblTempUsageDetail_20' ) start [2025-02-03 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396296', 'tblTempUsageDetail_20' ) end [2025-02-03 23:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:11:23] Production.INFO: ==19733== Releasing lock... [2025-02-03 23:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:11:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-03 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:12:05 [end_date_ymd] => 2025-02-03 23:12:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:12:05' and `end` < '2025-02-03 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-02-03 23:12:17] Production.INFO: count ==1022 [2025-02-03 23:12:18] Production.ERROR: pbx CDR StartTime 2025-02-03 20:12:05 - End Time 2025-02-03 23:12:05 [2025-02-03 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396301', 'tblTempUsageDetail_20' ) start [2025-02-03 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396301', 'tblTempUsageDetail_20' ) end [2025-02-03 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396301', 'tblTempVendorCDR_20' ) start [2025-02-03 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396301', 'tblTempVendorCDR_20' ) end [2025-02-03 23:12:18] Production.INFO: ProcessCDR(1,14396301,1,1,2) [2025-02-03 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396301', 'tblTempUsageDetail_20' ) start [2025-02-03 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396301', 'tblTempUsageDetail_20' ) end [2025-02-03 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:12:21] Production.INFO: ==19885== Releasing lock... [2025-02-03 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:12:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-03 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:13:05 [end_date_ymd] => 2025-02-03 23:13:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:13:05' and `end` < '2025-02-03 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-02-03 23:13:18] Production.INFO: count ==1021 [2025-02-03 23:13:18] Production.ERROR: pbx CDR StartTime 2025-02-03 20:13:05 - End Time 2025-02-03 23:13:05 [2025-02-03 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396306', 'tblTempUsageDetail_20' ) start [2025-02-03 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396306', 'tblTempUsageDetail_20' ) end [2025-02-03 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396306', 'tblTempVendorCDR_20' ) start [2025-02-03 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396306', 'tblTempVendorCDR_20' ) end [2025-02-03 23:13:18] Production.INFO: ProcessCDR(1,14396306,1,1,2) [2025-02-03 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396306', 'tblTempUsageDetail_20' ) start [2025-02-03 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396306', 'tblTempUsageDetail_20' ) end [2025-02-03 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:13:21] Production.INFO: ==19962== Releasing lock... [2025-02-03 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:13:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-03 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:14:05 [end_date_ymd] => 2025-02-03 23:14:05 [RateCDR] => 1 ) [2025-02-03 23: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-02-03 20:14:05' and `end` < '2025-02-03 23: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-02-03 23:14:20] Production.INFO: count ==1021 [2025-02-03 23:14:20] Production.ERROR: pbx CDR StartTime 2025-02-03 20:14:05 - End Time 2025-02-03 23:14:05 [2025-02-03 23:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396311', 'tblTempUsageDetail_20' ) start [2025-02-03 23:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396311', 'tblTempUsageDetail_20' ) end [2025-02-03 23:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396311', 'tblTempVendorCDR_20' ) start [2025-02-03 23:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396311', 'tblTempVendorCDR_20' ) end [2025-02-03 23:14:20] Production.INFO: ProcessCDR(1,14396311,1,1,2) [2025-02-03 23:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396311', 'tblTempUsageDetail_20' ) start [2025-02-03 23:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396311', 'tblTempUsageDetail_20' ) end [2025-02-03 23:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:14:23] Production.INFO: ==20077== Releasing lock... [2025-02-03 23:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:14:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-03 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:15:05 [end_date_ymd] => 2025-02-03 23:15:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:15:05' and `end` < '2025-02-03 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-02-03 23:15:19] Production.INFO: count ==1022 [2025-02-03 23:15:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:15:05 - End Time 2025-02-03 23:15:05 [2025-02-03 23:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396316', 'tblTempUsageDetail_20' ) start [2025-02-03 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396316', 'tblTempUsageDetail_20' ) end [2025-02-03 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396316', 'tblTempVendorCDR_20' ) start [2025-02-03 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396316', 'tblTempVendorCDR_20' ) end [2025-02-03 23:15:19] Production.INFO: ProcessCDR(1,14396316,1,1,2) [2025-02-03 23:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396316', 'tblTempUsageDetail_20' ) start [2025-02-03 23:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396316', 'tblTempUsageDetail_20' ) end [2025-02-03 23:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:15:24] Production.INFO: ==20234== Releasing lock... [2025-02-03 23:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:15:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-03 23:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:16:06 [end_date_ymd] => 2025-02-03 23:16:06 [RateCDR] => 1 ) [2025-02-03 23: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-02-03 20:16:06' and `end` < '2025-02-03 23: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-02-03 23:16:19] Production.INFO: count ==1021 [2025-02-03 23:16:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:16:06 - End Time 2025-02-03 23:16:06 [2025-02-03 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396321', 'tblTempUsageDetail_20' ) start [2025-02-03 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396321', 'tblTempUsageDetail_20' ) end [2025-02-03 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396321', 'tblTempVendorCDR_20' ) start [2025-02-03 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396321', 'tblTempVendorCDR_20' ) end [2025-02-03 23:16:19] Production.INFO: ProcessCDR(1,14396321,1,1,2) [2025-02-03 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396321', 'tblTempUsageDetail_20' ) start [2025-02-03 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396321', 'tblTempUsageDetail_20' ) end [2025-02-03 23:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:16:23] Production.INFO: ==20308== Releasing lock... [2025-02-03 23:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:16:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-03 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:17:05 [end_date_ymd] => 2025-02-03 23:17:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:17:05' and `end` < '2025-02-03 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-02-03 23:17:20] Production.INFO: count ==1021 [2025-02-03 23:17:20] Production.ERROR: pbx CDR StartTime 2025-02-03 20:17:05 - End Time 2025-02-03 23:17:05 [2025-02-03 23:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396326', 'tblTempUsageDetail_20' ) start [2025-02-03 23:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396326', 'tblTempUsageDetail_20' ) end [2025-02-03 23:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396326', 'tblTempVendorCDR_20' ) start [2025-02-03 23:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396326', 'tblTempVendorCDR_20' ) end [2025-02-03 23:17:21] Production.INFO: ProcessCDR(1,14396326,1,1,2) [2025-02-03 23:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396326', 'tblTempUsageDetail_20' ) start [2025-02-03 23:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396326', 'tblTempUsageDetail_20' ) end [2025-02-03 23:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:17:24] Production.INFO: ==20381== Releasing lock... [2025-02-03 23:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:17:24] Production.INFO: 36.25 MB #Memory Used# [2025-02-03 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:18:05 [end_date_ymd] => 2025-02-03 23:18:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:18:05' and `end` < '2025-02-03 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-02-03 23:18:19] Production.INFO: count ==1025 [2025-02-03 23:18:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:18:05 - End Time 2025-02-03 23:18:05 [2025-02-03 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396331', 'tblTempUsageDetail_20' ) start [2025-02-03 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396331', 'tblTempUsageDetail_20' ) end [2025-02-03 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396331', 'tblTempVendorCDR_20' ) start [2025-02-03 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396331', 'tblTempVendorCDR_20' ) end [2025-02-03 23:18:19] Production.INFO: ProcessCDR(1,14396331,1,1,2) [2025-02-03 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396331', 'tblTempUsageDetail_20' ) start [2025-02-03 23:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396331', 'tblTempUsageDetail_20' ) end [2025-02-03 23:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:18:24] Production.INFO: ==20461== Releasing lock... [2025-02-03 23:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:18:24] Production.INFO: 36 MB #Memory Used# [2025-02-03 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:19:05 [end_date_ymd] => 2025-02-03 23:19:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:19:05' and `end` < '2025-02-03 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-02-03 23:19:19] Production.INFO: count ==1024 [2025-02-03 23:19:20] Production.ERROR: pbx CDR StartTime 2025-02-03 20:19:05 - End Time 2025-02-03 23:19:05 [2025-02-03 23:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396336', 'tblTempUsageDetail_20' ) start [2025-02-03 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396336', 'tblTempUsageDetail_20' ) end [2025-02-03 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396336', 'tblTempVendorCDR_20' ) start [2025-02-03 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396336', 'tblTempVendorCDR_20' ) end [2025-02-03 23:19:20] Production.INFO: ProcessCDR(1,14396336,1,1,2) [2025-02-03 23:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396336', 'tblTempUsageDetail_20' ) start [2025-02-03 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396336', 'tblTempUsageDetail_20' ) end [2025-02-03 23:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:19:23] Production.INFO: ==20534== Releasing lock... [2025-02-03 23:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:19:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-03 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:20:06 [end_date_ymd] => 2025-02-03 23:20:06 [RateCDR] => 1 ) [2025-02-03 23: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-02-03 20:20:06' and `end` < '2025-02-03 23: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-02-03 23:20:18] Production.INFO: count ==1021 [2025-02-03 23:20:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:20:06 - End Time 2025-02-03 23:20:06 [2025-02-03 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396341', 'tblTempUsageDetail_20' ) start [2025-02-03 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396341', 'tblTempUsageDetail_20' ) end [2025-02-03 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396341', 'tblTempVendorCDR_20' ) start [2025-02-03 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396341', 'tblTempVendorCDR_20' ) end [2025-02-03 23:20:19] Production.INFO: ProcessCDR(1,14396341,1,1,2) [2025-02-03 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396341', 'tblTempUsageDetail_20' ) start [2025-02-03 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396341', 'tblTempUsageDetail_20' ) end [2025-02-03 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:20:22] Production.INFO: ==20616== Releasing lock... [2025-02-03 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:20:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-03 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:21:05 [end_date_ymd] => 2025-02-03 23:21:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:21:05' and `end` < '2025-02-03 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-02-03 23:21:19] Production.INFO: count ==974 [2025-02-03 23:21:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:21:05 - End Time 2025-02-03 23:21:05 [2025-02-03 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396347', 'tblTempUsageDetail_20' ) start [2025-02-03 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396347', 'tblTempUsageDetail_20' ) end [2025-02-03 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396347', 'tblTempVendorCDR_20' ) start [2025-02-03 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396347', 'tblTempVendorCDR_20' ) end [2025-02-03 23:21:19] Production.INFO: ProcessCDR(1,14396347,1,1,2) [2025-02-03 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396347', 'tblTempUsageDetail_20' ) start [2025-02-03 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396347', 'tblTempUsageDetail_20' ) end [2025-02-03 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:21:22] Production.INFO: ==20697== Releasing lock... [2025-02-03 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:21:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-03 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:22:05 [end_date_ymd] => 2025-02-03 23:22:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:22:05' and `end` < '2025-02-03 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-02-03 23:22:18] Production.INFO: count ==974 [2025-02-03 23:22:18] Production.ERROR: pbx CDR StartTime 2025-02-03 20:22:05 - End Time 2025-02-03 23:22:05 [2025-02-03 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396352', 'tblTempUsageDetail_20' ) start [2025-02-03 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396352', 'tblTempUsageDetail_20' ) end [2025-02-03 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396352', 'tblTempVendorCDR_20' ) start [2025-02-03 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396352', 'tblTempVendorCDR_20' ) end [2025-02-03 23:22:18] Production.INFO: ProcessCDR(1,14396352,1,1,2) [2025-02-03 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396352', 'tblTempUsageDetail_20' ) start [2025-02-03 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396352', 'tblTempUsageDetail_20' ) end [2025-02-03 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:22:21] Production.INFO: ==20769== Releasing lock... [2025-02-03 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:22:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-03 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:23:05 [end_date_ymd] => 2025-02-03 23:23:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:23:05' and `end` < '2025-02-03 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-02-03 23:23:20] Production.INFO: count ==973 [2025-02-03 23:23:20] Production.ERROR: pbx CDR StartTime 2025-02-03 20:23:05 - End Time 2025-02-03 23:23:05 [2025-02-03 23:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396357', 'tblTempUsageDetail_20' ) start [2025-02-03 23:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396357', 'tblTempUsageDetail_20' ) end [2025-02-03 23:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396357', 'tblTempVendorCDR_20' ) start [2025-02-03 23:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396357', 'tblTempVendorCDR_20' ) end [2025-02-03 23:23:20] Production.INFO: ProcessCDR(1,14396357,1,1,2) [2025-02-03 23:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396357', 'tblTempUsageDetail_20' ) start [2025-02-03 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396357', 'tblTempUsageDetail_20' ) end [2025-02-03 23:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:23:23] Production.INFO: ==20845== Releasing lock... [2025-02-03 23:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:23:23] Production.INFO: 36 MB #Memory Used# [2025-02-03 23:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:24:06 [end_date_ymd] => 2025-02-03 23:24:06 [RateCDR] => 1 ) [2025-02-03 23: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-02-03 20:24:06' and `end` < '2025-02-03 23: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-02-03 23:24:20] Production.INFO: count ==973 [2025-02-03 23:24:20] Production.ERROR: pbx CDR StartTime 2025-02-03 20:24:06 - End Time 2025-02-03 23:24:06 [2025-02-03 23:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396362', 'tblTempUsageDetail_20' ) start [2025-02-03 23:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396362', 'tblTempUsageDetail_20' ) end [2025-02-03 23:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396362', 'tblTempVendorCDR_20' ) start [2025-02-03 23:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396362', 'tblTempVendorCDR_20' ) end [2025-02-03 23:24:20] Production.INFO: ProcessCDR(1,14396362,1,1,2) [2025-02-03 23:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396362', 'tblTempUsageDetail_20' ) start [2025-02-03 23:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396362', 'tblTempUsageDetail_20' ) end [2025-02-03 23:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:24:23] Production.INFO: ==20919== Releasing lock... [2025-02-03 23:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:24:23] Production.INFO: 36 MB #Memory Used# [2025-02-03 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:25:05 [end_date_ymd] => 2025-02-03 23:25:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:25:05' and `end` < '2025-02-03 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-02-03 23:25:18] Production.INFO: count ==970 [2025-02-03 23:25:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:25:05 - End Time 2025-02-03 23:25:05 [2025-02-03 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396367', 'tblTempUsageDetail_20' ) start [2025-02-03 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396367', 'tblTempUsageDetail_20' ) end [2025-02-03 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396367', 'tblTempVendorCDR_20' ) start [2025-02-03 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396367', 'tblTempVendorCDR_20' ) end [2025-02-03 23:25:19] Production.INFO: ProcessCDR(1,14396367,1,1,2) [2025-02-03 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396367', 'tblTempUsageDetail_20' ) start [2025-02-03 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396367', 'tblTempUsageDetail_20' ) end [2025-02-03 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:25:22] Production.INFO: ==20992== Releasing lock... [2025-02-03 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:25:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-03 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:26:05 [end_date_ymd] => 2025-02-03 23:26:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:26:05' and `end` < '2025-02-03 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-02-03 23:26:19] Production.INFO: count ==970 [2025-02-03 23:26:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:26:05 - End Time 2025-02-03 23:26:05 [2025-02-03 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396372', 'tblTempUsageDetail_20' ) start [2025-02-03 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396372', 'tblTempUsageDetail_20' ) end [2025-02-03 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396372', 'tblTempVendorCDR_20' ) start [2025-02-03 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396372', 'tblTempVendorCDR_20' ) end [2025-02-03 23:26:19] Production.INFO: ProcessCDR(1,14396372,1,1,2) [2025-02-03 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396372', 'tblTempUsageDetail_20' ) start [2025-02-03 23:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396372', 'tblTempUsageDetail_20' ) end [2025-02-03 23:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:26:24] Production.INFO: ==21068== Releasing lock... [2025-02-03 23:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:26:24] Production.INFO: 35.75 MB #Memory Used# [2025-02-03 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:27:05 [end_date_ymd] => 2025-02-03 23:27:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:27:05' and `end` < '2025-02-03 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-02-03 23:27:18] Production.INFO: count ==966 [2025-02-03 23:27:18] Production.ERROR: pbx CDR StartTime 2025-02-03 20:27:05 - End Time 2025-02-03 23:27:05 [2025-02-03 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396377', 'tblTempUsageDetail_20' ) start [2025-02-03 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396377', 'tblTempUsageDetail_20' ) end [2025-02-03 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396377', 'tblTempVendorCDR_20' ) start [2025-02-03 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396377', 'tblTempVendorCDR_20' ) end [2025-02-03 23:27:18] Production.INFO: ProcessCDR(1,14396377,1,1,2) [2025-02-03 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396377', 'tblTempUsageDetail_20' ) start [2025-02-03 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396377', 'tblTempUsageDetail_20' ) end [2025-02-03 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:27:21] Production.INFO: ==21143== Releasing lock... [2025-02-03 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:27:21] Production.INFO: 36 MB #Memory Used# [2025-02-03 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:28:05 [end_date_ymd] => 2025-02-03 23:28:05 [RateCDR] => 1 ) [2025-02-03 23: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-02-03 20:28:05' and `end` < '2025-02-03 23: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-02-03 23:28:18] Production.INFO: count ==965 [2025-02-03 23:28:18] Production.ERROR: pbx CDR StartTime 2025-02-03 20:28:05 - End Time 2025-02-03 23:28:05 [2025-02-03 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396382', 'tblTempUsageDetail_20' ) start [2025-02-03 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396382', 'tblTempUsageDetail_20' ) end [2025-02-03 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396382', 'tblTempVendorCDR_20' ) start [2025-02-03 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396382', 'tblTempVendorCDR_20' ) end [2025-02-03 23:28:18] Production.INFO: ProcessCDR(1,14396382,1,1,2) [2025-02-03 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396382', 'tblTempUsageDetail_20' ) start [2025-02-03 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396382', 'tblTempUsageDetail_20' ) end [2025-02-03 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:28:21] Production.INFO: ==21216== Releasing lock... [2025-02-03 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:28:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-03 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:29:05 [end_date_ymd] => 2025-02-03 23:29:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:29:05' and `end` < '2025-02-03 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-02-03 23:29:19] Production.INFO: count ==961 [2025-02-03 23:29:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:29:05 - End Time 2025-02-03 23:29:05 [2025-02-03 23:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396387', 'tblTempUsageDetail_20' ) start [2025-02-03 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396387', 'tblTempUsageDetail_20' ) end [2025-02-03 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396387', 'tblTempVendorCDR_20' ) start [2025-02-03 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396387', 'tblTempVendorCDR_20' ) end [2025-02-03 23:29:19] Production.INFO: ProcessCDR(1,14396387,1,1,2) [2025-02-03 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396387', 'tblTempUsageDetail_20' ) start [2025-02-03 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396387', 'tblTempUsageDetail_20' ) end [2025-02-03 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:29:22] Production.INFO: ==21331== Releasing lock... [2025-02-03 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:29:22] Production.INFO: 36 MB #Memory Used# [2025-02-03 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:30:06 [end_date_ymd] => 2025-02-03 23:30:06 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:30:06' and `end` < '2025-02-03 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-02-03 23:30:19] Production.INFO: count ==957 [2025-02-03 23:30:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:30:06 - End Time 2025-02-03 23:30:06 [2025-02-03 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396392', 'tblTempUsageDetail_20' ) start [2025-02-03 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396392', 'tblTempUsageDetail_20' ) end [2025-02-03 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396392', 'tblTempVendorCDR_20' ) start [2025-02-03 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396392', 'tblTempVendorCDR_20' ) end [2025-02-03 23:30:19] Production.INFO: ProcessCDR(1,14396392,1,1,2) [2025-02-03 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396392', 'tblTempUsageDetail_20' ) start [2025-02-03 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396392', 'tblTempUsageDetail_20' ) end [2025-02-03 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:30:22] Production.INFO: ==21411== Releasing lock... [2025-02-03 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:30:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-03 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:31:05 [end_date_ymd] => 2025-02-03 23:31:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:31:05' and `end` < '2025-02-03 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-02-03 23:31:19] Production.INFO: count ==929 [2025-02-03 23:31:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:31:05 - End Time 2025-02-03 23:31:05 [2025-02-03 23:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396398', 'tblTempUsageDetail_20' ) start [2025-02-03 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396398', 'tblTempUsageDetail_20' ) end [2025-02-03 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396398', 'tblTempVendorCDR_20' ) start [2025-02-03 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396398', 'tblTempVendorCDR_20' ) end [2025-02-03 23:31:19] Production.INFO: ProcessCDR(1,14396398,1,1,2) [2025-02-03 23:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396398', 'tblTempUsageDetail_20' ) start [2025-02-03 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396398', 'tblTempUsageDetail_20' ) end [2025-02-03 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:31:22] Production.INFO: ==21488== Releasing lock... [2025-02-03 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:31:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 23:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:32:06 [end_date_ymd] => 2025-02-03 23:32:06 [RateCDR] => 1 ) [2025-02-03 23: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-02-03 20:32:06' and `end` < '2025-02-03 23: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-02-03 23:32:18] Production.INFO: count ==934 [2025-02-03 23:32:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:32:06 - End Time 2025-02-03 23:32:06 [2025-02-03 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396403', 'tblTempUsageDetail_20' ) start [2025-02-03 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396403', 'tblTempUsageDetail_20' ) end [2025-02-03 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396403', 'tblTempVendorCDR_20' ) start [2025-02-03 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396403', 'tblTempVendorCDR_20' ) end [2025-02-03 23:32:19] Production.INFO: ProcessCDR(1,14396403,1,1,2) [2025-02-03 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396403', 'tblTempUsageDetail_20' ) start [2025-02-03 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396403', 'tblTempUsageDetail_20' ) end [2025-02-03 23:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:32:23] Production.INFO: ==21563== Releasing lock... [2025-02-03 23:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:32:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-03 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:33:05 [end_date_ymd] => 2025-02-03 23:33:05 [RateCDR] => 1 ) [2025-02-03 23: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-02-03 20:33:05' and `end` < '2025-02-03 23: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-02-03 23:33:19] Production.INFO: count ==935 [2025-02-03 23:33:20] Production.ERROR: pbx CDR StartTime 2025-02-03 20:33:05 - End Time 2025-02-03 23:33:05 [2025-02-03 23:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396408', 'tblTempUsageDetail_20' ) start [2025-02-03 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396408', 'tblTempUsageDetail_20' ) end [2025-02-03 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396408', 'tblTempVendorCDR_20' ) start [2025-02-03 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396408', 'tblTempVendorCDR_20' ) end [2025-02-03 23:33:20] Production.INFO: ProcessCDR(1,14396408,1,1,2) [2025-02-03 23:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396408', 'tblTempUsageDetail_20' ) start [2025-02-03 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396408', 'tblTempUsageDetail_20' ) end [2025-02-03 23:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:33:23] Production.INFO: ==21636== Releasing lock... [2025-02-03 23:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:33:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:34:05 [end_date_ymd] => 2025-02-03 23:34:05 [RateCDR] => 1 ) [2025-02-03 23: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-02-03 20:34:05' and `end` < '2025-02-03 23: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-02-03 23:34:19] Production.INFO: count ==933 [2025-02-03 23:34:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:34:05 - End Time 2025-02-03 23:34:05 [2025-02-03 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396413', 'tblTempUsageDetail_20' ) start [2025-02-03 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396413', 'tblTempUsageDetail_20' ) end [2025-02-03 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396413', 'tblTempVendorCDR_20' ) start [2025-02-03 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396413', 'tblTempVendorCDR_20' ) end [2025-02-03 23:34:19] Production.INFO: ProcessCDR(1,14396413,1,1,2) [2025-02-03 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396413', 'tblTempUsageDetail_20' ) start [2025-02-03 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396413', 'tblTempUsageDetail_20' ) end [2025-02-03 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:34:22] Production.INFO: ==21718== Releasing lock... [2025-02-03 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:34:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-03 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:35:05 [end_date_ymd] => 2025-02-03 23:35:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:35:05' and `end` < '2025-02-03 23: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-02-03 23:35:18] Production.INFO: count ==931 [2025-02-03 23:35:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:35:05 - End Time 2025-02-03 23:35:05 [2025-02-03 23:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396418', 'tblTempUsageDetail_20' ) start [2025-02-03 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396418', 'tblTempUsageDetail_20' ) end [2025-02-03 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396418', 'tblTempVendorCDR_20' ) start [2025-02-03 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396418', 'tblTempVendorCDR_20' ) end [2025-02-03 23:35:19] Production.INFO: ProcessCDR(1,14396418,1,1,2) [2025-02-03 23:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396418', 'tblTempUsageDetail_20' ) start [2025-02-03 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396418', 'tblTempUsageDetail_20' ) end [2025-02-03 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:35:22] Production.INFO: ==21791== Releasing lock... [2025-02-03 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:35:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-03 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:36:05 [end_date_ymd] => 2025-02-03 23:36:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:36:05' and `end` < '2025-02-03 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-02-03 23:36:19] Production.INFO: count ==931 [2025-02-03 23:36:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:36:05 - End Time 2025-02-03 23:36:05 [2025-02-03 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396423', 'tblTempUsageDetail_20' ) start [2025-02-03 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396423', 'tblTempUsageDetail_20' ) end [2025-02-03 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396423', 'tblTempVendorCDR_20' ) start [2025-02-03 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396423', 'tblTempVendorCDR_20' ) end [2025-02-03 23:36:20] Production.INFO: ProcessCDR(1,14396423,1,1,2) [2025-02-03 23:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396423', 'tblTempUsageDetail_20' ) start [2025-02-03 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396423', 'tblTempUsageDetail_20' ) end [2025-02-03 23:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:36:23] Production.INFO: ==21862== Releasing lock... [2025-02-03 23:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:36:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-03 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:37:05 [end_date_ymd] => 2025-02-03 23:37:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:37:05' and `end` < '2025-02-03 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-02-03 23:37:19] Production.INFO: count ==931 [2025-02-03 23:37:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:37:05 - End Time 2025-02-03 23:37:05 [2025-02-03 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396428', 'tblTempUsageDetail_20' ) start [2025-02-03 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396428', 'tblTempUsageDetail_20' ) end [2025-02-03 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396428', 'tblTempVendorCDR_20' ) start [2025-02-03 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396428', 'tblTempVendorCDR_20' ) end [2025-02-03 23:37:19] Production.INFO: ProcessCDR(1,14396428,1,1,2) [2025-02-03 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396428', 'tblTempUsageDetail_20' ) start [2025-02-03 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396428', 'tblTempUsageDetail_20' ) end [2025-02-03 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:37:22] Production.INFO: ==21942== Releasing lock... [2025-02-03 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:37:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-03 23:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:38:04 [end_date_ymd] => 2025-02-03 23:38:04 [RateCDR] => 1 ) [2025-02-03 23: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-02-03 20:38:04' and `end` < '2025-02-03 23: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-02-03 23:38:17] Production.INFO: count ==931 [2025-02-03 23:38:17] Production.ERROR: pbx CDR StartTime 2025-02-03 20:38:04 - End Time 2025-02-03 23:38:04 [2025-02-03 23:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396433', 'tblTempUsageDetail_20' ) start [2025-02-03 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396433', 'tblTempUsageDetail_20' ) end [2025-02-03 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396433', 'tblTempVendorCDR_20' ) start [2025-02-03 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396433', 'tblTempVendorCDR_20' ) end [2025-02-03 23:38:17] Production.INFO: ProcessCDR(1,14396433,1,1,2) [2025-02-03 23:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396433', 'tblTempUsageDetail_20' ) start [2025-02-03 23:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396433', 'tblTempUsageDetail_20' ) end [2025-02-03 23:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:38:20] Production.INFO: ==22016== Releasing lock... [2025-02-03 23:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:38:20] Production.INFO: 35.5 MB #Memory Used# [2025-02-03 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:39:05 [end_date_ymd] => 2025-02-03 23:39:05 [RateCDR] => 1 ) [2025-02-03 23: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-02-03 20:39:05' and `end` < '2025-02-03 23: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-02-03 23:39:20] Production.INFO: count ==932 [2025-02-03 23:39:20] Production.ERROR: pbx CDR StartTime 2025-02-03 20:39:05 - End Time 2025-02-03 23:39:05 [2025-02-03 23:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396438', 'tblTempUsageDetail_20' ) start [2025-02-03 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396438', 'tblTempUsageDetail_20' ) end [2025-02-03 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396438', 'tblTempVendorCDR_20' ) start [2025-02-03 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396438', 'tblTempVendorCDR_20' ) end [2025-02-03 23:39:20] Production.INFO: ProcessCDR(1,14396438,1,1,2) [2025-02-03 23:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396438', 'tblTempUsageDetail_20' ) start [2025-02-03 23:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396438', 'tblTempUsageDetail_20' ) end [2025-02-03 23:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:39:24] Production.INFO: ==22093== Releasing lock... [2025-02-03 23:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:39:24] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:40:05 [end_date_ymd] => 2025-02-03 23:40:05 [RateCDR] => 1 ) [2025-02-03 23: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-02-03 20:40:05' and `end` < '2025-02-03 23: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-02-03 23:40:18] Production.INFO: count ==932 [2025-02-03 23:40:18] Production.ERROR: pbx CDR StartTime 2025-02-03 20:40:05 - End Time 2025-02-03 23:40:05 [2025-02-03 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396444', 'tblTempUsageDetail_20' ) start [2025-02-03 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396444', 'tblTempUsageDetail_20' ) end [2025-02-03 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396444', 'tblTempVendorCDR_20' ) start [2025-02-03 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396444', 'tblTempVendorCDR_20' ) end [2025-02-03 23:40:18] Production.INFO: ProcessCDR(1,14396444,1,1,2) [2025-02-03 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396444', 'tblTempUsageDetail_20' ) start [2025-02-03 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396444', 'tblTempUsageDetail_20' ) end [2025-02-03 23:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:40:21] Production.INFO: ==22169== Releasing lock... [2025-02-03 23:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:40:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:41:05 [end_date_ymd] => 2025-02-03 23:41:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:41:05' and `end` < '2025-02-03 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-02-03 23:41:19] Production.INFO: count ==907 [2025-02-03 23:41:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:41:05 - End Time 2025-02-03 23:41:05 [2025-02-03 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396449', 'tblTempUsageDetail_20' ) start [2025-02-03 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396449', 'tblTempUsageDetail_20' ) end [2025-02-03 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396449', 'tblTempVendorCDR_20' ) start [2025-02-03 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396449', 'tblTempVendorCDR_20' ) end [2025-02-03 23:41:19] Production.INFO: ProcessCDR(1,14396449,1,1,2) [2025-02-03 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396449', 'tblTempUsageDetail_20' ) start [2025-02-03 23:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396449', 'tblTempUsageDetail_20' ) end [2025-02-03 23:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:41:24] Production.INFO: ==22248== Releasing lock... [2025-02-03 23:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:41:24] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 23:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:42:04 [end_date_ymd] => 2025-02-03 23:42:04 [RateCDR] => 1 ) [2025-02-03 23: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-02-03 20:42:04' and `end` < '2025-02-03 23: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-02-03 23:42:17] Production.INFO: count ==903 [2025-02-03 23:42:17] Production.ERROR: pbx CDR StartTime 2025-02-03 20:42:04 - End Time 2025-02-03 23:42:04 [2025-02-03 23:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396454', 'tblTempUsageDetail_20' ) start [2025-02-03 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396454', 'tblTempUsageDetail_20' ) end [2025-02-03 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396454', 'tblTempVendorCDR_20' ) start [2025-02-03 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396454', 'tblTempVendorCDR_20' ) end [2025-02-03 23:42:17] Production.INFO: ProcessCDR(1,14396454,1,1,2) [2025-02-03 23:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396454', 'tblTempUsageDetail_20' ) start [2025-02-03 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396454', 'tblTempUsageDetail_20' ) end [2025-02-03 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:42:22] Production.INFO: ==22320== Releasing lock... [2025-02-03 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:42:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:43:05 [end_date_ymd] => 2025-02-03 23:43:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:43:05' and `end` < '2025-02-03 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-02-03 23:43:19] Production.INFO: count ==903 [2025-02-03 23:43:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:43:05 - End Time 2025-02-03 23:43:05 [2025-02-03 23:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396459', 'tblTempUsageDetail_20' ) start [2025-02-03 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396459', 'tblTempUsageDetail_20' ) end [2025-02-03 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396459', 'tblTempVendorCDR_20' ) start [2025-02-03 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396459', 'tblTempVendorCDR_20' ) end [2025-02-03 23:43:19] Production.INFO: ProcessCDR(1,14396459,1,1,2) [2025-02-03 23:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396459', 'tblTempUsageDetail_20' ) start [2025-02-03 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396459', 'tblTempUsageDetail_20' ) end [2025-02-03 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:43:22] Production.INFO: ==22392== Releasing lock... [2025-02-03 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:43:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:44:05 [end_date_ymd] => 2025-02-03 23:44:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:44:05' and `end` < '2025-02-03 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-02-03 23:44:20] Production.INFO: count ==902 [2025-02-03 23:44:20] Production.ERROR: pbx CDR StartTime 2025-02-03 20:44:05 - End Time 2025-02-03 23:44:05 [2025-02-03 23:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396464', 'tblTempUsageDetail_20' ) start [2025-02-03 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396464', 'tblTempUsageDetail_20' ) end [2025-02-03 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396464', 'tblTempVendorCDR_20' ) start [2025-02-03 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396464', 'tblTempVendorCDR_20' ) end [2025-02-03 23:44:20] Production.INFO: ProcessCDR(1,14396464,1,1,2) [2025-02-03 23:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396464', 'tblTempUsageDetail_20' ) start [2025-02-03 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396464', 'tblTempUsageDetail_20' ) end [2025-02-03 23:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:44:23] Production.INFO: ==22469== Releasing lock... [2025-02-03 23:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:44:23] Production.INFO: 35 MB #Memory Used# [2025-02-03 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:45:05 [end_date_ymd] => 2025-02-03 23:45:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:45:05' and `end` < '2025-02-03 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-02-03 23:45:18] Production.INFO: count ==902 [2025-02-03 23:45:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:45:05 - End Time 2025-02-03 23:45:05 [2025-02-03 23:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396469', 'tblTempUsageDetail_20' ) start [2025-02-03 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396469', 'tblTempUsageDetail_20' ) end [2025-02-03 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396469', 'tblTempVendorCDR_20' ) start [2025-02-03 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396469', 'tblTempVendorCDR_20' ) end [2025-02-03 23:45:19] Production.INFO: ProcessCDR(1,14396469,1,1,2) [2025-02-03 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396469', 'tblTempUsageDetail_20' ) start [2025-02-03 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396469', 'tblTempUsageDetail_20' ) end [2025-02-03 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:45:22] Production.INFO: ==22586== Releasing lock... [2025-02-03 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:45:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:46:05 [end_date_ymd] => 2025-02-03 23:46:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:46:05' and `end` < '2025-02-03 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-02-03 23:46:18] Production.INFO: count ==903 [2025-02-03 23:46:18] Production.ERROR: pbx CDR StartTime 2025-02-03 20:46:05 - End Time 2025-02-03 23:46:05 [2025-02-03 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396474', 'tblTempUsageDetail_20' ) start [2025-02-03 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396474', 'tblTempUsageDetail_20' ) end [2025-02-03 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396474', 'tblTempVendorCDR_20' ) start [2025-02-03 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396474', 'tblTempVendorCDR_20' ) end [2025-02-03 23:46:18] Production.INFO: ProcessCDR(1,14396474,1,1,2) [2025-02-03 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396474', 'tblTempUsageDetail_20' ) start [2025-02-03 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396474', 'tblTempUsageDetail_20' ) end [2025-02-03 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:46:22] Production.INFO: ==22659== Releasing lock... [2025-02-03 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:46:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 23:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:47:04 [end_date_ymd] => 2025-02-03 23:47:04 [RateCDR] => 1 ) [2025-02-03 23: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-02-03 20:47:04' and `end` < '2025-02-03 23: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-02-03 23:47:17] Production.INFO: count ==902 [2025-02-03 23:47:17] Production.ERROR: pbx CDR StartTime 2025-02-03 20:47:04 - End Time 2025-02-03 23:47:04 [2025-02-03 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396479', 'tblTempUsageDetail_20' ) start [2025-02-03 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396479', 'tblTempUsageDetail_20' ) end [2025-02-03 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396479', 'tblTempVendorCDR_20' ) start [2025-02-03 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396479', 'tblTempVendorCDR_20' ) end [2025-02-03 23:47:17] Production.INFO: ProcessCDR(1,14396479,1,1,2) [2025-02-03 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396479', 'tblTempUsageDetail_20' ) start [2025-02-03 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396479', 'tblTempUsageDetail_20' ) end [2025-02-03 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:47:22] Production.INFO: ==22733== Releasing lock... [2025-02-03 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:47:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:48:05 [end_date_ymd] => 2025-02-03 23:48:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:48:05' and `end` < '2025-02-03 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-02-03 23:48:18] Production.INFO: count ==902 [2025-02-03 23:48:18] Production.ERROR: pbx CDR StartTime 2025-02-03 20:48:05 - End Time 2025-02-03 23:48:05 [2025-02-03 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396484', 'tblTempUsageDetail_20' ) start [2025-02-03 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396484', 'tblTempUsageDetail_20' ) end [2025-02-03 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396484', 'tblTempVendorCDR_20' ) start [2025-02-03 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396484', 'tblTempVendorCDR_20' ) end [2025-02-03 23:48:18] Production.INFO: ProcessCDR(1,14396484,1,1,2) [2025-02-03 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396484', 'tblTempUsageDetail_20' ) start [2025-02-03 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396484', 'tblTempUsageDetail_20' ) end [2025-02-03 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:48:21] Production.INFO: ==22807== Releasing lock... [2025-02-03 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:48:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 23:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:49:06 [end_date_ymd] => 2025-02-03 23:49:06 [RateCDR] => 1 ) [2025-02-03 23:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-03 20:49:06' and `end` < '2025-02-03 23:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-03 23:49:19] Production.INFO: count ==901 [2025-02-03 23:49:20] Production.ERROR: pbx CDR StartTime 2025-02-03 20:49:06 - End Time 2025-02-03 23:49:06 [2025-02-03 23:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396489', 'tblTempUsageDetail_20' ) start [2025-02-03 23:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396489', 'tblTempUsageDetail_20' ) end [2025-02-03 23:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396489', 'tblTempVendorCDR_20' ) start [2025-02-03 23:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396489', 'tblTempVendorCDR_20' ) end [2025-02-03 23:49:20] Production.INFO: ProcessCDR(1,14396489,1,1,2) [2025-02-03 23:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396489', 'tblTempUsageDetail_20' ) start [2025-02-03 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396489', 'tblTempUsageDetail_20' ) end [2025-02-03 23:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:49:23] Production.INFO: ==22882== Releasing lock... [2025-02-03 23:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:49:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:50:05 [end_date_ymd] => 2025-02-03 23:50:05 [RateCDR] => 1 ) [2025-02-03 23: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-02-03 20:50:05' and `end` < '2025-02-03 23: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-02-03 23:50:18] Production.INFO: count ==901 [2025-02-03 23:50:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:50:05 - End Time 2025-02-03 23:50:05 [2025-02-03 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396494', 'tblTempUsageDetail_20' ) start [2025-02-03 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396494', 'tblTempUsageDetail_20' ) end [2025-02-03 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396494', 'tblTempVendorCDR_20' ) start [2025-02-03 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396494', 'tblTempVendorCDR_20' ) end [2025-02-03 23:50:19] Production.INFO: ProcessCDR(1,14396494,1,1,2) [2025-02-03 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396494', 'tblTempUsageDetail_20' ) start [2025-02-03 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396494', 'tblTempUsageDetail_20' ) end [2025-02-03 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:50:22] Production.INFO: ==22955== Releasing lock... [2025-02-03 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:50:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 23:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:51:05 [end_date_ymd] => 2025-02-03 23:51:05 [RateCDR] => 1 ) [2025-02-03 23: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-02-03 20:51:05' and `end` < '2025-02-03 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-02-03 23:51:20] Production.INFO: count ==901 [2025-02-03 23:51:20] Production.ERROR: pbx CDR StartTime 2025-02-03 20:51:05 - End Time 2025-02-03 23:51:05 [2025-02-03 23:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396500', 'tblTempUsageDetail_20' ) start [2025-02-03 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396500', 'tblTempUsageDetail_20' ) end [2025-02-03 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396500', 'tblTempVendorCDR_20' ) start [2025-02-03 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396500', 'tblTempVendorCDR_20' ) end [2025-02-03 23:51:20] Production.INFO: ProcessCDR(1,14396500,1,1,2) [2025-02-03 23:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396500', 'tblTempUsageDetail_20' ) start [2025-02-03 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396500', 'tblTempUsageDetail_20' ) end [2025-02-03 23:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:51:24] Production.INFO: ==23031== Releasing lock... [2025-02-03 23:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:51:24] Production.INFO: 35.25 MB #Memory Used# [2025-02-03 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:52:05 [end_date_ymd] => 2025-02-03 23:52:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:52:05' and `end` < '2025-02-03 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-02-03 23:52:18] Production.INFO: count ==905 [2025-02-03 23:52:18] Production.ERROR: pbx CDR StartTime 2025-02-03 20:52:05 - End Time 2025-02-03 23:52:05 [2025-02-03 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396505', 'tblTempUsageDetail_20' ) start [2025-02-03 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396505', 'tblTempUsageDetail_20' ) end [2025-02-03 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396505', 'tblTempVendorCDR_20' ) start [2025-02-03 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396505', 'tblTempVendorCDR_20' ) end [2025-02-03 23:52:18] Production.INFO: ProcessCDR(1,14396505,1,1,2) [2025-02-03 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396505', 'tblTempUsageDetail_20' ) start [2025-02-03 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396505', 'tblTempUsageDetail_20' ) end [2025-02-03 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:52:21] Production.INFO: ==23104== Releasing lock... [2025-02-03 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:52:21] Production.INFO: 35 MB #Memory Used# [2025-02-03 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:53:05 [end_date_ymd] => 2025-02-03 23:53:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:53:05' and `end` < '2025-02-03 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-02-03 23:53:18] Production.INFO: count ==895 [2025-02-03 23:53:18] Production.ERROR: pbx CDR StartTime 2025-02-03 20:53:05 - End Time 2025-02-03 23:53:05 [2025-02-03 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396510', 'tblTempUsageDetail_20' ) start [2025-02-03 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396510', 'tblTempUsageDetail_20' ) end [2025-02-03 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396510', 'tblTempVendorCDR_20' ) start [2025-02-03 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396510', 'tblTempVendorCDR_20' ) end [2025-02-03 23:53:18] Production.INFO: ProcessCDR(1,14396510,1,1,2) [2025-02-03 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396510', 'tblTempUsageDetail_20' ) start [2025-02-03 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396510', 'tblTempUsageDetail_20' ) end [2025-02-03 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:53:21] Production.INFO: ==23180== Releasing lock... [2025-02-03 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:53:21] Production.INFO: 35 MB #Memory Used# [2025-02-03 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:54:05 [end_date_ymd] => 2025-02-03 23:54:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:54:05' and `end` < '2025-02-03 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-02-03 23:54:19] Production.INFO: count ==895 [2025-02-03 23:54:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:54:05 - End Time 2025-02-03 23:54:05 [2025-02-03 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396515', 'tblTempUsageDetail_20' ) start [2025-02-03 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396515', 'tblTempUsageDetail_20' ) end [2025-02-03 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396515', 'tblTempVendorCDR_20' ) start [2025-02-03 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396515', 'tblTempVendorCDR_20' ) end [2025-02-03 23:54:19] Production.INFO: ProcessCDR(1,14396515,1,1,2) [2025-02-03 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396515', 'tblTempUsageDetail_20' ) start [2025-02-03 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396515', 'tblTempUsageDetail_20' ) end [2025-02-03 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:54:22] Production.INFO: ==23251== Releasing lock... [2025-02-03 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:54:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 23:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:55:06 [end_date_ymd] => 2025-02-03 23:55:06 [RateCDR] => 1 ) [2025-02-03 23: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-02-03 20:55:06' and `end` < '2025-02-03 23: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-02-03 23:55:19] Production.INFO: count ==895 [2025-02-03 23:55:19] Production.ERROR: pbx CDR StartTime 2025-02-03 20:55:06 - End Time 2025-02-03 23:55:06 [2025-02-03 23:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396520', 'tblTempUsageDetail_20' ) start [2025-02-03 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396520', 'tblTempUsageDetail_20' ) end [2025-02-03 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396520', 'tblTempVendorCDR_20' ) start [2025-02-03 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396520', 'tblTempVendorCDR_20' ) end [2025-02-03 23:55:19] Production.INFO: ProcessCDR(1,14396520,1,1,2) [2025-02-03 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396520', 'tblTempUsageDetail_20' ) start [2025-02-03 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396520', 'tblTempUsageDetail_20' ) end [2025-02-03 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:55:22] Production.INFO: ==23329== Releasing lock... [2025-02-03 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:55:22] Production.INFO: 35 MB #Memory Used# [2025-02-03 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:56:05 [end_date_ymd] => 2025-02-03 23:56:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:56:05' and `end` < '2025-02-03 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-02-03 23:56:18] Production.INFO: count ==899 [2025-02-03 23:56:18] Production.ERROR: pbx CDR StartTime 2025-02-03 20:56:05 - End Time 2025-02-03 23:56:05 [2025-02-03 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396525', 'tblTempUsageDetail_20' ) start [2025-02-03 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396525', 'tblTempUsageDetail_20' ) end [2025-02-03 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396525', 'tblTempVendorCDR_20' ) start [2025-02-03 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396525', 'tblTempVendorCDR_20' ) end [2025-02-03 23:56:18] Production.INFO: ProcessCDR(1,14396525,1,1,2) [2025-02-03 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396525', 'tblTempUsageDetail_20' ) start [2025-02-03 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396525', 'tblTempUsageDetail_20' ) end [2025-02-03 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:56:21] Production.INFO: ==23409== Releasing lock... [2025-02-03 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:56:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:57:05 [end_date_ymd] => 2025-02-03 23:57:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:57:05' and `end` < '2025-02-03 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-02-03 23:57:18] Production.INFO: count ==899 [2025-02-03 23:57:18] Production.ERROR: pbx CDR StartTime 2025-02-03 20:57:05 - End Time 2025-02-03 23:57:05 [2025-02-03 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396530', 'tblTempUsageDetail_20' ) start [2025-02-03 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396530', 'tblTempUsageDetail_20' ) end [2025-02-03 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396530', 'tblTempVendorCDR_20' ) start [2025-02-03 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396530', 'tblTempVendorCDR_20' ) end [2025-02-03 23:57:18] Production.INFO: ProcessCDR(1,14396530,1,1,2) [2025-02-03 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396530', 'tblTempUsageDetail_20' ) start [2025-02-03 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396530', 'tblTempUsageDetail_20' ) end [2025-02-03 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:57:21] Production.INFO: ==23480== Releasing lock... [2025-02-03 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:57:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:58:05 [end_date_ymd] => 2025-02-03 23:58:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:58:05' and `end` < '2025-02-03 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-02-03 23:58:18] Production.INFO: count ==899 [2025-02-03 23:58:18] Production.ERROR: pbx CDR StartTime 2025-02-03 20:58:05 - End Time 2025-02-03 23:58:05 [2025-02-03 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396535', 'tblTempUsageDetail_20' ) start [2025-02-03 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396535', 'tblTempUsageDetail_20' ) end [2025-02-03 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396535', 'tblTempVendorCDR_20' ) start [2025-02-03 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396535', 'tblTempVendorCDR_20' ) end [2025-02-03 23:58:18] Production.INFO: ProcessCDR(1,14396535,1,1,2) [2025-02-03 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396535', 'tblTempUsageDetail_20' ) start [2025-02-03 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396535', 'tblTempUsageDetail_20' ) end [2025-02-03 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:58:21] Production.INFO: ==23554== Releasing lock... [2025-02-03 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:58:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-03 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-03 20:59:05 [end_date_ymd] => 2025-02-03 23:59:05 [RateCDR] => 1 ) [2025-02-03 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-02-03 20:59:05' and `end` < '2025-02-03 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-02-03 23:59:18] Production.INFO: count ==899 [2025-02-03 23:59:18] Production.ERROR: pbx CDR StartTime 2025-02-03 20:59:05 - End Time 2025-02-03 23:59:05 [2025-02-03 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-03 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396540', 'tblTempUsageDetail_20' ) start [2025-02-03 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14396540', 'tblTempUsageDetail_20' ) end [2025-02-03 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396540', 'tblTempVendorCDR_20' ) start [2025-02-03 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14396540', 'tblTempVendorCDR_20' ) end [2025-02-03 23:59:18] Production.INFO: ProcessCDR(1,14396540,1,1,2) [2025-02-03 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14396540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14396540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-03 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14396540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14396540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-03 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396540', 'tblTempUsageDetail_20' ) start [2025-02-03 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14396540', 'tblTempUsageDetail_20' ) end [2025-02-03 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-03 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-03 23:59:21] Production.INFO: ==23633== Releasing lock... [2025-02-03 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-03 23:59:21] Production.INFO: 34.75 MB #Memory Used#